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

Commit 556690c

Browse files
chore(bazel): update protobuf to v3.21.7 (#171)
- [ ] 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 f1d1040 commit 556690c

File tree

69 files changed

+4099
-6541
lines changed

Some content is hidden

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

69 files changed

+4099
-6541
lines changed

proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/AzureSynapseDialect.java

Lines changed: 39 additions & 61 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 AzureSynapseDialect(
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.bigquery.migration.v2.TranslationConfigProto
9455
.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_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.bigquery.migration.v2.AzureSynapseDialect other =
144105
(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) 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
}
@@ -284,17 +245,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
284245
}
285246

286247
// Construct using com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.newBuilder()
287-
private Builder() {
288-
maybeForceBuilderInitialization();
289-
}
248+
private Builder() {}
290249

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

300254
@java.lang.Override
@@ -377,7 +331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
377331
public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect other) {
378332
if (other == com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.getDefaultInstance())
379333
return this;
380-
this.mergeUnknownFields(other.unknownFields);
334+
this.mergeUnknownFields(other.getUnknownFields());
381335
onChanged();
382336
return this;
383337
}
@@ -392,18 +346,31 @@ public Builder mergeFrom(
392346
com.google.protobuf.CodedInputStream input,
393347
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394348
throws java.io.IOException {
395-
com.google.cloud.bigquery.migration.v2.AzureSynapseDialect parsedMessage = null;
349+
if (extensionRegistry == null) {
350+
throw new java.lang.NullPointerException();
351+
}
396352
try {
397-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
353+
boolean done = false;
354+
while (!done) {
355+
int tag = input.readTag();
356+
switch (tag) {
357+
case 0:
358+
done = true;
359+
break;
360+
default:
361+
{
362+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
363+
done = true; // was an endgroup tag
364+
}
365+
break;
366+
} // default:
367+
} // switch (tag)
368+
} // while (!done)
398369
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
399-
parsedMessage =
400-
(com.google.cloud.bigquery.migration.v2.AzureSynapseDialect) e.getUnfinishedMessage();
401370
throw e.unwrapIOException();
402371
} finally {
403-
if (parsedMessage != null) {
404-
mergeFrom(parsedMessage);
405-
}
406-
}
372+
onChanged();
373+
} // finally
407374
return this;
408375
}
409376

@@ -439,7 +406,18 @@ public AzureSynapseDialect parsePartialFrom(
439406
com.google.protobuf.CodedInputStream input,
440407
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
441408
throws com.google.protobuf.InvalidProtocolBufferException {
442-
return new AzureSynapseDialect(input, extensionRegistry);
409+
Builder builder = newBuilder();
410+
try {
411+
builder.mergeFrom(input, extensionRegistry);
412+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
413+
throw e.setUnfinishedMessage(builder.buildPartial());
414+
} catch (com.google.protobuf.UninitializedMessageException e) {
415+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
416+
} catch (java.io.IOException e) {
417+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
418+
.setUnfinishedMessage(builder.buildPartial());
419+
}
420+
return builder.buildPartial();
443421
}
444422
};
445423

proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/BigQueryDialect.java

Lines changed: 39 additions & 61 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 BigQueryDialect(
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.bigquery.migration.v2.TranslationConfigProto
9455
.internal_static_google_cloud_bigquery_migration_v2_BigQueryDialect_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.bigquery.migration.v2.BigQueryDialect other =
144105
(com.google.cloud.bigquery.migration.v2.BigQueryDialect) 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
}
@@ -284,17 +245,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
284245
}
285246

286247
// Construct using com.google.cloud.bigquery.migration.v2.BigQueryDialect.newBuilder()
287-
private Builder() {
288-
maybeForceBuilderInitialization();
289-
}
248+
private Builder() {}
290249

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

300254
@java.lang.Override
@@ -377,7 +331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
377331
public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.BigQueryDialect other) {
378332
if (other == com.google.cloud.bigquery.migration.v2.BigQueryDialect.getDefaultInstance())
379333
return this;
380-
this.mergeUnknownFields(other.unknownFields);
334+
this.mergeUnknownFields(other.getUnknownFields());
381335
onChanged();
382336
return this;
383337
}
@@ -392,18 +346,31 @@ public Builder mergeFrom(
392346
com.google.protobuf.CodedInputStream input,
393347
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394348
throws java.io.IOException {
395-
com.google.cloud.bigquery.migration.v2.BigQueryDialect parsedMessage = null;
349+
if (extensionRegistry == null) {
350+
throw new java.lang.NullPointerException();
351+
}
396352
try {
397-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
353+
boolean done = false;
354+
while (!done) {
355+
int tag = input.readTag();
356+
switch (tag) {
357+
case 0:
358+
done = true;
359+
break;
360+
default:
361+
{
362+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
363+
done = true; // was an endgroup tag
364+
}
365+
break;
366+
} // default:
367+
} // switch (tag)
368+
} // while (!done)
398369
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
399-
parsedMessage =
400-
(com.google.cloud.bigquery.migration.v2.BigQueryDialect) e.getUnfinishedMessage();
401370
throw e.unwrapIOException();
402371
} finally {
403-
if (parsedMessage != null) {
404-
mergeFrom(parsedMessage);
405-
}
406-
}
372+
onChanged();
373+
} // finally
407374
return this;
408375
}
409376

@@ -439,7 +406,18 @@ public BigQueryDialect parsePartialFrom(
439406
com.google.protobuf.CodedInputStream input,
440407
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
441408
throws com.google.protobuf.InvalidProtocolBufferException {
442-
return new BigQueryDialect(input, extensionRegistry);
409+
Builder builder = newBuilder();
410+
try {
411+
builder.mergeFrom(input, extensionRegistry);
412+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
413+
throw e.setUnfinishedMessage(builder.buildPartial());
414+
} catch (com.google.protobuf.UninitializedMessageException e) {
415+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
416+
} catch (java.io.IOException e) {
417+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
418+
.setUnfinishedMessage(builder.buildPartial());
419+
}
420+
return builder.buildPartial();
443421
}
444422
};
445423

0 commit comments

Comments
 (0)