Skip to content

Commit 8c3db0b

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#102)
- [ ] 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 683a553 commit 8c3db0b

Some content is hidden

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

41 files changed

+2915
-4251
lines changed

java-bare-metal-solution/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-bare-metal-solution</artifactId>
25-
<version>0.3.6</version>
25+
<version>0.3.7</version>
2626
</dependency>
2727
```
2828

2929
If you are using Gradle without BOM, add this to your dependencies:
3030

3131
```Groovy
32-
implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.3.6'
32+
implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.3.7'
3333
```
3434

3535
If you are using SBT, add this to your dependencies:
3636

3737
```Scala
38-
libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.3.6"
38+
libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.3.7"
3939
```
4040

4141
## Authentication

java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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 DetachLunRequest(
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-
instance_ = s;
79-
break;
80-
}
81-
case 18:
82-
{
83-
java.lang.String s = input.readStringRequireUtf8();
84-
85-
lun_ = 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.baremetalsolution.v2.InstanceProto
11158
.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor;
@@ -247,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
247194
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lun_)) {
248195
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lun_);
249196
}
250-
unknownFields.writeTo(output);
197+
getUnknownFields().writeTo(output);
251198
}
252199

253200
@java.lang.Override
@@ -262,7 +209,7 @@ public int getSerializedSize() {
262209
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lun_)) {
263210
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lun_);
264211
}
265-
size += unknownFields.getSerializedSize();
212+
size += getUnknownFields().getSerializedSize();
266213
memoizedSize = size;
267214
return size;
268215
}
@@ -280,7 +227,7 @@ public boolean equals(final java.lang.Object obj) {
280227

281228
if (!getInstance().equals(other.getInstance())) return false;
282229
if (!getLun().equals(other.getLun())) return false;
283-
if (!unknownFields.equals(other.unknownFields)) return false;
230+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
284231
return true;
285232
}
286233

@@ -295,7 +242,7 @@ public int hashCode() {
295242
hash = (53 * hash) + getInstance().hashCode();
296243
hash = (37 * hash) + LUN_FIELD_NUMBER;
297244
hash = (53 * hash) + getLun().hashCode();
298-
hash = (29 * hash) + unknownFields.hashCode();
245+
hash = (29 * hash) + getUnknownFields().hashCode();
299246
memoizedHashCode = hash;
300247
return hash;
301248
}
@@ -425,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
425372
}
426373

427374
// Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder()
428-
private Builder() {
429-
maybeForceBuilderInitialization();
430-
}
375+
private Builder() {}
431376

432377
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
433378
super(parent);
434-
maybeForceBuilderInitialization();
435-
}
436-
437-
private void maybeForceBuilderInitialization() {
438-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
439379
}
440380

441381
@java.lang.Override
@@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest
532472
lun_ = other.lun_;
533473
onChanged();
534474
}
535-
this.mergeUnknownFields(other.unknownFields);
475+
this.mergeUnknownFields(other.getUnknownFields());
536476
onChanged();
537477
return this;
538478
}
@@ -547,18 +487,43 @@ public Builder mergeFrom(
547487
com.google.protobuf.CodedInputStream input,
548488
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
549489
throws java.io.IOException {
550-
com.google.cloud.baremetalsolution.v2.DetachLunRequest parsedMessage = null;
490+
if (extensionRegistry == null) {
491+
throw new java.lang.NullPointerException();
492+
}
551493
try {
552-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
494+
boolean done = false;
495+
while (!done) {
496+
int tag = input.readTag();
497+
switch (tag) {
498+
case 0:
499+
done = true;
500+
break;
501+
case 10:
502+
{
503+
instance_ = input.readStringRequireUtf8();
504+
505+
break;
506+
} // case 10
507+
case 18:
508+
{
509+
lun_ = input.readStringRequireUtf8();
510+
511+
break;
512+
} // case 18
513+
default:
514+
{
515+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
516+
done = true; // was an endgroup tag
517+
}
518+
break;
519+
} // default:
520+
} // switch (tag)
521+
} // while (!done)
553522
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
554-
parsedMessage =
555-
(com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage();
556523
throw e.unwrapIOException();
557524
} finally {
558-
if (parsedMessage != null) {
559-
mergeFrom(parsedMessage);
560-
}
561-
}
525+
onChanged();
526+
} // finally
562527
return this;
563528
}
564529

@@ -826,7 +791,18 @@ public DetachLunRequest parsePartialFrom(
826791
com.google.protobuf.CodedInputStream input,
827792
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
828793
throws com.google.protobuf.InvalidProtocolBufferException {
829-
return new DetachLunRequest(input, extensionRegistry);
794+
Builder builder = newBuilder();
795+
try {
796+
builder.mergeFrom(input, extensionRegistry);
797+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
798+
throw e.setUnfinishedMessage(builder.buildPartial());
799+
} catch (com.google.protobuf.UninitializedMessageException e) {
800+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
801+
} catch (java.io.IOException e) {
802+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
803+
.setUnfinishedMessage(builder.buildPartial());
804+
}
805+
return builder.buildPartial();
830806
}
831807
};
832808

0 commit comments

Comments
 (0)