Skip to content

Commit c9b73f8

Browse files
chore(bazel): update protobuf to v3.21.7 (#1079)
- [ ] 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 d6ed284 commit c9b73f8

File tree

1,019 files changed

+73043
-114491
lines changed

Some content is hidden

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

1,019 files changed

+73043
-114491
lines changed

java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java

Lines changed: 63 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -52,89 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5252
return this.unknownFields;
5353
}
5454

55-
private ActiveLearningConfig(
56-
com.google.protobuf.CodedInputStream input,
57-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
58-
throws com.google.protobuf.InvalidProtocolBufferException {
59-
this();
60-
if (extensionRegistry == null) {
61-
throw new java.lang.NullPointerException();
62-
}
63-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
64-
com.google.protobuf.UnknownFieldSet.newBuilder();
65-
try {
66-
boolean done = false;
67-
while (!done) {
68-
int tag = input.readTag();
69-
switch (tag) {
70-
case 0:
71-
done = true;
72-
break;
73-
case 8:
74-
{
75-
humanLabelingBudget_ = input.readInt64();
76-
humanLabelingBudgetCase_ = 1;
77-
break;
78-
}
79-
case 16:
80-
{
81-
humanLabelingBudget_ = input.readInt32();
82-
humanLabelingBudgetCase_ = 2;
83-
break;
84-
}
85-
case 26:
86-
{
87-
com.google.cloud.aiplatform.v1.SampleConfig.Builder subBuilder = null;
88-
if (sampleConfig_ != null) {
89-
subBuilder = sampleConfig_.toBuilder();
90-
}
91-
sampleConfig_ =
92-
input.readMessage(
93-
com.google.cloud.aiplatform.v1.SampleConfig.parser(), extensionRegistry);
94-
if (subBuilder != null) {
95-
subBuilder.mergeFrom(sampleConfig_);
96-
sampleConfig_ = subBuilder.buildPartial();
97-
}
98-
99-
break;
100-
}
101-
case 34:
102-
{
103-
com.google.cloud.aiplatform.v1.TrainingConfig.Builder subBuilder = null;
104-
if (trainingConfig_ != null) {
105-
subBuilder = trainingConfig_.toBuilder();
106-
}
107-
trainingConfig_ =
108-
input.readMessage(
109-
com.google.cloud.aiplatform.v1.TrainingConfig.parser(), extensionRegistry);
110-
if (subBuilder != null) {
111-
subBuilder.mergeFrom(trainingConfig_);
112-
trainingConfig_ = subBuilder.buildPartial();
113-
}
114-
115-
break;
116-
}
117-
default:
118-
{
119-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
120-
done = true;
121-
}
122-
break;
123-
}
124-
}
125-
}
126-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
127-
throw e.setUnfinishedMessage(this);
128-
} catch (com.google.protobuf.UninitializedMessageException e) {
129-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
130-
} catch (java.io.IOException e) {
131-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
132-
} finally {
133-
this.unknownFields = unknownFields.build();
134-
makeExtensionsImmutable();
135-
}
136-
}
137-
13855
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
13956
return com.google.cloud.aiplatform.v1.DataLabelingJobProto
14057
.internal_static_google_cloud_aiplatform_v1_ActiveLearningConfig_descriptor;
@@ -398,7 +315,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
398315
if (trainingConfig_ != null) {
399316
output.writeMessage(4, getTrainingConfig());
400317
}
401-
unknownFields.writeTo(output);
318+
getUnknownFields().writeTo(output);
402319
}
403320

404321
@java.lang.Override
@@ -423,7 +340,7 @@ public int getSerializedSize() {
423340
if (trainingConfig_ != null) {
424341
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTrainingConfig());
425342
}
426-
size += unknownFields.getSerializedSize();
343+
size += getUnknownFields().getSerializedSize();
427344
memoizedSize = size;
428345
return size;
429346
}
@@ -458,7 +375,7 @@ public boolean equals(final java.lang.Object obj) {
458375
case 0:
459376
default:
460377
}
461-
if (!unknownFields.equals(other.unknownFields)) return false;
378+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
462379
return true;
463380
}
464381

@@ -489,7 +406,7 @@ public int hashCode() {
489406
case 0:
490407
default:
491408
}
492-
hash = (29 * hash) + unknownFields.hashCode();
409+
hash = (29 * hash) + getUnknownFields().hashCode();
493410
memoizedHashCode = hash;
494411
return hash;
495412
}
@@ -620,17 +537,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
620537
}
621538

622539
// Construct using com.google.cloud.aiplatform.v1.ActiveLearningConfig.newBuilder()
623-
private Builder() {
624-
maybeForceBuilderInitialization();
625-
}
540+
private Builder() {}
626541

627542
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
628543
super(parent);
629-
maybeForceBuilderInitialization();
630-
}
631-
632-
private void maybeForceBuilderInitialization() {
633-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
634544
}
635545

636546
@java.lang.Override
@@ -766,7 +676,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ActiveLearningConfig oth
766676
break;
767677
}
768678
}
769-
this.mergeUnknownFields(other.unknownFields);
679+
this.mergeUnknownFields(other.getUnknownFields());
770680
onChanged();
771681
return this;
772682
}
@@ -781,18 +691,55 @@ public Builder mergeFrom(
781691
com.google.protobuf.CodedInputStream input,
782692
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
783693
throws java.io.IOException {
784-
com.google.cloud.aiplatform.v1.ActiveLearningConfig parsedMessage = null;
694+
if (extensionRegistry == null) {
695+
throw new java.lang.NullPointerException();
696+
}
785697
try {
786-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
698+
boolean done = false;
699+
while (!done) {
700+
int tag = input.readTag();
701+
switch (tag) {
702+
case 0:
703+
done = true;
704+
break;
705+
case 8:
706+
{
707+
humanLabelingBudget_ = input.readInt64();
708+
humanLabelingBudgetCase_ = 1;
709+
break;
710+
} // case 8
711+
case 16:
712+
{
713+
humanLabelingBudget_ = input.readInt32();
714+
humanLabelingBudgetCase_ = 2;
715+
break;
716+
} // case 16
717+
case 26:
718+
{
719+
input.readMessage(getSampleConfigFieldBuilder().getBuilder(), extensionRegistry);
720+
721+
break;
722+
} // case 26
723+
case 34:
724+
{
725+
input.readMessage(getTrainingConfigFieldBuilder().getBuilder(), extensionRegistry);
726+
727+
break;
728+
} // case 34
729+
default:
730+
{
731+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
732+
done = true; // was an endgroup tag
733+
}
734+
break;
735+
} // default:
736+
} // switch (tag)
737+
} // while (!done)
787738
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
788-
parsedMessage =
789-
(com.google.cloud.aiplatform.v1.ActiveLearningConfig) e.getUnfinishedMessage();
790739
throw e.unwrapIOException();
791740
} finally {
792-
if (parsedMessage != null) {
793-
mergeFrom(parsedMessage);
794-
}
795-
}
741+
onChanged();
742+
} // finally
796743
return this;
797744
}
798745

@@ -1379,7 +1326,18 @@ public ActiveLearningConfig parsePartialFrom(
13791326
com.google.protobuf.CodedInputStream input,
13801327
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
13811328
throws com.google.protobuf.InvalidProtocolBufferException {
1382-
return new ActiveLearningConfig(input, extensionRegistry);
1329+
Builder builder = newBuilder();
1330+
try {
1331+
builder.mergeFrom(input, extensionRegistry);
1332+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1333+
throw e.setUnfinishedMessage(builder.buildPartial());
1334+
} catch (com.google.protobuf.UninitializedMessageException e) {
1335+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1336+
} catch (java.io.IOException e) {
1337+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1338+
.setUnfinishedMessage(builder.buildPartial());
1339+
}
1340+
return builder.buildPartial();
13831341
}
13841342
};
13851343

0 commit comments

Comments
 (0)