Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit 32275f1

Browse files
chore(bazel): update protobuf to v3.21.7 (#228)
- [ ] 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 a37aceb commit 32275f1

File tree

139 files changed

+9551
-14489
lines changed

Some content is hidden

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

139 files changed

+9551
-14489
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
2727
If you are using Gradle without BOM, add this to your dependencies:
2828

2929
```Groovy
30-
implementation 'com.google.cloud:google-cloud-datastream:1.2.0'
30+
implementation 'com.google.cloud:google-cloud-datastream:1.2.1'
3131
```
3232

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

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.2.0"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.2.1"
3737
```
3838

3939
## Authentication

proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java

Lines changed: 39 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -50,45 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050
return this.unknownFields;
5151
}
5252

53-
private AvroFileFormat(
54-
com.google.protobuf.CodedInputStream input,
55-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
56-
throws com.google.protobuf.InvalidProtocolBufferException {
57-
this();
58-
if (extensionRegistry == null) {
59-
throw new java.lang.NullPointerException();
60-
}
61-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
62-
com.google.protobuf.UnknownFieldSet.newBuilder();
63-
try {
64-
boolean done = false;
65-
while (!done) {
66-
int tag = input.readTag();
67-
switch (tag) {
68-
case 0:
69-
done = true;
70-
break;
71-
default:
72-
{
73-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
74-
done = true;
75-
}
76-
break;
77-
}
78-
}
79-
}
80-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
81-
throw e.setUnfinishedMessage(this);
82-
} catch (com.google.protobuf.UninitializedMessageException e) {
83-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
84-
} catch (java.io.IOException e) {
85-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
86-
} finally {
87-
this.unknownFields = unknownFields.build();
88-
makeExtensionsImmutable();
89-
}
90-
}
91-
9253
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
9354
return com.google.cloud.datastream.v1.DatastreamResourcesProto
9455
.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor;
@@ -118,7 +79,7 @@ public final boolean isInitialized() {
11879

11980
@java.lang.Override
12081
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
121-
unknownFields.writeTo(output);
82+
getUnknownFields().writeTo(output);
12283
}
12384

12485
@java.lang.Override
@@ -127,7 +88,7 @@ public int getSerializedSize() {
12788
if (size != -1) return size;
12889

12990
size = 0;
130-
size += unknownFields.getSerializedSize();
91+
size += getUnknownFields().getSerializedSize();
13192
memoizedSize = size;
13293
return size;
13394
}
@@ -143,7 +104,7 @@ public boolean equals(final java.lang.Object obj) {
143104
com.google.cloud.datastream.v1.AvroFileFormat other =
144105
(com.google.cloud.datastream.v1.AvroFileFormat) obj;
145106

146-
if (!unknownFields.equals(other.unknownFields)) return false;
107+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
147108
return true;
148109
}
149110

@@ -154,7 +115,7 @@ public int hashCode() {
154115
}
155116
int hash = 41;
156117
hash = (19 * hash) + getDescriptor().hashCode();
157-
hash = (29 * hash) + unknownFields.hashCode();
118+
hash = (29 * hash) + getUnknownFields().hashCode();
158119
memoizedHashCode = hash;
159120
return hash;
160121
}
@@ -283,17 +244,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
283244
}
284245

285246
// Construct using com.google.cloud.datastream.v1.AvroFileFormat.newBuilder()
286-
private Builder() {
287-
maybeForceBuilderInitialization();
288-
}
247+
private Builder() {}
289248

290249
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
291250
super(parent);
292-
maybeForceBuilderInitialization();
293-
}
294-
295-
private void maybeForceBuilderInitialization() {
296-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
297251
}
298252

299253
@java.lang.Override
@@ -375,7 +329,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
375329

376330
public Builder mergeFrom(com.google.cloud.datastream.v1.AvroFileFormat other) {
377331
if (other == com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) return this;
378-
this.mergeUnknownFields(other.unknownFields);
332+
this.mergeUnknownFields(other.getUnknownFields());
379333
onChanged();
380334
return this;
381335
}
@@ -390,17 +344,31 @@ public Builder mergeFrom(
390344
com.google.protobuf.CodedInputStream input,
391345
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
392346
throws java.io.IOException {
393-
com.google.cloud.datastream.v1.AvroFileFormat parsedMessage = null;
347+
if (extensionRegistry == null) {
348+
throw new java.lang.NullPointerException();
349+
}
394350
try {
395-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
351+
boolean done = false;
352+
while (!done) {
353+
int tag = input.readTag();
354+
switch (tag) {
355+
case 0:
356+
done = true;
357+
break;
358+
default:
359+
{
360+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
361+
done = true; // was an endgroup tag
362+
}
363+
break;
364+
} // default:
365+
} // switch (tag)
366+
} // while (!done)
396367
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
397-
parsedMessage = (com.google.cloud.datastream.v1.AvroFileFormat) e.getUnfinishedMessage();
398368
throw e.unwrapIOException();
399369
} finally {
400-
if (parsedMessage != null) {
401-
mergeFrom(parsedMessage);
402-
}
403-
}
370+
onChanged();
371+
} // finally
404372
return this;
405373
}
406374

@@ -436,7 +404,18 @@ public AvroFileFormat parsePartialFrom(
436404
com.google.protobuf.CodedInputStream input,
437405
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
438406
throws com.google.protobuf.InvalidProtocolBufferException {
439-
return new AvroFileFormat(input, extensionRegistry);
407+
Builder builder = newBuilder();
408+
try {
409+
builder.mergeFrom(input, extensionRegistry);
410+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
411+
throw e.setUnfinishedMessage(builder.buildPartial());
412+
} catch (com.google.protobuf.UninitializedMessageException e) {
413+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
414+
} catch (java.io.IOException e) {
415+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
416+
.setUnfinishedMessage(builder.buildPartial());
417+
}
418+
return builder.buildPartial();
440419
}
441420
};
442421

0 commit comments

Comments
 (0)