@@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52
52
return this .unknownFields ;
53
53
}
54
54
55
- private GetOrderRequest (
56
- com .google .protobuf .CodedInputStream input ,
57
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
58
- throws com .google .protobuf .InvalidProtocolBufferException {
59
- this ();
60
- if (extensionRegistry == null ) {
61
- throw new java .lang .NullPointerException ();
62
- }
63
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
64
- com .google .protobuf .UnknownFieldSet .newBuilder ();
65
- try {
66
- boolean done = false ;
67
- while (!done ) {
68
- int tag = input .readTag ();
69
- switch (tag ) {
70
- case 0 :
71
- done = true ;
72
- break ;
73
- case 10 :
74
- {
75
- java .lang .String s = input .readStringRequireUtf8 ();
76
-
77
- name_ = s ;
78
- break ;
79
- }
80
- default :
81
- {
82
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
83
- done = true ;
84
- }
85
- break ;
86
- }
87
- }
88
- }
89
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
90
- throw e .setUnfinishedMessage (this );
91
- } catch (com .google .protobuf .UninitializedMessageException e ) {
92
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
93
- } catch (java .io .IOException e ) {
94
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
95
- } finally {
96
- this .unknownFields = unknownFields .build ();
97
- makeExtensionsImmutable ();
98
- }
99
- }
100
-
101
55
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
102
56
return com .google .cloud .commerce .consumer .procurement .v1alpha1 .ProcurementService
103
57
.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor ;
@@ -179,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
179
133
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
180
134
com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , name_ );
181
135
}
182
- unknownFields .writeTo (output );
136
+ getUnknownFields () .writeTo (output );
183
137
}
184
138
185
139
@ java .lang .Override
@@ -191,7 +145,7 @@ public int getSerializedSize() {
191
145
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
192
146
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , name_ );
193
147
}
194
- size += unknownFields .getSerializedSize ();
148
+ size += getUnknownFields () .getSerializedSize ();
195
149
memoizedSize = size ;
196
150
return size ;
197
151
}
@@ -208,7 +162,7 @@ public boolean equals(final java.lang.Object obj) {
208
162
(com .google .cloud .commerce .consumer .procurement .v1alpha1 .GetOrderRequest ) obj ;
209
163
210
164
if (!getName ().equals (other .getName ())) return false ;
211
- if (!unknownFields .equals (other .unknownFields )) return false ;
165
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
212
166
return true ;
213
167
}
214
168
@@ -221,7 +175,7 @@ public int hashCode() {
221
175
hash = (19 * hash ) + getDescriptor ().hashCode ();
222
176
hash = (37 * hash ) + NAME_FIELD_NUMBER ;
223
177
hash = (53 * hash ) + getName ().hashCode ();
224
- hash = (29 * hash ) + unknownFields .hashCode ();
178
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
225
179
memoizedHashCode = hash ;
226
180
return hash ;
227
181
}
@@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
354
308
355
309
// Construct using
356
310
// com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.newBuilder()
357
- private Builder () {
358
- maybeForceBuilderInitialization ();
359
- }
311
+ private Builder () {}
360
312
361
313
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
362
314
super (parent );
363
- maybeForceBuilderInitialization ();
364
- }
365
-
366
- private void maybeForceBuilderInitialization () {
367
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
368
315
}
369
316
370
317
@ java .lang .Override
@@ -461,7 +408,7 @@ public Builder mergeFrom(
461
408
name_ = other .name_ ;
462
409
onChanged ();
463
410
}
464
- this .mergeUnknownFields (other .unknownFields );
411
+ this .mergeUnknownFields (other .getUnknownFields () );
465
412
onChanged ();
466
413
return this ;
467
414
}
@@ -476,19 +423,37 @@ public Builder mergeFrom(
476
423
com .google .protobuf .CodedInputStream input ,
477
424
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
478
425
throws java .io .IOException {
479
- com .google .cloud .commerce .consumer .procurement .v1alpha1 .GetOrderRequest parsedMessage = null ;
426
+ if (extensionRegistry == null ) {
427
+ throw new java .lang .NullPointerException ();
428
+ }
480
429
try {
481
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
430
+ boolean done = false ;
431
+ while (!done ) {
432
+ int tag = input .readTag ();
433
+ switch (tag ) {
434
+ case 0 :
435
+ done = true ;
436
+ break ;
437
+ case 10 :
438
+ {
439
+ name_ = input .readStringRequireUtf8 ();
440
+
441
+ break ;
442
+ } // case 10
443
+ default :
444
+ {
445
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
446
+ done = true ; // was an endgroup tag
447
+ }
448
+ break ;
449
+ } // default:
450
+ } // switch (tag)
451
+ } // while (!done)
482
452
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
483
- parsedMessage =
484
- (com .google .cloud .commerce .consumer .procurement .v1alpha1 .GetOrderRequest )
485
- e .getUnfinishedMessage ();
486
453
throw e .unwrapIOException ();
487
454
} finally {
488
- if (parsedMessage != null ) {
489
- mergeFrom (parsedMessage );
490
- }
491
- }
455
+ onChanged ();
456
+ } // finally
492
457
return this ;
493
458
}
494
459
@@ -633,7 +598,18 @@ public GetOrderRequest parsePartialFrom(
633
598
com .google .protobuf .CodedInputStream input ,
634
599
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
635
600
throws com .google .protobuf .InvalidProtocolBufferException {
636
- return new GetOrderRequest (input , extensionRegistry );
601
+ Builder builder = newBuilder ();
602
+ try {
603
+ builder .mergeFrom (input , extensionRegistry );
604
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
605
+ throw e .setUnfinishedMessage (builder .buildPartial ());
606
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
607
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
608
+ } catch (java .io .IOException e ) {
609
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
610
+ .setUnfinishedMessage (builder .buildPartial ());
611
+ }
612
+ return builder .buildPartial ();
637
613
}
638
614
};
639
615
0 commit comments