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/GetAddressInfo.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/GetAddressInfo.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 
19 namespace android {
20 namespace net {
21 namespace mdns {
22 namespace aidl {
23 class LIBBINDER_EXPORTED GetAddressInfo : public ::android::Parcelable {
24 public:
25   int32_t id = 0;
26   int32_t result = 0;
27   ::std::string hostname;
28   ::std::string address;
29   int32_t interfaceIdx = 0;
30   int32_t netId = 0;
31   inline bool operator==(const GetAddressInfo& _rhs) const {
32     return std::tie(id, result, hostname, address, interfaceIdx, netId) == std::tie(_rhs.id, _rhs.result, _rhs.hostname, _rhs.address, _rhs.interfaceIdx, _rhs.netId);
33   }
34   inline bool operator<(const GetAddressInfo& _rhs) const {
35     return std::tie(id, result, hostname, address, interfaceIdx, netId) < std::tie(_rhs.id, _rhs.result, _rhs.hostname, _rhs.address, _rhs.interfaceIdx, _rhs.netId);
36   }
37   inline bool operator!=(const GetAddressInfo& _rhs) const {
38     return !(*this == _rhs);
39   }
40   inline bool operator>(const GetAddressInfo& _rhs) const {
41     return _rhs < *this;
42   }
43   inline bool operator>=(const GetAddressInfo& _rhs) const {
44     return !(*this < _rhs);
45   }
46   inline bool operator<=(const GetAddressInfo& _rhs) const {
47     return !(_rhs < *this);
48   }
49 
50   ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final;
51   ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final;
getParcelableDescriptor()52   static const ::android::String16& getParcelableDescriptor() {
53     static const ::android::StaticString16 DESCRIPTOR (u"android.net.mdns.aidl.GetAddressInfo");
54     return DESCRIPTOR;
55   }
toString()56   inline std::string toString() const {
57     std::ostringstream _aidl_os;
58     _aidl_os << "GetAddressInfo{";
59     _aidl_os << "id: " << ::android::internal::ToString(id);
60     _aidl_os << ", result: " << ::android::internal::ToString(result);
61     _aidl_os << ", hostname: " << ::android::internal::ToString(hostname);
62     _aidl_os << ", address: " << ::android::internal::ToString(address);
63     _aidl_os << ", interfaceIdx: " << ::android::internal::ToString(interfaceIdx);
64     _aidl_os << ", netId: " << ::android::internal::ToString(netId);
65     _aidl_os << "}";
66     return _aidl_os.str();
67   }
68 };  // class GetAddressInfo
69 }  // namespace aidl
70 }  // namespace mdns
71 }  // namespace net
72 }  // namespace android
73