@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { |
53 | 53 | return this.unknownFields; |
54 | 54 | } |
55 | 55 |
|
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 | | - |
109 | 56 | public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { |
110 | 57 | return com.google.cloud.functions.v1.FunctionsProto |
111 | 58 | .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; |
@@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io |
243 | 190 | if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { |
244 | 191 | com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); |
245 | 192 | } |
246 | | - unknownFields.writeTo(output); |
| 193 | + getUnknownFields().writeTo(output); |
247 | 194 | } |
248 | 195 |
|
249 | 196 | @java.lang.Override |
@@ -258,7 +205,7 @@ public int getSerializedSize() { |
258 | 205 | if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { |
259 | 206 | size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); |
260 | 207 | } |
261 | | - size += unknownFields.getSerializedSize(); |
| 208 | + size += getUnknownFields().getSerializedSize(); |
262 | 209 | memoizedSize = size; |
263 | 210 | return size; |
264 | 211 | } |
@@ -276,7 +223,7 @@ public boolean equals(final java.lang.Object obj) { |
276 | 223 |
|
277 | 224 | if (!getName().equals(other.getName())) return false; |
278 | 225 | if (!getData().equals(other.getData())) return false; |
279 | | - if (!unknownFields.equals(other.unknownFields)) return false; |
| 226 | + if (!getUnknownFields().equals(other.getUnknownFields())) return false; |
280 | 227 | return true; |
281 | 228 | } |
282 | 229 |
|
@@ -291,7 +238,7 @@ public int hashCode() { |
291 | 238 | hash = (53 * hash) + getName().hashCode(); |
292 | 239 | hash = (37 * hash) + DATA_FIELD_NUMBER; |
293 | 240 | hash = (53 * hash) + getData().hashCode(); |
294 | | - hash = (29 * hash) + unknownFields.hashCode(); |
| 241 | + hash = (29 * hash) + getUnknownFields().hashCode(); |
295 | 242 | memoizedHashCode = hash; |
296 | 243 | return hash; |
297 | 244 | } |
@@ -420,17 +367,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { |
420 | 367 | } |
421 | 368 |
|
422 | 369 | // Construct using com.google.cloud.functions.v1.CallFunctionRequest.newBuilder() |
423 | | - private Builder() { |
424 | | - maybeForceBuilderInitialization(); |
425 | | - } |
| 370 | + private Builder() {} |
426 | 371 |
|
427 | 372 | private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
428 | 373 | super(parent); |
429 | | - maybeForceBuilderInitialization(); |
430 | | - } |
431 | | - |
432 | | - private void maybeForceBuilderInitialization() { |
433 | | - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} |
434 | 374 | } |
435 | 375 |
|
436 | 376 | @java.lang.Override |
@@ -527,7 +467,7 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionRequest other |
527 | 467 | data_ = other.data_; |
528 | 468 | onChanged(); |
529 | 469 | } |
530 | | - this.mergeUnknownFields(other.unknownFields); |
| 470 | + this.mergeUnknownFields(other.getUnknownFields()); |
531 | 471 | onChanged(); |
532 | 472 | return this; |
533 | 473 | } |
@@ -542,18 +482,43 @@ public Builder mergeFrom( |
542 | 482 | com.google.protobuf.CodedInputStream input, |
543 | 483 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
544 | 484 | throws java.io.IOException { |
545 | | - com.google.cloud.functions.v1.CallFunctionRequest parsedMessage = null; |
| 485 | + if (extensionRegistry == null) { |
| 486 | + throw new java.lang.NullPointerException(); |
| 487 | + } |
546 | 488 | 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) |
548 | 517 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
549 | | - parsedMessage = |
550 | | - (com.google.cloud.functions.v1.CallFunctionRequest) e.getUnfinishedMessage(); |
551 | 518 | throw e.unwrapIOException(); |
552 | 519 | } finally { |
553 | | - if (parsedMessage != null) { |
554 | | - mergeFrom(parsedMessage); |
555 | | - } |
556 | | - } |
| 520 | + onChanged(); |
| 521 | + } // finally |
557 | 522 | return this; |
558 | 523 | } |
559 | 524 |
|
@@ -811,7 +776,18 @@ public CallFunctionRequest parsePartialFrom( |
811 | 776 | com.google.protobuf.CodedInputStream input, |
812 | 777 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
813 | 778 | 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(); |
815 | 791 | } |
816 | 792 | }; |
817 | 793 |
|
|