@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private CallFunctionRequest (
57- com .google .protobuf .CodedInputStream input ,
58- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
59- throws com .google .protobuf .InvalidProtocolBufferException {
60- this ();
61- if (extensionRegistry == null ) {
62- throw new java .lang .NullPointerException ();
63- }
64- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
65- com .google .protobuf .UnknownFieldSet .newBuilder ();
66- try {
67- boolean done = false ;
68- while (!done ) {
69- int tag = input .readTag ();
70- switch (tag ) {
71- case 0 :
72- done = true ;
73- break ;
74- case 10 :
75- {
76- java .lang .String s = input .readStringRequireUtf8 ();
77-
78- name_ = s ;
79- break ;
80- }
81- case 18 :
82- {
83- java .lang .String s = input .readStringRequireUtf8 ();
84-
85- data_ = s ;
86- break ;
87- }
88- default :
89- {
90- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
91- done = true ;
92- }
93- break ;
94- }
95- }
96- }
97- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
98- throw e .setUnfinishedMessage (this );
99- } catch (com .google .protobuf .UninitializedMessageException e ) {
100- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
101- } catch (java .io .IOException e ) {
102- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
103- } finally {
104- this .unknownFields = unknownFields .build ();
105- makeExtensionsImmutable ();
106- }
107- }
108-
10956 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11057 return com .google .cloud .functions .v1 .FunctionsProto
11158 .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor ;
@@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
243190 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (data_ )) {
244191 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , data_ );
245192 }
246- unknownFields .writeTo (output );
193+ getUnknownFields () .writeTo (output );
247194 }
248195
249196 @ java .lang .Override
@@ -258,7 +205,7 @@ public int getSerializedSize() {
258205 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (data_ )) {
259206 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , data_ );
260207 }
261- size += unknownFields .getSerializedSize ();
208+ size += getUnknownFields () .getSerializedSize ();
262209 memoizedSize = size ;
263210 return size ;
264211 }
@@ -276,7 +223,7 @@ public boolean equals(final java.lang.Object obj) {
276223
277224 if (!getName ().equals (other .getName ())) return false ;
278225 if (!getData ().equals (other .getData ())) return false ;
279- if (!unknownFields .equals (other .unknownFields )) return false ;
226+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
280227 return true ;
281228 }
282229
@@ -291,7 +238,7 @@ public int hashCode() {
291238 hash = (53 * hash ) + getName ().hashCode ();
292239 hash = (37 * hash ) + DATA_FIELD_NUMBER ;
293240 hash = (53 * hash ) + getData ().hashCode ();
294- hash = (29 * hash ) + unknownFields .hashCode ();
241+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
295242 memoizedHashCode = hash ;
296243 return hash ;
297244 }
@@ -420,17 +367,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
420367 }
421368
422369 // Construct using com.google.cloud.functions.v1.CallFunctionRequest.newBuilder()
423- private Builder () {
424- maybeForceBuilderInitialization ();
425- }
370+ private Builder () {}
426371
427372 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
428373 super (parent );
429- maybeForceBuilderInitialization ();
430- }
431-
432- private void maybeForceBuilderInitialization () {
433- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
434374 }
435375
436376 @ java .lang .Override
@@ -527,7 +467,7 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionRequest other
527467 data_ = other .data_ ;
528468 onChanged ();
529469 }
530- this .mergeUnknownFields (other .unknownFields );
470+ this .mergeUnknownFields (other .getUnknownFields () );
531471 onChanged ();
532472 return this ;
533473 }
@@ -542,18 +482,43 @@ public Builder mergeFrom(
542482 com .google .protobuf .CodedInputStream input ,
543483 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
544484 throws java .io .IOException {
545- com .google .cloud .functions .v1 .CallFunctionRequest parsedMessage = null ;
485+ if (extensionRegistry == null ) {
486+ throw new java .lang .NullPointerException ();
487+ }
546488 try {
547- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
489+ boolean done = false ;
490+ while (!done ) {
491+ int tag = input .readTag ();
492+ switch (tag ) {
493+ case 0 :
494+ done = true ;
495+ break ;
496+ case 10 :
497+ {
498+ name_ = input .readStringRequireUtf8 ();
499+
500+ break ;
501+ } // case 10
502+ case 18 :
503+ {
504+ data_ = input .readStringRequireUtf8 ();
505+
506+ break ;
507+ } // case 18
508+ default :
509+ {
510+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
511+ done = true ; // was an endgroup tag
512+ }
513+ break ;
514+ } // default:
515+ } // switch (tag)
516+ } // while (!done)
548517 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
549- parsedMessage =
550- (com .google .cloud .functions .v1 .CallFunctionRequest ) e .getUnfinishedMessage ();
551518 throw e .unwrapIOException ();
552519 } finally {
553- if (parsedMessage != null ) {
554- mergeFrom (parsedMessage );
555- }
556- }
520+ onChanged ();
521+ } // finally
557522 return this ;
558523 }
559524
@@ -811,7 +776,18 @@ public CallFunctionRequest parsePartialFrom(
811776 com .google .protobuf .CodedInputStream input ,
812777 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
813778 throws com .google .protobuf .InvalidProtocolBufferException {
814- return new CallFunctionRequest (input , extensionRegistry );
779+ Builder builder = newBuilder ();
780+ try {
781+ builder .mergeFrom (input , extensionRegistry );
782+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
783+ throw e .setUnfinishedMessage (builder .buildPartial ());
784+ } catch (com .google .protobuf .UninitializedMessageException e ) {
785+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
786+ } catch (java .io .IOException e ) {
787+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
788+ .setUnfinishedMessage (builder .buildPartial ());
789+ }
790+ return builder .buildPartial ();
815791 }
816792 };
817793
0 commit comments