Skip to content

Commit e5d6a5f

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#865)
- [ ] 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 49e0d05 commit e5d6a5f

98 files changed

Lines changed: 7993 additions & 12251 deletions

File tree

Some content is hidden

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

java-talent/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-talent</artifactId>
22-
<version>2.4.4</version>
22+
<version>2.4.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-talent:2.4.4'
29+
implementation 'com.google.cloud:google-cloud-talent:2.4.5'
3030
```
3131

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

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.4.4"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.4.5"
3636
```
3737

3838
## Authentication

java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/BatchCreateJobsRequest.java

Lines changed: 59 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353
return this.unknownFields;
5454
}
5555

56-
private BatchCreateJobsRequest(
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-
int mutable_bitField0_ = 0;
65-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
66-
com.google.protobuf.UnknownFieldSet.newBuilder();
67-
try {
68-
boolean done = false;
69-
while (!done) {
70-
int tag = input.readTag();
71-
switch (tag) {
72-
case 0:
73-
done = true;
74-
break;
75-
case 10:
76-
{
77-
java.lang.String s = input.readStringRequireUtf8();
78-
79-
parent_ = s;
80-
break;
81-
}
82-
case 18:
83-
{
84-
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
85-
jobs_ = new java.util.ArrayList<com.google.cloud.talent.v4.Job>();
86-
mutable_bitField0_ |= 0x00000001;
87-
}
88-
jobs_.add(
89-
input.readMessage(com.google.cloud.talent.v4.Job.parser(), extensionRegistry));
90-
break;
91-
}
92-
default:
93-
{
94-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
95-
done = true;
96-
}
97-
break;
98-
}
99-
}
100-
}
101-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
102-
throw e.setUnfinishedMessage(this);
103-
} catch (com.google.protobuf.UninitializedMessageException e) {
104-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
105-
} catch (java.io.IOException e) {
106-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
107-
} finally {
108-
if (((mutable_bitField0_ & 0x00000001) != 0)) {
109-
jobs_ = java.util.Collections.unmodifiableList(jobs_);
110-
}
111-
this.unknownFields = unknownFields.build();
112-
makeExtensionsImmutable();
113-
}
114-
}
115-
11656
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
11757
return com.google.cloud.talent.v4.JobServiceProto
11858
.internal_static_google_cloud_talent_v4_BatchCreateJobsRequest_descriptor;
@@ -283,7 +223,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
283223
for (int i = 0; i < jobs_.size(); i++) {
284224
output.writeMessage(2, jobs_.get(i));
285225
}
286-
unknownFields.writeTo(output);
226+
getUnknownFields().writeTo(output);
287227
}
288228

289229
@java.lang.Override
@@ -298,7 +238,7 @@ public int getSerializedSize() {
298238
for (int i = 0; i < jobs_.size(); i++) {
299239
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, jobs_.get(i));
300240
}
301-
size += unknownFields.getSerializedSize();
241+
size += getUnknownFields().getSerializedSize();
302242
memoizedSize = size;
303243
return size;
304244
}
@@ -316,7 +256,7 @@ public boolean equals(final java.lang.Object obj) {
316256

317257
if (!getParent().equals(other.getParent())) return false;
318258
if (!getJobsList().equals(other.getJobsList())) return false;
319-
if (!unknownFields.equals(other.unknownFields)) return false;
259+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
320260
return true;
321261
}
322262

@@ -333,7 +273,7 @@ public int hashCode() {
333273
hash = (37 * hash) + JOBS_FIELD_NUMBER;
334274
hash = (53 * hash) + getJobsList().hashCode();
335275
}
336-
hash = (29 * hash) + unknownFields.hashCode();
276+
hash = (29 * hash) + getUnknownFields().hashCode();
337277
memoizedHashCode = hash;
338278
return hash;
339279
}
@@ -462,19 +402,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
462402
}
463403

464404
// Construct using com.google.cloud.talent.v4.BatchCreateJobsRequest.newBuilder()
465-
private Builder() {
466-
maybeForceBuilderInitialization();
467-
}
405+
private Builder() {}
468406

469407
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
470408
super(parent);
471-
maybeForceBuilderInitialization();
472-
}
473-
474-
private void maybeForceBuilderInitialization() {
475-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
476-
getJobsFieldBuilder();
477-
}
478409
}
479410

480411
@java.lang.Override
@@ -484,10 +415,11 @@ public Builder clear() {
484415

485416
if (jobsBuilder_ == null) {
486417
jobs_ = java.util.Collections.emptyList();
487-
bitField0_ = (bitField0_ & ~0x00000001);
488418
} else {
419+
jobs_ = null;
489420
jobsBuilder_.clear();
490421
}
422+
bitField0_ = (bitField0_ & ~0x00000001);
491423
return this;
492424
}
493425

@@ -607,7 +539,7 @@ public Builder mergeFrom(com.google.cloud.talent.v4.BatchCreateJobsRequest other
607539
}
608540
}
609541
}
610-
this.mergeUnknownFields(other.unknownFields);
542+
this.mergeUnknownFields(other.getUnknownFields());
611543
onChanged();
612544
return this;
613545
}
@@ -622,18 +554,49 @@ public Builder mergeFrom(
622554
com.google.protobuf.CodedInputStream input,
623555
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
624556
throws java.io.IOException {
625-
com.google.cloud.talent.v4.BatchCreateJobsRequest parsedMessage = null;
557+
if (extensionRegistry == null) {
558+
throw new java.lang.NullPointerException();
559+
}
626560
try {
627-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
561+
boolean done = false;
562+
while (!done) {
563+
int tag = input.readTag();
564+
switch (tag) {
565+
case 0:
566+
done = true;
567+
break;
568+
case 10:
569+
{
570+
parent_ = input.readStringRequireUtf8();
571+
572+
break;
573+
} // case 10
574+
case 18:
575+
{
576+
com.google.cloud.talent.v4.Job m =
577+
input.readMessage(com.google.cloud.talent.v4.Job.parser(), extensionRegistry);
578+
if (jobsBuilder_ == null) {
579+
ensureJobsIsMutable();
580+
jobs_.add(m);
581+
} else {
582+
jobsBuilder_.addMessage(m);
583+
}
584+
break;
585+
} // case 18
586+
default:
587+
{
588+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
589+
done = true; // was an endgroup tag
590+
}
591+
break;
592+
} // default:
593+
} // switch (tag)
594+
} // while (!done)
628595
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
629-
parsedMessage =
630-
(com.google.cloud.talent.v4.BatchCreateJobsRequest) e.getUnfinishedMessage();
631596
throw e.unwrapIOException();
632597
} finally {
633-
if (parsedMessage != null) {
634-
mergeFrom(parsedMessage);
635-
}
636-
}
598+
onChanged();
599+
} // finally
637600
return this;
638601
}
639602

@@ -1195,7 +1158,18 @@ public BatchCreateJobsRequest parsePartialFrom(
11951158
com.google.protobuf.CodedInputStream input,
11961159
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11971160
throws com.google.protobuf.InvalidProtocolBufferException {
1198-
return new BatchCreateJobsRequest(input, extensionRegistry);
1161+
Builder builder = newBuilder();
1162+
try {
1163+
builder.mergeFrom(input, extensionRegistry);
1164+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1165+
throw e.setUnfinishedMessage(builder.buildPartial());
1166+
} catch (com.google.protobuf.UninitializedMessageException e) {
1167+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1168+
} catch (java.io.IOException e) {
1169+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1170+
.setUnfinishedMessage(builder.buildPartial());
1171+
}
1172+
return builder.buildPartial();
11991173
}
12001174
};
12011175

0 commit comments

Comments
 (0)