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

Commit 2cf31ab

Browse files
chore(bazel): update protobuf to v3.21.7 (#1522)
- [ ] 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 311c60e commit 2cf31ab

31 files changed

+2096
-3193
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatatransfer'
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.3.14'
59+
implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.3.15'
6060
```
6161

6262
If you are using SBT, add this to your dependencies:
6363

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.3.14"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.3.15"
6666
```
6767

6868
## Authentication

proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java

Lines changed: 45 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -57,52 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5757
return this.unknownFields;
5858
}
5959

60-
private CheckValidCredsRequest(
61-
com.google.protobuf.CodedInputStream input,
62-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
63-
throws com.google.protobuf.InvalidProtocolBufferException {
64-
this();
65-
if (extensionRegistry == null) {
66-
throw new java.lang.NullPointerException();
67-
}
68-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
69-
com.google.protobuf.UnknownFieldSet.newBuilder();
70-
try {
71-
boolean done = false;
72-
while (!done) {
73-
int tag = input.readTag();
74-
switch (tag) {
75-
case 0:
76-
done = true;
77-
break;
78-
case 10:
79-
{
80-
java.lang.String s = input.readStringRequireUtf8();
81-
82-
name_ = s;
83-
break;
84-
}
85-
default:
86-
{
87-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
88-
done = true;
89-
}
90-
break;
91-
}
92-
}
93-
}
94-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
95-
throw e.setUnfinishedMessage(this);
96-
} catch (com.google.protobuf.UninitializedMessageException e) {
97-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
98-
} catch (java.io.IOException e) {
99-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
100-
} finally {
101-
this.unknownFields = unknownFields.build();
102-
makeExtensionsImmutable();
103-
}
104-
}
105-
10660
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
10761
return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
10862
.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor;
@@ -192,7 +146,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
192146
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
193147
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
194148
}
195-
unknownFields.writeTo(output);
149+
getUnknownFields().writeTo(output);
196150
}
197151

198152
@java.lang.Override
@@ -204,7 +158,7 @@ public int getSerializedSize() {
204158
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
205159
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
206160
}
207-
size += unknownFields.getSerializedSize();
161+
size += getUnknownFields().getSerializedSize();
208162
memoizedSize = size;
209163
return size;
210164
}
@@ -221,7 +175,7 @@ public boolean equals(final java.lang.Object obj) {
221175
(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) obj;
222176

223177
if (!getName().equals(other.getName())) return false;
224-
if (!unknownFields.equals(other.unknownFields)) return false;
178+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
225179
return true;
226180
}
227181

@@ -234,7 +188,7 @@ public int hashCode() {
234188
hash = (19 * hash) + getDescriptor().hashCode();
235189
hash = (37 * hash) + NAME_FIELD_NUMBER;
236190
hash = (53 * hash) + getName().hashCode();
237-
hash = (29 * hash) + unknownFields.hashCode();
191+
hash = (29 * hash) + getUnknownFields().hashCode();
238192
memoizedHashCode = hash;
239193
return hash;
240194
}
@@ -369,17 +323,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
369323
}
370324

371325
// Construct using com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.newBuilder()
372-
private Builder() {
373-
maybeForceBuilderInitialization();
374-
}
326+
private Builder() {}
375327

376328
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
377329
super(parent);
378-
maybeForceBuilderInitialization();
379-
}
380-
381-
private void maybeForceBuilderInitialization() {
382-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
383330
}
384331

385332
@java.lang.Override
@@ -472,7 +419,7 @@ public Builder mergeFrom(
472419
name_ = other.name_;
473420
onChanged();
474421
}
475-
this.mergeUnknownFields(other.unknownFields);
422+
this.mergeUnknownFields(other.getUnknownFields());
476423
onChanged();
477424
return this;
478425
}
@@ -487,19 +434,37 @@ public Builder mergeFrom(
487434
com.google.protobuf.CodedInputStream input,
488435
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
489436
throws java.io.IOException {
490-
com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest parsedMessage = null;
437+
if (extensionRegistry == null) {
438+
throw new java.lang.NullPointerException();
439+
}
491440
try {
492-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
441+
boolean done = false;
442+
while (!done) {
443+
int tag = input.readTag();
444+
switch (tag) {
445+
case 0:
446+
done = true;
447+
break;
448+
case 10:
449+
{
450+
name_ = input.readStringRequireUtf8();
451+
452+
break;
453+
} // case 10
454+
default:
455+
{
456+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
457+
done = true; // was an endgroup tag
458+
}
459+
break;
460+
} // default:
461+
} // switch (tag)
462+
} // while (!done)
493463
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
494-
parsedMessage =
495-
(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)
496-
e.getUnfinishedMessage();
497464
throw e.unwrapIOException();
498465
} finally {
499-
if (parsedMessage != null) {
500-
mergeFrom(parsedMessage);
501-
}
502-
}
466+
onChanged();
467+
} // finally
503468
return this;
504469
}
505470

@@ -663,7 +628,18 @@ public CheckValidCredsRequest parsePartialFrom(
663628
com.google.protobuf.CodedInputStream input,
664629
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
665630
throws com.google.protobuf.InvalidProtocolBufferException {
666-
return new CheckValidCredsRequest(input, extensionRegistry);
631+
Builder builder = newBuilder();
632+
try {
633+
builder.mergeFrom(input, extensionRegistry);
634+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
635+
throw e.setUnfinishedMessage(builder.buildPartial());
636+
} catch (com.google.protobuf.UninitializedMessageException e) {
637+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
638+
} catch (java.io.IOException e) {
639+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
640+
.setUnfinishedMessage(builder.buildPartial());
641+
}
642+
return builder.buildPartial();
667643
}
668644
};
669645

proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java

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

53-
private CheckValidCredsResponse(
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-
case 8:
72-
{
73-
hasValidCreds_ = input.readBool();
74-
break;
75-
}
76-
default:
77-
{
78-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
79-
done = true;
80-
}
81-
break;
82-
}
83-
}
84-
}
85-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
86-
throw e.setUnfinishedMessage(this);
87-
} catch (com.google.protobuf.UninitializedMessageException e) {
88-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
89-
} catch (java.io.IOException e) {
90-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
91-
} finally {
92-
this.unknownFields = unknownFields.build();
93-
makeExtensionsImmutable();
94-
}
95-
}
96-
9753
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
9854
return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
9955
.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor;
@@ -144,7 +100,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
144100
if (hasValidCreds_ != false) {
145101
output.writeBool(1, hasValidCreds_);
146102
}
147-
unknownFields.writeTo(output);
103+
getUnknownFields().writeTo(output);
148104
}
149105

150106
@java.lang.Override
@@ -156,7 +112,7 @@ public int getSerializedSize() {
156112
if (hasValidCreds_ != false) {
157113
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, hasValidCreds_);
158114
}
159-
size += unknownFields.getSerializedSize();
115+
size += getUnknownFields().getSerializedSize();
160116
memoizedSize = size;
161117
return size;
162118
}
@@ -173,7 +129,7 @@ public boolean equals(final java.lang.Object obj) {
173129
(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) obj;
174130

175131
if (getHasValidCreds() != other.getHasValidCreds()) return false;
176-
if (!unknownFields.equals(other.unknownFields)) return false;
132+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
177133
return true;
178134
}
179135

@@ -186,7 +142,7 @@ public int hashCode() {
186142
hash = (19 * hash) + getDescriptor().hashCode();
187143
hash = (37 * hash) + HAS_VALID_CREDS_FIELD_NUMBER;
188144
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasValidCreds());
189-
hash = (29 * hash) + unknownFields.hashCode();
145+
hash = (29 * hash) + getUnknownFields().hashCode();
190146
memoizedHashCode = hash;
191147
return hash;
192148
}
@@ -318,17 +274,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
318274

319275
// Construct using
320276
// com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.newBuilder()
321-
private Builder() {
322-
maybeForceBuilderInitialization();
323-
}
277+
private Builder() {}
324278

325279
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
326280
super(parent);
327-
maybeForceBuilderInitialization();
328-
}
329-
330-
private void maybeForceBuilderInitialization() {
331-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
332281
}
333282

334283
@java.lang.Override
@@ -420,7 +369,7 @@ public Builder mergeFrom(
420369
if (other.getHasValidCreds() != false) {
421370
setHasValidCreds(other.getHasValidCreds());
422371
}
423-
this.mergeUnknownFields(other.unknownFields);
372+
this.mergeUnknownFields(other.getUnknownFields());
424373
onChanged();
425374
return this;
426375
}
@@ -435,19 +384,37 @@ public Builder mergeFrom(
435384
com.google.protobuf.CodedInputStream input,
436385
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
437386
throws java.io.IOException {
438-
com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse parsedMessage = null;
387+
if (extensionRegistry == null) {
388+
throw new java.lang.NullPointerException();
389+
}
439390
try {
440-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
391+
boolean done = false;
392+
while (!done) {
393+
int tag = input.readTag();
394+
switch (tag) {
395+
case 0:
396+
done = true;
397+
break;
398+
case 8:
399+
{
400+
hasValidCreds_ = input.readBool();
401+
402+
break;
403+
} // case 8
404+
default:
405+
{
406+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
407+
done = true; // was an endgroup tag
408+
}
409+
break;
410+
} // default:
411+
} // switch (tag)
412+
} // while (!done)
441413
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
442-
parsedMessage =
443-
(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse)
444-
e.getUnfinishedMessage();
445414
throw e.unwrapIOException();
446415
} finally {
447-
if (parsedMessage != null) {
448-
mergeFrom(parsedMessage);
449-
}
450-
}
416+
onChanged();
417+
} // finally
451418
return this;
452419
}
453420

@@ -537,7 +504,18 @@ public CheckValidCredsResponse parsePartialFrom(
537504
com.google.protobuf.CodedInputStream input,
538505
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
539506
throws com.google.protobuf.InvalidProtocolBufferException {
540-
return new CheckValidCredsResponse(input, extensionRegistry);
507+
Builder builder = newBuilder();
508+
try {
509+
builder.mergeFrom(input, extensionRegistry);
510+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
511+
throw e.setUnfinishedMessage(builder.buildPartial());
512+
} catch (com.google.protobuf.UninitializedMessageException e) {
513+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
514+
} catch (java.io.IOException e) {
515+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
516+
.setUnfinishedMessage(builder.buildPartial());
517+
}
518+
return builder.buildPartial();
541519
}
542520
};
543521

0 commit comments

Comments
 (0)