Skip to content

Commit

Permalink
chore(bazel): [aiplatform] update protobuf to v3.21.12 (#8993)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 503267695

Source-Link: https://togithub.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJiOTgyMzBiOWU2OGEzODI4Y2YxMzgyOTZlOWEyMGUwMzc0OWFlMGEwIn0=

BEGIN_NESTED_COMMIT
feat: [aiplatform] add enable_dashboard_access in aiplatform v1 and v1beta1
custom_job.proto

PiperOrigin-RevId: 502722710

Source-Link: https://togithub.com/googleapis/googleapis/commit/6d9a0f3f1a4dffeba42c91794b240b7bb7ede967

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/845ecc6047adfd16dee956b85cab7dbd569f8352
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI4NDVlY2M2MDQ3YWRmZDE2ZGVlOTU2Yjg1Y2FiN2RiZDU2OWY4MzUyIn0=
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] authored Jan 20, 2023
1 parent 4215cc0 commit ffaad0e
Show file tree
Hide file tree
Showing 1,067 changed files with 64,431 additions and 44,511 deletions.
6 changes: 3 additions & 3 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-aiplatform:3.8.0'
implementation 'com.google.cloud:google-cloud-aiplatform:3.9.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.8.0"
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.9.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ public com.google.cloud.aiplatform.v1.SampleConfig getSampleConfig() {
*/
@java.lang.Override
public com.google.cloud.aiplatform.v1.SampleConfigOrBuilder getSampleConfigOrBuilder() {
return getSampleConfig();
return sampleConfig_ == null
? com.google.cloud.aiplatform.v1.SampleConfig.getDefaultInstance()
: sampleConfig_;
}

public static final int TRAINING_CONFIG_FIELD_NUMBER = 4;
Expand Down Expand Up @@ -286,7 +288,9 @@ public com.google.cloud.aiplatform.v1.TrainingConfig getTrainingConfig() {
*/
@java.lang.Override
public com.google.cloud.aiplatform.v1.TrainingConfigOrBuilder getTrainingConfigOrBuilder() {
return getTrainingConfig();
return trainingConfig_ == null
? com.google.cloud.aiplatform.v1.TrainingConfig.getDefaultInstance()
: trainingConfig_;
}

private byte memoizedIsInitialized = -1;
Expand Down Expand Up @@ -546,16 +550,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
if (sampleConfigBuilder_ == null) {
sampleConfig_ = null;
} else {
sampleConfig_ = null;
bitField0_ = 0;
sampleConfig_ = null;
if (sampleConfigBuilder_ != null) {
sampleConfigBuilder_.dispose();
sampleConfigBuilder_ = null;
}
if (trainingConfigBuilder_ == null) {
trainingConfig_ = null;
} else {
trainingConfig_ = null;
trainingConfig_ = null;
if (trainingConfigBuilder_ != null) {
trainingConfigBuilder_.dispose();
trainingConfigBuilder_ = null;
}
humanLabelingBudgetCase_ = 0;
Expand Down Expand Up @@ -587,25 +590,29 @@ public com.google.cloud.aiplatform.v1.ActiveLearningConfig build() {
public com.google.cloud.aiplatform.v1.ActiveLearningConfig buildPartial() {
com.google.cloud.aiplatform.v1.ActiveLearningConfig result =
new com.google.cloud.aiplatform.v1.ActiveLearningConfig(this);
if (humanLabelingBudgetCase_ == 1) {
result.humanLabelingBudget_ = humanLabelingBudget_;
}
if (humanLabelingBudgetCase_ == 2) {
result.humanLabelingBudget_ = humanLabelingBudget_;
if (bitField0_ != 0) {
buildPartial0(result);
}
if (sampleConfigBuilder_ == null) {
result.sampleConfig_ = sampleConfig_;
} else {
result.sampleConfig_ = sampleConfigBuilder_.build();
buildPartialOneofs(result);
onBuilt();
return result;
}

private void buildPartial0(com.google.cloud.aiplatform.v1.ActiveLearningConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sampleConfig_ =
sampleConfigBuilder_ == null ? sampleConfig_ : sampleConfigBuilder_.build();
}
if (trainingConfigBuilder_ == null) {
result.trainingConfig_ = trainingConfig_;
} else {
result.trainingConfig_ = trainingConfigBuilder_.build();
if (((from_bitField0_ & 0x00000008) != 0)) {
result.trainingConfig_ =
trainingConfigBuilder_ == null ? trainingConfig_ : trainingConfigBuilder_.build();
}
}

private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ActiveLearningConfig result) {
result.humanLabelingBudgetCase_ = humanLabelingBudgetCase_;
onBuilt();
return result;
result.humanLabelingBudget_ = this.humanLabelingBudget_;
}

@java.lang.Override
Expand Down Expand Up @@ -717,13 +724,13 @@ public Builder mergeFrom(
case 26:
{
input.readMessage(getSampleConfigFieldBuilder().getBuilder(), extensionRegistry);

bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getTrainingConfigFieldBuilder().getBuilder(), extensionRegistry);

bitField0_ |= 0x00000008;
break;
} // case 34
default:
Expand Down Expand Up @@ -757,6 +764,8 @@ public Builder clearHumanLabelingBudget() {
return this;
}

private int bitField0_;

/**
*
*
Expand Down Expand Up @@ -801,6 +810,7 @@ public long getMaxDataItemCount() {
* @return This builder for chaining.
*/
public Builder setMaxDataItemCount(long value) {

humanLabelingBudgetCase_ = 1;
humanLabelingBudget_ = value;
onChanged();
Expand Down Expand Up @@ -870,6 +880,7 @@ public int getMaxDataItemPercentage() {
* @return This builder for chaining.
*/
public Builder setMaxDataItemPercentage(int value) {

humanLabelingBudgetCase_ = 2;
humanLabelingBudget_ = value;
onChanged();
Expand Down Expand Up @@ -914,7 +925,7 @@ public Builder clearMaxDataItemPercentage() {
* @return Whether the sampleConfig field is set.
*/
public boolean hasSampleConfig() {
return sampleConfigBuilder_ != null || sampleConfig_ != null;
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
Expand Down Expand Up @@ -953,11 +964,11 @@ public Builder setSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig value
throw new NullPointerException();
}
sampleConfig_ = value;
onChanged();
} else {
sampleConfigBuilder_.setMessage(value);
}

bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
Expand All @@ -974,11 +985,11 @@ public Builder setSampleConfig(
com.google.cloud.aiplatform.v1.SampleConfig.Builder builderForValue) {
if (sampleConfigBuilder_ == null) {
sampleConfig_ = builderForValue.build();
onChanged();
} else {
sampleConfigBuilder_.setMessage(builderForValue.build());
}

bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
Expand All @@ -993,19 +1004,18 @@ public Builder setSampleConfig(
*/
public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig value) {
if (sampleConfigBuilder_ == null) {
if (sampleConfig_ != null) {
sampleConfig_ =
com.google.cloud.aiplatform.v1.SampleConfig.newBuilder(sampleConfig_)
.mergeFrom(value)
.buildPartial();
if (((bitField0_ & 0x00000004) != 0)
&& sampleConfig_ != null
&& sampleConfig_ != com.google.cloud.aiplatform.v1.SampleConfig.getDefaultInstance()) {
getSampleConfigBuilder().mergeFrom(value);
} else {
sampleConfig_ = value;
}
onChanged();
} else {
sampleConfigBuilder_.mergeFrom(value);
}

bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
Expand All @@ -1019,14 +1029,13 @@ public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig val
* <code>.google.cloud.aiplatform.v1.SampleConfig sample_config = 3;</code>
*/
public Builder clearSampleConfig() {
if (sampleConfigBuilder_ == null) {
sampleConfig_ = null;
onChanged();
} else {
sampleConfig_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
sampleConfig_ = null;
if (sampleConfigBuilder_ != null) {
sampleConfigBuilder_.dispose();
sampleConfigBuilder_ = null;
}

onChanged();
return this;
}
/**
Expand All @@ -1040,7 +1049,7 @@ public Builder clearSampleConfig() {
* <code>.google.cloud.aiplatform.v1.SampleConfig sample_config = 3;</code>
*/
public com.google.cloud.aiplatform.v1.SampleConfig.Builder getSampleConfigBuilder() {

bitField0_ |= 0x00000004;
onChanged();
return getSampleConfigFieldBuilder().getBuilder();
}
Expand Down Expand Up @@ -1110,7 +1119,7 @@ public com.google.cloud.aiplatform.v1.SampleConfigOrBuilder getSampleConfigOrBui
* @return Whether the trainingConfig field is set.
*/
public boolean hasTrainingConfig() {
return trainingConfigBuilder_ != null || trainingConfig_ != null;
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
Expand Down Expand Up @@ -1151,11 +1160,11 @@ public Builder setTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig v
throw new NullPointerException();
}
trainingConfig_ = value;
onChanged();
} else {
trainingConfigBuilder_.setMessage(value);
}

bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
Expand All @@ -1173,11 +1182,11 @@ public Builder setTrainingConfig(
com.google.cloud.aiplatform.v1.TrainingConfig.Builder builderForValue) {
if (trainingConfigBuilder_ == null) {
trainingConfig_ = builderForValue.build();
onChanged();
} else {
trainingConfigBuilder_.setMessage(builderForValue.build());
}

bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
Expand All @@ -1193,19 +1202,19 @@ public Builder setTrainingConfig(
*/
public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig value) {
if (trainingConfigBuilder_ == null) {
if (trainingConfig_ != null) {
trainingConfig_ =
com.google.cloud.aiplatform.v1.TrainingConfig.newBuilder(trainingConfig_)
.mergeFrom(value)
.buildPartial();
if (((bitField0_ & 0x00000008) != 0)
&& trainingConfig_ != null
&& trainingConfig_
!= com.google.cloud.aiplatform.v1.TrainingConfig.getDefaultInstance()) {
getTrainingConfigBuilder().mergeFrom(value);
} else {
trainingConfig_ = value;
}
onChanged();
} else {
trainingConfigBuilder_.mergeFrom(value);
}

bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
Expand All @@ -1220,14 +1229,13 @@ public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig
* <code>.google.cloud.aiplatform.v1.TrainingConfig training_config = 4;</code>
*/
public Builder clearTrainingConfig() {
if (trainingConfigBuilder_ == null) {
trainingConfig_ = null;
onChanged();
} else {
trainingConfig_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
trainingConfig_ = null;
if (trainingConfigBuilder_ != null) {
trainingConfigBuilder_.dispose();
trainingConfigBuilder_ = null;
}

onChanged();
return this;
}
/**
Expand All @@ -1242,7 +1250,7 @@ public Builder clearTrainingConfig() {
* <code>.google.cloud.aiplatform.v1.TrainingConfig training_config = 4;</code>
*/
public com.google.cloud.aiplatform.v1.TrainingConfig.Builder getTrainingConfigBuilder() {

bitField0_ |= 0x00000008;
onChanged();
return getTrainingConfigFieldBuilder().getBuilder();
}
Expand Down
Loading

0 comments on commit ffaad0e

Please sign in to comment.