@@ -54,52 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54
54
return this .unknownFields ;
55
55
}
56
56
57
- private CancelExecutionRequest (
58
- com .google .protobuf .CodedInputStream input ,
59
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
60
- throws com .google .protobuf .InvalidProtocolBufferException {
61
- this ();
62
- if (extensionRegistry == null ) {
63
- throw new java .lang .NullPointerException ();
64
- }
65
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
66
- com .google .protobuf .UnknownFieldSet .newBuilder ();
67
- try {
68
- boolean done = false ;
69
- while (!done ) {
70
- int tag = input .readTag ();
71
- switch (tag ) {
72
- case 0 :
73
- done = true ;
74
- break ;
75
- case 10 :
76
- {
77
- java .lang .String s = input .readStringRequireUtf8 ();
78
-
79
- name_ = s ;
80
- break ;
81
- }
82
- default :
83
- {
84
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
85
- done = true ;
86
- }
87
- break ;
88
- }
89
- }
90
- }
91
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
92
- throw e .setUnfinishedMessage (this );
93
- } catch (com .google .protobuf .UninitializedMessageException e ) {
94
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
95
- } catch (java .io .IOException e ) {
96
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
97
- } finally {
98
- this .unknownFields = unknownFields .build ();
99
- makeExtensionsImmutable ();
100
- }
101
- }
102
-
103
57
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
104
58
return com .google .cloud .workflows .executions .v1 .ExecutionsProto
105
59
.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor ;
@@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
189
143
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
190
144
com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , name_ );
191
145
}
192
- unknownFields .writeTo (output );
146
+ getUnknownFields () .writeTo (output );
193
147
}
194
148
195
149
@ java .lang .Override
@@ -201,7 +155,7 @@ public int getSerializedSize() {
201
155
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
202
156
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , name_ );
203
157
}
204
- size += unknownFields .getSerializedSize ();
158
+ size += getUnknownFields () .getSerializedSize ();
205
159
memoizedSize = size ;
206
160
return size ;
207
161
}
@@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
218
172
(com .google .cloud .workflows .executions .v1 .CancelExecutionRequest ) obj ;
219
173
220
174
if (!getName ().equals (other .getName ())) return false ;
221
- if (!unknownFields .equals (other .unknownFields )) return false ;
175
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
222
176
return true ;
223
177
}
224
178
@@ -231,7 +185,7 @@ public int hashCode() {
231
185
hash = (19 * hash ) + getDescriptor ().hashCode ();
232
186
hash = (37 * hash ) + NAME_FIELD_NUMBER ;
233
187
hash = (53 * hash ) + getName ().hashCode ();
234
- hash = (29 * hash ) + unknownFields .hashCode ();
188
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
235
189
memoizedHashCode = hash ;
236
190
return hash ;
237
191
}
@@ -363,17 +317,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
363
317
}
364
318
365
319
// Construct using com.google.cloud.workflows.executions.v1.CancelExecutionRequest.newBuilder()
366
- private Builder () {
367
- maybeForceBuilderInitialization ();
368
- }
320
+ private Builder () {}
369
321
370
322
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
371
323
super (parent );
372
- maybeForceBuilderInitialization ();
373
- }
374
-
375
- private void maybeForceBuilderInitialization () {
376
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
377
324
}
378
325
379
326
@ java .lang .Override
@@ -466,7 +413,7 @@ public Builder mergeFrom(
466
413
name_ = other .name_ ;
467
414
onChanged ();
468
415
}
469
- this .mergeUnknownFields (other .unknownFields );
416
+ this .mergeUnknownFields (other .getUnknownFields () );
470
417
onChanged ();
471
418
return this ;
472
419
}
@@ -481,19 +428,37 @@ public Builder mergeFrom(
481
428
com .google .protobuf .CodedInputStream input ,
482
429
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
483
430
throws java .io .IOException {
484
- com .google .cloud .workflows .executions .v1 .CancelExecutionRequest parsedMessage = null ;
431
+ if (extensionRegistry == null ) {
432
+ throw new java .lang .NullPointerException ();
433
+ }
485
434
try {
486
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
435
+ boolean done = false ;
436
+ while (!done ) {
437
+ int tag = input .readTag ();
438
+ switch (tag ) {
439
+ case 0 :
440
+ done = true ;
441
+ break ;
442
+ case 10 :
443
+ {
444
+ name_ = input .readStringRequireUtf8 ();
445
+
446
+ break ;
447
+ } // case 10
448
+ default :
449
+ {
450
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
451
+ done = true ; // was an endgroup tag
452
+ }
453
+ break ;
454
+ } // default:
455
+ } // switch (tag)
456
+ } // while (!done)
487
457
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
488
- parsedMessage =
489
- (com .google .cloud .workflows .executions .v1 .CancelExecutionRequest )
490
- e .getUnfinishedMessage ();
491
458
throw e .unwrapIOException ();
492
459
} finally {
493
- if (parsedMessage != null ) {
494
- mergeFrom (parsedMessage );
495
- }
496
- }
460
+ onChanged ();
461
+ } // finally
497
462
return this ;
498
463
}
499
464
@@ -657,7 +622,18 @@ public CancelExecutionRequest parsePartialFrom(
657
622
com .google .protobuf .CodedInputStream input ,
658
623
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
659
624
throws com .google .protobuf .InvalidProtocolBufferException {
660
- return new CancelExecutionRequest (input , extensionRegistry );
625
+ Builder builder = newBuilder ();
626
+ try {
627
+ builder .mergeFrom (input , extensionRegistry );
628
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
629
+ throw e .setUnfinishedMessage (builder .buildPartial ());
630
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
631
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
632
+ } catch (java .io .IOException e ) {
633
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
634
+ .setUnfinishedMessage (builder .buildPartial ());
635
+ }
636
+ return builder .buildPartial ();
661
637
}
662
638
};
663
639
0 commit comments