GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
revoke_permission_table.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 __REVOKE_PERMISSION_TABLE_H__
7 #define __REVOKE_PERMISSION_TABLE_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  name(std::string()),
27  permission(std::string()),
28  tableName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
73  RevokePermissionTableRequest(const std::string& name_, const std::string& permission_, const std::string& tableName_, const std::map<std::string, std::string>& options_):
74  name( name_ ),
75  permission( permission_ ),
76  tableName( tableName_ ),
77  options( options_ )
78  {
79  }
80 
81  std::string name;
82  std::string permission;
83  std::string tableName;
84  std::map<std::string, std::string> options;
85  };
86 }
87 
88 namespace avro
89 {
90  template<> struct codec_traits<gpudb::RevokePermissionTableRequest>
91  {
92  static void encode(Encoder& e, const gpudb::RevokePermissionTableRequest& v)
93  {
94  ::avro::encode(e, v.name);
95  ::avro::encode(e, v.permission);
96  ::avro::encode(e, v.tableName);
97  ::avro::encode(e, v.options);
98  }
99 
100  static void decode(Decoder& d, gpudb::RevokePermissionTableRequest& v)
101  {
102  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
103  {
104  const std::vector<size_t> fo = rd->fieldOrder();
105 
106  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
107  {
108  switch (*it)
109  {
110  case 0:
111  ::avro::decode(d, v.name);
112  break;
113 
114  case 1:
115  ::avro::decode(d, v.permission);
116  break;
117 
118  case 2:
119  ::avro::decode(d, v.tableName);
120  break;
121 
122  case 3:
123  ::avro::decode(d, v.options);
124  break;
125 
126  default:
127  break;
128  }
129  }
130  }
131  else
132  {
133  ::avro::decode(d, v.name);
134  ::avro::decode(d, v.permission);
135  ::avro::decode(d, v.tableName);
136  ::avro::decode(d, v.options);
137  }
138  }
139  };
140 }
141 
142 namespace gpudb
143 {
144 
152  {
153 
159  name(std::string()),
160  permission(std::string()),
161  tableName(std::string()),
162  info(std::map<std::string, std::string>())
163  {
164  }
165 
166  std::string name;
167  std::string permission;
168  std::string tableName;
169  std::map<std::string, std::string> info;
170  };
171 }
172 
173 namespace avro
174 {
175  template<> struct codec_traits<gpudb::RevokePermissionTableResponse>
176  {
177  static void encode(Encoder& e, const gpudb::RevokePermissionTableResponse& v)
178  {
179  ::avro::encode(e, v.name);
180  ::avro::encode(e, v.permission);
181  ::avro::encode(e, v.tableName);
182  ::avro::encode(e, v.info);
183  }
184 
185  static void decode(Decoder& d, gpudb::RevokePermissionTableResponse& v)
186  {
187  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
188  {
189  const std::vector<size_t> fo = rd->fieldOrder();
190 
191  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192  {
193  switch (*it)
194  {
195  case 0:
196  ::avro::decode(d, v.name);
197  break;
198 
199  case 1:
200  ::avro::decode(d, v.permission);
201  break;
202 
203  case 2:
204  ::avro::decode(d, v.tableName);
205  break;
206 
207  case 3:
208  ::avro::decode(d, v.info);
209  break;
210 
211  default:
212  break;
213  }
214  }
215  }
216  else
217  {
218  ::avro::decode(d, v.name);
219  ::avro::decode(d, v.permission);
220  ::avro::decode(d, v.tableName);
221  ::avro::decode(d, v.info);
222  }
223  }
224  };
225 }
226 
227 #endif
std::map< std::string, std::string > info
std::map< std::string, std::string > options
RevokePermissionTableRequest()
Constructs a RevokePermissionTableRequest object with default parameter values.
RevokePermissionTableResponse()
Constructs a RevokePermissionTableResponse object with default parameter values.
A set of input parameters for const.
RevokePermissionTableRequest(const std::string &name_, const std::string &permission_, const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionTableRequest object with the specified parameters.
A set of output parameters for const.