| 6289 |
anupam.sin |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.order;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class DeviceNumberInfo implements org.apache.thrift.TBase<DeviceNumberInfo, DeviceNumberInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DeviceNumberInfo");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 6336 |
anupam.sin |
27 |
private static final org.apache.thrift.protocol.TField CIRCLE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("circleCode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 6310 |
anupam.sin |
28 |
private static final org.apache.thrift.protocol.TField OPERATOR_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorName", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| 6289 |
anupam.sin |
29 |
|
|
|
30 |
private long operatorId; // required
|
| 6336 |
anupam.sin |
31 |
private String circleCode; // required
|
| 6310 |
anupam.sin |
32 |
private String operatorName; // required
|
| 6289 |
anupam.sin |
33 |
|
|
|
34 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
35 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
36 |
OPERATOR_ID((short)1, "operatorId"),
|
| 6336 |
anupam.sin |
37 |
CIRCLE_CODE((short)2, "circleCode"),
|
| 6310 |
anupam.sin |
38 |
OPERATOR_NAME((short)3, "operatorName");
|
| 6289 |
anupam.sin |
39 |
|
|
|
40 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
41 |
|
|
|
42 |
static {
|
|
|
43 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
44 |
byName.put(field.getFieldName(), field);
|
|
|
45 |
}
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
50 |
*/
|
|
|
51 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
52 |
switch(fieldId) {
|
|
|
53 |
case 1: // OPERATOR_ID
|
|
|
54 |
return OPERATOR_ID;
|
| 6336 |
anupam.sin |
55 |
case 2: // CIRCLE_CODE
|
|
|
56 |
return CIRCLE_CODE;
|
| 6310 |
anupam.sin |
57 |
case 3: // OPERATOR_NAME
|
|
|
58 |
return OPERATOR_NAME;
|
| 6289 |
anupam.sin |
59 |
default:
|
|
|
60 |
return null;
|
|
|
61 |
}
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
/**
|
|
|
65 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
66 |
* if it is not found.
|
|
|
67 |
*/
|
|
|
68 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
69 |
_Fields fields = findByThriftId(fieldId);
|
|
|
70 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
71 |
return fields;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
/**
|
|
|
75 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
76 |
*/
|
|
|
77 |
public static _Fields findByName(String name) {
|
|
|
78 |
return byName.get(name);
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
private final short _thriftId;
|
|
|
82 |
private final String _fieldName;
|
|
|
83 |
|
|
|
84 |
_Fields(short thriftId, String fieldName) {
|
|
|
85 |
_thriftId = thriftId;
|
|
|
86 |
_fieldName = fieldName;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public short getThriftFieldId() {
|
|
|
90 |
return _thriftId;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public String getFieldName() {
|
|
|
94 |
return _fieldName;
|
|
|
95 |
}
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
// isset id assignments
|
|
|
99 |
private static final int __OPERATORID_ISSET_ID = 0;
|
|
|
100 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
101 |
|
|
|
102 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
103 |
static {
|
|
|
104 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
105 |
tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
106 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6336 |
anupam.sin |
107 |
tmpMap.put(_Fields.CIRCLE_CODE, new org.apache.thrift.meta_data.FieldMetaData("circleCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 6289 |
anupam.sin |
108 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 6310 |
anupam.sin |
109 |
tmpMap.put(_Fields.OPERATOR_NAME, new org.apache.thrift.meta_data.FieldMetaData("operatorName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
110 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 6289 |
anupam.sin |
111 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
112 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeviceNumberInfo.class, metaDataMap);
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public DeviceNumberInfo() {
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public DeviceNumberInfo(
|
|
|
119 |
long operatorId,
|
| 6336 |
anupam.sin |
120 |
String circleCode,
|
| 6310 |
anupam.sin |
121 |
String operatorName)
|
| 6289 |
anupam.sin |
122 |
{
|
|
|
123 |
this();
|
|
|
124 |
this.operatorId = operatorId;
|
|
|
125 |
setOperatorIdIsSet(true);
|
| 6336 |
anupam.sin |
126 |
this.circleCode = circleCode;
|
| 6310 |
anupam.sin |
127 |
this.operatorName = operatorName;
|
| 6289 |
anupam.sin |
128 |
}
|
|
|
129 |
|
|
|
130 |
/**
|
|
|
131 |
* Performs a deep copy on <i>other</i>.
|
|
|
132 |
*/
|
|
|
133 |
public DeviceNumberInfo(DeviceNumberInfo other) {
|
|
|
134 |
__isset_bit_vector.clear();
|
|
|
135 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
136 |
this.operatorId = other.operatorId;
|
| 6336 |
anupam.sin |
137 |
if (other.isSetCircleCode()) {
|
|
|
138 |
this.circleCode = other.circleCode;
|
| 6289 |
anupam.sin |
139 |
}
|
| 6310 |
anupam.sin |
140 |
if (other.isSetOperatorName()) {
|
|
|
141 |
this.operatorName = other.operatorName;
|
|
|
142 |
}
|
| 6289 |
anupam.sin |
143 |
}
|
|
|
144 |
|
|
|
145 |
public DeviceNumberInfo deepCopy() {
|
|
|
146 |
return new DeviceNumberInfo(this);
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
@Override
|
|
|
150 |
public void clear() {
|
|
|
151 |
setOperatorIdIsSet(false);
|
|
|
152 |
this.operatorId = 0;
|
| 6336 |
anupam.sin |
153 |
this.circleCode = null;
|
| 6310 |
anupam.sin |
154 |
this.operatorName = null;
|
| 6289 |
anupam.sin |
155 |
}
|
|
|
156 |
|
|
|
157 |
public long getOperatorId() {
|
|
|
158 |
return this.operatorId;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
public void setOperatorId(long operatorId) {
|
|
|
162 |
this.operatorId = operatorId;
|
|
|
163 |
setOperatorIdIsSet(true);
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public void unsetOperatorId() {
|
|
|
167 |
__isset_bit_vector.clear(__OPERATORID_ISSET_ID);
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
/** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
|
|
|
171 |
public boolean isSetOperatorId() {
|
|
|
172 |
return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
public void setOperatorIdIsSet(boolean value) {
|
|
|
176 |
__isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
|
|
|
177 |
}
|
|
|
178 |
|
| 6336 |
anupam.sin |
179 |
public String getCircleCode() {
|
|
|
180 |
return this.circleCode;
|
| 6289 |
anupam.sin |
181 |
}
|
|
|
182 |
|
| 6336 |
anupam.sin |
183 |
public void setCircleCode(String circleCode) {
|
|
|
184 |
this.circleCode = circleCode;
|
| 6289 |
anupam.sin |
185 |
}
|
|
|
186 |
|
| 6336 |
anupam.sin |
187 |
public void unsetCircleCode() {
|
|
|
188 |
this.circleCode = null;
|
| 6289 |
anupam.sin |
189 |
}
|
|
|
190 |
|
| 6336 |
anupam.sin |
191 |
/** Returns true if field circleCode is set (has been assigned a value) and false otherwise */
|
|
|
192 |
public boolean isSetCircleCode() {
|
|
|
193 |
return this.circleCode != null;
|
| 6289 |
anupam.sin |
194 |
}
|
|
|
195 |
|
| 6336 |
anupam.sin |
196 |
public void setCircleCodeIsSet(boolean value) {
|
| 6289 |
anupam.sin |
197 |
if (!value) {
|
| 6336 |
anupam.sin |
198 |
this.circleCode = null;
|
| 6289 |
anupam.sin |
199 |
}
|
|
|
200 |
}
|
|
|
201 |
|
| 6310 |
anupam.sin |
202 |
public String getOperatorName() {
|
|
|
203 |
return this.operatorName;
|
|
|
204 |
}
|
|
|
205 |
|
|
|
206 |
public void setOperatorName(String operatorName) {
|
|
|
207 |
this.operatorName = operatorName;
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
public void unsetOperatorName() {
|
|
|
211 |
this.operatorName = null;
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
/** Returns true if field operatorName is set (has been assigned a value) and false otherwise */
|
|
|
215 |
public boolean isSetOperatorName() {
|
|
|
216 |
return this.operatorName != null;
|
|
|
217 |
}
|
|
|
218 |
|
|
|
219 |
public void setOperatorNameIsSet(boolean value) {
|
|
|
220 |
if (!value) {
|
|
|
221 |
this.operatorName = null;
|
|
|
222 |
}
|
|
|
223 |
}
|
|
|
224 |
|
| 6289 |
anupam.sin |
225 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
226 |
switch (field) {
|
|
|
227 |
case OPERATOR_ID:
|
|
|
228 |
if (value == null) {
|
|
|
229 |
unsetOperatorId();
|
|
|
230 |
} else {
|
|
|
231 |
setOperatorId((Long)value);
|
|
|
232 |
}
|
|
|
233 |
break;
|
|
|
234 |
|
| 6336 |
anupam.sin |
235 |
case CIRCLE_CODE:
|
| 6289 |
anupam.sin |
236 |
if (value == null) {
|
| 6336 |
anupam.sin |
237 |
unsetCircleCode();
|
| 6289 |
anupam.sin |
238 |
} else {
|
| 6336 |
anupam.sin |
239 |
setCircleCode((String)value);
|
| 6289 |
anupam.sin |
240 |
}
|
|
|
241 |
break;
|
|
|
242 |
|
| 6310 |
anupam.sin |
243 |
case OPERATOR_NAME:
|
|
|
244 |
if (value == null) {
|
|
|
245 |
unsetOperatorName();
|
|
|
246 |
} else {
|
|
|
247 |
setOperatorName((String)value);
|
|
|
248 |
}
|
|
|
249 |
break;
|
|
|
250 |
|
| 6289 |
anupam.sin |
251 |
}
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public Object getFieldValue(_Fields field) {
|
|
|
255 |
switch (field) {
|
|
|
256 |
case OPERATOR_ID:
|
|
|
257 |
return Long.valueOf(getOperatorId());
|
|
|
258 |
|
| 6336 |
anupam.sin |
259 |
case CIRCLE_CODE:
|
|
|
260 |
return getCircleCode();
|
| 6289 |
anupam.sin |
261 |
|
| 6310 |
anupam.sin |
262 |
case OPERATOR_NAME:
|
|
|
263 |
return getOperatorName();
|
|
|
264 |
|
| 6289 |
anupam.sin |
265 |
}
|
|
|
266 |
throw new IllegalStateException();
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
270 |
public boolean isSet(_Fields field) {
|
|
|
271 |
if (field == null) {
|
|
|
272 |
throw new IllegalArgumentException();
|
|
|
273 |
}
|
|
|
274 |
|
|
|
275 |
switch (field) {
|
|
|
276 |
case OPERATOR_ID:
|
|
|
277 |
return isSetOperatorId();
|
| 6336 |
anupam.sin |
278 |
case CIRCLE_CODE:
|
|
|
279 |
return isSetCircleCode();
|
| 6310 |
anupam.sin |
280 |
case OPERATOR_NAME:
|
|
|
281 |
return isSetOperatorName();
|
| 6289 |
anupam.sin |
282 |
}
|
|
|
283 |
throw new IllegalStateException();
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
@Override
|
|
|
287 |
public boolean equals(Object that) {
|
|
|
288 |
if (that == null)
|
|
|
289 |
return false;
|
|
|
290 |
if (that instanceof DeviceNumberInfo)
|
|
|
291 |
return this.equals((DeviceNumberInfo)that);
|
|
|
292 |
return false;
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public boolean equals(DeviceNumberInfo that) {
|
|
|
296 |
if (that == null)
|
|
|
297 |
return false;
|
|
|
298 |
|
|
|
299 |
boolean this_present_operatorId = true;
|
|
|
300 |
boolean that_present_operatorId = true;
|
|
|
301 |
if (this_present_operatorId || that_present_operatorId) {
|
|
|
302 |
if (!(this_present_operatorId && that_present_operatorId))
|
|
|
303 |
return false;
|
|
|
304 |
if (this.operatorId != that.operatorId)
|
|
|
305 |
return false;
|
|
|
306 |
}
|
|
|
307 |
|
| 6336 |
anupam.sin |
308 |
boolean this_present_circleCode = true && this.isSetCircleCode();
|
|
|
309 |
boolean that_present_circleCode = true && that.isSetCircleCode();
|
|
|
310 |
if (this_present_circleCode || that_present_circleCode) {
|
|
|
311 |
if (!(this_present_circleCode && that_present_circleCode))
|
| 6289 |
anupam.sin |
312 |
return false;
|
| 6336 |
anupam.sin |
313 |
if (!this.circleCode.equals(that.circleCode))
|
| 6289 |
anupam.sin |
314 |
return false;
|
|
|
315 |
}
|
|
|
316 |
|
| 6310 |
anupam.sin |
317 |
boolean this_present_operatorName = true && this.isSetOperatorName();
|
|
|
318 |
boolean that_present_operatorName = true && that.isSetOperatorName();
|
|
|
319 |
if (this_present_operatorName || that_present_operatorName) {
|
|
|
320 |
if (!(this_present_operatorName && that_present_operatorName))
|
|
|
321 |
return false;
|
|
|
322 |
if (!this.operatorName.equals(that.operatorName))
|
|
|
323 |
return false;
|
|
|
324 |
}
|
|
|
325 |
|
| 6289 |
anupam.sin |
326 |
return true;
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
@Override
|
|
|
330 |
public int hashCode() {
|
|
|
331 |
return 0;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
public int compareTo(DeviceNumberInfo other) {
|
|
|
335 |
if (!getClass().equals(other.getClass())) {
|
|
|
336 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
int lastComparison = 0;
|
|
|
340 |
DeviceNumberInfo typedOther = (DeviceNumberInfo)other;
|
|
|
341 |
|
|
|
342 |
lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
|
|
|
343 |
if (lastComparison != 0) {
|
|
|
344 |
return lastComparison;
|
|
|
345 |
}
|
|
|
346 |
if (isSetOperatorId()) {
|
|
|
347 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
|
|
|
348 |
if (lastComparison != 0) {
|
|
|
349 |
return lastComparison;
|
|
|
350 |
}
|
|
|
351 |
}
|
| 6336 |
anupam.sin |
352 |
lastComparison = Boolean.valueOf(isSetCircleCode()).compareTo(typedOther.isSetCircleCode());
|
| 6289 |
anupam.sin |
353 |
if (lastComparison != 0) {
|
|
|
354 |
return lastComparison;
|
|
|
355 |
}
|
| 6336 |
anupam.sin |
356 |
if (isSetCircleCode()) {
|
|
|
357 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleCode, typedOther.circleCode);
|
| 6289 |
anupam.sin |
358 |
if (lastComparison != 0) {
|
|
|
359 |
return lastComparison;
|
|
|
360 |
}
|
|
|
361 |
}
|
| 6310 |
anupam.sin |
362 |
lastComparison = Boolean.valueOf(isSetOperatorName()).compareTo(typedOther.isSetOperatorName());
|
|
|
363 |
if (lastComparison != 0) {
|
|
|
364 |
return lastComparison;
|
|
|
365 |
}
|
|
|
366 |
if (isSetOperatorName()) {
|
|
|
367 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorName, typedOther.operatorName);
|
|
|
368 |
if (lastComparison != 0) {
|
|
|
369 |
return lastComparison;
|
|
|
370 |
}
|
|
|
371 |
}
|
| 6289 |
anupam.sin |
372 |
return 0;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public _Fields fieldForId(int fieldId) {
|
|
|
376 |
return _Fields.findByThriftId(fieldId);
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
380 |
org.apache.thrift.protocol.TField field;
|
|
|
381 |
iprot.readStructBegin();
|
|
|
382 |
while (true)
|
|
|
383 |
{
|
|
|
384 |
field = iprot.readFieldBegin();
|
|
|
385 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
386 |
break;
|
|
|
387 |
}
|
|
|
388 |
switch (field.id) {
|
|
|
389 |
case 1: // OPERATOR_ID
|
|
|
390 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
391 |
this.operatorId = iprot.readI64();
|
|
|
392 |
setOperatorIdIsSet(true);
|
|
|
393 |
} else {
|
|
|
394 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
395 |
}
|
|
|
396 |
break;
|
| 6336 |
anupam.sin |
397 |
case 2: // CIRCLE_CODE
|
| 6289 |
anupam.sin |
398 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 6336 |
anupam.sin |
399 |
this.circleCode = iprot.readString();
|
| 6289 |
anupam.sin |
400 |
} else {
|
|
|
401 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
402 |
}
|
|
|
403 |
break;
|
| 6310 |
anupam.sin |
404 |
case 3: // OPERATOR_NAME
|
|
|
405 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
406 |
this.operatorName = iprot.readString();
|
|
|
407 |
} else {
|
|
|
408 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
409 |
}
|
|
|
410 |
break;
|
| 6289 |
anupam.sin |
411 |
default:
|
|
|
412 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
413 |
}
|
|
|
414 |
iprot.readFieldEnd();
|
|
|
415 |
}
|
|
|
416 |
iprot.readStructEnd();
|
|
|
417 |
validate();
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
421 |
validate();
|
|
|
422 |
|
|
|
423 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
424 |
oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
|
|
|
425 |
oprot.writeI64(this.operatorId);
|
|
|
426 |
oprot.writeFieldEnd();
|
| 6336 |
anupam.sin |
427 |
if (this.circleCode != null) {
|
|
|
428 |
oprot.writeFieldBegin(CIRCLE_CODE_FIELD_DESC);
|
|
|
429 |
oprot.writeString(this.circleCode);
|
| 6289 |
anupam.sin |
430 |
oprot.writeFieldEnd();
|
|
|
431 |
}
|
| 6310 |
anupam.sin |
432 |
if (this.operatorName != null) {
|
|
|
433 |
oprot.writeFieldBegin(OPERATOR_NAME_FIELD_DESC);
|
|
|
434 |
oprot.writeString(this.operatorName);
|
|
|
435 |
oprot.writeFieldEnd();
|
|
|
436 |
}
|
| 6289 |
anupam.sin |
437 |
oprot.writeFieldStop();
|
|
|
438 |
oprot.writeStructEnd();
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
@Override
|
|
|
442 |
public String toString() {
|
|
|
443 |
StringBuilder sb = new StringBuilder("DeviceNumberInfo(");
|
|
|
444 |
boolean first = true;
|
|
|
445 |
|
|
|
446 |
sb.append("operatorId:");
|
|
|
447 |
sb.append(this.operatorId);
|
|
|
448 |
first = false;
|
|
|
449 |
if (!first) sb.append(", ");
|
| 6336 |
anupam.sin |
450 |
sb.append("circleCode:");
|
|
|
451 |
if (this.circleCode == null) {
|
| 6289 |
anupam.sin |
452 |
sb.append("null");
|
|
|
453 |
} else {
|
| 6336 |
anupam.sin |
454 |
sb.append(this.circleCode);
|
| 6289 |
anupam.sin |
455 |
}
|
|
|
456 |
first = false;
|
| 6310 |
anupam.sin |
457 |
if (!first) sb.append(", ");
|
|
|
458 |
sb.append("operatorName:");
|
|
|
459 |
if (this.operatorName == null) {
|
|
|
460 |
sb.append("null");
|
|
|
461 |
} else {
|
|
|
462 |
sb.append(this.operatorName);
|
|
|
463 |
}
|
|
|
464 |
first = false;
|
| 6289 |
anupam.sin |
465 |
sb.append(")");
|
|
|
466 |
return sb.toString();
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
public void validate() throws org.apache.thrift.TException {
|
|
|
470 |
// check for required fields
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
474 |
try {
|
|
|
475 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
476 |
} catch (org.apache.thrift.TException te) {
|
|
|
477 |
throw new java.io.IOException(te);
|
|
|
478 |
}
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
482 |
try {
|
|
|
483 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
484 |
__isset_bit_vector = new BitSet(1);
|
|
|
485 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
486 |
} catch (org.apache.thrift.TException te) {
|
|
|
487 |
throw new java.io.IOException(te);
|
|
|
488 |
}
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
}
|
|
|
492 |
|