1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=cpp --structured --version 1 --hash ae4cfe565d66acc7d816aabd0dfab991e64031ab -t --min_sdk_version current --ninja -d out/soong/.intermediates/packages/modules/Connectivity/staticlibs/netd/mdns_aidl_interface-V1-cpp-source/gen/staging/android/net/mdns/aidl/ResolutionInfo.cpp.d -h out/soong/.intermediates/packages/modules/Connectivity/staticlibs/netd/mdns_aidl_interface-V1-cpp-source/gen/include/staging -o out/soong/.intermediates/packages/modules/Connectivity/staticlibs/netd/mdns_aidl_interface-V1-cpp-source/gen/staging -Npackages/modules/Connectivity/staticlibs/netd/aidl_api/mdns_aidl_interface/1 packages/modules/Connectivity/staticlibs/netd/aidl_api/mdns_aidl_interface/1/android/net/mdns/aidl/ResolutionInfo.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <android/binder_to_string.h>
12 #include <binder/Parcel.h>
13 #include <binder/Status.h>
14 #include <cstdint>
15 #include <string>
16 #include <tuple>
17 #include <utils/String16.h>
18 #include <vector>
19 
20 namespace android {
21 namespace net {
22 namespace mdns {
23 namespace aidl {
24 class LIBBINDER_EXPORTED ResolutionInfo : public ::android::Parcelable {
25 public:
26   int32_t id = 0;
27   int32_t result = 0;
28   ::std::string serviceName;
29   ::std::string registrationType;
30   ::std::string domain;
31   ::std::string serviceFullName;
32   ::std::string hostname;
33   int32_t port = 0;
34   ::std::vector<uint8_t> txtRecord;
35   int32_t interfaceIdx = 0;
36   inline bool operator==(const ResolutionInfo& _rhs) const {
37     return std::tie(id, result, serviceName, registrationType, domain, serviceFullName, hostname, port, txtRecord, interfaceIdx) == std::tie(_rhs.id, _rhs.result, _rhs.serviceName, _rhs.registrationType, _rhs.domain, _rhs.serviceFullName, _rhs.hostname, _rhs.port, _rhs.txtRecord, _rhs.interfaceIdx);
38   }
39   inline bool operator<(const ResolutionInfo& _rhs) const {
40     return std::tie(id, result, serviceName, registrationType, domain, serviceFullName, hostname, port, txtRecord, interfaceIdx) < std::tie(_rhs.id, _rhs.result, _rhs.serviceName, _rhs.registrationType, _rhs.domain, _rhs.serviceFullName, _rhs.hostname, _rhs.port, _rhs.txtRecord, _rhs.interfaceIdx);
41   }
42   inline bool operator!=(const ResolutionInfo& _rhs) const {
43     return !(*this == _rhs);
44   }
45   inline bool operator>(const ResolutionInfo& _rhs) const {
46     return _rhs < *this;
47   }
48   inline bool operator>=(const ResolutionInfo& _rhs) const {
49     return !(*this < _rhs);
50   }
51   inline bool operator<=(const ResolutionInfo& _rhs) const {
52     return !(_rhs < *this);
53   }
54 
55   ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final;
56   ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final;
getParcelableDescriptor()57   static const ::android::String16& getParcelableDescriptor() {
58     static const ::android::StaticString16 DESCRIPTOR (u"android.net.mdns.aidl.ResolutionInfo");
59     return DESCRIPTOR;
60   }
toString()61   inline std::string toString() const {
62     std::ostringstream _aidl_os;
63     _aidl_os << "ResolutionInfo{";
64     _aidl_os << "id: " << ::android::internal::ToString(id);
65     _aidl_os << ", result: " << ::android::internal::ToString(result);
66     _aidl_os << ", serviceName: " << ::android::internal::ToString(serviceName);
67     _aidl_os << ", registrationType: " << ::android::internal::ToString(registrationType);
68     _aidl_os << ", domain: " << ::android::internal::ToString(domain);
69     _aidl_os << ", serviceFullName: " << ::android::internal::ToString(serviceFullName);
70     _aidl_os << ", hostname: " << ::android::internal::ToString(hostname);
71     _aidl_os << ", port: " << ::android::internal::ToString(port);
72     _aidl_os << ", txtRecord: " << ::android::internal::ToString(txtRecord);
73     _aidl_os << ", interfaceIdx: " << ::android::internal::ToString(interfaceIdx);
74     _aidl_os << "}";
75     return _aidl_os.str();
76   }
77 };  // class ResolutionInfo
78 }  // namespace aidl
79 }  // namespace mdns
80 }  // namespace net
81 }  // namespace android
82