GPUdb C++ API  Version 7.2.2.4
show_container_registry.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica 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 {
12  struct ShowContainerRegistryRequest
13  {
14  ShowContainerRegistryRequest() :
15  registryName(std::string()),
16  options(std::map<std::string, std::string>())
17  {
18  }
19 
20  ShowContainerRegistryRequest(const std::string& registryName_, const std::map<std::string, std::string>& options_):
21  registryName( registryName_ ),
22  options( options_ )
23  {
24  }
25 
26  std::string registryName;
27  std::map<std::string, std::string> options;
28  };
29 } // end namespace gpudb
30 
31 namespace avro
32 {
33  template<> struct codec_traits<gpudb::ShowContainerRegistryRequest>
34  {
35  static void encode(Encoder& e, const gpudb::ShowContainerRegistryRequest& v)
36  {
37  ::avro::encode(e, v.registryName);
38  ::avro::encode(e, v.options);
39  }
40 
41  static void decode(Decoder& d, gpudb::ShowContainerRegistryRequest& v)
42  {
43  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
44  {
45  const std::vector<size_t> fo = rd->fieldOrder();
46 
47  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
48  {
49  switch (*it)
50  {
51  case 0:
52  ::avro::decode(d, v.registryName);
53  break;
54 
55  case 1:
56  ::avro::decode(d, v.options);
57  break;
58 
59  default:
60  break;
61  }
62  }
63  }
64  else
65  {
66  ::avro::decode(d, v.registryName);
67  ::avro::decode(d, v.options);
68  }
69  }
70  };
71 } // end namespace avro
72 
73 namespace gpudb
74 {
76  struct ShowContainerRegistryResponse
77  {
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>())
85  {
86  }
87 
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;
94  };
95 } // end namespace gpudb
96 
97 namespace avro
98 {
99  template<> struct codec_traits<gpudb::ShowContainerRegistryResponse>
100  {
101  static void encode(Encoder& e, const gpudb::ShowContainerRegistryResponse& v)
102  {
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);
109  }
110 
111  static void decode(Decoder& d, gpudb::ShowContainerRegistryResponse& v)
112  {
113  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114  {
115  const std::vector<size_t> fo = rd->fieldOrder();
116 
117  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118  {
119  switch (*it)
120  {
121  case 0:
122  ::avro::decode(d, v.registryName);
123  break;
124 
125  case 1:
126  ::avro::decode(d, v.registryNames);
127  break;
128 
129  case 2:
130  ::avro::decode(d, v.entityIds);
131  break;
132 
133  case 3:
134  ::avro::decode(d, v.uriList);
135  break;
136 
137  case 4:
138  ::avro::decode(d, v.credentialList);
139  break;
140 
141  case 5:
142  ::avro::decode(d, v.info);
143  break;
144 
145  default:
146  break;
147  }
148  }
149  }
150  else
151  {
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);
158  }
159  }
160  };
161 } // end namespace avro
162 
163 #endif // __SHOW_CONTAINER_REGISTRY_H__