Skip to content

Commit cc8235a

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#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 03cc152 commit cc8235a

File tree

8 files changed

+487
-710
lines changed

8 files changed

+487
-710
lines changed

java-ids/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-ids:1.2.5'
30+
implementation 'com.google.cloud:google-cloud-ids:1.2.6'
3131
```
3232

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

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.2.5"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.2.6"
3737
```
3838

3939
## Authentication

java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/CreateEndpointRequest.java

Lines changed: 63 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -46,81 +46,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4646
return this.unknownFields;
4747
}
4848

49-
private CreateEndpointRequest(
50-
com.google.protobuf.CodedInputStream input,
51-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
52-
throws com.google.protobuf.InvalidProtocolBufferException {
53-
this();
54-
if (extensionRegistry == null) {
55-
throw new java.lang.NullPointerException();
56-
}
57-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
58-
com.google.protobuf.UnknownFieldSet.newBuilder();
59-
try {
60-
boolean done = false;
61-
while (!done) {
62-
int tag = input.readTag();
63-
switch (tag) {
64-
case 0:
65-
done = true;
66-
break;
67-
case 10:
68-
{
69-
java.lang.String s = input.readStringRequireUtf8();
70-
71-
parent_ = s;
72-
break;
73-
}
74-
case 18:
75-
{
76-
java.lang.String s = input.readStringRequireUtf8();
77-
78-
endpointId_ = s;
79-
break;
80-
}
81-
case 26:
82-
{
83-
com.google.cloud.ids.v1.Endpoint.Builder subBuilder = null;
84-
if (endpoint_ != null) {
85-
subBuilder = endpoint_.toBuilder();
86-
}
87-
endpoint_ =
88-
input.readMessage(com.google.cloud.ids.v1.Endpoint.parser(), extensionRegistry);
89-
if (subBuilder != null) {
90-
subBuilder.mergeFrom(endpoint_);
91-
endpoint_ = subBuilder.buildPartial();
92-
}
93-
94-
break;
95-
}
96-
case 34:
97-
{
98-
java.lang.String s = input.readStringRequireUtf8();
99-
100-
requestId_ = s;
101-
break;
102-
}
103-
default:
104-
{
105-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
106-
done = true;
107-
}
108-
break;
109-
}
110-
}
111-
}
112-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
113-
throw e.setUnfinishedMessage(this);
114-
} catch (com.google.protobuf.UninitializedMessageException e) {
115-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
116-
} catch (java.io.IOException e) {
117-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
118-
} finally {
119-
this.unknownFields = unknownFields.build();
120-
makeExtensionsImmutable();
121-
}
122-
}
123-
12449
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
12550
return com.google.cloud.ids.v1.IdsProto
12651
.internal_static_google_cloud_ids_v1_CreateEndpointRequest_descriptor;
@@ -392,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
392317
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
393318
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_);
394319
}
395-
unknownFields.writeTo(output);
320+
getUnknownFields().writeTo(output);
396321
}
397322

398323
@java.lang.Override
@@ -413,7 +338,7 @@ public int getSerializedSize() {
413338
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
414339
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_);
415340
}
416-
size += unknownFields.getSerializedSize();
341+
size += getUnknownFields().getSerializedSize();
417342
memoizedSize = size;
418343
return size;
419344
}
@@ -436,7 +361,7 @@ public boolean equals(final java.lang.Object obj) {
436361
if (!getEndpoint().equals(other.getEndpoint())) return false;
437362
}
438363
if (!getRequestId().equals(other.getRequestId())) return false;
439-
if (!unknownFields.equals(other.unknownFields)) return false;
364+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
440365
return true;
441366
}
442367

@@ -457,7 +382,7 @@ public int hashCode() {
457382
}
458383
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
459384
hash = (53 * hash) + getRequestId().hashCode();
460-
hash = (29 * hash) + unknownFields.hashCode();
385+
hash = (29 * hash) + getUnknownFields().hashCode();
461386
memoizedHashCode = hash;
462387
return hash;
463388
}
@@ -578,17 +503,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
578503
}
579504

580505
// Construct using com.google.cloud.ids.v1.CreateEndpointRequest.newBuilder()
581-
private Builder() {
582-
maybeForceBuilderInitialization();
583-
}
506+
private Builder() {}
584507

585508
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
586509
super(parent);
587-
maybeForceBuilderInitialization();
588-
}
589-
590-
private void maybeForceBuilderInitialization() {
591-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
592510
}
593511

594512
@java.lang.Override
@@ -705,7 +623,7 @@ public Builder mergeFrom(com.google.cloud.ids.v1.CreateEndpointRequest other) {
705623
requestId_ = other.requestId_;
706624
onChanged();
707625
}
708-
this.mergeUnknownFields(other.unknownFields);
626+
this.mergeUnknownFields(other.getUnknownFields());
709627
onChanged();
710628
return this;
711629
}
@@ -720,17 +638,55 @@ public Builder mergeFrom(
720638
com.google.protobuf.CodedInputStream input,
721639
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
722640
throws java.io.IOException {
723-
com.google.cloud.ids.v1.CreateEndpointRequest parsedMessage = null;
641+
if (extensionRegistry == null) {
642+
throw new java.lang.NullPointerException();
643+
}
724644
try {
725-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
645+
boolean done = false;
646+
while (!done) {
647+
int tag = input.readTag();
648+
switch (tag) {
649+
case 0:
650+
done = true;
651+
break;
652+
case 10:
653+
{
654+
parent_ = input.readStringRequireUtf8();
655+
656+
break;
657+
} // case 10
658+
case 18:
659+
{
660+
endpointId_ = input.readStringRequireUtf8();
661+
662+
break;
663+
} // case 18
664+
case 26:
665+
{
666+
input.readMessage(getEndpointFieldBuilder().getBuilder(), extensionRegistry);
667+
668+
break;
669+
} // case 26
670+
case 34:
671+
{
672+
requestId_ = input.readStringRequireUtf8();
673+
674+
break;
675+
} // case 34
676+
default:
677+
{
678+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
679+
done = true; // was an endgroup tag
680+
}
681+
break;
682+
} // default:
683+
} // switch (tag)
684+
} // while (!done)
726685
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
727-
parsedMessage = (com.google.cloud.ids.v1.CreateEndpointRequest) e.getUnfinishedMessage();
728686
throw e.unwrapIOException();
729687
} finally {
730-
if (parsedMessage != null) {
731-
mergeFrom(parsedMessage);
732-
}
733-
}
688+
onChanged();
689+
} // finally
734690
return this;
735691
}
736692

@@ -1363,7 +1319,18 @@ public CreateEndpointRequest parsePartialFrom(
13631319
com.google.protobuf.CodedInputStream input,
13641320
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
13651321
throws com.google.protobuf.InvalidProtocolBufferException {
1366-
return new CreateEndpointRequest(input, extensionRegistry);
1322+
Builder builder = newBuilder();
1323+
try {
1324+
builder.mergeFrom(input, extensionRegistry);
1325+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1326+
throw e.setUnfinishedMessage(builder.buildPartial());
1327+
} catch (com.google.protobuf.UninitializedMessageException e) {
1328+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1329+
} catch (java.io.IOException e) {
1330+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1331+
.setUnfinishedMessage(builder.buildPartial());
1332+
}
1333+
return builder.buildPartial();
13671334
}
13681335
};
13691336

0 commit comments

Comments
 (0)