6 #ifndef __SHOW_CONTAINER_REGISTRY_H__ 7 #define __SHOW_CONTAINER_REGISTRY_H__ 12 struct ShowContainerRegistryRequest
14 ShowContainerRegistryRequest() :
15 registryName(std::string()),
16 options(std::map<std::string, std::string>())
20 ShowContainerRegistryRequest(
const std::string& registryName_,
const std::map<std::string, std::string>& options_):
21 registryName( registryName_ ),
26 std::string registryName;
27 std::map<std::string, std::string> options;
33 template<>
struct codec_traits<
gpudb::ShowContainerRegistryRequest>
35 static void encode(Encoder& e,
const gpudb::ShowContainerRegistryRequest& v)
37 ::avro::encode(e, v.registryName);
38 ::avro::encode(e, v.options);
41 static void decode(Decoder& d, gpudb::ShowContainerRegistryRequest& v)
43 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
45 const std::vector<size_t> fo = rd->fieldOrder();
47 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
52 ::avro::decode(d, v.registryName);
56 ::avro::decode(d, v.options);
66 ::avro::decode(d, v.registryName);
67 ::avro::decode(d, v.options);
76 struct ShowContainerRegistryResponse
78 ShowContainerRegistryResponse() :
79 registryName(std::string()),
80 registryNames(std::vector<std::string>()),
81 entityIds(std::vector<int32_t>()),
82 uriList(std::vector<std::string>()),
83 credentialList(std::vector<std::string>()),
84 info(std::map<std::string, std::string>())
88 std::string registryName;
89 std::vector<std::string> registryNames;
90 std::vector<int32_t> entityIds;
91 std::vector<std::string> uriList;
92 std::vector<std::string> credentialList;
93 std::map<std::string, std::string> info;
99 template<>
struct codec_traits<
gpudb::ShowContainerRegistryResponse>
101 static void encode(Encoder& e,
const gpudb::ShowContainerRegistryResponse& v)
103 ::avro::encode(e, v.registryName);
104 ::avro::encode(e, v.registryNames);
105 ::avro::encode(e, v.entityIds);
106 ::avro::encode(e, v.uriList);
107 ::avro::encode(e, v.credentialList);
108 ::avro::encode(e, v.info);
111 static void decode(Decoder& d, gpudb::ShowContainerRegistryResponse& v)
113 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115 const std::vector<size_t> fo = rd->fieldOrder();
117 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
122 ::avro::decode(d, v.registryName);
126 ::avro::decode(d, v.registryNames);
130 ::avro::decode(d, v.entityIds);
134 ::avro::decode(d, v.uriList);
138 ::avro::decode(d, v.credentialList);
142 ::avro::decode(d, v.info);
152 ::avro::decode(d, v.registryName);
153 ::avro::decode(d, v.registryNames);
154 ::avro::decode(d, v.entityIds);
155 ::avro::decode(d, v.uriList);
156 ::avro::decode(d, v.credentialList);
157 ::avro::decode(d, v.info);
163 #endif // __SHOW_CONTAINER_REGISTRY_H__