GPUdb C++ API  Version 5.2.0.0
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 
48  RevokePermissionTableRequest(const std::string& name, const std::string& permission, const std::string& tableName, const std::map<std::string, std::string>& options):
49  name(name),
50  permission(permission),
51  tableName(tableName),
52  options(options)
53  {
54  }
55 
56  std::string name;
57  std::string permission;
58  std::string tableName;
59  std::map<std::string, std::string> options;
60  };
61 }
62 
63 namespace avro
64 {
65  template<> struct codec_traits<gpudb::RevokePermissionTableRequest>
66  {
67  static void encode(Encoder& e, const gpudb::RevokePermissionTableRequest& v)
68  {
69  ::avro::encode(e, v.name);
70  ::avro::encode(e, v.permission);
71  ::avro::encode(e, v.tableName);
72  ::avro::encode(e, v.options);
73  }
74 
75  static void decode(Decoder& d, gpudb::RevokePermissionTableRequest& v)
76  {
77  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
78  {
79  const std::vector<size_t> fo = rd->fieldOrder();
80 
81  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
82  {
83  switch (*it)
84  {
85  case 0:
86  ::avro::decode(d, v.name);
87  break;
88 
89  case 1:
90  ::avro::decode(d, v.permission);
91  break;
92 
93  case 2:
94  ::avro::decode(d, v.tableName);
95  break;
96 
97  case 3:
98  ::avro::decode(d, v.options);
99  break;
100 
101  default:
102  break;
103  }
104  }
105  }
106  else
107  {
108  ::avro::decode(d, v.name);
109  ::avro::decode(d, v.permission);
110  ::avro::decode(d, v.tableName);
111  ::avro::decode(d, v.options);
112  }
113  }
114  };
115 }
116 
117 namespace gpudb
118 {
119 
127  {
128 
134  name(std::string()),
135  permission(std::string()),
136  tableName(std::string())
137  {
138  }
139 
140  std::string name;
141  std::string permission;
142  std::string tableName;
143  };
144 }
145 
146 namespace avro
147 {
148  template<> struct codec_traits<gpudb::RevokePermissionTableResponse>
149  {
150  static void encode(Encoder& e, const gpudb::RevokePermissionTableResponse& v)
151  {
152  ::avro::encode(e, v.name);
153  ::avro::encode(e, v.permission);
154  ::avro::encode(e, v.tableName);
155  }
156 
157  static void decode(Decoder& d, gpudb::RevokePermissionTableResponse& v)
158  {
159  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
160  {
161  const std::vector<size_t> fo = rd->fieldOrder();
162 
163  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
164  {
165  switch (*it)
166  {
167  case 0:
168  ::avro::decode(d, v.name);
169  break;
170 
171  case 1:
172  ::avro::decode(d, v.permission);
173  break;
174 
175  case 2:
176  ::avro::decode(d, v.tableName);
177  break;
178 
179  default:
180  break;
181  }
182  }
183  }
184  else
185  {
186  ::avro::decode(d, v.name);
187  ::avro::decode(d, v.permission);
188  ::avro::decode(d, v.tableName);
189  }
190  }
191  };
192 }
193 
194 #endif
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 revokePermissionTable(const RevokePermissionTableRequest&) 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 revokePermissionTable(const RevokePermissionTableRequest&) const...