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

Commit 556b83d

Browse files
chore(bazel): update protobuf to v3.21.7 (#350)
- [ ] 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 c568c24 commit 556b83d

File tree

106 files changed

+6645
-10066
lines changed

Some content is hidden

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

106 files changed

+6645
-10066
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-channel</artifactId>
22-
<version>3.7.4</version>
22+
<version>3.7.5</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-channel:3.7.4'
29+
implementation 'com.google.cloud:google-cloud-channel:3.7.5'
3030
```
3131

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

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.7.4"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.7.5"
3636
```
3737

3838
## Authentication

proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ActivateEntitlementRequest.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 ActivateEntitlementRequest(
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-
name_ = s;
79-
break;
80-
}
81-
case 26:
82-
{
83-
java.lang.String s = input.readStringRequireUtf8();
84-
85-
requestId_ = 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.channel.v1.ServiceProto
11158
.internal_static_google_cloud_channel_v1_ActivateEntitlementRequest_descriptor;
@@ -259,7 +206,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
259206
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
260207
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_);
261208
}
262-
unknownFields.writeTo(output);
209+
getUnknownFields().writeTo(output);
263210
}
264211

265212
@java.lang.Override
@@ -274,7 +221,7 @@ public int getSerializedSize() {
274221
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
275222
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_);
276223
}
277-
size += unknownFields.getSerializedSize();
224+
size += getUnknownFields().getSerializedSize();
278225
memoizedSize = size;
279226
return size;
280227
}
@@ -292,7 +239,7 @@ public boolean equals(final java.lang.Object obj) {
292239

293240
if (!getName().equals(other.getName())) return false;
294241
if (!getRequestId().equals(other.getRequestId())) return false;
295-
if (!unknownFields.equals(other.unknownFields)) return false;
242+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
296243
return true;
297244
}
298245

@@ -307,7 +254,7 @@ public int hashCode() {
307254
hash = (53 * hash) + getName().hashCode();
308255
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
309256
hash = (53 * hash) + getRequestId().hashCode();
310-
hash = (29 * hash) + unknownFields.hashCode();
257+
hash = (29 * hash) + getUnknownFields().hashCode();
311258
memoizedHashCode = hash;
312259
return hash;
313260
}
@@ -437,17 +384,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
437384
}
438385

439386
// Construct using com.google.cloud.channel.v1.ActivateEntitlementRequest.newBuilder()
440-
private Builder() {
441-
maybeForceBuilderInitialization();
442-
}
387+
private Builder() {}
443388

444389
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
445390
super(parent);
446-
maybeForceBuilderInitialization();
447-
}
448-
449-
private void maybeForceBuilderInitialization() {
450-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
451391
}
452392

453393
@java.lang.Override
@@ -544,7 +484,7 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ActivateEntitlementRequest
544484
requestId_ = other.requestId_;
545485
onChanged();
546486
}
547-
this.mergeUnknownFields(other.unknownFields);
487+
this.mergeUnknownFields(other.getUnknownFields());
548488
onChanged();
549489
return this;
550490
}
@@ -559,18 +499,43 @@ public Builder mergeFrom(
559499
com.google.protobuf.CodedInputStream input,
560500
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
561501
throws java.io.IOException {
562-
com.google.cloud.channel.v1.ActivateEntitlementRequest parsedMessage = null;
502+
if (extensionRegistry == null) {
503+
throw new java.lang.NullPointerException();
504+
}
563505
try {
564-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
506+
boolean done = false;
507+
while (!done) {
508+
int tag = input.readTag();
509+
switch (tag) {
510+
case 0:
511+
done = true;
512+
break;
513+
case 10:
514+
{
515+
name_ = input.readStringRequireUtf8();
516+
517+
break;
518+
} // case 10
519+
case 26:
520+
{
521+
requestId_ = input.readStringRequireUtf8();
522+
523+
break;
524+
} // case 26
525+
default:
526+
{
527+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
528+
done = true; // was an endgroup tag
529+
}
530+
break;
531+
} // default:
532+
} // switch (tag)
533+
} // while (!done)
565534
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
566-
parsedMessage =
567-
(com.google.cloud.channel.v1.ActivateEntitlementRequest) e.getUnfinishedMessage();
568535
throw e.unwrapIOException();
569536
} finally {
570-
if (parsedMessage != null) {
571-
mergeFrom(parsedMessage);
572-
}
573-
}
537+
onChanged();
538+
} // finally
574539
return this;
575540
}
576541

@@ -868,7 +833,18 @@ public ActivateEntitlementRequest parsePartialFrom(
868833
com.google.protobuf.CodedInputStream input,
869834
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
870835
throws com.google.protobuf.InvalidProtocolBufferException {
871-
return new ActivateEntitlementRequest(input, extensionRegistry);
836+
Builder builder = newBuilder();
837+
try {
838+
builder.mergeFrom(input, extensionRegistry);
839+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
840+
throw e.setUnfinishedMessage(builder.buildPartial());
841+
} catch (com.google.protobuf.UninitializedMessageException e) {
842+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
843+
} catch (java.io.IOException e) {
844+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
845+
.setUnfinishedMessage(builder.buildPartial());
846+
}
847+
return builder.buildPartial();
872848
}
873849
};
874850

0 commit comments

Comments
 (0)