@@ -54,52 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
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-
10357 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
10458 return com .google .cloud .workflows .executions .v1 .ExecutionsProto
10559 .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor ;
@@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
189143 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
190144 com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , name_ );
191145 }
192- unknownFields .writeTo (output );
146+ getUnknownFields () .writeTo (output );
193147 }
194148
195149 @ java .lang .Override
@@ -201,7 +155,7 @@ public int getSerializedSize() {
201155 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
202156 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , name_ );
203157 }
204- size += unknownFields .getSerializedSize ();
158+ size += getUnknownFields () .getSerializedSize ();
205159 memoizedSize = size ;
206160 return size ;
207161 }
@@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
218172 (com .google .cloud .workflows .executions .v1 .CancelExecutionRequest ) obj ;
219173
220174 if (!getName ().equals (other .getName ())) return false ;
221- if (!unknownFields .equals (other .unknownFields )) return false ;
175+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
222176 return true ;
223177 }
224178
@@ -231,7 +185,7 @@ public int hashCode() {
231185 hash = (19 * hash ) + getDescriptor ().hashCode ();
232186 hash = (37 * hash ) + NAME_FIELD_NUMBER ;
233187 hash = (53 * hash ) + getName ().hashCode ();
234- hash = (29 * hash ) + unknownFields .hashCode ();
188+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
235189 memoizedHashCode = hash ;
236190 return hash ;
237191 }
@@ -363,17 +317,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
363317 }
364318
365319 // Construct using com.google.cloud.workflows.executions.v1.CancelExecutionRequest.newBuilder()
366- private Builder () {
367- maybeForceBuilderInitialization ();
368- }
320+ private Builder () {}
369321
370322 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
371323 super (parent );
372- maybeForceBuilderInitialization ();
373- }
374-
375- private void maybeForceBuilderInitialization () {
376- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
377324 }
378325
379326 @ java .lang .Override
@@ -466,7 +413,7 @@ public Builder mergeFrom(
466413 name_ = other .name_ ;
467414 onChanged ();
468415 }
469- this .mergeUnknownFields (other .unknownFields );
416+ this .mergeUnknownFields (other .getUnknownFields () );
470417 onChanged ();
471418 return this ;
472419 }
@@ -481,19 +428,37 @@ public Builder mergeFrom(
481428 com .google .protobuf .CodedInputStream input ,
482429 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
483430 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+ }
485434 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)
487457 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
488- parsedMessage =
489- (com .google .cloud .workflows .executions .v1 .CancelExecutionRequest )
490- e .getUnfinishedMessage ();
491458 throw e .unwrapIOException ();
492459 } finally {
493- if (parsedMessage != null ) {
494- mergeFrom (parsedMessage );
495- }
496- }
460+ onChanged ();
461+ } // finally
497462 return this ;
498463 }
499464
@@ -657,7 +622,18 @@ public CancelExecutionRequest parsePartialFrom(
657622 com .google .protobuf .CodedInputStream input ,
658623 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
659624 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 ();
661637 }
662638 };
663639
0 commit comments