GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_container_registry.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_CONTAINER_REGISTRY_H__
7 #define __SHOW_CONTAINER_REGISTRY_H__
8 
9 namespace gpudb
10 {
11 
18  struct ShowContainerRegistryRequest
19  {
20 
26  ShowContainerRegistryRequest() :
27  registryName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
41  ShowContainerRegistryRequest(const std::string& registryName_, const std::map<std::string, std::string>& options_):
42  registryName( registryName_ ),
43  options( options_ )
44  {
45  }
46 
47  std::string registryName;
48  std::map<std::string, std::string> options;
49  };
50 }
51 
56 namespace avro
57 {
58  template<> struct codec_traits<gpudb::ShowContainerRegistryRequest>
59  {
60  static void encode(Encoder& e, const gpudb::ShowContainerRegistryRequest& v)
61  {
62  ::avro::encode(e, v.registryName);
63  ::avro::encode(e, v.options);
64  }
65 
66  static void decode(Decoder& d, gpudb::ShowContainerRegistryRequest& v)
67  {
68  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
69  {
70  const std::vector<size_t> fo = rd->fieldOrder();
71 
72  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
73  {
74  switch (*it)
75  {
76  case 0:
77  ::avro::decode(d, v.registryName);
78  break;
79 
80  case 1:
81  ::avro::decode(d, v.options);
82  break;
83 
84  default:
85  break;
86  }
87  }
88  }
89  else
90  {
91  ::avro::decode(d, v.registryName);
92  ::avro::decode(d, v.options);
93  }
94  }
95  };
96 }
97 
98 namespace gpudb
99 {
100 
107  struct ShowContainerRegistryResponse
108  {
109 
115  ShowContainerRegistryResponse() :
116  registryName(std::string()),
117  registryNames(std::vector<std::string>()),
118  entityIds(std::vector<int32_t>()),
119  uriList(std::vector<std::string>()),
120  credentialList(std::vector<std::string>()),
121  info(std::map<std::string, std::string>())
122  {
123  }
124 
125  std::string registryName;
126  std::vector<std::string> registryNames;
127  std::vector<int32_t> entityIds;
128  std::vector<std::string> uriList;
129  std::vector<std::string> credentialList;
130  std::map<std::string, std::string> info;
131  };
132 }
133 
138 namespace avro
139 {
140  template<> struct codec_traits<gpudb::ShowContainerRegistryResponse>
141  {
142  static void encode(Encoder& e, const gpudb::ShowContainerRegistryResponse& v)
143  {
144  ::avro::encode(e, v.registryName);
145  ::avro::encode(e, v.registryNames);
146  ::avro::encode(e, v.entityIds);
147  ::avro::encode(e, v.uriList);
148  ::avro::encode(e, v.credentialList);
149  ::avro::encode(e, v.info);
150  }
151 
152  static void decode(Decoder& d, gpudb::ShowContainerRegistryResponse& v)
153  {
154  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155  {
156  const std::vector<size_t> fo = rd->fieldOrder();
157 
158  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
159  {
160  switch (*it)
161  {
162  case 0:
163  ::avro::decode(d, v.registryName);
164  break;
165 
166  case 1:
167  ::avro::decode(d, v.registryNames);
168  break;
169 
170  case 2:
171  ::avro::decode(d, v.entityIds);
172  break;
173 
174  case 3:
175  ::avro::decode(d, v.uriList);
176  break;
177 
178  case 4:
179  ::avro::decode(d, v.credentialList);
180  break;
181 
182  case 5:
183  ::avro::decode(d, v.info);
184  break;
185 
186  default:
187  break;
188  }
189  }
190  }
191  else
192  {
193  ::avro::decode(d, v.registryName);
194  ::avro::decode(d, v.registryNames);
195  ::avro::decode(d, v.entityIds);
196  ::avro::decode(d, v.uriList);
197  ::avro::decode(d, v.credentialList);
198  ::avro::decode(d, v.info);
199  }
200  }
201  };
202 }
203 
204 #endif