@@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
57- private AddPublicKeyRequest (
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- environment_ = s ;
80- break ;
81- }
82- case 18 :
83- {
84- java .lang .String s = input .readStringRequireUtf8 ();
85-
86- key_ = s ;
87- break ;
88- }
89- default :
90- {
91- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
92- done = true ;
93- }
94- break ;
95- }
96- }
97- }
98- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
99- throw e .setUnfinishedMessage (this );
100- } catch (com .google .protobuf .UninitializedMessageException e ) {
101- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
102- } catch (java .io .IOException e ) {
103- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
104- } finally {
105- this .unknownFields = unknownFields .build ();
106- makeExtensionsImmutable ();
107- }
108- }
109-
11057 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11158 return com .google .cloud .shell .v1 .CloudShellProto
11259 .internal_static_google_cloud_shell_v1_AddPublicKeyRequest_descriptor ;
@@ -252,7 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
252199 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (key_ )) {
253200 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , key_ );
254201 }
255- unknownFields .writeTo (output );
202+ getUnknownFields () .writeTo (output );
256203 }
257204
258205 @ java .lang .Override
@@ -267,7 +214,7 @@ public int getSerializedSize() {
267214 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (key_ )) {
268215 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , key_ );
269216 }
270- size += unknownFields .getSerializedSize ();
217+ size += getUnknownFields () .getSerializedSize ();
271218 memoizedSize = size ;
272219 return size ;
273220 }
@@ -285,7 +232,7 @@ public boolean equals(final java.lang.Object obj) {
285232
286233 if (!getEnvironment ().equals (other .getEnvironment ())) return false ;
287234 if (!getKey ().equals (other .getKey ())) return false ;
288- if (!unknownFields .equals (other .unknownFields )) return false ;
235+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
289236 return true ;
290237 }
291238
@@ -300,7 +247,7 @@ public int hashCode() {
300247 hash = (53 * hash ) + getEnvironment ().hashCode ();
301248 hash = (37 * hash ) + KEY_FIELD_NUMBER ;
302249 hash = (53 * hash ) + getKey ().hashCode ();
303- hash = (29 * hash ) + unknownFields .hashCode ();
250+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
304251 memoizedHashCode = hash ;
305252 return hash ;
306253 }
@@ -430,17 +377,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
430377 }
431378
432379 // Construct using com.google.cloud.shell.v1.AddPublicKeyRequest.newBuilder()
433- private Builder () {
434- maybeForceBuilderInitialization ();
435- }
380+ private Builder () {}
436381
437382 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
438383 super (parent );
439- maybeForceBuilderInitialization ();
440- }
441-
442- private void maybeForceBuilderInitialization () {
443- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
444384 }
445385
446386 @ java .lang .Override
@@ -536,7 +476,7 @@ public Builder mergeFrom(com.google.cloud.shell.v1.AddPublicKeyRequest other) {
536476 key_ = other .key_ ;
537477 onChanged ();
538478 }
539- this .mergeUnknownFields (other .unknownFields );
479+ this .mergeUnknownFields (other .getUnknownFields () );
540480 onChanged ();
541481 return this ;
542482 }
@@ -551,17 +491,43 @@ public Builder mergeFrom(
551491 com .google .protobuf .CodedInputStream input ,
552492 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
553493 throws java .io .IOException {
554- com .google .cloud .shell .v1 .AddPublicKeyRequest parsedMessage = null ;
494+ if (extensionRegistry == null ) {
495+ throw new java .lang .NullPointerException ();
496+ }
555497 try {
556- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
498+ boolean done = false ;
499+ while (!done ) {
500+ int tag = input .readTag ();
501+ switch (tag ) {
502+ case 0 :
503+ done = true ;
504+ break ;
505+ case 10 :
506+ {
507+ environment_ = input .readStringRequireUtf8 ();
508+
509+ break ;
510+ } // case 10
511+ case 18 :
512+ {
513+ key_ = input .readStringRequireUtf8 ();
514+
515+ break ;
516+ } // case 18
517+ default :
518+ {
519+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
520+ done = true ; // was an endgroup tag
521+ }
522+ break ;
523+ } // default:
524+ } // switch (tag)
525+ } // while (!done)
557526 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
558- parsedMessage = (com .google .cloud .shell .v1 .AddPublicKeyRequest ) e .getUnfinishedMessage ();
559527 throw e .unwrapIOException ();
560528 } finally {
561- if (parsedMessage != null ) {
562- mergeFrom (parsedMessage );
563- }
564- }
529+ onChanged ();
530+ } // finally
565531 return this ;
566532 }
567533
@@ -839,7 +805,18 @@ public AddPublicKeyRequest parsePartialFrom(
839805 com .google .protobuf .CodedInputStream input ,
840806 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
841807 throws com .google .protobuf .InvalidProtocolBufferException {
842- return new AddPublicKeyRequest (input , extensionRegistry );
808+ Builder builder = newBuilder ();
809+ try {
810+ builder .mergeFrom (input , extensionRegistry );
811+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
812+ throw e .setUnfinishedMessage (builder .buildPartial ());
813+ } catch (com .google .protobuf .UninitializedMessageException e ) {
814+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
815+ } catch (java .io .IOException e ) {
816+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
817+ .setUnfinishedMessage (builder .buildPartial ());
818+ }
819+ return builder .buildPartial ();
843820 }
844821 };
845822
0 commit comments