@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private ActivateEntitlementRequest (
57
- com .google .protobuf .CodedInputStream input ,
58
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
59
- throws com .google .protobuf .InvalidProtocolBufferException {
60
- this ();
61
- if (extensionRegistry == null ) {
62
- throw new java .lang .NullPointerException ();
63
- }
64
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
65
- com .google .protobuf .UnknownFieldSet .newBuilder ();
66
- try {
67
- boolean done = false ;
68
- while (!done ) {
69
- int tag = input .readTag ();
70
- switch (tag ) {
71
- case 0 :
72
- done = true ;
73
- break ;
74
- case 10 :
75
- {
76
- java .lang .String s = input .readStringRequireUtf8 ();
77
-
78
- name_ = s ;
79
- break ;
80
- }
81
- case 26 :
82
- {
83
- java .lang .String s = input .readStringRequireUtf8 ();
84
-
85
- requestId_ = s ;
86
- break ;
87
- }
88
- default :
89
- {
90
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
91
- done = true ;
92
- }
93
- break ;
94
- }
95
- }
96
- }
97
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
98
- throw e .setUnfinishedMessage (this );
99
- } catch (com .google .protobuf .UninitializedMessageException e ) {
100
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
101
- } catch (java .io .IOException e ) {
102
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
103
- } finally {
104
- this .unknownFields = unknownFields .build ();
105
- makeExtensionsImmutable ();
106
- }
107
- }
108
-
109
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
110
57
return com .google .cloud .channel .v1 .ServiceProto
111
58
.internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_descriptor ;
@@ -259,7 +206,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
259
206
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (requestId_ )) {
260
207
com .google .protobuf .GeneratedMessageV3 .writeString (output , 3 , requestId_ );
261
208
}
262
- unknownFields .writeTo (output );
209
+ getUnknownFields () .writeTo (output );
263
210
}
264
211
265
212
@ java .lang .Override
@@ -274,7 +221,7 @@ public int getSerializedSize() {
274
221
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (requestId_ )) {
275
222
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (3 , requestId_ );
276
223
}
277
- size += unknownFields .getSerializedSize ();
224
+ size += getUnknownFields () .getSerializedSize ();
278
225
memoizedSize = size ;
279
226
return size ;
280
227
}
@@ -292,7 +239,7 @@ public boolean equals(final java.lang.Object obj) {
292
239
293
240
if (!getName ().equals (other .getName ())) return false ;
294
241
if (!getRequestId ().equals (other .getRequestId ())) return false ;
295
- if (!unknownFields .equals (other .unknownFields )) return false ;
242
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
296
243
return true ;
297
244
}
298
245
@@ -307,7 +254,7 @@ public int hashCode() {
307
254
hash = (53 * hash ) + getName ().hashCode ();
308
255
hash = (37 * hash ) + REQUEST_ID_FIELD_NUMBER ;
309
256
hash = (53 * hash ) + getRequestId ().hashCode ();
310
- hash = (29 * hash ) + unknownFields .hashCode ();
257
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
311
258
memoizedHashCode = hash ;
312
259
return hash ;
313
260
}
@@ -437,17 +384,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
437
384
}
438
385
439
386
// Construct using com.google.cloud.channel.v1.ActivateEntitlementRequest.newBuilder()
440
- private Builder () {
441
- maybeForceBuilderInitialization ();
442
- }
387
+ private Builder () {}
443
388
444
389
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
445
390
super (parent );
446
- maybeForceBuilderInitialization ();
447
- }
448
-
449
- private void maybeForceBuilderInitialization () {
450
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
451
391
}
452
392
453
393
@ java .lang .Override
@@ -544,7 +484,7 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ActivateEntitlementRequest
544
484
requestId_ = other .requestId_ ;
545
485
onChanged ();
546
486
}
547
- this .mergeUnknownFields (other .unknownFields );
487
+ this .mergeUnknownFields (other .getUnknownFields () );
548
488
onChanged ();
549
489
return this ;
550
490
}
@@ -559,18 +499,43 @@ public Builder mergeFrom(
559
499
com .google .protobuf .CodedInputStream input ,
560
500
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
561
501
throws java .io .IOException {
562
- com .google .cloud .channel .v1 .ActivateEntitlementRequest parsedMessage = null ;
502
+ if (extensionRegistry == null ) {
503
+ throw new java .lang .NullPointerException ();
504
+ }
563
505
try {
564
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
506
+ boolean done = false ;
507
+ while (!done ) {
508
+ int tag = input .readTag ();
509
+ switch (tag ) {
510
+ case 0 :
511
+ done = true ;
512
+ break ;
513
+ case 10 :
514
+ {
515
+ name_ = input .readStringRequireUtf8 ();
516
+
517
+ break ;
518
+ } // case 10
519
+ case 26 :
520
+ {
521
+ requestId_ = input .readStringRequireUtf8 ();
522
+
523
+ break ;
524
+ } // case 26
525
+ default :
526
+ {
527
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
528
+ done = true ; // was an endgroup tag
529
+ }
530
+ break ;
531
+ } // default:
532
+ } // switch (tag)
533
+ } // while (!done)
565
534
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
566
- parsedMessage =
567
- (com .google .cloud .channel .v1 .ActivateEntitlementRequest ) e .getUnfinishedMessage ();
568
535
throw e .unwrapIOException ();
569
536
} finally {
570
- if (parsedMessage != null ) {
571
- mergeFrom (parsedMessage );
572
- }
573
- }
537
+ onChanged ();
538
+ } // finally
574
539
return this ;
575
540
}
576
541
@@ -868,7 +833,18 @@ public ActivateEntitlementRequest parsePartialFrom(
868
833
com .google .protobuf .CodedInputStream input ,
869
834
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
870
835
throws com .google .protobuf .InvalidProtocolBufferException {
871
- return new ActivateEntitlementRequest (input , extensionRegistry );
836
+ Builder builder = newBuilder ();
837
+ try {
838
+ builder .mergeFrom (input , extensionRegistry );
839
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
840
+ throw e .setUnfinishedMessage (builder .buildPartial ());
841
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
842
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
843
+ } catch (java .io .IOException e ) {
844
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
845
+ .setUnfinishedMessage (builder .buildPartial ());
846
+ }
847
+ return builder .buildPartial ();
872
848
}
873
849
};
874
850
0 commit comments