Skip to content

Commit 5ee1266

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#168)
- [ ] 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 000ddb0 commit 5ee1266

File tree

90 files changed

+5643
-8564
lines changed

Some content is hidden

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

90 files changed

+5643
-8564
lines changed

java-vmmigration/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-vmmigration:1.3.3'
30+
implementation 'com.google.cloud:google-cloud-vmmigration:1.3.4'
3131
```
3232

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

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.3.3"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.3.4"
3737
```
3838

3939
## Authentication

java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AddGroupMigrationRequest.java

Lines changed: 51 additions & 75 deletions
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 AddGroupMigrationRequest(
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-
group_ = s;
79-
break;
80-
}
81-
case 18:
82-
{
83-
java.lang.String s = input.readStringRequireUtf8();
84-
85-
migratingVm_ = 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.vmmigration.v1.VmMigrationProto
11158
.internal_static_google_cloud_vmmigration_v1_AddGroupMigrationRequest_descriptor;
@@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
243190
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(migratingVm_)) {
244191
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, migratingVm_);
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(migratingVm_)) {
259206
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, migratingVm_);
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 (!getGroup().equals(other.getGroup())) return false;
278225
if (!getMigratingVm().equals(other.getMigratingVm())) 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) + getGroup().hashCode();
292239
hash = (37 * hash) + MIGRATING_VM_FIELD_NUMBER;
293240
hash = (53 * hash) + getMigratingVm().hashCode();
294-
hash = (29 * hash) + unknownFields.hashCode();
241+
hash = (29 * hash) + getUnknownFields().hashCode();
295242
memoizedHashCode = hash;
296243
return hash;
297244
}
@@ -421,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
421368
}
422369

423370
// Construct using com.google.cloud.vmmigration.v1.AddGroupMigrationRequest.newBuilder()
424-
private Builder() {
425-
maybeForceBuilderInitialization();
426-
}
371+
private Builder() {}
427372

428373
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
429374
super(parent);
430-
maybeForceBuilderInitialization();
431-
}
432-
433-
private void maybeForceBuilderInitialization() {
434-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
435375
}
436376

437377
@java.lang.Override
@@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.AddGroupMigrationReques
528468
migratingVm_ = other.migratingVm_;
529469
onChanged();
530470
}
531-
this.mergeUnknownFields(other.unknownFields);
471+
this.mergeUnknownFields(other.getUnknownFields());
532472
onChanged();
533473
return this;
534474
}
@@ -543,18 +483,43 @@ public Builder mergeFrom(
543483
com.google.protobuf.CodedInputStream input,
544484
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
545485
throws java.io.IOException {
546-
com.google.cloud.vmmigration.v1.AddGroupMigrationRequest parsedMessage = null;
486+
if (extensionRegistry == null) {
487+
throw new java.lang.NullPointerException();
488+
}
547489
try {
548-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
490+
boolean done = false;
491+
while (!done) {
492+
int tag = input.readTag();
493+
switch (tag) {
494+
case 0:
495+
done = true;
496+
break;
497+
case 10:
498+
{
499+
group_ = input.readStringRequireUtf8();
500+
501+
break;
502+
} // case 10
503+
case 18:
504+
{
505+
migratingVm_ = input.readStringRequireUtf8();
506+
507+
break;
508+
} // case 18
509+
default:
510+
{
511+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
512+
done = true; // was an endgroup tag
513+
}
514+
break;
515+
} // default:
516+
} // switch (tag)
517+
} // while (!done)
549518
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
550-
parsedMessage =
551-
(com.google.cloud.vmmigration.v1.AddGroupMigrationRequest) e.getUnfinishedMessage();
552519
throw e.unwrapIOException();
553520
} finally {
554-
if (parsedMessage != null) {
555-
mergeFrom(parsedMessage);
556-
}
557-
}
521+
onChanged();
522+
} // finally
558523
return this;
559524
}
560525

@@ -812,7 +777,18 @@ public AddGroupMigrationRequest parsePartialFrom(
812777
com.google.protobuf.CodedInputStream input,
813778
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
814779
throws com.google.protobuf.InvalidProtocolBufferException {
815-
return new AddGroupMigrationRequest(input, extensionRegistry);
780+
Builder builder = newBuilder();
781+
try {
782+
builder.mergeFrom(input, extensionRegistry);
783+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
784+
throw e.setUnfinishedMessage(builder.buildPartial());
785+
} catch (com.google.protobuf.UninitializedMessageException e) {
786+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
787+
} catch (java.io.IOException e) {
788+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
789+
.setUnfinishedMessage(builder.buildPartial());
790+
}
791+
return builder.buildPartial();
816792
}
817793
};
818794

java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AddGroupMigrationResponse.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 AddGroupMigrationResponse(
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.vmmigration.v1.VmMigrationProto
9455
.internal_static_google_cloud_vmmigration_v1_AddGroupMigrationResponse_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.vmmigration.v1.AddGroupMigrationResponse other =
144105
(com.google.cloud.vmmigration.v1.AddGroupMigrationResponse) 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.vmmigration.v1.AddGroupMigrationResponse.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.vmmigration.v1.AddGroupMigrationResponse other) {
378332
if (other == com.google.cloud.vmmigration.v1.AddGroupMigrationResponse.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.vmmigration.v1.AddGroupMigrationResponse 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.vmmigration.v1.AddGroupMigrationResponse) 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 AddGroupMigrationResponse parsePartialFrom(
439406
com.google.protobuf.CodedInputStream input,
440407
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
441408
throws com.google.protobuf.InvalidProtocolBufferException {
442-
return new AddGroupMigrationResponse(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)