@@ -20,7 +20,7 @@ public class RestRequest implements TBase<RestRequest, RestRequest._Fields>, jav
20
20
21
21
private static final TField METHOD_FIELD_DESC = new TField ("method" , TType .I32 , (short ) 1 );
22
22
private static final TField URI_FIELD_DESC = new TField ("uri" , TType .STRING , (short ) 2 );
23
- private static final TField PARAMS_FIELD_DESC = new TField ("params " , TType .MAP , (short ) 3 );
23
+ private static final TField PARAMETERS_FIELD_DESC = new TField ("parameters " , TType .MAP , (short ) 3 );
24
24
private static final TField HEADERS_FIELD_DESC = new TField ("headers" , TType .MAP , (short ) 4 );
25
25
private static final TField BODY_FIELD_DESC = new TField ("body" , TType .STRING , (short ) 5 );
26
26
@@ -29,7 +29,7 @@ public class RestRequest implements TBase<RestRequest, RestRequest._Fields>, jav
29
29
*/
30
30
public Method method ;
31
31
public String uri ;
32
- public Map <String , String > params ;
32
+ public Map <String , String > parameters ;
33
33
public Map <String , String > headers ;
34
34
public ByteBuffer body ;
35
35
@@ -42,7 +42,7 @@ public enum _Fields implements TFieldIdEnum {
42
42
*/
43
43
METHOD ((short ) 1 , "method" ),
44
44
URI ((short ) 2 , "uri" ),
45
- PARAMS ((short ) 3 , "params " ),
45
+ PARAMETERS ((short ) 3 , "parameters " ),
46
46
HEADERS ((short ) 4 , "headers" ),
47
47
BODY ((short ) 5 , "body" );
48
48
@@ -63,8 +63,8 @@ public static _Fields findByThriftId(int fieldId) {
63
63
return METHOD ;
64
64
case 2 : // URI
65
65
return URI ;
66
- case 3 : // PARAMS
67
- return PARAMS ;
66
+ case 3 : // PARAMETERS
67
+ return PARAMETERS ;
68
68
case 4 : // HEADERS
69
69
return HEADERS ;
70
70
case 5 : // BODY
@@ -118,7 +118,7 @@ public String getFieldName() {
118
118
new EnumMetaData (TType .ENUM , Method .class )));
119
119
tmpMap .put (_Fields .URI , new FieldMetaData ("uri" , TFieldRequirementType .REQUIRED ,
120
120
new FieldValueMetaData (TType .STRING )));
121
- tmpMap .put (_Fields .PARAMS , new FieldMetaData ("params " , TFieldRequirementType .OPTIONAL ,
121
+ tmpMap .put (_Fields .PARAMETERS , new FieldMetaData ("parameters " , TFieldRequirementType .OPTIONAL ,
122
122
new MapMetaData (TType .MAP ,
123
123
new FieldValueMetaData (TType .STRING ),
124
124
new FieldValueMetaData (TType .STRING ))));
@@ -153,20 +153,20 @@ public RestRequest(RestRequest other) {
153
153
if (other .isSetUri ()) {
154
154
this .uri = other .uri ;
155
155
}
156
- if (other .isSetParams ()) {
157
- Map <String , String > __this__params = new HashMap <String , String >();
158
- for (Map .Entry <String , String > other_element : other .params .entrySet ()) {
156
+ if (other .isSetParameters ()) {
157
+ Map <String , String > __this__parameters = new HashMap <String , String >();
158
+ for (Map .Entry <String , String > other_element : other .parameters .entrySet ()) {
159
159
160
160
String other_element_key = other_element .getKey ();
161
161
String other_element_value = other_element .getValue ();
162
162
163
- String __this__params_copy_key = other_element_key ;
163
+ String __this__parameters_copy_key = other_element_key ;
164
164
165
- String __this__params_copy_value = other_element_value ;
165
+ String __this__parameters_copy_value = other_element_value ;
166
166
167
- __this__params .put (__this__params_copy_key , __this__params_copy_value );
167
+ __this__parameters .put (__this__parameters_copy_key , __this__parameters_copy_value );
168
168
}
169
- this .params = __this__params ;
169
+ this .parameters = __this__parameters ;
170
170
}
171
171
if (other .isSetHeaders ()) {
172
172
Map <String , String > __this__headers = new HashMap <String , String >();
@@ -202,7 +202,7 @@ public RestRequest clone() {
202
202
public void clear () {
203
203
this .method = null ;
204
204
this .uri = null ;
205
- this .params = null ;
205
+ this .parameters = null ;
206
206
this .headers = null ;
207
207
this .body = null ;
208
208
}
@@ -265,40 +265,40 @@ public void setUriIsSet(boolean value) {
265
265
}
266
266
}
267
267
268
- public int getParamsSize () {
269
- return (this .params == null ) ? 0 : this .params .size ();
268
+ public int getParametersSize () {
269
+ return (this .parameters == null ) ? 0 : this .parameters .size ();
270
270
}
271
271
272
- public void putToParams (String key , String val ) {
273
- if (this .params == null ) {
274
- this .params = new HashMap <String , String >();
272
+ public void putToParameters (String key , String val ) {
273
+ if (this .parameters == null ) {
274
+ this .parameters = new HashMap <String , String >();
275
275
}
276
- this .params .put (key , val );
276
+ this .parameters .put (key , val );
277
277
}
278
278
279
- public Map <String , String > getParams () {
280
- return this .params ;
279
+ public Map <String , String > getParameters () {
280
+ return this .parameters ;
281
281
}
282
282
283
- public RestRequest setParams (Map <String , String > params ) {
284
- this .params = params ;
283
+ public RestRequest setParameters (Map <String , String > parameters ) {
284
+ this .parameters = parameters ;
285
285
return this ;
286
286
}
287
287
288
- public void unsetParams () {
289
- this .params = null ;
288
+ public void unsetParameters () {
289
+ this .parameters = null ;
290
290
}
291
291
292
292
/**
293
- * Returns true if field params is set (has been asigned a value) and false otherwise
293
+ * Returns true if field parameters is set (has been asigned a value) and false otherwise
294
294
*/
295
- public boolean isSetParams () {
296
- return this .params != null ;
295
+ public boolean isSetParameters () {
296
+ return this .parameters != null ;
297
297
}
298
298
299
- public void setParamsIsSet (boolean value ) {
299
+ public void setParametersIsSet (boolean value ) {
300
300
if (!value ) {
301
- this .params = null ;
301
+ this .parameters = null ;
302
302
}
303
303
}
304
304
@@ -383,11 +383,11 @@ public void setFieldValue(_Fields field, Object value) {
383
383
}
384
384
break ;
385
385
386
- case PARAMS :
386
+ case PARAMETERS :
387
387
if (value == null ) {
388
- unsetParams ();
388
+ unsetParameters ();
389
389
} else {
390
- setParams ((Map <String , String >) value );
390
+ setParameters ((Map <String , String >) value );
391
391
}
392
392
break ;
393
393
@@ -422,8 +422,8 @@ public Object getFieldValue(_Fields field) {
422
422
case URI :
423
423
return getUri ();
424
424
425
- case PARAMS :
426
- return getParams ();
425
+ case PARAMETERS :
426
+ return getParameters ();
427
427
428
428
case HEADERS :
429
429
return getHeaders ();
@@ -448,8 +448,8 @@ public boolean isSet(_Fields field) {
448
448
return isSetMethod ();
449
449
case URI :
450
450
return isSetUri ();
451
- case PARAMS :
452
- return isSetParams ();
451
+ case PARAMETERS :
452
+ return isSetParameters ();
453
453
case HEADERS :
454
454
return isSetHeaders ();
455
455
case BODY :
@@ -493,12 +493,12 @@ public boolean equals(RestRequest that) {
493
493
return false ;
494
494
}
495
495
496
- boolean this_present_params = true && this .isSetParams ();
497
- boolean that_present_params = true && that .isSetParams ();
498
- if (this_present_params || that_present_params ) {
499
- if (!(this_present_params && that_present_params ))
496
+ boolean this_present_parameters = true && this .isSetParameters ();
497
+ boolean that_present_parameters = true && that .isSetParameters ();
498
+ if (this_present_parameters || that_present_parameters ) {
499
+ if (!(this_present_parameters && that_present_parameters ))
500
500
return false ;
501
- if (!this .params .equals (that .params ))
501
+ if (!this .parameters .equals (that .parameters ))
502
502
return false ;
503
503
}
504
504
@@ -556,12 +556,12 @@ public int compareTo(RestRequest other) {
556
556
return lastComparison ;
557
557
}
558
558
}
559
- lastComparison = Boolean .valueOf (isSetParams ()).compareTo (typedOther .isSetParams ());
559
+ lastComparison = Boolean .valueOf (isSetParameters ()).compareTo (typedOther .isSetParameters ());
560
560
if (lastComparison != 0 ) {
561
561
return lastComparison ;
562
562
}
563
- if (isSetParams ()) {
564
- lastComparison = TBaseHelper .compareTo (this .params , typedOther .params );
563
+ if (isSetParameters ()) {
564
+ lastComparison = TBaseHelper .compareTo (this .parameters , typedOther .parameters );
565
565
if (lastComparison != 0 ) {
566
566
return lastComparison ;
567
567
}
@@ -612,17 +612,17 @@ public void read(TProtocol iprot) throws TException {
612
612
TProtocolUtil .skip (iprot , field .type );
613
613
}
614
614
break ;
615
- case 3 : // PARAMS
615
+ case 3 : // PARAMETERS
616
616
if (field .type == TType .MAP ) {
617
617
{
618
618
TMap _map0 = iprot .readMapBegin ();
619
- this .params = new HashMap <String , String >(2 * _map0 .size );
619
+ this .parameters = new HashMap <String , String >(2 * _map0 .size );
620
620
for (int _i1 = 0 ; _i1 < _map0 .size ; ++_i1 ) {
621
621
String _key2 ;
622
622
String _val3 ;
623
623
_key2 = iprot .readString ();
624
624
_val3 = iprot .readString ();
625
- this .params .put (_key2 , _val3 );
625
+ this .parameters .put (_key2 , _val3 );
626
626
}
627
627
iprot .readMapEnd ();
628
628
}
@@ -680,12 +680,12 @@ public void write(TProtocol oprot) throws TException {
680
680
oprot .writeString (this .uri );
681
681
oprot .writeFieldEnd ();
682
682
}
683
- if (this .params != null ) {
684
- if (isSetParams ()) {
685
- oprot .writeFieldBegin (PARAMS_FIELD_DESC );
683
+ if (this .parameters != null ) {
684
+ if (isSetParameters ()) {
685
+ oprot .writeFieldBegin (PARAMETERS_FIELD_DESC );
686
686
{
687
- oprot .writeMapBegin (new TMap (TType .STRING , TType .STRING , this .params .size ()));
688
- for (Map .Entry <String , String > _iter8 : this .params .entrySet ()) {
687
+ oprot .writeMapBegin (new TMap (TType .STRING , TType .STRING , this .parameters .size ()));
688
+ for (Map .Entry <String , String > _iter8 : this .parameters .entrySet ()) {
689
689
oprot .writeString (_iter8 .getKey ());
690
690
oprot .writeString (_iter8 .getValue ());
691
691
}
@@ -739,13 +739,13 @@ public String toString() {
739
739
sb .append (this .uri );
740
740
}
741
741
first = false ;
742
- if (isSetParams ()) {
742
+ if (isSetParameters ()) {
743
743
if (!first ) sb .append (", " );
744
- sb .append ("params :" );
745
- if (this .params == null ) {
744
+ sb .append ("parameters :" );
745
+ if (this .parameters == null ) {
746
746
sb .append ("null" );
747
747
} else {
748
- sb .append (this .params );
748
+ sb .append (this .parameters );
749
749
}
750
750
first = false ;
751
751
}
0 commit comments