Skip to content

Commit 92e818f

Browse files
chore(bazel): update protobuf to v3.21.7 (#496)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
1 parent 650c8c5 commit 92e818f

File tree

99 files changed

+7114
-10432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+7114
-10432
lines changed

java-functions/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-functions</artifactId>
22-
<version>2.5.2</version>
22+
<version>2.5.3</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-functions:2.5.2'
29+
implementation 'com.google.cloud:google-cloud-functions:2.5.3'
3030
```
3131

3232
If you are using SBT, add this to your dependencies:
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.5.2"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.5.3"
3636
```
3737

3838
## Authentication

java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java

+51-75
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)