GPUdb C++ API  Version 7.2.2.4
create_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 __CREATE_CONTAINER_REGISTRY_H__
7 #define __CREATE_CONTAINER_REGISTRY_H__
8 
9 namespace gpudb
10 {
12  struct CreateContainerRegistryRequest
13  {
14  CreateContainerRegistryRequest() :
15  registryName(std::string()),
16  uri(std::string()),
17  credential(std::string()),
18  options(std::map<std::string, std::string>())
19  {
20  }
21 
22  CreateContainerRegistryRequest(const std::string& registryName_, const std::string& uri_, const std::string& credential_, const std::map<std::string, std::string>& options_):
23  registryName( registryName_ ),
24  uri( uri_ ),
25  credential( credential_ ),
26  options( options_ )
27  {
28  }
29 
30  std::string registryName;
31  std::string uri;
32  std::string credential;
33  std::map<std::string, std::string> options;
34  };
35 } // end namespace gpudb
36 
37 namespace avro
38 {
39  template<> struct codec_traits<gpudb::CreateContainerRegistryRequest>
40  {
41  static void encode(Encoder& e, const gpudb::CreateContainerRegistryRequest& v)
42  {
43  ::avro::encode(e, v.registryName);
44  ::avro::encode(e, v.uri);
45  ::avro::encode(e, v.credential);
46  ::avro::encode(e, v.options);
47  }
48 
49  static void decode(Decoder& d, gpudb::CreateContainerRegistryRequest& v)
50  {
51  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
52  {
53  const std::vector<size_t> fo = rd->fieldOrder();
54 
55  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
56  {
57  switch (*it)
58  {
59  case 0:
60  ::avro::decode(d, v.registryName);
61  break;
62 
63  case 1:
64  ::avro::decode(d, v.uri);
65  break;
66 
67  case 2:
68  ::avro::decode(d, v.credential);
69  break;
70 
71  case 3:
72  ::avro::decode(d, v.options);
73  break;
74 
75  default:
76  break;
77  }
78  }
79  }
80  else
81  {
82  ::avro::decode(d, v.registryName);
83  ::avro::decode(d, v.uri);
84  ::avro::decode(d, v.credential);
85  ::avro::decode(d, v.options);
86  }
87  }
88  };
89 } // end namespace avro
90 
91 namespace gpudb
92 {
94  struct CreateContainerRegistryResponse
95  {
96  CreateContainerRegistryResponse() :
97  registryName(std::string()),
98  entityId(int32_t()),
99  info(std::map<std::string, std::string>())
100  {
101  }
102 
103  std::string registryName;
104  int32_t entityId;
105  std::map<std::string, std::string> info;
106  };
107 } // end namespace gpudb
108 
109 namespace avro
110 {
111  template<> struct codec_traits<gpudb::CreateContainerRegistryResponse>
112  {
113  static void encode(Encoder& e, const gpudb::CreateContainerRegistryResponse& v)
114  {
115  ::avro::encode(e, v.registryName);
116  ::avro::encode(e, v.entityId);
117  ::avro::encode(e, v.info);
118  }
119 
120  static void decode(Decoder& d, gpudb::CreateContainerRegistryResponse& v)
121  {
122  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
123  {
124  const std::vector<size_t> fo = rd->fieldOrder();
125 
126  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
127  {
128  switch (*it)
129  {
130  case 0:
131  ::avro::decode(d, v.registryName);
132  break;
133 
134  case 1:
135  ::avro::decode(d, v.entityId);
136  break;
137 
138  case 2:
139  ::avro::decode(d, v.info);
140  break;
141 
142  default:
143  break;
144  }
145  }
146  }
147  else
148  {
149  ::avro::decode(d, v.registryName);
150  ::avro::decode(d, v.entityId);
151  ::avro::decode(d, v.info);
152  }
153  }
154  };
155 } // end namespace avro
156 
157 #endif // __CREATE_CONTAINER_REGISTRY_H__