@@ -50,50 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050 return this .unknownFields ;
5151 }
5252
53- private ApprovalConfig (
54- com .google .protobuf .CodedInputStream input ,
55- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
56- throws com .google .protobuf .InvalidProtocolBufferException {
57- this ();
58- if (extensionRegistry == null ) {
59- throw new java .lang .NullPointerException ();
60- }
61- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
62- com .google .protobuf .UnknownFieldSet .newBuilder ();
63- try {
64- boolean done = false ;
65- while (!done ) {
66- int tag = input .readTag ();
67- switch (tag ) {
68- case 0 :
69- done = true ;
70- break ;
71- case 8 :
72- {
73- approvalRequired_ = input .readBool ();
74- break ;
75- }
76- default :
77- {
78- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
79- done = true ;
80- }
81- break ;
82- }
83- }
84- }
85- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
86- throw e .setUnfinishedMessage (this );
87- } catch (com .google .protobuf .UninitializedMessageException e ) {
88- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
89- } catch (java .io .IOException e ) {
90- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
91- } finally {
92- this .unknownFields = unknownFields .build ();
93- makeExtensionsImmutable ();
94- }
95- }
96-
9753 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
9854 return com .google .cloudbuild .v1 .Cloudbuild
9955 .internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_descriptor ;
@@ -146,7 +102,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
146102 if (approvalRequired_ != false ) {
147103 output .writeBool (1 , approvalRequired_ );
148104 }
149- unknownFields .writeTo (output );
105+ getUnknownFields () .writeTo (output );
150106 }
151107
152108 @ java .lang .Override
@@ -158,7 +114,7 @@ public int getSerializedSize() {
158114 if (approvalRequired_ != false ) {
159115 size += com .google .protobuf .CodedOutputStream .computeBoolSize (1 , approvalRequired_ );
160116 }
161- size += unknownFields .getSerializedSize ();
117+ size += getUnknownFields () .getSerializedSize ();
162118 memoizedSize = size ;
163119 return size ;
164120 }
@@ -174,7 +130,7 @@ public boolean equals(final java.lang.Object obj) {
174130 com .google .cloudbuild .v1 .ApprovalConfig other = (com .google .cloudbuild .v1 .ApprovalConfig ) obj ;
175131
176132 if (getApprovalRequired () != other .getApprovalRequired ()) return false ;
177- if (!unknownFields .equals (other .unknownFields )) return false ;
133+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
178134 return true ;
179135 }
180136
@@ -187,7 +143,7 @@ public int hashCode() {
187143 hash = (19 * hash ) + getDescriptor ().hashCode ();
188144 hash = (37 * hash ) + APPROVAL_REQUIRED_FIELD_NUMBER ;
189145 hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getApprovalRequired ());
190- hash = (29 * hash ) + unknownFields .hashCode ();
146+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
191147 memoizedHashCode = hash ;
192148 return hash ;
193149 }
@@ -316,17 +272,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
316272 }
317273
318274 // Construct using com.google.cloudbuild.v1.ApprovalConfig.newBuilder()
319- private Builder () {
320- maybeForceBuilderInitialization ();
321- }
275+ private Builder () {}
322276
323277 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
324278 super (parent );
325- maybeForceBuilderInitialization ();
326- }
327-
328- private void maybeForceBuilderInitialization () {
329- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
330279 }
331280
332281 @ java .lang .Override
@@ -414,7 +363,7 @@ public Builder mergeFrom(com.google.cloudbuild.v1.ApprovalConfig other) {
414363 if (other .getApprovalRequired () != false ) {
415364 setApprovalRequired (other .getApprovalRequired ());
416365 }
417- this .mergeUnknownFields (other .unknownFields );
366+ this .mergeUnknownFields (other .getUnknownFields () );
418367 onChanged ();
419368 return this ;
420369 }
@@ -429,17 +378,37 @@ public Builder mergeFrom(
429378 com .google .protobuf .CodedInputStream input ,
430379 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
431380 throws java .io .IOException {
432- com .google .cloudbuild .v1 .ApprovalConfig parsedMessage = null ;
381+ if (extensionRegistry == null ) {
382+ throw new java .lang .NullPointerException ();
383+ }
433384 try {
434- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
385+ boolean done = false ;
386+ while (!done ) {
387+ int tag = input .readTag ();
388+ switch (tag ) {
389+ case 0 :
390+ done = true ;
391+ break ;
392+ case 8 :
393+ {
394+ approvalRequired_ = input .readBool ();
395+
396+ break ;
397+ } // case 8
398+ default :
399+ {
400+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
401+ done = true ; // was an endgroup tag
402+ }
403+ break ;
404+ } // default:
405+ } // switch (tag)
406+ } // while (!done)
435407 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
436- parsedMessage = (com .google .cloudbuild .v1 .ApprovalConfig ) e .getUnfinishedMessage ();
437408 throw e .unwrapIOException ();
438409 } finally {
439- if (parsedMessage != null ) {
440- mergeFrom (parsedMessage );
441- }
442- }
410+ onChanged ();
411+ } // finally
443412 return this ;
444413 }
445414
@@ -533,7 +502,18 @@ public ApprovalConfig parsePartialFrom(
533502 com .google .protobuf .CodedInputStream input ,
534503 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
535504 throws com .google .protobuf .InvalidProtocolBufferException {
536- return new ApprovalConfig (input , extensionRegistry );
505+ Builder builder = newBuilder ();
506+ try {
507+ builder .mergeFrom (input , extensionRegistry );
508+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
509+ throw e .setUnfinishedMessage (builder .buildPartial ());
510+ } catch (com .google .protobuf .UninitializedMessageException e ) {
511+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
512+ } catch (java .io .IOException e ) {
513+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
514+ .setUnfinishedMessage (builder .buildPartial ());
515+ }
516+ return builder .buildPartial ();
537517 }
538518 };
539519
0 commit comments