@@ -52,66 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5252 return this .unknownFields ;
5353 }
5454
55- private AccessSecretVersionResponse (
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- case 18 :
81- {
82- com .google .cloud .secretmanager .v1 .SecretPayload .Builder subBuilder = null ;
83- if (payload_ != null ) {
84- subBuilder = payload_ .toBuilder ();
85- }
86- payload_ =
87- input .readMessage (
88- com .google .cloud .secretmanager .v1 .SecretPayload .parser (), extensionRegistry );
89- if (subBuilder != null ) {
90- subBuilder .mergeFrom (payload_ );
91- payload_ = subBuilder .buildPartial ();
92- }
93-
94- break ;
95- }
96- default :
97- {
98- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
99- done = true ;
100- }
101- break ;
102- }
103- }
104- }
105- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
106- throw e .setUnfinishedMessage (this );
107- } catch (java .io .IOException e ) {
108- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
109- } finally {
110- this .unknownFields = unknownFields .build ();
111- makeExtensionsImmutable ();
112- }
113- }
114-
11555 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11656 return com .google .cloud .secretmanager .v1 .ServiceProto
11757 .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor ;
@@ -246,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
246186 if (payload_ != null ) {
247187 output .writeMessage (2 , getPayload ());
248188 }
249- unknownFields .writeTo (output );
189+ getUnknownFields () .writeTo (output );
250190 }
251191
252192 @ java .lang .Override
@@ -261,7 +201,7 @@ public int getSerializedSize() {
261201 if (payload_ != null ) {
262202 size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getPayload ());
263203 }
264- size += unknownFields .getSerializedSize ();
204+ size += getUnknownFields () .getSerializedSize ();
265205 memoizedSize = size ;
266206 return size ;
267207 }
@@ -282,7 +222,7 @@ public boolean equals(final java.lang.Object obj) {
282222 if (hasPayload ()) {
283223 if (!getPayload ().equals (other .getPayload ())) return false ;
284224 }
285- if (!unknownFields .equals (other .unknownFields )) return false ;
225+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
286226 return true ;
287227 }
288228
@@ -299,7 +239,7 @@ public int hashCode() {
299239 hash = (37 * hash ) + PAYLOAD_FIELD_NUMBER ;
300240 hash = (53 * hash ) + getPayload ().hashCode ();
301241 }
302- hash = (29 * hash ) + unknownFields .hashCode ();
242+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
303243 memoizedHashCode = hash ;
304244 return hash ;
305245 }
@@ -429,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
429369 }
430370
431371 // Construct using com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.newBuilder()
432- private Builder () {
433- maybeForceBuilderInitialization ();
434- }
372+ private Builder () {}
435373
436374 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
437375 super (parent );
438- maybeForceBuilderInitialization ();
439- }
440-
441- private void maybeForceBuilderInitialization () {
442- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
443376 }
444377
445378 @ java .lang .Override
@@ -545,7 +478,7 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.AccessSecretVersionRe
545478 if (other .hasPayload ()) {
546479 mergePayload (other .getPayload ());
547480 }
548- this .mergeUnknownFields (other .unknownFields );
481+ this .mergeUnknownFields (other .getUnknownFields () );
549482 onChanged ();
550483 return this ;
551484 }
@@ -560,19 +493,43 @@ public Builder mergeFrom(
560493 com .google .protobuf .CodedInputStream input ,
561494 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
562495 throws java .io .IOException {
563- com .google .cloud .secretmanager .v1 .AccessSecretVersionResponse parsedMessage = null ;
496+ if (extensionRegistry == null ) {
497+ throw new java .lang .NullPointerException ();
498+ }
564499 try {
565- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
500+ boolean done = false ;
501+ while (!done ) {
502+ int tag = input .readTag ();
503+ switch (tag ) {
504+ case 0 :
505+ done = true ;
506+ break ;
507+ case 10 :
508+ {
509+ name_ = input .readStringRequireUtf8 ();
510+
511+ break ;
512+ } // case 10
513+ case 18 :
514+ {
515+ input .readMessage (getPayloadFieldBuilder ().getBuilder (), extensionRegistry );
516+
517+ break ;
518+ } // case 18
519+ default :
520+ {
521+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
522+ done = true ; // was an endgroup tag
523+ }
524+ break ;
525+ } // default:
526+ } // switch (tag)
527+ } // while (!done)
566528 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
567- parsedMessage =
568- (com .google .cloud .secretmanager .v1 .AccessSecretVersionResponse )
569- e .getUnfinishedMessage ();
570529 throw e .unwrapIOException ();
571530 } finally {
572- if (parsedMessage != null ) {
573- mergeFrom (parsedMessage );
574- }
575- }
531+ onChanged ();
532+ } // finally
576533 return this ;
577534 }
578535
@@ -906,7 +863,18 @@ public AccessSecretVersionResponse parsePartialFrom(
906863 com .google .protobuf .CodedInputStream input ,
907864 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
908865 throws com .google .protobuf .InvalidProtocolBufferException {
909- return new AccessSecretVersionResponse (input , extensionRegistry );
866+ Builder builder = newBuilder ();
867+ try {
868+ builder .mergeFrom (input , extensionRegistry );
869+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
870+ throw e .setUnfinishedMessage (builder .buildPartial ());
871+ } catch (com .google .protobuf .UninitializedMessageException e ) {
872+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
873+ } catch (java .io .IOException e ) {
874+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
875+ .setUnfinishedMessage (builder .buildPartial ());
876+ }
877+ return builder .buildPartial ();
910878 }
911879 };
912880
0 commit comments