+ * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ boolean hasText();
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The text.
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ com.google.protobuf.ByteString getTextBytes();
}
/**
*
@@ -1107,6 +1144,7 @@ private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder> build
private RetrievedContext() {
uri_ = "";
title_ = "";
+ text_ = "";
}
@java.lang.Override
@@ -1263,6 +1301,72 @@ public com.google.protobuf.ByteString getTitleBytes() {
}
}
+ public static final int TEXT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ @java.lang.Override
+ public boolean hasText() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The text.
+ */
+ @java.lang.Override
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1283,6 +1387,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1298,6 +1405,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1322,6 +1432,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasTitle()) {
if (!getTitle().equals(other.getTitle())) return false;
}
+ if (hasText() != other.hasText()) return false;
+ if (hasText()) {
+ if (!getText().equals(other.getText())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1341,6 +1455,10 @@ public int hashCode() {
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
}
+ if (hasText()) {
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1485,6 +1603,7 @@ public Builder clear() {
bitField0_ = 0;
uri_ = "";
title_ = "";
+ text_ = "";
return this;
}
@@ -1532,6 +1651,10 @@ private void buildPartial0(
result.title_ = title_;
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.text_ = text_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1595,6 +1718,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasText()) {
+ text_ = other.text_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1633,6 +1761,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ text_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1892,6 +2026,126 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object text_ = "";
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ public boolean hasText() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The text.
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @param value The text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ text_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearText() {
+ text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Text of the attribution. + *+ * + *
optional string text = 3;
+ *
+ * @param value The bytes for text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ text_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java
index eff4c5bcff3e..caaaf627639c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadata.java
@@ -67,11 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* - * Optional. Score indicating how likely information from google search could + * Optional. Score indicating how likely information from Google Search could * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the * least likely and 1 is the most likely. This score is only populated when - * google search grounding and dynamic retrieval is enabled. It will be - * compared to the threshold to determine whether to trigger google search. + * Google Search grounding and dynamic retrieval is enabled. It will be + * compared to the threshold to determine whether to trigger Google Search. ** *
@@ -434,11 +434,11 @@ public Builder mergeFrom(
*
*
*
- * Optional. Score indicating how likely information from google search could
+ * Optional. Score indicating how likely information from Google Search could
* help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
@@ -455,11 +455,11 @@ public float getGoogleSearchDynamicRetrievalScore() {
*
*
*
- * Optional. Score indicating how likely information from google search could
+ * Optional. Score indicating how likely information from Google Search could
* help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
@@ -480,11 +480,11 @@ public Builder setGoogleSearchDynamicRetrievalScore(float value) {
*
*
*
- * Optional. Score indicating how likely information from google search could
+ * Optional. Score indicating how likely information from Google Search could
* help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java
index ad77d2d57520..c5ea36bc57b7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalMetadataOrBuilder.java
@@ -28,11 +28,11 @@ public interface RetrievalMetadataOrBuilder
*
*
*
- * Optional. Score indicating how likely information from google search could
+ * Optional. Score indicating how likely information from Google Search could
* help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java
index 3c37a39234d3..b80580702130 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java
@@ -24,7 +24,7 @@
*
*
* Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch}
@@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -97,7 +97,7 @@ public java.lang.String getDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -283,7 +283,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch}
@@ -466,7 +466,7 @@ public Builder mergeFrom(
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -490,7 +490,7 @@ public java.lang.String getDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -514,7 +514,7 @@ public com.google.protobuf.ByteString getDatastoreBytes() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -537,7 +537,7 @@ public Builder setDatastore(java.lang.String value) {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -556,7 +556,7 @@ public Builder clearDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java
index 010fb78f345f..95a8cfe45896 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java
@@ -28,7 +28,7 @@ public interface VertexAISearchOrBuilder
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -42,7 +42,7 @@ public interface VertexAISearchOrBuilder
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index 07c605aef872..f7f4273b06af 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
@@ -515,6 +515,9 @@ message GroundingChunk {
// Title of the attribution.
optional string title = 2;
+
+ // Text of the attribution.
+ optional string text = 3;
}
// Chunk type.
@@ -581,11 +584,11 @@ message SearchEntryPoint {
// Metadata related to retrieval in the grounding flow.
message RetrievalMetadata {
- // Optional. Score indicating how likely information from google search could
+ // Optional. Score indicating how likely information from Google Search could
// help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
// least likely and 1 is the most likely. This score is only populated when
- // google search grounding and dynamic retrieval is enabled. It will be
- // compared to the threshold to determine whether to trigger google search.
+ // Google Search grounding and dynamic retrieval is enabled. It will be
+ // compared to the threshold to determine whether to trigger Google Search.
float google_search_dynamic_retrieval_score = 2
[(google.api.field_behavior) = OPTIONAL];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
index 6c6538916882..3f25c21a804d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
@@ -133,9 +133,9 @@ message Retrieval {
}
// Retrieve from Vertex AI Search datastore for grounding.
-// See https://cloud.google.com/vertex-ai-search-and-conversation
+// See https://cloud.google.com/products/agent-builder
message VertexAISearch {
- // Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ // Required. Fully-qualified Vertex AI Search data store resource ID.
// Format:
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
string datastore = 1 [(google.api.field_behavior) = REQUIRED];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
index a32151f31752..c5aaf3de7b75 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
@@ -162,7 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014start_offset\030"
+ "\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n"
+ "\nend_offset\030\002 \001(\0132\031.google.protobuf.Dura"
- + "tionB\003\340A\001\"\332\n\n\020GenerationConfig\022\035\n\013temper"
+ + "tionB\003\340A\001\"\221\013\n\020GenerationConfig\022\035\n\013temper"
+ "ature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A"
+ "\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candi"
+ "date_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021max_output"
@@ -176,133 +176,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n"
+ "\210\001\001\022a\n\016routing_config\030\021 \001(\0132?.google.clo"
+ "ud.aiplatform.v1beta1.GenerationConfig.R"
- + "outingConfigB\003\340A\001H\013\210\001\001\032\321\004\n\rRoutingConfig"
- + "\022d\n\tauto_mode\030\001 \001(\0132O.google.cloud.aipla"
- + "tform.v1beta1.GenerationConfig.RoutingCo"
- + "nfig.AutoRoutingModeH\000\022h\n\013manual_mode\030\002 "
- + "\001(\0132Q.google.cloud.aiplatform.v1beta1.Ge"
- + "nerationConfig.RoutingConfig.ManualRouti"
- + "ngModeH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n\030model_r"
- + "outing_preference\030\001 \001(\0162f.google.cloud.a"
- + "iplatform.v1beta1.GenerationConfig.Routi"
- + "ngConfig.AutoRoutingMode.ModelRoutingPre"
- + "ferenceH\000\210\001\001\"`\n\026ModelRoutingPreference\022\013"
- + "\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010B"
- + "ALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model"
- + "_routing_preference\032;\n\021ManualRoutingMode"
- + "\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_name"
- + "B\020\n\016routing_configB\016\n\014_temperatureB\010\n\006_t"
- + "op_pB\010\n\006_top_kB\022\n\020_candidate_countB\024\n\022_m"
- + "ax_output_tokensB\024\n\022_response_logprobsB\013"
- + "\n\t_logprobsB\023\n\021_presence_penaltyB\024\n\022_fre"
- + "quency_penaltyB\007\n\005_seedB\022\n\020_response_sch"
- + "emaB\021\n\017_routing_config\"\372\003\n\rSafetySetting"
- + "\022D\n\010category\030\001 \001(\0162-.google.cloud.aiplat"
- + "form.v1beta1.HarmCategoryB\003\340A\002\022Y\n\tthresh"
- + "old\030\002 \001(\0162A.google.cloud.aiplatform.v1be"
- + "ta1.SafetySetting.HarmBlockThresholdB\003\340A"
- + "\002\022S\n\006method\030\004 \001(\0162>.google.cloud.aiplatf"
- + "orm.v1beta1.SafetySetting.HarmBlockMetho"
- + "dB\003\340A\001\"\235\001\n\022HarmBlockThreshold\022$\n HARM_BL"
- + "OCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW"
- + "_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002"
- + "\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n"
- + "\003OFF\020\005\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_"
- + "METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PR"
- + "OBABILITY\020\002\"\316\004\n\014SafetyRating\022D\n\010category"
- + "\030\001 \001(\0162-.google.cloud.aiplatform.v1beta1"
- + ".HarmCategoryB\003\340A\003\022W\n\013probability\030\002 \001(\0162"
- + "=.google.cloud.aiplatform.v1beta1.Safety"
- + "Rating.HarmProbabilityB\003\340A\003\022\036\n\021probabili"
- + "ty_score\030\005 \001(\002B\003\340A\003\022Q\n\010severity\030\006 \001(\0162:."
- + "google.cloud.aiplatform.v1beta1.SafetyRa"
- + "ting.HarmSeverityB\003\340A\003\022\033\n\016severity_score"
- + "\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 \001(\010B\003\340A\003\"b\n\017Har"
- + "mProbability\022 \n\034HARM_PROBABILITY_UNSPECI"
- + "FIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIU"
- + "M\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_S"
- + "EVERITY_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY_N"
- + "EGLIGIBLE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024HA"
- + "RM_SEVERITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_HI"
- + "GH\020\004\"U\n\020CitationMetadata\022A\n\tcitations\030\001 "
- + "\003(\0132).google.cloud.aiplatform.v1beta1.Ci"
- + "tationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start_index\030"
- + "\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003\340A\003\022\020\n\003ur"
- + "i\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007lice"
- + "nse\030\005 \001(\tB\003\340A\003\0220\n\020publication_date\030\006 \001(\013"
- + "2\021.google.type.DateB\003\340A\003\"\206\006\n\tCandidate\022\022"
- + "\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007content\030\002 \001(\0132(.go"
- + "ogle.cloud.aiplatform.v1beta1.ContentB\003\340"
- + "A\003\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n\017logprob"
- + "s_result\030\n \001(\0132/.google.cloud.aiplatform"
- + ".v1beta1.LogprobsResultB\003\340A\003\022S\n\rfinish_r"
- + "eason\030\003 \001(\01627.google.cloud.aiplatform.v1"
- + "beta1.Candidate.FinishReasonB\003\340A\003\022J\n\016saf"
- + "ety_ratings\030\004 \003(\0132-.google.cloud.aiplatf"
- + "orm.v1beta1.SafetyRatingB\003\340A\003\022 \n\016finish_"
- + "message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_meta"
- + "data\030\006 \001(\01321.google.cloud.aiplatform.v1b"
- + "eta1.CitationMetadataB\003\340A\003\022S\n\022grounding_"
- + "metadata\030\007 \001(\01322.google.cloud.aiplatform"
- + ".v1beta1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fini"
- + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022"
- + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n"
- + "\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022"
- + "\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MAL"
- + "FORMED_FUNCTION_CALL\020\tB\021\n\017_finish_messag"
- + "e\"\236\003\n\016LogprobsResult\022U\n\016top_candidates\030\001"
- + " \003(\0132=.google.cloud.aiplatform.v1beta1.L"
- + "ogprobsResult.TopCandidates\022T\n\021chosen_ca"
- + "ndidates\030\002 \003(\01329.google.cloud.aiplatform"
- + ".v1beta1.LogprobsResult.Candidate\032\177\n\tCan"
- + "didate\022\022\n\005token\030\001 \001(\tH\000\210\001\001\022\025\n\010token_id\030\003"
- + " \001(\005H\001\210\001\001\022\034\n\017log_probability\030\002 \001(\002H\002\210\001\001B"
- + "\010\n\006_tokenB\013\n\t_token_idB\022\n\020_log_probabili"
- + "ty\032^\n\rTopCandidates\022M\n\ncandidates\030\001 \003(\0132"
- + "9.google.cloud.aiplatform.v1beta1.Logpro"
- + "bsResult.Candidate\"g\n\007Segment\022\027\n\npart_in"
- + "dex\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003"
- + "\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003"
- + "\340A\003\"\314\002\n\016GroundingChunk\022B\n\003web\030\001 \001(\01323.go"
- + "ogle.cloud.aiplatform.v1beta1.GroundingC"
- + "hunk.WebH\000\022]\n\021retrieved_context\030\002 \001(\0132@."
- + "google.cloud.aiplatform.v1beta1.Groundin"
- + "gChunk.RetrievedContextH\000\032=\n\003Web\022\020\n\003uri\030"
- + "\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010"
- + "\n\006_title\032J\n\020RetrievedContext\022\020\n\003uri\030\001 \001("
- + "\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_t"
- + "itleB\014\n\nchunk_type\"\232\001\n\020GroundingSupport\022"
- + ">\n\007segment\030\001 \001(\0132(.google.cloud.aiplatfo"
- + "rm.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding_chu"
- + "nk_indices\030\002 \003(\005\022\031\n\021confidence_scores\030\003 "
- + "\003(\002B\n\n\010_segment\"\327\003\n\021GroundingMetadata\022\037\n"
- + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n\022search"
- + "_entry_point\030\004 \001(\01321.google.cloud.aiplat"
- + "form.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022"
- + "\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020groun"
- + "ding_chunks\030\005 \003(\0132/.google.cloud.aiplatf"
- + "orm.v1beta1.GroundingChunk\022R\n\022grounding_"
- + "supports\030\006 \003(\01321.google.cloud.aiplatform"
- + ".v1beta1.GroundingSupportB\003\340A\001\022[\n\022retrie"
- + "val_metadata\030\007 \001(\01322.google.cloud.aiplat"
- + "form.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001"
- + "\210\001\001B\025\n\023_search_entry_pointB\025\n\023_retrieval"
- + "_metadata\"H\n\020SearchEntryPoint\022\035\n\020rendere"
- + "d_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003"
- + "\340A\001\"G\n\021RetrievalMetadata\0222\n%google_searc"
- + "h_dynamic_retrieval_score\030\002 \001(\002B\003\340A\001*\327\001\n"
- + "\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPECIFI"
- + "ED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037H"
- + "ARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM"
- + "_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_"
- + "SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_CIV"
- + "IC_INTEGRITY\020\005B\343\001\n#com.google.cloud.aipl"
- + "atform.v1beta1B\014ContentProtoP\001ZCcloud.go"
- + "ogle.com/go/aiplatform/apiv1beta1/aiplat"
- + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla"
- + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\"
- + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b"
- + "eta1b\006proto3"
+ + "outingConfigB\003\340A\001H\013\210\001\001\022!\n\017audio_timestam"
+ + "p\030\024 \001(\010B\003\340A\001H\014\210\001\001\032\321\004\n\rRoutingConfig\022d\n\ta"
+ + "uto_mode\030\001 \001(\0132O.google.cloud.aiplatform"
+ + ".v1beta1.GenerationConfig.RoutingConfig."
+ + "AutoRoutingModeH\000\022h\n\013manual_mode\030\002 \001(\0132Q"
+ + ".google.cloud.aiplatform.v1beta1.Generat"
+ + "ionConfig.RoutingConfig.ManualRoutingMod"
+ + "eH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n\030model_routin"
+ + "g_preference\030\001 \001(\0162f.google.cloud.aiplat"
+ + "form.v1beta1.GenerationConfig.RoutingCon"
+ + "fig.AutoRoutingMode.ModelRoutingPreferen"
+ + "ceH\000\210\001\001\"`\n\026ModelRoutingPreference\022\013\n\007UNK"
+ + "NOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010BALANC"
+ + "ED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model_rout"
+ + "ing_preference\032;\n\021ManualRoutingMode\022\027\n\nm"
+ + "odel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_nameB\020\n\016r"
+ + "outing_configB\016\n\014_temperatureB\010\n\006_top_pB"
+ + "\010\n\006_top_kB\022\n\020_candidate_countB\024\n\022_max_ou"
+ + "tput_tokensB\024\n\022_response_logprobsB\013\n\t_lo"
+ + "gprobsB\023\n\021_presence_penaltyB\024\n\022_frequenc"
+ + "y_penaltyB\007\n\005_seedB\022\n\020_response_schemaB\021"
+ + "\n\017_routing_configB\022\n\020_audio_timestamp\"\372\003"
+ + "\n\rSafetySetting\022D\n\010category\030\001 \001(\0162-.goog"
+ + "le.cloud.aiplatform.v1beta1.HarmCategory"
+ + "B\003\340A\002\022Y\n\tthreshold\030\002 \001(\0162A.google.cloud."
+ + "aiplatform.v1beta1.SafetySetting.HarmBlo"
+ + "ckThresholdB\003\340A\002\022S\n\006method\030\004 \001(\0162>.googl"
+ + "e.cloud.aiplatform.v1beta1.SafetySetting"
+ + ".HarmBlockMethodB\003\340A\001\"\235\001\n\022HarmBlockThres"
+ + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED"
+ + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED"
+ + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n"
+ + "BLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockMethod"
+ + "\022!\n\035HARM_BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010S"
+ + "EVERITY\020\001\022\017\n\013PROBABILITY\020\002\"\316\004\n\014SafetyRat"
+ + "ing\022D\n\010category\030\001 \001(\0162-.google.cloud.aip"
+ + "latform.v1beta1.HarmCategoryB\003\340A\003\022W\n\013pro"
+ + "bability\030\002 \001(\0162=.google.cloud.aiplatform"
+ + ".v1beta1.SafetyRating.HarmProbabilityB\003\340"
+ + "A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022Q\n\010se"
+ + "verity\030\006 \001(\0162:.google.cloud.aiplatform.v"
+ + "1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ + "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 "
+ + "\001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PROB"
+ + "ABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n"
+ + "\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSev"
+ + "erity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n\030"
+ + "HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVER"
+ + "ITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022H"
+ + "ARM_SEVERITY_HIGH\020\004\"U\n\020CitationMetadata\022"
+ + "A\n\tcitations\030\001 \003(\0132).google.cloud.aiplat"
+ + "form.v1beta1.CitationB\003\340A\003\"\252\001\n\010Citation\022"
+ + "\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002"
+ + " \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001"
+ + "(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publica"
+ + "tion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\""
+ + "\206\006\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007con"
+ + "tent\030\002 \001(\0132(.google.cloud.aiplatform.v1b"
+ + "eta1.ContentB\003\340A\003\022\031\n\014avg_logprobs\030\t \001(\001B"
+ + "\003\340A\003\022M\n\017logprobs_result\030\n \001(\0132/.google.c"
+ + "loud.aiplatform.v1beta1.LogprobsResultB\003"
+ + "\340A\003\022S\n\rfinish_reason\030\003 \001(\01627.google.clou"
+ + "d.aiplatform.v1beta1.Candidate.FinishRea"
+ + "sonB\003\340A\003\022J\n\016safety_ratings\030\004 \003(\0132-.googl"
+ + "e.cloud.aiplatform.v1beta1.SafetyRatingB"
+ + "\003\340A\003\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q"
+ + "\n\021citation_metadata\030\006 \001(\01321.google.cloud"
+ + ".aiplatform.v1beta1.CitationMetadataB\003\340A"
+ + "\003\022S\n\022grounding_metadata\030\007 \001(\01322.google.c"
+ + "loud.aiplatform.v1beta1.GroundingMetadat"
+ + "aB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINISH_REASON"
+ + "_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002"
+ + "\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005\022"
+ + "\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010"
+ + "\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTION_CALL\020\tB\021\n"
+ + "\017_finish_message\"\236\003\n\016LogprobsResult\022U\n\016t"
+ + "op_candidates\030\001 \003(\0132=.google.cloud.aipla"
+ + "tform.v1beta1.LogprobsResult.TopCandidat"
+ + "es\022T\n\021chosen_candidates\030\002 \003(\01329.google.c"
+ + "loud.aiplatform.v1beta1.LogprobsResult.C"
+ + "andidate\032\177\n\tCandidate\022\022\n\005token\030\001 \001(\tH\000\210\001"
+ + "\001\022\025\n\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n\017log_probabil"
+ + "ity\030\002 \001(\002H\002\210\001\001B\010\n\006_tokenB\013\n\t_token_idB\022\n"
+ + "\020_log_probability\032^\n\rTopCandidates\022M\n\nca"
+ + "ndidates\030\001 \003(\01329.google.cloud.aiplatform"
+ + ".v1beta1.LogprobsResult.Candidate\"g\n\007Seg"
+ + "ment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013start_i"
+ + "ndex\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022"
+ + "\021\n\004text\030\004 \001(\tB\003\340A\003\"\350\002\n\016GroundingChunk\022B\n"
+ + "\003web\030\001 \001(\01323.google.cloud.aiplatform.v1b"
+ + "eta1.GroundingChunk.WebH\000\022]\n\021retrieved_c"
+ + "ontext\030\002 \001(\0132@.google.cloud.aiplatform.v"
+ + "1beta1.GroundingChunk.RetrievedContextH\000"
+ + "\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\t"
+ + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020RetrievedCont"
+ + "ext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001"
+ + "\001\022\021\n\004text\030\003 \001(\tH\002\210\001\001B\006\n\004_uriB\010\n\006_titleB\007"
+ + "\n\005_textB\014\n\nchunk_type\"\232\001\n\020GroundingSuppo"
+ + "rt\022>\n\007segment\030\001 \001(\0132(.google.cloud.aipla"
+ + "tform.v1beta1.SegmentH\000\210\001\001\022\037\n\027grounding_"
+ + "chunk_indices\030\002 \003(\005\022\031\n\021confidence_scores"
+ + "\030\003 \003(\002B\n\n\010_segment\"\327\003\n\021GroundingMetadata"
+ + "\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n\022sea"
+ + "rch_entry_point\030\004 \001(\01321.google.cloud.aip"
+ + "latform.v1beta1.SearchEntryPointB\003\340A\001H\000\210"
+ + "\001\001\022\036\n\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n\020gr"
+ + "ounding_chunks\030\005 \003(\0132/.google.cloud.aipl"
+ + "atform.v1beta1.GroundingChunk\022R\n\022groundi"
+ + "ng_supports\030\006 \003(\01321.google.cloud.aiplatf"
+ + "orm.v1beta1.GroundingSupportB\003\340A\001\022[\n\022ret"
+ + "rieval_metadata\030\007 \001(\01322.google.cloud.aip"
+ + "latform.v1beta1.RetrievalMetadataB\006\340A\001\340A"
+ + "\003H\001\210\001\001B\025\n\023_search_entry_pointB\025\n\023_retrie"
+ + "val_metadata\"H\n\020SearchEntryPoint\022\035\n\020rend"
+ + "ered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001("
+ + "\014B\003\340A\001\"G\n\021RetrievalMetadata\0222\n%google_se"
+ + "arch_dynamic_retrieval_score\030\002 \001(\002B\003\340A\001*"
+ + "\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPEC"
+ + "IFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#"
+ + "\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030H"
+ + "ARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGO"
+ + "RY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_"
+ + "CIVIC_INTEGRITY\020\005B\343\001\n#com.google.cloud.a"
+ + "iplatform.v1beta1B\014ContentProtoP\001ZCcloud"
+ + ".google.com/go/aiplatform/apiv1beta1/aip"
+ + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI"
+ + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo"
+ + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::"
+ + "V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -381,6 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ResponseMimeType",
"ResponseSchema",
"RoutingConfig",
+ "AudioTimestamp",
});
internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_RoutingConfig_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor
@@ -522,7 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor,
new java.lang.String[] {
- "Uri", "Title",
+ "Uri", "Title", "Text",
});
internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor =
getDescriptor().getMessageTypes().get(14);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java
index 5e394765568c..16002b464d6f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java
@@ -78,87 +78,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\032(google/cloud/aiplatform/v1beta1/i"
+ "o.proto\032/google/cloud/aiplatform/v1beta1"
+ "/job_state.proto\0327google/cloud/aiplatfor"
- + "m/v1beta1/machine_resources.proto\032\036googl"
- + "e/protobuf/duration.proto\032\037google/protob"
- + "uf/timestamp.proto\032\027google/rpc/status.pr"
- + "oto\"\262\007\n\tCustomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014"
- + "display_name\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001("
- + "\0132..google.cloud.aiplatform.v1beta1.Cust"
- + "omJobSpecB\003\340A\002\022=\n\005state\030\005 \001(\0162).google.c"
- + "loud.aiplatform.v1beta1.JobStateB\003\340A\003\0224\n"
- + "\013create_time\030\006 \001(\0132\032.google.protobuf.Tim"
- + "estampB\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google"
- + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u"
- + "pdate_time\030\t \001(\0132\032.google.protobuf.Times"
- + "tampB\003\340A\003\022&\n\005error\030\n \001(\0132\022.google.rpc.St"
- + "atusB\003\340A\003\022F\n\006labels\030\013 \003(\01326.google.cloud"
- + ".aiplatform.v1beta1.CustomJob.LabelsEntr"
- + "y\022H\n\017encryption_spec\030\014 \001(\0132/.google.clou"
- + "d.aiplatform.v1beta1.EncryptionSpec\022[\n\017w"
- + "eb_access_uris\030\020 \003(\0132=.google.cloud.aipl"
- + "atform.v1beta1.CustomJob.WebAccessUrisEn"
- + "tryB\003\340A\003\022\032\n\rsatisfies_pzs\030\022 \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\023 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022"
- + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022WebAc"
- + "cessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
- + "\t:\0028\001:i\352Af\n#aiplatform.googleapis.com/Cu"
- + "stomJob\022?projects/{project}/locations/{l"
- + "ocation}/customJobs/{custom_job}\"\247\006\n\rCus"
- + "tomJobSpec\022T\n\026persistent_resource_id\030\016 \001"
- + "(\tB4\340A\001\372A.\n,aiplatform.googleapis.com/Pe"
- + "rsistentResource\022O\n\021worker_pool_specs\030\001 "
- + "\003(\0132/.google.cloud.aiplatform.v1beta1.Wo"
- + "rkerPoolSpecB\003\340A\002\022?\n\nscheduling\030\003 \001(\0132+."
- + "google.cloud.aiplatform.v1beta1.Scheduli"
- + "ng\022\027\n\017service_account\030\004 \001(\t\0227\n\007network\030\005"
- + " \001(\tB&\340A\001\372A \n\036compute.googleapis.com/Net"
- + "work\022\037\n\022reserved_ip_ranges\030\r \003(\tB\003\340A\001\022N\n"
- + "\025base_output_directory\030\006 \001(\0132/.google.cl"
- + "oud.aiplatform.v1beta1.GcsDestination\022&\n"
- + "\036protected_artifact_location_id\030\023 \001(\t\022B\n"
- + "\013tensorboard\030\007 \001(\tB-\340A\001\372A\'\n%aiplatform.g"
- + "oogleapis.com/Tensorboard\022\036\n\021enable_web_"
- + "access\030\n \001(\010B\003\340A\001\022$\n\027enable_dashboard_ac"
- + "cess\030\020 \001(\010B\003\340A\001\022=\n\nexperiment\030\021 \001(\tB)\340A\001"
- + "\372A#\n!aiplatform.googleapis.com/Context\022A"
- + "\n\016experiment_run\030\022 \001(\tB)\340A\001\372A#\n!aiplatfo"
- + "rm.googleapis.com/Context\0227\n\006models\030\024 \003("
- + "\tB\'\340A\001\372A!\n\037aiplatform.googleapis.com/Mod"
- + "el\"\237\003\n\016WorkerPoolSpec\022H\n\016container_spec\030"
- + "\006 \001(\0132..google.cloud.aiplatform.v1beta1."
- + "ContainerSpecH\000\022Q\n\023python_package_spec\030\007"
- + " \001(\01322.google.cloud.aiplatform.v1beta1.P"
- + "ythonPackageSpecH\000\022J\n\014machine_spec\030\001 \001(\013"
- + "2,.google.cloud.aiplatform.v1beta1.Machi"
- + "neSpecB\006\340A\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340"
- + "A\001\022B\n\nnfs_mounts\030\004 \003(\0132).google.cloud.ai"
- + "platform.v1beta1.NfsMountB\003\340A\001\022<\n\tdisk_s"
- + "pec\030\005 \001(\0132).google.cloud.aiplatform.v1be"
- + "ta1.DiskSpecB\006\n\004task\"|\n\rContainerSpec\022\026\n"
- + "\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014"
- + "\n\004args\030\003 \003(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud"
- + ".aiplatform.v1beta1.EnvVar\"\257\001\n\021PythonPac"
- + "kageSpec\022\037\n\022executor_image_uri\030\001 \001(\tB\003\340A"
- + "\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_m"
- + "odule\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 "
- + "\003(\0132\'.google.cloud.aiplatform.v1beta1.En"
- + "vVar\"\370\002\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.g"
- + "oogle.protobuf.Duration\022%\n\035restart_job_o"
- + "n_worker_restart\030\003 \001(\010\022K\n\010strategy\030\004 \001(\016"
- + "24.google.cloud.aiplatform.v1beta1.Sched"
- + "uling.StrategyB\003\340A\001\022\034\n\017disable_retries\030\005"
- + " \001(\010B\003\340A\001\0229\n\021max_wait_duration\030\006 \001(\0132\031.g"
- + "oogle.protobuf.DurationB\003\340A\001\"q\n\010Strategy"
- + "\022\030\n\024STRATEGY_UNSPECIFIED\020\000\022\021\n\tON_DEMAND\020"
- + "\001\032\002\010\001\022\020\n\010LOW_COST\020\002\032\002\010\001\022\014\n\010STANDARD\020\003\022\010\n"
- + "\004SPOT\020\004\022\016\n\nFLEX_START\020\006B\345\001\n#com.google.c"
- + "loud.aiplatform.v1beta1B\016CustomJobProtoP"
- + "\001ZCcloud.google.com/go/aiplatform/apiv1b"
- + "eta1/aiplatformpb;aiplatformpb\252\002\037Google."
- + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\"
- + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl"
- + "atform::V1beta1b\006proto3"
+ + "m/v1beta1/machine_resources.proto\0328googl"
+ + "e/cloud/aiplatform/v1beta1/service_netwo"
+ + "rking.proto\032\036google/protobuf/duration.pr"
+ + "oto\032\037google/protobuf/timestamp.proto\032\027go"
+ + "ogle/rpc/status.proto\"\262\007\n\tCustomJob\022\021\n\004n"
+ + "ame\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A"
+ + "\002\022E\n\010job_spec\030\004 \001(\0132..google.cloud.aipla"
+ + "tform.v1beta1.CustomJobSpecB\003\340A\002\022=\n\005stat"
+ + "e\030\005 \001(\0162).google.cloud.aiplatform.v1beta"
+ + "1.JobStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.g"
+ + "oogle.protobuf.TimestampB\003\340A\003\0223\n\nstart_t"
+ + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340"
+ + "A\003\0221\n\010end_time\030\010 \001(\0132\032.google.protobuf.T"
+ + "imestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.goo"
+ + "gle.protobuf.TimestampB\003\340A\003\022&\n\005error\030\n \001"
+ + "(\0132\022.google.rpc.StatusB\003\340A\003\022F\n\006labels\030\013 "
+ + "\003(\01326.google.cloud.aiplatform.v1beta1.Cu"
+ + "stomJob.LabelsEntry\022H\n\017encryption_spec\030\014"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.E"
+ + "ncryptionSpec\022[\n\017web_access_uris\030\020 \003(\0132="
+ + ".google.cloud.aiplatform.v1beta1.CustomJ"
+ + "ob.WebAccessUrisEntryB\003\340A\003\022\032\n\rsatisfies_"
+ + "pzs\030\022 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\023 \001(\010B\003\340"
+ + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
+ + "\002 \001(\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001"
+ + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform"
+ + ".googleapis.com/CustomJob\022?projects/{pro"
+ + "ject}/locations/{location}/customJobs/{c"
+ + "ustom_job}\"\377\006\n\rCustomJobSpec\022T\n\026persiste"
+ + "nt_resource_id\030\016 \001(\tB4\340A\001\372A.\n,aiplatform"
+ + ".googleapis.com/PersistentResource\022O\n\021wo"
+ + "rker_pool_specs\030\001 \003(\0132/.google.cloud.aip"
+ + "latform.v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\ns"
+ + "cheduling\030\003 \001(\0132+.google.cloud.aiplatfor"
+ + "m.v1beta1.Scheduling\022\027\n\017service_account\030"
+ + "\004 \001(\t\0227\n\007network\030\005 \001(\tB&\340A\001\372A \n\036compute."
+ + "googleapis.com/Network\022\037\n\022reserved_ip_ra"
+ + "nges\030\r \003(\tB\003\340A\001\022V\n\024psc_interface_config\030"
+ + "\025 \001(\01323.google.cloud.aiplatform.v1beta1."
+ + "PscInterfaceConfigB\003\340A\001\022N\n\025base_output_d"
+ + "irectory\030\006 \001(\0132/.google.cloud.aiplatform"
+ + ".v1beta1.GcsDestination\022&\n\036protected_art"
+ + "ifact_location_id\030\023 \001(\t\022B\n\013tensorboard\030\007"
+ + " \001(\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/"
+ + "Tensorboard\022\036\n\021enable_web_access\030\n \001(\010B\003"
+ + "\340A\001\022$\n\027enable_dashboard_access\030\020 \001(\010B\003\340A"
+ + "\001\022=\n\nexperiment\030\021 \001(\tB)\340A\001\372A#\n!aiplatfor"
+ + "m.googleapis.com/Context\022A\n\016experiment_r"
+ + "un\030\022 \001(\tB)\340A\001\372A#\n!aiplatform.googleapis."
+ + "com/Context\0227\n\006models\030\024 \003(\tB\'\340A\001\372A!\n\037aip"
+ + "latform.googleapis.com/Model\"\237\003\n\016WorkerP"
+ + "oolSpec\022H\n\016container_spec\030\006 \001(\0132..google"
+ + ".cloud.aiplatform.v1beta1.ContainerSpecH"
+ + "\000\022Q\n\023python_package_spec\030\007 \001(\01322.google."
+ + "cloud.aiplatform.v1beta1.PythonPackageSp"
+ + "ecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google.clou"
+ + "d.aiplatform.v1beta1.MachineSpecB\006\340A\001\340A\005"
+ + "\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_moun"
+ + "ts\030\004 \003(\0132).google.cloud.aiplatform.v1bet"
+ + "a1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132).go"
+ + "ogle.cloud.aiplatform.v1beta1.DiskSpecB\006"
+ + "\n\004task\"|\n\rContainerSpec\022\026\n\timage_uri\030\001 \001"
+ + "(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\0224"
+ + "\n\003env\030\004 \003(\0132\'.google.cloud.aiplatform.v1"
+ + "beta1.EnvVar\"\257\001\n\021PythonPackageSpec\022\037\n\022ex"
+ + "ecutor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_u"
+ + "ris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(\tB\003\340"
+ + "A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.google.c"
+ + "loud.aiplatform.v1beta1.EnvVar\"\370\002\n\nSched"
+ + "uling\022*\n\007timeout\030\001 \001(\0132\031.google.protobuf"
+ + ".Duration\022%\n\035restart_job_on_worker_resta"
+ + "rt\030\003 \001(\010\022K\n\010strategy\030\004 \001(\01624.google.clou"
+ + "d.aiplatform.v1beta1.Scheduling.Strategy"
+ + "B\003\340A\001\022\034\n\017disable_retries\030\005 \001(\010B\003\340A\001\0229\n\021m"
+ + "ax_wait_duration\030\006 \001(\0132\031.google.protobuf"
+ + ".DurationB\003\340A\001\"q\n\010Strategy\022\030\n\024STRATEGY_U"
+ + "NSPECIFIED\020\000\022\021\n\tON_DEMAND\020\001\032\002\010\001\022\020\n\010LOW_C"
+ + "OST\020\002\032\002\010\001\022\014\n\010STANDARD\020\003\022\010\n\004SPOT\020\004\022\016\n\nFLE"
+ + "X_START\020\006B\345\001\n#com.google.cloud.aiplatfor"
+ + "m.v1beta1B\016CustomJobProtoP\001ZCcloud.googl"
+ + "e.com/go/aiplatform/apiv1beta1/aiplatfor"
+ + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo"
+ + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b"
+ + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta"
+ + "1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -171,6 +175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.rpc.StatusProto.getDescriptor(),
@@ -228,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceAccount",
"Network",
"ReservedIpRanges",
+ "PscInterfaceConfig",
"BaseOutputDirectory",
"ProtectedArtifactLocationId",
"Tensorboard",
@@ -293,6 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor();
+ com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.rpc.StatusProto.getDescriptor();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java
index 9a558db464f1..3152f3c33965 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java
@@ -513,6 +513,63 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) {
return reservedIpRanges_.getByteString(index);
}
+ public static final int PSC_INTERFACE_CONFIG_FIELD_NUMBER = 21;
+ private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pscInterfaceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPscInterfaceConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pscInterfaceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() {
+ return pscInterfaceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()
+ : pscInterfaceConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder
+ getPscInterfaceConfigOrBuilder() {
+ return pscInterfaceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()
+ : pscInterfaceConfig_;
+ }
+
public static final int BASE_OUTPUT_DIRECTORY_FIELD_NUMBER = 6;
private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_;
/**
@@ -548,7 +605,7 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) {
*/
@java.lang.Override
public boolean hasBaseOutputDirectory() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -1061,7 +1118,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getBaseOutputDirectory());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) {
@@ -1091,6 +1148,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < models_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, models_.getRaw(i));
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(21, getPscInterfaceConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -1112,7 +1172,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBaseOutputDirectory());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) {
@@ -1154,6 +1214,9 @@ public int getSerializedSize() {
size += dataSize;
size += 2 * getModelsList().size();
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPscInterfaceConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1179,6 +1242,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getServiceAccount().equals(other.getServiceAccount())) return false;
if (!getNetwork().equals(other.getNetwork())) return false;
if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false;
+ if (hasPscInterfaceConfig() != other.hasPscInterfaceConfig()) return false;
+ if (hasPscInterfaceConfig()) {
+ if (!getPscInterfaceConfig().equals(other.getPscInterfaceConfig())) return false;
+ }
if (hasBaseOutputDirectory() != other.hasBaseOutputDirectory()) return false;
if (hasBaseOutputDirectory()) {
if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false;
@@ -1220,6 +1287,10 @@ public int hashCode() {
hash = (37 * hash) + RESERVED_IP_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getReservedIpRangesList().hashCode();
}
+ if (hasPscInterfaceConfig()) {
+ hash = (37 * hash) + PSC_INTERFACE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPscInterfaceConfig().hashCode();
+ }
if (hasBaseOutputDirectory()) {
hash = (37 * hash) + BASE_OUTPUT_DIRECTORY_FIELD_NUMBER;
hash = (53 * hash) + getBaseOutputDirectory().hashCode();
@@ -1382,6 +1453,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getWorkerPoolSpecsFieldBuilder();
getSchedulingFieldBuilder();
+ getPscInterfaceConfigFieldBuilder();
getBaseOutputDirectoryFieldBuilder();
}
}
@@ -1406,6 +1478,11 @@ public Builder clear() {
serviceAccount_ = "";
network_ = "";
reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ pscInterfaceConfig_ = null;
+ if (pscInterfaceConfigBuilder_ != null) {
+ pscInterfaceConfigBuilder_.dispose();
+ pscInterfaceConfigBuilder_ = null;
+ }
baseOutputDirectory_ = null;
if (baseOutputDirectoryBuilder_ != null) {
baseOutputDirectoryBuilder_.dispose();
@@ -1487,31 +1564,38 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomJobSpec res
result.reservedIpRanges_ = reservedIpRanges_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.pscInterfaceConfig_ =
+ pscInterfaceConfigBuilder_ == null
+ ? pscInterfaceConfig_
+ : pscInterfaceConfigBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.baseOutputDirectory_ =
baseOutputDirectoryBuilder_ == null
? baseOutputDirectory_
: baseOutputDirectoryBuilder_.build();
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.protectedArtifactLocationId_ = protectedArtifactLocationId_;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.tensorboard_ = tensorboard_;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.enableWebAccess_ = enableWebAccess_;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.enableDashboardAccess_ = enableDashboardAccess_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.experiment_ = experiment_;
}
- if (((from_bitField0_ & 0x00001000) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.experimentRun_ = experimentRun_;
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
+ if (((from_bitField0_ & 0x00004000) != 0)) {
models_.makeImmutable();
result.models_ = models_;
}
@@ -1619,17 +1703,20 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other
}
onChanged();
}
+ if (other.hasPscInterfaceConfig()) {
+ mergePscInterfaceConfig(other.getPscInterfaceConfig());
+ }
if (other.hasBaseOutputDirectory()) {
mergeBaseOutputDirectory(other.getBaseOutputDirectory());
}
if (!other.getProtectedArtifactLocationId().isEmpty()) {
protectedArtifactLocationId_ = other.protectedArtifactLocationId_;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getTensorboard().isEmpty()) {
tensorboard_ = other.tensorboard_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.getEnableWebAccess() != false) {
@@ -1640,18 +1727,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other
}
if (!other.getExperiment().isEmpty()) {
experiment_ = other.experiment_;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
}
if (!other.getExperimentRun().isEmpty()) {
experimentRun_ = other.experimentRun_;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
}
if (!other.models_.isEmpty()) {
if (models_.isEmpty()) {
models_ = other.models_;
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
} else {
ensureModelsIsMutable();
models_.addAll(other.models_);
@@ -1720,19 +1807,19 @@ public Builder mergeFrom(
{
input.readMessage(
getBaseOutputDirectoryFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 50
case 58:
{
tensorboard_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 58
case 80:
{
enableWebAccess_ = input.readBool();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 80
case 106:
@@ -1751,25 +1838,25 @@ public Builder mergeFrom(
case 128:
{
enableDashboardAccess_ = input.readBool();
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 128
case 138:
{
experiment_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 138
case 146:
{
experimentRun_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 146
case 154:
{
protectedArtifactLocationId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 154
case 162:
@@ -1779,6 +1866,13 @@ public Builder mergeFrom(
models_.add(s);
break;
} // case 162
+ case 170:
+ {
+ input.readMessage(
+ getPscInterfaceConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 170
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3112,6 +3206,215 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig pscInterfaceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder>
+ pscInterfaceConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pscInterfaceConfig field is set.
+ */
+ public boolean hasPscInterfaceConfig() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pscInterfaceConfig.
+ */
+ public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig() {
+ if (pscInterfaceConfigBuilder_ == null) {
+ return pscInterfaceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()
+ : pscInterfaceConfig_;
+ } else {
+ return pscInterfaceConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPscInterfaceConfig(
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) {
+ if (pscInterfaceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pscInterfaceConfig_ = value;
+ } else {
+ pscInterfaceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPscInterfaceConfig(
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder builderForValue) {
+ if (pscInterfaceConfigBuilder_ == null) {
+ pscInterfaceConfig_ = builderForValue.build();
+ } else {
+ pscInterfaceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePscInterfaceConfig(
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig value) {
+ if (pscInterfaceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && pscInterfaceConfig_ != null
+ && pscInterfaceConfig_
+ != com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()) {
+ getPscInterfaceConfigBuilder().mergeFrom(value);
+ } else {
+ pscInterfaceConfig_ = value;
+ }
+ } else {
+ pscInterfaceConfigBuilder_.mergeFrom(value);
+ }
+ if (pscInterfaceConfig_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPscInterfaceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ pscInterfaceConfig_ = null;
+ if (pscInterfaceConfigBuilder_ != null) {
+ pscInterfaceConfigBuilder_.dispose();
+ pscInterfaceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder
+ getPscInterfaceConfigBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getPscInterfaceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder
+ getPscInterfaceConfigOrBuilder() {
+ if (pscInterfaceConfigBuilder_ != null) {
+ return pscInterfaceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return pscInterfaceConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.getDefaultInstance()
+ : pscInterfaceConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder>
+ getPscInterfaceConfigFieldBuilder() {
+ if (pscInterfaceConfigBuilder_ == null) {
+ pscInterfaceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder>(
+ getPscInterfaceConfig(), getParentForChildren(), isClean());
+ pscInterfaceConfig_ = null;
+ }
+ return pscInterfaceConfigBuilder_;
+ }
+
private com.google.cloud.aiplatform.v1beta1.GcsDestination baseOutputDirectory_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1beta1.GcsDestination,
@@ -3150,7 +3453,7 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) {
* @return Whether the baseOutputDirectory field is set.
*/
public boolean hasBaseOutputDirectory() {
- return ((bitField0_ & 0x00000040) != 0);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
@@ -3231,7 +3534,7 @@ public Builder setBaseOutputDirectory(
} else {
baseOutputDirectoryBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3271,7 +3574,7 @@ public Builder setBaseOutputDirectory(
} else {
baseOutputDirectoryBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -3307,7 +3610,7 @@ public Builder setBaseOutputDirectory(
public Builder mergeBaseOutputDirectory(
com.google.cloud.aiplatform.v1beta1.GcsDestination value) {
if (baseOutputDirectoryBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)
+ if (((bitField0_ & 0x00000080) != 0)
&& baseOutputDirectory_ != null
&& baseOutputDirectory_
!= com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) {
@@ -3319,7 +3622,7 @@ public Builder mergeBaseOutputDirectory(
baseOutputDirectoryBuilder_.mergeFrom(value);
}
if (baseOutputDirectory_ != null) {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
return this;
@@ -3354,7 +3657,7 @@ public Builder mergeBaseOutputDirectory(
* .google.cloud.aiplatform.v1beta1.GcsDestination base_output_directory = 6;
*/
public Builder clearBaseOutputDirectory() {
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
baseOutputDirectory_ = null;
if (baseOutputDirectoryBuilder_ != null) {
baseOutputDirectoryBuilder_.dispose();
@@ -3394,7 +3697,7 @@ public Builder clearBaseOutputDirectory() {
*/
public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder
getBaseOutputDirectoryBuilder() {
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return getBaseOutputDirectoryFieldBuilder().getBuilder();
}
@@ -3554,7 +3857,7 @@ public Builder setProtectedArtifactLocationId(java.lang.String value) {
throw new NullPointerException();
}
protectedArtifactLocationId_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3574,7 +3877,7 @@ public Builder setProtectedArtifactLocationId(java.lang.String value) {
*/
public Builder clearProtectedArtifactLocationId() {
protectedArtifactLocationId_ = getDefaultInstance().getProtectedArtifactLocationId();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -3599,7 +3902,7 @@ public Builder setProtectedArtifactLocationIdBytes(com.google.protobuf.ByteStrin
}
checkByteStringIsUtf8(value);
protectedArtifactLocationId_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -3681,7 +3984,7 @@ public Builder setTensorboard(java.lang.String value) {
throw new NullPointerException();
}
tensorboard_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3703,7 +4006,7 @@ public Builder setTensorboard(java.lang.String value) {
*/
public Builder clearTensorboard() {
tensorboard_ = getDefaultInstance().getTensorboard();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -3730,7 +4033,7 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
tensorboard_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3786,7 +4089,7 @@ public boolean getEnableWebAccess() {
public Builder setEnableWebAccess(boolean value) {
enableWebAccess_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -3812,7 +4115,7 @@ public Builder setEnableWebAccess(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableWebAccess() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
enableWebAccess_ = false;
onChanged();
return this;
@@ -3867,7 +4170,7 @@ public boolean getEnableDashboardAccess() {
public Builder setEnableDashboardAccess(boolean value) {
enableDashboardAccess_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -3892,7 +4195,7 @@ public Builder setEnableDashboardAccess(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableDashboardAccess() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
enableDashboardAccess_ = false;
onChanged();
return this;
@@ -3972,7 +4275,7 @@ public Builder setExperiment(java.lang.String value) {
throw new NullPointerException();
}
experiment_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -3993,7 +4296,7 @@ public Builder setExperiment(java.lang.String value) {
*/
public Builder clearExperiment() {
experiment_ = getDefaultInstance().getExperiment();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@@ -4019,7 +4322,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
experiment_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4098,7 +4401,7 @@ public Builder setExperimentRun(java.lang.String value) {
throw new NullPointerException();
}
experimentRun_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4119,7 +4422,7 @@ public Builder setExperimentRun(java.lang.String value) {
*/
public Builder clearExperimentRun() {
experimentRun_ = getDefaultInstance().getExperimentRun();
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
@@ -4145,7 +4448,7 @@ public Builder setExperimentRunBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
experimentRun_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4157,7 +4460,7 @@ private void ensureModelsIsMutable() {
if (!models_.isModifiable()) {
models_ = new com.google.protobuf.LazyStringArrayList(models_);
}
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
}
/**
*
@@ -4307,7 +4610,7 @@ public Builder setModels(int index, java.lang.String value) {
}
ensureModelsIsMutable();
models_.set(index, value);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4343,7 +4646,7 @@ public Builder addModels(java.lang.String value) {
}
ensureModelsIsMutable();
models_.add(value);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4376,7 +4679,7 @@ public Builder addModels(java.lang.String value) {
public Builder addAllModels(java.lang.Iterable values) {
ensureModelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, models_);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4407,7 +4710,7 @@ public Builder addAllModels(java.lang.Iterable values) {
*/
public Builder clearModels() {
models_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
;
onChanged();
return this;
@@ -4445,7 +4748,7 @@ public Builder addModelsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureModelsIsMutable();
models_.add(value);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java
index feae7ceb1e39..7507e66422e5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java
@@ -338,6 +338,47 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr
*/
com.google.protobuf.ByteString getReservedIpRangesBytes(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the pscInterfaceConfig field is set.
+ */
+ boolean hasPscInterfaceConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The pscInterfaceConfig.
+ */
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfig getPscInterfaceConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for PSC-I for CustomJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PscInterfaceConfig psc_interface_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.PscInterfaceConfigOrBuilder getPscInterfaceConfigOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
index d5da9004aa5a..61c9d5755fb4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java
@@ -3711,6 +3711,41 @@ public com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig getRou
: routingConfig_;
}
+ public static final int AUDIO_TIMESTAMP_FIELD_NUMBER = 20;
+ private boolean audioTimestamp_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3767,6 +3802,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(18, responseLogprobs_);
}
+ if (((bitField0_ & 0x00001000) != 0)) {
+ output.writeBool(20, audioTimestamp_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3823,6 +3861,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
}
+ if (((bitField0_ & 0x00001000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3894,6 +3935,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasRoutingConfig()) {
if (!getRoutingConfig().equals(other.getRoutingConfig())) return false;
}
+ if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false;
+ if (hasAudioTimestamp()) {
+ if (getAudioTimestamp() != other.getAudioTimestamp()) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3959,6 +4004,10 @@ public int hashCode() {
hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRoutingConfig().hashCode();
}
+ if (hasAudioTimestamp()) {
+ hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp());
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -4130,6 +4179,7 @@ public Builder clear() {
routingConfigBuilder_.dispose();
routingConfigBuilder_ = null;
}
+ audioTimestamp_ = false;
return this;
}
@@ -4224,6 +4274,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig
routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build();
to_bitField0_ |= 0x00000800;
}
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.audioTimestamp_ = audioTimestamp_;
+ to_bitField0_ |= 0x00001000;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -4324,6 +4378,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot
if (other.hasRoutingConfig()) {
mergeRoutingConfig(other.getRoutingConfig());
}
+ if (other.hasAudioTimestamp()) {
+ setAudioTimestamp(other.getAudioTimestamp());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -4435,6 +4492,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 144
+ case 160:
+ {
+ audioTimestamp_ = input.readBool();
+ bitField0_ |= 0x00004000;
+ break;
+ } // case 160
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5915,6 +5978,78 @@ public Builder clearRoutingConfig() {
return routingConfigBuilder_;
}
+ private boolean audioTimestamp_;
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The audioTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudioTimestamp(boolean value) {
+
+ audioTimestamp_ = value;
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudioTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ audioTimestamp_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
index 03594a4b9b5f..d0ca0215e1ac 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java
@@ -462,4 +462,31 @@ public interface GenerationConfigOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfigOrBuilder
getRoutingConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ boolean hasAudioTimestamp();
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamp will be included in the request to
+ * the model.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ boolean getAudioTimestamp();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
index 14b5c8fcbbcc..506099c80c59 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
@@ -1085,6 +1085,43 @@ public interface RetrievedContextOrBuilder
* @return The bytes for title.
*/
com.google.protobuf.ByteString getTitleBytes();
+
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ boolean hasText();
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The text.
+ */
+ java.lang.String getText();
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ com.google.protobuf.ByteString getTextBytes();
}
/**
*
@@ -1108,6 +1145,7 @@ private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder> build
private RetrievedContext() {
uri_ = "";
title_ = "";
+ text_ = "";
}
@java.lang.Override
@@ -1264,6 +1302,72 @@ public com.google.protobuf.ByteString getTitleBytes() {
}
}
+ public static final int TEXT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ @java.lang.Override
+ public boolean hasText() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The text.
+ */
+ @java.lang.Override
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1284,6 +1388,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1299,6 +1406,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1323,6 +1433,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasTitle()) {
if (!getTitle().equals(other.getTitle())) return false;
}
+ if (hasText() != other.hasText()) return false;
+ if (hasText()) {
+ if (!getText().equals(other.getText())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1342,6 +1456,10 @@ public int hashCode() {
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
}
+ if (hasText()) {
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1488,6 +1606,7 @@ public Builder clear() {
bitField0_ = 0;
uri_ = "";
title_ = "";
+ text_ = "";
return this;
}
@@ -1536,6 +1655,10 @@ private void buildPartial0(
result.title_ = title_;
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.text_ = text_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1600,6 +1723,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasText()) {
+ text_ = other.text_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1638,6 +1766,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ text_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1897,6 +2031,126 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object text_ = "";
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return Whether the text field is set.
+ */
+ public boolean hasText() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The text.
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return The bytes for text.
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @param value The text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ text_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearText() {
+ text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Text of the attribution.
+ *
+ *
+ * optional string text = 3;
+ *
+ * @param value The bytes for text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ text_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java
index a7f0f71955a2..c3600bf21640 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java
@@ -40,6 +40,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -142,7 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "line_spec.proto\032+google/cloud/aiplatform"
+ "/v1beta1/value.proto\032\034google/protobuf/st"
+ "ruct.proto\032\037google/protobuf/timestamp.pr"
- + "oto\032\027google/rpc/status.proto\"\313\021\n\013Pipelin"
+ + "oto\032\027google/rpc/status.proto\"\240\027\n\013Pipelin"
+ "eJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030"
+ "\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.google.prot"
+ "obuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132"
@@ -175,7 +183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "al_pipeline_job_id\030\035 \001(\003B\003\340A\001\022b\n\033pipelin"
+ "e_task_rerun_configs\030\036 \003(\01328.google.clou"
+ "d.aiplatform.v1beta1.PipelineTaskRerunCo"
- + "nfigB\003\340A\001\032\226\006\n\rRuntimeConfig\022b\n\nparameter"
+ + "nfigB\003\340A\001\032\353\013\n\rRuntimeConfig\022b\n\nparameter"
+ "s\030\001 \003(\0132J.google.cloud.aiplatform.v1beta"
+ "1.PipelineJob.RuntimeConfig.ParametersEn"
+ "tryB\002\030\001\022!\n\024gcs_output_directory\030\002 \001(\tB\003\340"
@@ -186,106 +194,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "v1beta1.PipelineFailurePolicy\022g\n\017input_a"
+ "rtifacts\030\005 \003(\0132N.google.cloud.aiplatform"
+ ".v1beta1.PipelineJob.RuntimeConfig.Input"
- + "ArtifactsEntry\032.\n\rInputArtifact\022\025\n\013artif"
- + "act_id\030\001 \001(\tH\000B\006\n\004kind\032Y\n\017ParametersEntr"
- + "y\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.c"
- + "loud.aiplatform.v1beta1.Value:\0028\001\032N\n\024Par"
- + "ameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030"
- + "\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177\n\023Inp"
- + "utArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005value\030\002"
- + " \001(\0132H.google.cloud.aiplatform.v1beta1.P"
- + "ipelineJob.RuntimeConfig.InputArtifact:\002"
- + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
- + "\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleapis.co"
- + "m/PipelineJob\022Cprojects/{project}/locati"
- + "ons/{location}/pipelineJobs/{pipeline_jo"
- + "b}\"+\n\030PipelineTemplateMetadata\022\017\n\007versio"
- + "n\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pipelin"
- + "e_context\030\001 \001(\0132(.google.cloud.aiplatfor"
- + "m.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_run_c"
- + "ontext\030\002 \001(\0132(.google.cloud.aiplatform.v"
- + "1beta1.ContextB\003\340A\003\022N\n\014task_details\030\003 \003("
- + "\01323.google.cloud.aiplatform.v1beta1.Pipe"
- + "lineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTaskDeta"
- + "il\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_"
- + "id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n"
- + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim"
- + "estampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google"
- + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y\n\017e"
- + "xecutor_detail\030\006 \001(\0132;.google.cloud.aipl"
- + "atform.v1beta1.PipelineTaskExecutorDetai"
- + "lB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cloud.aip"
- + "latform.v1beta1.PipelineTaskDetail.State"
- + "B\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.cloud."
- + "aiplatform.v1beta1.ExecutionB\003\340A\003\022&\n\005err"
- + "or\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i\n\024pip"
- + "eline_task_status\030\r \003(\0132F.google.cloud.a"
- + "iplatform.v1beta1.PipelineTaskDetail.Pip"
- + "elineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(\0132?.g"
- + "oogle.cloud.aiplatform.v1beta1.PipelineT"
- + "askDetail.InputsEntryB\003\340A\003\022V\n\007outputs\030\013 "
- + "\003(\0132@.google.cloud.aiplatform.v1beta1.Pi"
- + "pelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001\n\022P"
- + "ipelineTaskStatus\0224\n\013update_time\030\001 \001(\0132\032"
- + ".google.protobuf.TimestampB\003\340A\003\022M\n\005state"
- + "\030\002 \001(\01629.google.cloud.aiplatform.v1beta1"
- + ".PipelineTaskDetail.StateB\003\340A\003\022&\n\005error\030"
- + "\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014Artifa"
- + "ctList\022A\n\tartifacts\030\001 \003(\0132).google.cloud"
- + ".aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n\013Inp"
- + "utsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.g"
- + "oogle.cloud.aiplatform.v1beta1.PipelineT"
- + "askDetail.ArtifactList:\0028\001\032p\n\014OutputsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.google."
- + "cloud.aiplatform.v1beta1.PipelineTaskDet"
- + "ail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_"
- + "UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022"
- + "\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCA"
- + "NCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n"
- + "\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032Pipeli"
- + "neTaskExecutorDetail\022l\n\020container_detail"
- + "\030\001 \001(\0132K.google.cloud.aiplatform.v1beta1"
- + ".PipelineTaskExecutorDetail.ContainerDet"
- + "ailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001(\0132K."
- + "google.cloud.aiplatform.v1beta1.Pipeline"
- + "TaskExecutorDetail.CustomJobDetailB\003\340A\003H"
- + "\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001 \001(\tB"
- + "+\340A\003\372A%\n#aiplatform.googleapis.com/Custo"
- + "mJob\022J\n\025pre_caching_check_job\030\002 \001(\tB+\340A\003"
- + "\372A%\n#aiplatform.googleapis.com/CustomJob"
- + "\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035faile"
- + "d_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003\032e\n\017C"
- + "ustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aip"
- + "latform.googleapis.com/CustomJob\022\030\n\013fail"
- + "ed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007details\"\344\005\n\027Pipeli"
- + "neTaskRerunConfig\022\024\n\007task_id\030\001 \001(\003B\003\340A\001\022"
- + "\026\n\ttask_name\030\002 \001(\tB\003\340A\001\022T\n\006inputs\030\003 \001(\0132"
- + "?.google.cloud.aiplatform.v1beta1.Pipeli"
- + "neTaskRerunConfig.InputsB\003\340A\001\022\026\n\tskip_ta"
- + "sk\030\004 \001(\010B\003\340A\001\022\"\n\025skip_downstream_tasks\030\005"
- + " \001(\010B\003\340A\001\032X\n\014ArtifactList\022H\n\tartifacts\030\001"
- + " \003(\01320.google.cloud.aiplatform.v1beta1.R"
- + "untimeArtifactB\003\340A\001\032\256\003\n\006Inputs\022f\n\tartifa"
- + "cts\030\001 \003(\0132N.google.cloud.aiplatform.v1be"
- + "ta1.PipelineTaskRerunConfig.Inputs.Artif"
- + "actsEntryB\003\340A\001\022s\n\020parameter_values\030\002 \003(\013"
- + "2T.google.cloud.aiplatform.v1beta1.Pipel"
- + "ineTaskRerunConfig.Inputs.ParameterValue"
- + "sEntryB\003\340A\001\032w\n\016ArtifactsEntry\022\013\n\003key\030\001 \001"
- + "(\t\022T\n\005value\030\002 \001(\0132E.google.cloud.aiplatf"
- + "orm.v1beta1.PipelineTaskRerunConfig.Arti"
- + "factList:\0028\001\032N\n\024ParameterValuesEntry\022\013\n\003"
- + "key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protob"
- + "uf.Value:\0028\001B\260\002\n#com.google.cloud.aiplat"
- + "form.v1beta1B\010PipelineP\001ZCcloud.google.c"
- + "om/go/aiplatform/apiv1beta1/aiplatformpb"
- + ";aiplatformpb\252\002\037Google.Cloud.AIPlatform."
- + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta"
- + "1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A"
- + "N\n\036compute.googleapis.com/Network\022,proje"
- + "cts/{project}/global/networks/{network}b"
- + "\006proto3"
+ + "ArtifactsEntry\022g\n\017default_runtime\030\006 \001(\0132"
+ + "I.google.cloud.aiplatform.v1beta1.Pipeli"
+ + "neJob.RuntimeConfig.DefaultRuntimeB\003\340A\001\032"
+ + ".\n\rInputArtifact\022\025\n\013artifact_id\030\001 \001(\tH\000B"
+ + "\006\n\004kind\032\271\003\n\037PersistentResourceRuntimeDet"
+ + "ail\022 \n\030persistent_resource_name\030\001 \001(\t\022.\n"
+ + "&task_resource_unavailable_wait_time_ms\030"
+ + "\002 \001(\003\022\266\001\n*task_resource_unavailable_time"
+ + "out_behavior\030\003 \001(\0162\201\001.google.cloud.aipla"
+ + "tform.v1beta1.PipelineJob.RuntimeConfig."
+ + "PersistentResourceRuntimeDetail.TaskReso"
+ + "urceUnavailableTimeoutBehavior\"\212\001\n&TaskR"
+ + "esourceUnavailableTimeoutBehavior\022:\n6TAS"
+ + "K_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_"
+ + "UNSPECIFIED\020\000\022\010\n\004FAIL\020\001\022\032\n\026FALL_BACK_TO_"
+ + "ON_DEMAND\020\002\032\255\001\n\016DefaultRuntime\022\210\001\n\"persi"
+ + "stent_resource_runtime_detail\030\001 \001(\0132Z.go"
+ + "ogle.cloud.aiplatform.v1beta1.PipelineJo"
+ + "b.RuntimeConfig.PersistentResourceRuntim"
+ + "eDetailH\000B\020\n\016runtime_detail\032Y\n\017Parameter"
+ + "sEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.goo"
+ + "gle.cloud.aiplatform.v1beta1.Value:\0028\001\032N"
+ + "\n\024ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005v"
+ + "alue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177"
+ + "\n\023InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005va"
+ + "lue\030\002 \001(\0132H.google.cloud.aiplatform.v1be"
+ + "ta1.PipelineJob.RuntimeConfig.InputArtif"
+ + "act:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+ + "alue\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleap"
+ + "is.com/PipelineJob\022Cprojects/{project}/l"
+ + "ocations/{location}/pipelineJobs/{pipeli"
+ + "ne_job}\"+\n\030PipelineTemplateMetadata\022\017\n\007v"
+ + "ersion\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pi"
+ + "peline_context\030\001 \001(\0132(.google.cloud.aipl"
+ + "atform.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_"
+ + "run_context\030\002 \001(\0132(.google.cloud.aiplatf"
+ + "orm.v1beta1.ContextB\003\340A\003\022N\n\014task_details"
+ + "\030\003 \003(\01323.google.cloud.aiplatform.v1beta1"
+ + ".PipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTas"
+ + "kDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_"
+ + "task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340"
+ + "A\003\0224\n\013create_time\030\003 \001(\0132\032.google.protobu"
+ + "f.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.g"
+ + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim"
+ + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+ + "\022Y\n\017executor_detail\030\006 \001(\0132;.google.cloud"
+ + ".aiplatform.v1beta1.PipelineTaskExecutor"
+ + "DetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.clou"
+ + "d.aiplatform.v1beta1.PipelineTaskDetail."
+ + "StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.c"
+ + "loud.aiplatform.v1beta1.ExecutionB\003\340A\003\022&"
+ + "\n\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i"
+ + "\n\024pipeline_task_status\030\r \003(\0132F.google.cl"
+ + "oud.aiplatform.v1beta1.PipelineTaskDetai"
+ + "l.PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003("
+ + "\0132?.google.cloud.aiplatform.v1beta1.Pipe"
+ + "lineTaskDetail.InputsEntryB\003\340A\003\022V\n\007outpu"
+ + "ts\030\013 \003(\0132@.google.cloud.aiplatform.v1bet"
+ + "a1.PipelineTaskDetail.OutputsEntryB\003\340A\003\032"
+ + "\301\001\n\022PipelineTaskStatus\0224\n\013update_time\030\001 "
+ + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\005"
+ + "state\030\002 \001(\01629.google.cloud.aiplatform.v1"
+ + "beta1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005e"
+ + "rror\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014A"
+ + "rtifactList\022A\n\tartifacts\030\001 \003(\0132).google."
+ + "cloud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o"
+ + "\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001("
+ + "\0132@.google.cloud.aiplatform.v1beta1.Pipe"
+ + "lineTaskDetail.ArtifactList:\0028\001\032p\n\014Outpu"
+ + "tsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.go"
+ + "ogle.cloud.aiplatform.v1beta1.PipelineTa"
+ + "skDetail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021S"
+ + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNI"
+ + "NG\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022"
+ + "\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED"
+ + "\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032P"
+ + "ipelineTaskExecutorDetail\022l\n\020container_d"
+ + "etail\030\001 \001(\0132K.google.cloud.aiplatform.v1"
+ + "beta1.PipelineTaskExecutorDetail.Contain"
+ + "erDetailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001"
+ + "(\0132K.google.cloud.aiplatform.v1beta1.Pip"
+ + "elineTaskExecutorDetail.CustomJobDetailB"
+ + "\003\340A\003H\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001"
+ + " \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/"
+ + "CustomJob\022J\n\025pre_caching_check_job\030\002 \001(\t"
+ + "B+\340A\003\372A%\n#aiplatform.googleapis.com/Cust"
+ + "omJob\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035"
+ + "failed_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003"
+ + "\032e\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%"
+ + "\n#aiplatform.googleapis.com/CustomJob\022\030\n"
+ + "\013failed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007details\"\344\005\n\027P"
+ + "ipelineTaskRerunConfig\022\024\n\007task_id\030\001 \001(\003B"
+ + "\003\340A\001\022\026\n\ttask_name\030\002 \001(\tB\003\340A\001\022T\n\006inputs\030\003"
+ + " \001(\0132?.google.cloud.aiplatform.v1beta1.P"
+ + "ipelineTaskRerunConfig.InputsB\003\340A\001\022\026\n\tsk"
+ + "ip_task\030\004 \001(\010B\003\340A\001\022\"\n\025skip_downstream_ta"
+ + "sks\030\005 \001(\010B\003\340A\001\032X\n\014ArtifactList\022H\n\tartifa"
+ + "cts\030\001 \003(\01320.google.cloud.aiplatform.v1be"
+ + "ta1.RuntimeArtifactB\003\340A\001\032\256\003\n\006Inputs\022f\n\ta"
+ + "rtifacts\030\001 \003(\0132N.google.cloud.aiplatform"
+ + ".v1beta1.PipelineTaskRerunConfig.Inputs."
+ + "ArtifactsEntryB\003\340A\001\022s\n\020parameter_values\030"
+ + "\002 \003(\0132T.google.cloud.aiplatform.v1beta1."
+ + "PipelineTaskRerunConfig.Inputs.Parameter"
+ + "ValuesEntryB\003\340A\001\032w\n\016ArtifactsEntry\022\013\n\003ke"
+ + "y\030\001 \001(\t\022T\n\005value\030\002 \001(\0132E.google.cloud.ai"
+ + "platform.v1beta1.PipelineTaskRerunConfig"
+ + ".ArtifactList:\0028\001\032N\n\024ParameterValuesEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p"
+ + "rotobuf.Value:\0028\001B\260\002\n#com.google.cloud.a"
+ + "iplatform.v1beta1B\010PipelineP\001ZCcloud.goo"
+ + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
+ + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
+ + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
+ + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be"
+ + "ta1\352AN\n\036compute.googleapis.com/Network\022,"
+ + "projects/{project}/global/networks/{netw"
+ + "ork}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -351,6 +377,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ParameterValues",
"FailurePolicy",
"InputArtifacts",
+ "DefaultRuntime",
});
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifact_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
@@ -362,10 +389,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"ArtifactId", "Kind",
});
- internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
.getNestedTypes()
.get(1);
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor,
+ new java.lang.String[] {
+ "PersistentResourceName",
+ "TaskResourceUnavailableWaitTimeMs",
+ "TaskResourceUnavailableTimeoutBehavior",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor,
+ new java.lang.String[] {
+ "PersistentResourceRuntimeDetail", "RuntimeDetail",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
+ .getNestedTypes()
+ .get(3);
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor,
@@ -375,7 +424,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
.getNestedTypes()
- .get(2);
+ .get(4);
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParameterValuesEntry_descriptor,
@@ -385,7 +434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor
.getNestedTypes()
- .get(3);
+ .get(5);
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_InputArtifactsEntry_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
index d392b2412aac..793be1c65a84 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
@@ -436,6 +436,58 @@ com.google.protobuf.Value getParameterValuesOrDefault(
*/
com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact
getInputArtifactsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the defaultRuntime field is set.
+ */
+ boolean hasDefaultRuntime();
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The defaultRuntime.
+ */
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ getDefaultRuntime();
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder
+ getDefaultRuntimeOrBuilder();
}
/**
*
@@ -1216,84 +1268,2312 @@ public com.google.protobuf.ByteString getArtifactIdBytes() {
if (kindCase_ == 1) {
kind_ = b;
}
- return b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Artifact resource id from MLMD. Which is the last portion of an
+ * artifact resource name:
+ * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+ * The artifact must stay within the same project, location and default
+ * metadatastore as the pipeline.
+ *
+ *
+ * string artifact_id = 1;
+ *
+ * @param value The artifactId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kindCase_ = 1;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Artifact resource id from MLMD. Which is the last portion of an
+ * artifact resource name:
+ * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+ * The artifact must stay within the same project, location and default
+ * metadatastore as the pipeline.
+ *
+ *
+ * string artifact_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArtifactId() {
+ if (kindCase_ == 1) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Artifact resource id from MLMD. Which is the last portion of an
+ * artifact resource name:
+ * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
+ * The artifact must stay within the same project, location and default
+ * metadatastore as the pipeline.
+ *
+ *
+ * string artifact_id = 1;
+ *
+ * @param value The bytes for artifactId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ kindCase_ = 1;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact)
+ private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .InputArtifact
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public InputArtifact parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface PersistentResourceRuntimeDetailOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The persistentResourceName.
+ */
+ java.lang.String getPersistentResourceName();
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The bytes for persistentResourceName.
+ */
+ com.google.protobuf.ByteString getPersistentResourceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The max time a pipeline task waits for the required CPU, memory, or
+ * accelerator resource to become available from the specified persistent
+ * resource. Default wait time is 0.
+ *
+ *
+ * int64 task_resource_unavailable_wait_time_ms = 2;
+ *
+ * @return The taskResourceUnavailableWaitTimeMs.
+ */
+ long getTaskResourceUnavailableWaitTimeMs();
+
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior.
+ */
+ int getTaskResourceUnavailableTimeoutBehaviorValue();
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The taskResourceUnavailableTimeoutBehavior.
+ */
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail
+ .TaskResourceUnavailableTimeoutBehavior
+ getTaskResourceUnavailableTimeoutBehavior();
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail. For more information, refer to
+ * https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail}
+ */
+ public static final class PersistentResourceRuntimeDetail
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail)
+ PersistentResourceRuntimeDetailOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PersistentResourceRuntimeDetail.newBuilder() to construct.
+ private PersistentResourceRuntimeDetail(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PersistentResourceRuntimeDetail() {
+ persistentResourceName_ = "";
+ taskResourceUnavailableTimeoutBehavior_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PersistentResourceRuntimeDetail();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.class,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * An enum that specifies the behavior to take if the timeout is reached.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior}
+ */
+ public enum TaskResourceUnavailableTimeoutBehavior
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified. Behavior is same as `FAIL`.
+ *
+ *
+ * TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0;
+ */
+ TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Fail the task if the timeout is reached.
+ *
+ *
+ * FAIL = 1;
+ */
+ FAIL(1),
+ /**
+ *
+ *
+ *
+ * Fall back to on-demand execution if the timeout is reached.
+ *
+ *
+ * FALL_BACK_TO_ON_DEMAND = 2;
+ */
+ FALL_BACK_TO_ON_DEMAND(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified. Behavior is same as `FAIL`.
+ *
+ *
+ * TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0;
+ */
+ public static final int TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Fail the task if the timeout is reached.
+ *
+ *
+ * FAIL = 1;
+ */
+ public static final int FAIL_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Fall back to on-demand execution if the timeout is reached.
+ *
+ *
+ * FALL_BACK_TO_ON_DEMAND = 2;
+ */
+ public static final int FALL_BACK_TO_ON_DEMAND_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TaskResourceUnavailableTimeoutBehavior valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TaskResourceUnavailableTimeoutBehavior forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED;
+ case 1:
+ return FAIL;
+ case 2:
+ return FALL_BACK_TO_ON_DEMAND;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<
+ TaskResourceUnavailableTimeoutBehavior>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ TaskResourceUnavailableTimeoutBehavior>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<
+ TaskResourceUnavailableTimeoutBehavior>() {
+ public TaskResourceUnavailableTimeoutBehavior findValueByNumber(int number) {
+ return TaskResourceUnavailableTimeoutBehavior.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final TaskResourceUnavailableTimeoutBehavior[] VALUES = values();
+
+ public static TaskResourceUnavailableTimeoutBehavior valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private TaskResourceUnavailableTimeoutBehavior(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior)
+ }
+
+ public static final int PERSISTENT_RESOURCE_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object persistentResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The persistentResourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getPersistentResourceName() {
+ java.lang.Object ref = persistentResourceName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ persistentResourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The bytes for persistentResourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPersistentResourceNameBytes() {
+ java.lang.Object ref = persistentResourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ persistentResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TASK_RESOURCE_UNAVAILABLE_WAIT_TIME_MS_FIELD_NUMBER = 2;
+ private long taskResourceUnavailableWaitTimeMs_ = 0L;
+ /**
+ *
+ *
+ *
+ * The max time a pipeline task waits for the required CPU, memory, or
+ * accelerator resource to become available from the specified persistent
+ * resource. Default wait time is 0.
+ *
+ *
+ * int64 task_resource_unavailable_wait_time_ms = 2;
+ *
+ * @return The taskResourceUnavailableWaitTimeMs.
+ */
+ @java.lang.Override
+ public long getTaskResourceUnavailableWaitTimeMs() {
+ return taskResourceUnavailableWaitTimeMs_;
+ }
+
+ public static final int TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER = 3;
+ private int taskResourceUnavailableTimeoutBehavior_ = 0;
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior.
+ */
+ @java.lang.Override
+ public int getTaskResourceUnavailableTimeoutBehaviorValue() {
+ return taskResourceUnavailableTimeoutBehavior_;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The taskResourceUnavailableTimeoutBehavior.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ getTaskResourceUnavailableTimeoutBehavior() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ result =
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ .forNumber(taskResourceUnavailableTimeoutBehavior_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistentResourceName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, persistentResourceName_);
+ }
+ if (taskResourceUnavailableWaitTimeMs_ != 0L) {
+ output.writeInt64(2, taskResourceUnavailableWaitTimeMs_);
+ }
+ if (taskResourceUnavailableTimeoutBehavior_
+ != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ .TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(3, taskResourceUnavailableTimeoutBehavior_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(persistentResourceName_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(1, persistentResourceName_);
+ }
+ if (taskResourceUnavailableWaitTimeMs_ != 0L) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 2, taskResourceUnavailableWaitTimeMs_);
+ }
+ if (taskResourceUnavailableTimeoutBehavior_
+ != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ .TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED
+ .getNumber()) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(
+ 3, taskResourceUnavailableTimeoutBehavior_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ other =
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ obj;
+
+ if (!getPersistentResourceName().equals(other.getPersistentResourceName())) return false;
+ if (getTaskResourceUnavailableWaitTimeMs() != other.getTaskResourceUnavailableWaitTimeMs())
+ return false;
+ if (taskResourceUnavailableTimeoutBehavior_
+ != other.taskResourceUnavailableTimeoutBehavior_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PERSISTENT_RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPersistentResourceName().hashCode();
+ hash = (37 * hash) + TASK_RESOURCE_UNAVAILABLE_WAIT_TIME_MS_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(getTaskResourceUnavailableWaitTimeMs());
+ hash = (37 * hash) + TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_FIELD_NUMBER;
+ hash = (53 * hash) + taskResourceUnavailableTimeoutBehavior_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail. For more information, refer to
+ * https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail)
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.class,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ persistentResourceName_ = "";
+ taskResourceUnavailableWaitTimeMs_ = 0L;
+ taskResourceUnavailableTimeoutBehavior_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_PersistentResourceRuntimeDetail_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ build() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ result =
+ new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.persistentResourceName_ = persistentResourceName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.taskResourceUnavailableWaitTimeMs_ = taskResourceUnavailableWaitTimeMs_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.taskResourceUnavailableTimeoutBehavior_ =
+ taskResourceUnavailableTimeoutBehavior_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance()) return this;
+ if (!other.getPersistentResourceName().isEmpty()) {
+ persistentResourceName_ = other.persistentResourceName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getTaskResourceUnavailableWaitTimeMs() != 0L) {
+ setTaskResourceUnavailableWaitTimeMs(other.getTaskResourceUnavailableWaitTimeMs());
+ }
+ if (other.taskResourceUnavailableTimeoutBehavior_ != 0) {
+ setTaskResourceUnavailableTimeoutBehaviorValue(
+ other.getTaskResourceUnavailableTimeoutBehaviorValue());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ persistentResourceName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16:
+ {
+ taskResourceUnavailableWaitTimeMs_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24:
+ {
+ taskResourceUnavailableTimeoutBehavior_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object persistentResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The persistentResourceName.
+ */
+ public java.lang.String getPersistentResourceName() {
+ java.lang.Object ref = persistentResourceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ persistentResourceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return The bytes for persistentResourceName.
+ */
+ public com.google.protobuf.ByteString getPersistentResourceNameBytes() {
+ java.lang.Object ref = persistentResourceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ persistentResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @param value The persistentResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersistentResourceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ persistentResourceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPersistentResourceName() {
+ persistentResourceName_ = getDefaultInstance().getPersistentResourceName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ *
+ *
+ * string persistent_resource_name = 1;
+ *
+ * @param value The bytes for persistentResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersistentResourceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ persistentResourceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private long taskResourceUnavailableWaitTimeMs_;
+ /**
+ *
+ *
+ *
+ * The max time a pipeline task waits for the required CPU, memory, or
+ * accelerator resource to become available from the specified persistent
+ * resource. Default wait time is 0.
+ *
+ *
+ * int64 task_resource_unavailable_wait_time_ms = 2;
+ *
+ * @return The taskResourceUnavailableWaitTimeMs.
+ */
+ @java.lang.Override
+ public long getTaskResourceUnavailableWaitTimeMs() {
+ return taskResourceUnavailableWaitTimeMs_;
+ }
+ /**
+ *
+ *
+ *
+ * The max time a pipeline task waits for the required CPU, memory, or
+ * accelerator resource to become available from the specified persistent
+ * resource. Default wait time is 0.
+ *
+ *
+ * int64 task_resource_unavailable_wait_time_ms = 2;
+ *
+ * @param value The taskResourceUnavailableWaitTimeMs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTaskResourceUnavailableWaitTimeMs(long value) {
+
+ taskResourceUnavailableWaitTimeMs_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The max time a pipeline task waits for the required CPU, memory, or
+ * accelerator resource to become available from the specified persistent
+ * resource. Default wait time is 0.
+ *
+ *
+ * int64 task_resource_unavailable_wait_time_ms = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTaskResourceUnavailableWaitTimeMs() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ taskResourceUnavailableWaitTimeMs_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int taskResourceUnavailableTimeoutBehavior_ = 0;
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for taskResourceUnavailableTimeoutBehavior.
+ */
+ @java.lang.Override
+ public int getTaskResourceUnavailableTimeoutBehaviorValue() {
+ return taskResourceUnavailableTimeoutBehavior_;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @param value The enum numeric value on the wire for
+ * taskResourceUnavailableTimeoutBehavior to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTaskResourceUnavailableTimeoutBehaviorValue(int value) {
+ taskResourceUnavailableTimeoutBehavior_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return The taskResourceUnavailableTimeoutBehavior.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ getTaskResourceUnavailableTimeoutBehavior() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ result =
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ .forNumber(taskResourceUnavailableTimeoutBehavior_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ .UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @param value The taskResourceUnavailableTimeoutBehavior to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTaskResourceUnavailableTimeoutBehavior(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ taskResourceUnavailableTimeoutBehavior_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the behavior to take if the timeout is reached.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail.TaskResourceUnavailableTimeoutBehavior task_resource_unavailable_timeout_behavior = 3;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTaskResourceUnavailableTimeoutBehavior() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ taskResourceUnavailableTimeoutBehavior_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail)
+ private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PersistentResourceRuntimeDetail parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface DefaultRuntimeOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return Whether the persistentResourceRuntimeDetail field is set.
+ */
+ boolean hasPersistentResourceRuntimeDetail();
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return The persistentResourceRuntimeDetail.
+ */
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail
+ getPersistentResourceRuntimeDetail();
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder
+ getPersistentResourceRuntimeDetailOrBuilder();
+
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.RuntimeDetailCase
+ getRuntimeDetailCase();
+ }
+ /**
+ *
+ *
+ *
+ * The default runtime for the PipelineJob.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime}
+ */
+ public static final class DefaultRuntime extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
+ DefaultRuntimeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DefaultRuntime.newBuilder() to construct.
+ private DefaultRuntime(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DefaultRuntime() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DefaultRuntime();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.class,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder
+ .class);
+ }
+
+ private int runtimeDetailCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object runtimeDetail_;
+
+ public enum RuntimeDetailCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ PERSISTENT_RESOURCE_RUNTIME_DETAIL(1),
+ RUNTIMEDETAIL_NOT_SET(0);
+ private final int value;
+
+ private RuntimeDetailCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static RuntimeDetailCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RuntimeDetailCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return PERSISTENT_RESOURCE_RUNTIME_DETAIL;
+ case 0:
+ return RUNTIMEDETAIL_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public RuntimeDetailCase getRuntimeDetailCase() {
+ return RuntimeDetailCase.forNumber(runtimeDetailCase_);
+ }
+
+ public static final int PERSISTENT_RESOURCE_RUNTIME_DETAIL_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return Whether the persistentResourceRuntimeDetail field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersistentResourceRuntimeDetail() {
+ return runtimeDetailCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return The persistentResourceRuntimeDetail.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ getPersistentResourceRuntimeDetail() {
+ if (runtimeDetailCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder
+ getPersistentResourceRuntimeDetailOrBuilder() {
+ if (runtimeDetailCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (runtimeDetailCase_ == 1) {
+ output.writeMessage(
+ 1,
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (runtimeDetailCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1,
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime other =
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) obj;
+
+ if (!getRuntimeDetailCase().equals(other.getRuntimeDetailCase())) return false;
+ switch (runtimeDetailCase_) {
+ case 1:
+ if (!getPersistentResourceRuntimeDetail()
+ .equals(other.getPersistentResourceRuntimeDetail())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (runtimeDetailCase_) {
+ case 1:
+ hash = (37 * hash) + PERSISTENT_RESOURCE_RUNTIME_DETAIL_FIELD_NUMBER;
+ hash = (53 * hash) + getPersistentResourceRuntimeDetail().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The default runtime for the PipelineJob.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .class,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (persistentResourceRuntimeDetailBuilder_ != null) {
+ persistentResourceRuntimeDetailBuilder_.clear();
+ }
+ runtimeDetailCase_ = 0;
+ runtimeDetail_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.Pipeline
+ .internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_DefaultRuntime_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ build() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result =
+ new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime result) {
+ result.runtimeDetailCase_ = runtimeDetailCase_;
+ result.runtimeDetail_ = this.runtimeDetail_;
+ if (runtimeDetailCase_ == 1 && persistentResourceRuntimeDetailBuilder_ != null) {
+ result.runtimeDetail_ = persistentResourceRuntimeDetailBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()) return this;
+ switch (other.getRuntimeDetailCase()) {
+ case PERSISTENT_RESOURCE_RUNTIME_DETAIL:
+ {
+ mergePersistentResourceRuntimeDetail(other.getPersistentResourceRuntimeDetail());
+ break;
+ }
+ case RUNTIMEDETAIL_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ getPersistentResourceRuntimeDetailFieldBuilder().getBuilder(),
+ extensionRegistry);
+ runtimeDetailCase_ = 1;
+ break;
+ } // case 10
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int runtimeDetailCase_ = 0;
+ private java.lang.Object runtimeDetail_;
+
+ public RuntimeDetailCase getRuntimeDetailCase() {
+ return RuntimeDetailCase.forNumber(runtimeDetailCase_);
+ }
+
+ public Builder clearRuntimeDetail() {
+ runtimeDetailCase_ = 0;
+ runtimeDetail_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder>
+ persistentResourceRuntimeDetailBuilder_;
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return Whether the persistentResourceRuntimeDetail field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersistentResourceRuntimeDetail() {
+ return runtimeDetailCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ *
+ * @return The persistentResourceRuntimeDetail.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ getPersistentResourceRuntimeDetail() {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ if (runtimeDetailCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ } else {
+ if (runtimeDetailCase_ == 1) {
+ return persistentResourceRuntimeDetailBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ public Builder setPersistentResourceRuntimeDetail(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ value) {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ runtimeDetail_ = value;
+ onChanged();
+ } else {
+ persistentResourceRuntimeDetailBuilder_.setMessage(value);
+ }
+ runtimeDetailCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ public Builder setPersistentResourceRuntimeDetail(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder
+ builderForValue) {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ runtimeDetail_ = builderForValue.build();
+ onChanged();
+ } else {
+ persistentResourceRuntimeDetailBuilder_.setMessage(builderForValue.build());
+ }
+ runtimeDetailCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ public Builder mergePersistentResourceRuntimeDetail(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail
+ value) {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ if (runtimeDetailCase_ == 1
+ && runtimeDetail_
+ != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance()) {
+ runtimeDetail_ =
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ runtimeDetail_ = value;
+ }
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ if (runtimeDetailCase_ == 1) {
+ persistentResourceRuntimeDetailBuilder_.mergeFrom(value);
+ } else {
+ persistentResourceRuntimeDetailBuilder_.setMessage(value);
+ }
}
+ runtimeDetailCase_ = 1;
+ return this;
}
/**
*
*
*
- * Artifact resource id from MLMD. Which is the last portion of an
- * artifact resource name:
- * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
- * The artifact must stay within the same project, location and default
- * metadatastore as the pipeline.
+ * Persistent resource based runtime detail.
*
*
- * string artifact_id = 1;
- *
- * @param value The artifactId to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
*/
- public Builder setArtifactId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearPersistentResourceRuntimeDetail() {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ if (runtimeDetailCase_ == 1) {
+ runtimeDetailCase_ = 0;
+ runtimeDetail_ = null;
+ onChanged();
+ }
+ } else {
+ if (runtimeDetailCase_ == 1) {
+ runtimeDetailCase_ = 0;
+ runtimeDetail_ = null;
+ }
+ persistentResourceRuntimeDetailBuilder_.clear();
}
- kindCase_ = 1;
- kind_ = value;
- onChanged();
return this;
}
/**
*
*
*
- * Artifact resource id from MLMD. Which is the last portion of an
- * artifact resource name:
- * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
- * The artifact must stay within the same project, location and default
- * metadatastore as the pipeline.
+ * Persistent resource based runtime detail.
*
*
- * string artifact_id = 1;
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder
+ getPersistentResourceRuntimeDetailBuilder() {
+ return getPersistentResourceRuntimeDetailFieldBuilder().getBuilder();
+ }
+ /**
*
- * @return This builder for chaining.
+ *
+ *
+ * Persistent resource based runtime detail.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
*/
- public Builder clearArtifactId() {
- if (kindCase_ == 1) {
- kindCase_ = 0;
- kind_ = null;
- onChanged();
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder
+ getPersistentResourceRuntimeDetailOrBuilder() {
+ if ((runtimeDetailCase_ == 1) && (persistentResourceRuntimeDetailBuilder_ != null)) {
+ return persistentResourceRuntimeDetailBuilder_.getMessageOrBuilder();
+ } else {
+ if (runtimeDetailCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
}
- return this;
}
/**
*
*
*
- * Artifact resource id from MLMD. Which is the last portion of an
- * artifact resource name:
- * `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`.
- * The artifact must stay within the same project, location and default
- * metadatastore as the pipeline.
+ * Persistent resource based runtime detail.
*
*
- * string artifact_id = 1;
- *
- * @param value The bytes for artifactId to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ *
*/
- public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder>
+ getPersistentResourceRuntimeDetailFieldBuilder() {
+ if (persistentResourceRuntimeDetailBuilder_ == null) {
+ if (!(runtimeDetailCase_ == 1)) {
+ runtimeDetail_ =
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.getDefaultInstance();
+ }
+ persistentResourceRuntimeDetailBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail.Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetailOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .PersistentResourceRuntimeDetail)
+ runtimeDetail_,
+ getParentForChildren(),
+ isClean());
+ runtimeDetail_ = null;
}
- checkByteStringIsUtf8(value);
- kindCase_ = 1;
- kind_ = value;
+ runtimeDetailCase_ = 1;
onChanged();
- return this;
+ return persistentResourceRuntimeDetailBuilder_;
}
@java.lang.Override
@@ -1308,28 +3588,28 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact)
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
}
- // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact)
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime)
private static final com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
- .InputArtifact
+ .DefaultRuntime
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
- new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact();
+ new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime();
}
- public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact
+ public static com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
@java.lang.Override
- public InputArtifact parsePartialFrom(
+ public DefaultRuntime parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1349,22 +3629,23 @@ public InputArtifact parsePartialFrom(
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
+ private int bitField0_;
public static final int PARAMETERS_FIELD_NUMBER = 1;
private static final class ParametersDefaultEntryHolder {
@@ -1907,6 +4188,76 @@ public boolean containsInputArtifacts(java.lang.String key) {
return map.get(key);
}
+ public static final int DEFAULT_RUNTIME_FIELD_NUMBER = 6;
+ private com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ defaultRuntime_;
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the defaultRuntime field is set.
+ */
+ @java.lang.Override
+ public boolean hasDefaultRuntime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The defaultRuntime.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ getDefaultRuntime() {
+ return defaultRuntime_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()
+ : defaultRuntime_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder
+ getDefaultRuntimeOrBuilder() {
+ return defaultRuntime_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()
+ : defaultRuntime_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1936,6 +4287,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetInputArtifacts(), InputArtifactsDefaultEntryHolder.defaultEntry, 5);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getDefaultRuntime());
+ }
getUnknownFields().writeTo(output);
}
@@ -1991,6 +4345,9 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputArtifacts__);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDefaultRuntime());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2012,6 +4369,10 @@ public boolean equals(final java.lang.Object obj) {
if (!internalGetParameterValues().equals(other.internalGetParameterValues())) return false;
if (failurePolicy_ != other.failurePolicy_) return false;
if (!internalGetInputArtifacts().equals(other.internalGetInputArtifacts())) return false;
+ if (hasDefaultRuntime() != other.hasDefaultRuntime()) return false;
+ if (hasDefaultRuntime()) {
+ if (!getDefaultRuntime().equals(other.getDefaultRuntime())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2039,6 +4400,10 @@ public int hashCode() {
hash = (37 * hash) + INPUT_ARTIFACTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetInputArtifacts().hashCode();
}
+ if (hasDefaultRuntime()) {
+ hash = (37 * hash) + DEFAULT_RUNTIME_FIELD_NUMBER;
+ hash = (53 * hash) + getDefaultRuntime().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2201,10 +4566,19 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
}
// Construct using com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDefaultRuntimeFieldBuilder();
+ }
}
@java.lang.Override
@@ -2216,6 +4590,11 @@ public Builder clear() {
internalGetMutableParameterValues().clear();
failurePolicy_ = 0;
internalGetMutableInputArtifacts().clear();
+ defaultRuntime_ = null;
+ if (defaultRuntimeBuilder_ != null) {
+ defaultRuntimeBuilder_.dispose();
+ defaultRuntimeBuilder_ = null;
+ }
return this;
}
@@ -2272,6 +4651,13 @@ private void buildPartial0(
result.inputArtifacts_ =
internalGetInputArtifacts().build(InputArtifactsDefaultEntryHolder.defaultEntry);
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.defaultRuntime_ =
+ defaultRuntimeBuilder_ == null ? defaultRuntime_ : defaultRuntimeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -2338,6 +4724,9 @@ public Builder mergeFrom(
}
internalGetMutableInputArtifacts().mergeFrom(other.internalGetInputArtifacts());
bitField0_ |= 0x00000010;
+ if (other.hasDefaultRuntime()) {
+ mergeDefaultRuntime(other.getDefaultRuntime());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2419,6 +4808,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50:
+ {
+ input.readMessage(
+ getDefaultRuntimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3589,6 +5985,250 @@ public Builder putAllInputArtifacts(
entry;
}
+ private com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ defaultRuntime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder>
+ defaultRuntimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the defaultRuntime field is set.
+ */
+ public boolean hasDefaultRuntime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The defaultRuntime.
+ */
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ getDefaultRuntime() {
+ if (defaultRuntimeBuilder_ == null) {
+ return defaultRuntime_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()
+ : defaultRuntime_;
+ } else {
+ return defaultRuntimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDefaultRuntime(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime value) {
+ if (defaultRuntimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ defaultRuntime_ = value;
+ } else {
+ defaultRuntimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDefaultRuntime(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder
+ builderForValue) {
+ if (defaultRuntimeBuilder_ == null) {
+ defaultRuntime_ = builderForValue.build();
+ } else {
+ defaultRuntimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeDefaultRuntime(
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime value) {
+ if (defaultRuntimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && defaultRuntime_ != null
+ && defaultRuntime_
+ != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()) {
+ getDefaultRuntimeBuilder().mergeFrom(value);
+ } else {
+ defaultRuntime_ = value;
+ }
+ } else {
+ defaultRuntimeBuilder_.mergeFrom(value);
+ }
+ if (defaultRuntime_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearDefaultRuntime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ defaultRuntime_ = null;
+ if (defaultRuntimeBuilder_ != null) {
+ defaultRuntimeBuilder_.dispose();
+ defaultRuntimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder
+ getDefaultRuntimeBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getDefaultRuntimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder
+ getDefaultRuntimeOrBuilder() {
+ if (defaultRuntimeBuilder_ != null) {
+ return defaultRuntimeBuilder_.getMessageOrBuilder();
+ } else {
+ return defaultRuntime_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .getDefaultInstance()
+ : defaultRuntime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The default runtime for the PipelineJob. If not provided,
+ * Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ * Job, please refer to
+ * https://cloud.google.com/vertex-ai/docs/training/overview.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime default_runtime = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime.Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntimeOrBuilder>
+ getDefaultRuntimeFieldBuilder() {
+ if (defaultRuntimeBuilder_ == null) {
+ defaultRuntimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.DefaultRuntime
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig
+ .DefaultRuntimeOrBuilder>(
+ getDefaultRuntime(), getParentForChildren(), isClean());
+ defaultRuntime_ = null;
+ }
+ return defaultRuntimeBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java
index 0f8a74c3641f..f5e2c770cbae 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadata.java
@@ -67,11 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. Score indicating how likely information from google search could
- * help answer the prompt. The score is in the range [0, 1], where 0 is the
+ * Optional. Score indicating how likely information from Google Search could
+ * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
@@ -435,11 +435,11 @@ public Builder mergeFrom(
*
*
*
- * Optional. Score indicating how likely information from google search could
- * help answer the prompt. The score is in the range [0, 1], where 0 is the
+ * Optional. Score indicating how likely information from Google Search could
+ * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
@@ -456,11 +456,11 @@ public float getGoogleSearchDynamicRetrievalScore() {
*
*
*
- * Optional. Score indicating how likely information from google search could
- * help answer the prompt. The score is in the range [0, 1], where 0 is the
+ * Optional. Score indicating how likely information from Google Search could
+ * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
@@ -481,11 +481,11 @@ public Builder setGoogleSearchDynamicRetrievalScore(float value) {
*
*
*
- * Optional. Score indicating how likely information from google search could
- * help answer the prompt. The score is in the range [0, 1], where 0 is the
+ * Optional. Score indicating how likely information from Google Search could
+ * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java
index 3c39b40232c1..ca9480f8adea 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalMetadataOrBuilder.java
@@ -28,11 +28,11 @@ public interface RetrievalMetadataOrBuilder
*
*
*
- * Optional. Score indicating how likely information from google search could
- * help answer the prompt. The score is in the range [0, 1], where 0 is the
+ * Optional. Score indicating how likely information from Google Search could
+ * help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
* least likely and 1 is the most likely. This score is only populated when
- * google search grounding and dynamic retrieval is enabled. It will be
- * compared to the threshold to determine whether to trigger google search.
+ * Google Search grounding and dynamic retrieval is enabled. It will be
+ * compared to the threshold to determine whether to trigger Google Search.
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java
index 7370ac12a710..3ce54f98df02 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java
@@ -358,7 +358,7 @@ public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec(
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -374,7 +374,7 @@ public boolean hasPartnerModelTuningSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -393,7 +393,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -2878,7 +2878,7 @@ public Builder clearDistillationSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -2894,7 +2894,7 @@ public boolean hasPartnerModelTuningSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -2920,7 +2920,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -2944,7 +2944,7 @@ public Builder setPartnerModelTuningSpec(
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -2965,7 +2965,7 @@ public Builder setPartnerModelTuningSpec(
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -3001,7 +3001,7 @@ public Builder mergePartnerModelTuningSpec(
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -3027,7 +3027,7 @@ public Builder clearPartnerModelTuningSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -3041,7 +3041,7 @@ public Builder clearPartnerModelTuningSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -3063,7 +3063,7 @@ public Builder clearPartnerModelTuningSpec() {
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java
index 01b4863d2dec..435879f5a7fc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java
@@ -136,7 +136,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -149,7 +149,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
@@ -162,7 +162,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Tuning Spec for open sourced and third party Partner models.
+ * Tuning Spec for open sourced and third party partner models.
*
*
* .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java
index f93cd352cd09..8b56594eadbc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearch.java
@@ -24,7 +24,7 @@
*
*
* Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAISearch}
@@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -97,7 +97,7 @@ public java.lang.String getDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -283,7 +283,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Retrieve from Vertex AI Search datastore for grounding.
- * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * See https://cloud.google.com/products/agent-builder
*
*
* Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAISearch}
@@ -467,7 +467,7 @@ public Builder mergeFrom(
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -491,7 +491,7 @@ public java.lang.String getDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -515,7 +515,7 @@ public com.google.protobuf.ByteString getDatastoreBytes() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -538,7 +538,7 @@ public Builder setDatastore(java.lang.String value) {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -557,7 +557,7 @@ public Builder clearDatastore() {
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java
index ff606f07f646..92ef8ee017f5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAISearchOrBuilder.java
@@ -28,7 +28,7 @@ public interface VertexAISearchOrBuilder
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
@@ -42,7 +42,7 @@ public interface VertexAISearchOrBuilder
*
*
*
- * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ * Required. Fully-qualified Vertex AI Search data store resource ID.
* Format:
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
index e170972e2b1c..757ca4cb526a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
@@ -236,6 +236,10 @@ message GenerationConfig {
// Optional. Routing configuration.
optional RoutingConfig routing_config = 17
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If enabled, audio timestamp will be included in the request to
+ // the model.
+ optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL];
}
// Safety settings.
@@ -512,6 +516,9 @@ message GroundingChunk {
// Title of the attribution.
optional string title = 2;
+
+ // Text of the attribution.
+ optional string text = 3;
}
// Chunk type.
@@ -582,11 +589,11 @@ message SearchEntryPoint {
// Metadata related to retrieval in the grounding flow.
message RetrievalMetadata {
- // Optional. Score indicating how likely information from google search could
- // help answer the prompt. The score is in the range [0, 1], where 0 is the
+ // Optional. Score indicating how likely information from Google Search could
+ // help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
// least likely and 1 is the most likely. This score is only populated when
- // google search grounding and dynamic retrieval is enabled. It will be
- // compared to the threshold to determine whether to trigger google search.
+ // Google Search grounding and dynamic retrieval is enabled. It will be
+ // compared to the threshold to determine whether to trigger Google Search.
float google_search_dynamic_retrieval_score = 2
[(google.api.field_behavior) = OPTIONAL];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto
index ac58e11302e1..c5d069b4d8e8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto
@@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1beta1/env_var.proto";
import "google/cloud/aiplatform/v1beta1/io.proto";
import "google/cloud/aiplatform/v1beta1/job_state.proto";
import "google/cloud/aiplatform/v1beta1/machine_resources.proto";
+import "google/cloud/aiplatform/v1beta1/service_networking.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
@@ -178,6 +179,10 @@ message CustomJobSpec {
repeated string reserved_ip_ranges = 13
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. Configuration for PSC-I for CustomJob.
+ PscInterfaceConfig psc_interface_config = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
// The Cloud Storage location to store the output of this CustomJob or
// HyperparameterTuningJob. For HyperparameterTuningJob,
// the baseOutputDirectory of
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto
index 42209c6e5f9a..310c0c8a6201 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto
@@ -64,6 +64,44 @@ message PipelineJob {
}
}
+ // Persistent resource based runtime detail. For more information, refer to
+ // https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
+ message PersistentResourceRuntimeDetail {
+ // An enum that specifies the behavior to take if the timeout is reached.
+ enum TaskResourceUnavailableTimeoutBehavior {
+ // Unspecified. Behavior is same as `FAIL`.
+ TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0;
+
+ // Fail the task if the timeout is reached.
+ FAIL = 1;
+
+ // Fall back to on-demand execution if the timeout is reached.
+ FALL_BACK_TO_ON_DEMAND = 2;
+ }
+
+ // Persistent resource name.
+ // Format:
+ // `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+ string persistent_resource_name = 1;
+
+ // The max time a pipeline task waits for the required CPU, memory, or
+ // accelerator resource to become available from the specified persistent
+ // resource. Default wait time is 0.
+ int64 task_resource_unavailable_wait_time_ms = 2;
+
+ // Specifies the behavior to take if the timeout is reached.
+ TaskResourceUnavailableTimeoutBehavior
+ task_resource_unavailable_timeout_behavior = 3;
+ }
+
+ // The default runtime for the PipelineJob.
+ message DefaultRuntime {
+ oneof runtime_detail {
+ // Persistent resource based runtime detail.
+ PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
+ }
+ }
+
// Deprecated. Use
// [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values]
// instead. The runtime parameters of the PipelineJob. The parameters will
@@ -103,6 +141,12 @@ message PipelineJob {
// The runtime artifacts of the PipelineJob. The key will be the input
// artifact name and the value would be one of the InputArtifact.
map input_artifacts = 5;
+
+ // Optional. The default runtime for the PipelineJob. If not provided,
+ // Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
+ // Job, please refer to
+ // https://cloud.google.com/vertex-ai/docs/training/overview.
+ DefaultRuntime default_runtime = 6 [(google.api.field_behavior) = OPTIONAL];
}
// Output only. The resource name of the PipelineJob.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto
index b88b75ce4ca8..0212389575ff 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto
@@ -224,9 +224,9 @@ message VertexRagStore {
}
// Retrieve from Vertex AI Search datastore for grounding.
-// See https://cloud.google.com/vertex-ai-search-and-conversation
+// See https://cloud.google.com/products/agent-builder
message VertexAISearch {
- // Required. Fully-qualified Vertex AI Search's datastore resource ID.
+ // Required. Fully-qualified Vertex AI Search data store resource ID.
// Format:
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
string datastore = 1 [(google.api.field_behavior) = REQUIRED];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto
index c0dc6a85ef92..a42e468fb97d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto
@@ -54,7 +54,7 @@ message TuningJob {
// Tuning Spec for Distillation.
DistillationSpec distillation_spec = 17;
- // Tuning Spec for open sourced and third party Partner models.
+ // Tuning Spec for open sourced and third party partner models.
PartnerModelTuningSpec partner_model_tuning_spec = 21;
}
diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md
index 2b31824f360b..942f3a5964f9 100644
--- a/java-alloydb-connectors/README.md
+++ b/java-alloydb-connectors/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.48.0
+ 26.49.0
pom
import
@@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
If you are using Maven without the BOM, add this to your dependencies:
-
```xml
@@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies:
```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.30.0"
```
-
## Authentication
@@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.29.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.30.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-alloydb/README.md b/java-alloydb/README.md
index d30aadc8185d..99c2548956b4 100644
--- a/java-alloydb/README.md
+++ b/java-alloydb/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.48.0
+ 26.49.0
pom
import
@@ -37,7 +37,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
If you are using Maven without the BOM, add this to your dependencies:
-
```xml
@@ -58,7 +57,6 @@ If you are using SBT, add this to your dependencies:
```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.41.0"
```
-
## Authentication
@@ -196,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.40.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.41.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java
index 9dd660c5454a..d26efc33492d 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java
@@ -191,6 +191,26 @@
*
*
*
+ * SwitchoverCluster
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * switchoverClusterAsync(SwitchoverClusterRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * switchoverClusterAsync(ClusterName name)
+ *
switchoverClusterAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * switchoverClusterOperationCallable()
+ *
switchoverClusterCallable()
+ *
+ *
+ *
+ *
* RestoreCluster
* Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.
*
@@ -419,6 +439,25 @@
*
*
*
+ * ExecuteSql
+ * Executes a SQL statement in a database inside an AlloyDB instance.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * executeSql(ExecuteSqlRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * executeSql(InstanceName instance, String database, String user, String sqlStatement, String password)
+ *
executeSql(String instance, String database, String user, String sqlStatement, String password)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * executeSqlCallable()
+ *
+ *
+ *
+ *
* ListBackups
* Lists Backups in a given project and location.
*
@@ -670,6 +709,26 @@
*
*
*
+ * ListDatabases
+ * Lists Databases in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listDatabases(ListDatabasesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listDatabases(ClusterName parent)
+ *
listDatabases(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listDatabasesPagedCallable()
+ *
listDatabasesCallable()
+ *
+ *
+ *
+ *
* ListLocations
* Lists information about the supported locations for this service.
*
@@ -1719,6 +1778,166 @@ public final UnaryCallable promoteClusterCalla
return stub.promoteClusterCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the
+ * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this
+ * newly promoted cluster.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+ * Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the resource. For the required format, see the comment on the
+ * Cluster.name field
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture switchoverClusterAsync(
+ ClusterName name) {
+ SwitchoverClusterRequest request =
+ SwitchoverClusterRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return switchoverClusterAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the
+ * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this
+ * newly promoted cluster.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+ * Cluster response = alloyDBAdminClient.switchoverClusterAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the resource. For the required format, see the comment on the
+ * Cluster.name field
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture switchoverClusterAsync(String name) {
+ SwitchoverClusterRequest request = SwitchoverClusterRequest.newBuilder().setName(name).build();
+ return switchoverClusterAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the
+ * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this
+ * newly promoted cluster.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * SwitchoverClusterRequest request =
+ * SwitchoverClusterRequest.newBuilder()
+ * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * Cluster response = alloyDBAdminClient.switchoverClusterAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture switchoverClusterAsync(
+ SwitchoverClusterRequest request) {
+ return switchoverClusterOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the
+ * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this
+ * newly promoted cluster.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * SwitchoverClusterRequest request =
+ * SwitchoverClusterRequest.newBuilder()
+ * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * OperationFuture future =
+ * alloyDBAdminClient.switchoverClusterOperationCallable().futureCall(request);
+ * // Do something.
+ * Cluster response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ switchoverClusterOperationCallable() {
+ return stub.switchoverClusterOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the
+ * SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this
+ * newly promoted cluster.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * SwitchoverClusterRequest request =
+ * SwitchoverClusterRequest.newBuilder()
+ * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setRequestId("requestId693933066")
+ * .setValidateOnly(true)
+ * .build();
+ * ApiFuture future =
+ * alloyDBAdminClient.switchoverClusterCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable switchoverClusterCallable() {
+ return stub.switchoverClusterCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Cluster in a given project and location, with a volume restored from the provided
@@ -3427,6 +3646,7 @@ public final OperationFuture restartInstanceAsync(S
* InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
* .setRequestId("requestId693933066")
* .setValidateOnly(true)
+ * .addAllNodeIds(new ArrayList())
* .build();
* Instance response = alloyDBAdminClient.restartInstanceAsync(request).get();
* }
@@ -3459,6 +3679,7 @@ public final OperationFuture restartInstanceAsync(
* InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
* .setRequestId("requestId693933066")
* .setValidateOnly(true)
+ * .addAllNodeIds(new ArrayList())
* .build();
* OperationFuture future =
* alloyDBAdminClient.restartInstanceOperationCallable().futureCall(request);
@@ -3491,6 +3712,7 @@ public final OperationFuture restartInstanceAsync(
* InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
* .setRequestId("requestId693933066")
* .setValidateOnly(true)
+ * .addAllNodeIds(new ArrayList())
* .build();
* ApiFuture future =
* alloyDBAdminClient.restartInstanceCallable().futureCall(request);
@@ -3503,6 +3725,167 @@ public final UnaryCallable restartInstanceCal
return stub.restartInstanceCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Executes a SQL statement in a database inside an AlloyDB instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]");
+ * String database = "database1789464955";
+ * String user = "user3599307";
+ * String sqlStatement = "sqlStatement937767745";
+ * String password = "password1216985755";
+ * ExecuteSqlResponse response =
+ * alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password);
+ * }
+ * }
+ *
+ * @param instance Required. The instance where the SQL will be executed. For the required format,
+ * see the comment on the Instance.name field.
+ * @param database Required. Name of the database where the query will be executed. Note - Value
+ * provided should be the same as expected from `SELECT current_database();` and NOT as a
+ * resource reference.
+ * @param user Required. Database user to be used for executing the SQL. Note - Value provided
+ * should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
+ * @param sqlStatement Required. SQL statement to execute on database. Any valid statement is
+ * permitted, including DDL, DML, DQL statements.
+ * @param password Optional. The database native user’s password.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExecuteSqlResponse executeSql(
+ InstanceName instance, String database, String user, String sqlStatement, String password) {
+ ExecuteSqlRequest request =
+ ExecuteSqlRequest.newBuilder()
+ .setInstance(instance == null ? null : instance.toString())
+ .setDatabase(database)
+ .setUser(user)
+ .setSqlStatement(sqlStatement)
+ .setPassword(password)
+ .build();
+ return executeSql(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Executes a SQL statement in a database inside an AlloyDB instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * String instance =
+ * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString();
+ * String database = "database1789464955";
+ * String user = "user3599307";
+ * String sqlStatement = "sqlStatement937767745";
+ * String password = "password1216985755";
+ * ExecuteSqlResponse response =
+ * alloyDBAdminClient.executeSql(instance, database, user, sqlStatement, password);
+ * }
+ * }
+ *
+ * @param instance Required. The instance where the SQL will be executed. For the required format,
+ * see the comment on the Instance.name field.
+ * @param database Required. Name of the database where the query will be executed. Note - Value
+ * provided should be the same as expected from `SELECT current_database();` and NOT as a
+ * resource reference.
+ * @param user Required. Database user to be used for executing the SQL. Note - Value provided
+ * should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
+ * @param sqlStatement Required. SQL statement to execute on database. Any valid statement is
+ * permitted, including DDL, DML, DQL statements.
+ * @param password Optional. The database native user’s password.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExecuteSqlResponse executeSql(
+ String instance, String database, String user, String sqlStatement, String password) {
+ ExecuteSqlRequest request =
+ ExecuteSqlRequest.newBuilder()
+ .setInstance(instance)
+ .setDatabase(database)
+ .setUser(user)
+ .setSqlStatement(sqlStatement)
+ .setPassword(password)
+ .build();
+ return executeSql(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Executes a SQL statement in a database inside an AlloyDB instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ExecuteSqlRequest request =
+ * ExecuteSqlRequest.newBuilder()
+ * .setInstance(
+ * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
+ * .setDatabase("database1789464955")
+ * .setUser("user3599307")
+ * .setSqlStatement("sqlStatement937767745")
+ * .build();
+ * ExecuteSqlResponse response = alloyDBAdminClient.executeSql(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExecuteSqlResponse executeSql(ExecuteSqlRequest request) {
+ return executeSqlCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Executes a SQL statement in a database inside an AlloyDB instance.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ExecuteSqlRequest request =
+ * ExecuteSqlRequest.newBuilder()
+ * .setInstance(
+ * InstanceName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[INSTANCE]").toString())
+ * .setDatabase("database1789464955")
+ * .setUser("user3599307")
+ * .setSqlStatement("sqlStatement937767745")
+ * .build();
+ * ApiFuture future =
+ * alloyDBAdminClient.executeSqlCallable().futureCall(request);
+ * // Do something.
+ * ExecuteSqlResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable executeSqlCallable() {
+ return stub.executeSqlCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists Backups in a given project and location.
@@ -5275,6 +5658,171 @@ public final UnaryCallable deleteUserCallable() {
return stub.deleteUserCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Databases in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+ * for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListDatabasesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabasesPagedResponse listDatabases(ClusterName parent) {
+ ListDatabasesRequest request =
+ ListDatabasesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDatabases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Databases in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+ * for (Database element : alloyDBAdminClient.listDatabases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListDatabasesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabasesPagedResponse listDatabases(String parent) {
+ ListDatabasesRequest request = ListDatabasesRequest.newBuilder().setParent(parent).build();
+ return listDatabases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Databases in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ListDatabasesRequest request =
+ * ListDatabasesRequest.newBuilder()
+ * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (Database element : alloyDBAdminClient.listDatabases(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDatabasesPagedResponse listDatabases(ListDatabasesRequest request) {
+ return listDatabasesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Databases in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ListDatabasesRequest request =
+ * ListDatabasesRequest.newBuilder()
+ * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * alloyDBAdminClient.listDatabasesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Database element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listDatabasesPagedCallable() {
+ return stub.listDatabasesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Databases in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+ * ListDatabasesRequest request =
+ * ListDatabasesRequest.newBuilder()
+ * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * while (true) {
+ * ListDatabasesResponse response = alloyDBAdminClient.listDatabasesCallable().call(request);
+ * for (Database element : response.getDatabasesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listDatabasesCallable() {
+ return stub.listDatabasesCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
@@ -5845,6 +6393,82 @@ protected ListUsersFixedSizeCollection createCollection(
}
}
+ public static class ListDatabasesPagedResponse
+ extends AbstractPagedListResponse<
+ ListDatabasesRequest,
+ ListDatabasesResponse,
+ Database,
+ ListDatabasesPage,
+ ListDatabasesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListDatabasesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListDatabasesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListDatabasesPagedResponse(ListDatabasesPage page) {
+ super(page, ListDatabasesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListDatabasesPage
+ extends AbstractPage<
+ ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> {
+
+ private ListDatabasesPage(
+ PageContext context,
+ ListDatabasesResponse response) {
+ super(context, response);
+ }
+
+ private static ListDatabasesPage createEmptyPage() {
+ return new ListDatabasesPage(null, null);
+ }
+
+ @Override
+ protected ListDatabasesPage createPage(
+ PageContext context,
+ ListDatabasesResponse response) {
+ return new ListDatabasesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListDatabasesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListDatabasesRequest,
+ ListDatabasesResponse,
+ Database,
+ ListDatabasesPage,
+ ListDatabasesFixedSizeCollection> {
+
+ private ListDatabasesFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListDatabasesFixedSizeCollection createEmptyCollection() {
+ return new ListDatabasesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListDatabasesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListDatabasesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class ListLocationsPagedResponse
extends AbstractPagedListResponse<
ListLocationsRequest,
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java
index 9164217fc131..de4b906088c8 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java
@@ -18,6 +18,7 @@
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse;
+import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse;
@@ -179,6 +180,17 @@ public UnaryCallSettings promoteClusterSetting
return ((AlloyDBAdminStubSettings) getStubSettings()).promoteClusterOperationSettings();
}
+ /** Returns the object with the settings used for calls to switchoverCluster. */
+ public UnaryCallSettings switchoverClusterSettings() {
+ return ((AlloyDBAdminStubSettings) getStubSettings()).switchoverClusterSettings();
+ }
+
+ /** Returns the object with the settings used for calls to switchoverCluster. */
+ public OperationCallSettings
+ switchoverClusterOperationSettings() {
+ return ((AlloyDBAdminStubSettings) getStubSettings()).switchoverClusterOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to restoreCluster. */
public UnaryCallSettings restoreClusterSettings() {
return ((AlloyDBAdminStubSettings) getStubSettings()).restoreClusterSettings();
@@ -304,6 +316,11 @@ public UnaryCallSettings restartInstanceSetti
return ((AlloyDBAdminStubSettings) getStubSettings()).restartInstanceOperationSettings();
}
+ /** Returns the object with the settings used for calls to executeSql. */
+ public UnaryCallSettings executeSqlSettings() {
+ return ((AlloyDBAdminStubSettings) getStubSettings()).executeSqlSettings();
+ }
+
/** Returns the object with the settings used for calls to listBackups. */
public PagedCallSettings
listBackupsSettings() {
@@ -394,6 +411,12 @@ public UnaryCallSettings deleteUserSettings() {
return ((AlloyDBAdminStubSettings) getStubSettings()).deleteUserSettings();
}
+ /** Returns the object with the settings used for calls to listDatabases. */
+ public PagedCallSettings
+ listDatabasesSettings() {
+ return ((AlloyDBAdminStubSettings) getStubSettings()).listDatabasesSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -573,6 +596,18 @@ public UnaryCallSettings.Builder promoteCluste
return getStubSettingsBuilder().promoteClusterOperationSettings();
}
+ /** Returns the builder for the settings used for calls to switchoverCluster. */
+ public UnaryCallSettings.Builder
+ switchoverClusterSettings() {
+ return getStubSettingsBuilder().switchoverClusterSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to switchoverCluster. */
+ public OperationCallSettings.Builder
+ switchoverClusterOperationSettings() {
+ return getStubSettingsBuilder().switchoverClusterOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to restoreCluster. */
public UnaryCallSettings.Builder restoreClusterSettings() {
return getStubSettingsBuilder().restoreClusterSettings();
@@ -701,6 +736,11 @@ public UnaryCallSettings.Builder restartInsta
return getStubSettingsBuilder().restartInstanceOperationSettings();
}
+ /** Returns the builder for the settings used for calls to executeSql. */
+ public UnaryCallSettings.Builder executeSqlSettings() {
+ return getStubSettingsBuilder().executeSqlSettings();
+ }
+
/** Returns the builder for the settings used for calls to listBackups. */
public PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
@@ -794,6 +834,13 @@ public UnaryCallSettings.Builder deleteUserSettings()
return getStubSettingsBuilder().deleteUserSettings();
}
+ /** Returns the builder for the settings used for calls to listDatabases. */
+ public PagedCallSettings.Builder<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
+ listDatabasesSettings() {
+ return getStubSettingsBuilder().listDatabasesSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json
index 553a23636d95..506253f1e827 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json
@@ -43,6 +43,9 @@
"DeleteUser": {
"methods": ["deleteUser", "deleteUser", "deleteUser", "deleteUserCallable"]
},
+ "ExecuteSql": {
+ "methods": ["executeSql", "executeSql", "executeSql", "executeSqlCallable"]
+ },
"FailoverInstance": {
"methods": ["failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceOperationCallable", "failoverInstanceCallable"]
},
@@ -76,6 +79,9 @@
"ListClusters": {
"methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"]
},
+ "ListDatabases": {
+ "methods": ["listDatabases", "listDatabases", "listDatabases", "listDatabasesPagedCallable", "listDatabasesCallable"]
+ },
"ListInstances": {
"methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"]
},
@@ -97,6 +103,9 @@
"RestoreCluster": {
"methods": ["restoreClusterAsync", "restoreClusterOperationCallable", "restoreClusterCallable"]
},
+ "SwitchoverCluster": {
+ "methods": ["switchoverClusterAsync", "switchoverClusterAsync", "switchoverClusterAsync", "switchoverClusterOperationCallable", "switchoverClusterCallable"]
+ },
"UpdateBackup": {
"methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"]
},
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java
index 3201589d5f2a..fdf6cef05714 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse;
+import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse;
@@ -41,6 +42,8 @@
import com.google.cloud.alloydb.v1.DeleteClusterRequest;
import com.google.cloud.alloydb.v1.DeleteInstanceRequest;
import com.google.cloud.alloydb.v1.DeleteUserRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlResponse;
import com.google.cloud.alloydb.v1.FailoverInstanceRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse;
@@ -55,6 +58,8 @@
import com.google.cloud.alloydb.v1.ListBackupsResponse;
import com.google.cloud.alloydb.v1.ListClustersRequest;
import com.google.cloud.alloydb.v1.ListClustersResponse;
+import com.google.cloud.alloydb.v1.ListDatabasesRequest;
+import com.google.cloud.alloydb.v1.ListDatabasesResponse;
import com.google.cloud.alloydb.v1.ListInstancesRequest;
import com.google.cloud.alloydb.v1.ListInstancesResponse;
import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest;
@@ -65,6 +70,7 @@
import com.google.cloud.alloydb.v1.PromoteClusterRequest;
import com.google.cloud.alloydb.v1.RestartInstanceRequest;
import com.google.cloud.alloydb.v1.RestoreClusterRequest;
+import com.google.cloud.alloydb.v1.SwitchoverClusterRequest;
import com.google.cloud.alloydb.v1.UpdateBackupRequest;
import com.google.cloud.alloydb.v1.UpdateClusterRequest;
import com.google.cloud.alloydb.v1.UpdateInstanceRequest;
@@ -144,6 +150,16 @@ public UnaryCallable promoteClusterCallable()
throw new UnsupportedOperationException("Not implemented: promoteClusterCallable()");
}
+ public OperationCallable
+ switchoverClusterOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: switchoverClusterOperationCallable()");
+ }
+
+ public UnaryCallable switchoverClusterCallable() {
+ throw new UnsupportedOperationException("Not implemented: switchoverClusterCallable()");
+ }
+
public OperationCallable
restoreClusterOperationCallable() {
throw new UnsupportedOperationException("Not implemented: restoreClusterOperationCallable()");
@@ -252,6 +268,10 @@ public UnaryCallable restartInstanceCallable(
throw new UnsupportedOperationException("Not implemented: restartInstanceCallable()");
}
+ public UnaryCallable executeSqlCallable() {
+ throw new UnsupportedOperationException("Not implemented: executeSqlCallable()");
+ }
+
public UnaryCallable listBackupsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
}
@@ -336,6 +356,15 @@ public UnaryCallable deleteUserCallable() {
throw new UnsupportedOperationException("Not implemented: deleteUserCallable()");
}
+ public UnaryCallable
+ listDatabasesPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()");
+ }
+
+ public UnaryCallable listDatabasesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listDatabasesCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java
index 923a33a09b36..b5efb8b734b1 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java
@@ -18,6 +18,7 @@
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse;
+import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse;
@@ -64,10 +65,13 @@
import com.google.cloud.alloydb.v1.CreateSecondaryClusterRequest;
import com.google.cloud.alloydb.v1.CreateSecondaryInstanceRequest;
import com.google.cloud.alloydb.v1.CreateUserRequest;
+import com.google.cloud.alloydb.v1.Database;
import com.google.cloud.alloydb.v1.DeleteBackupRequest;
import com.google.cloud.alloydb.v1.DeleteClusterRequest;
import com.google.cloud.alloydb.v1.DeleteInstanceRequest;
import com.google.cloud.alloydb.v1.DeleteUserRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlResponse;
import com.google.cloud.alloydb.v1.FailoverInstanceRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse;
@@ -82,6 +86,8 @@
import com.google.cloud.alloydb.v1.ListBackupsResponse;
import com.google.cloud.alloydb.v1.ListClustersRequest;
import com.google.cloud.alloydb.v1.ListClustersResponse;
+import com.google.cloud.alloydb.v1.ListDatabasesRequest;
+import com.google.cloud.alloydb.v1.ListDatabasesResponse;
import com.google.cloud.alloydb.v1.ListInstancesRequest;
import com.google.cloud.alloydb.v1.ListInstancesResponse;
import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest;
@@ -93,6 +99,7 @@
import com.google.cloud.alloydb.v1.RestartInstanceRequest;
import com.google.cloud.alloydb.v1.RestoreClusterRequest;
import com.google.cloud.alloydb.v1.SupportedDatabaseFlag;
+import com.google.cloud.alloydb.v1.SwitchoverClusterRequest;
import com.google.cloud.alloydb.v1.UpdateBackupRequest;
import com.google.cloud.alloydb.v1.UpdateClusterRequest;
import com.google.cloud.alloydb.v1.UpdateInstanceRequest;
@@ -211,6 +218,9 @@ public class AlloyDBAdminStubSettings extends StubSettings promoteClusterSettings;
private final OperationCallSettings
promoteClusterOperationSettings;
+ private final UnaryCallSettings switchoverClusterSettings;
+ private final OperationCallSettings
+ switchoverClusterOperationSettings;
private final UnaryCallSettings restoreClusterSettings;
private final OperationCallSettings
restoreClusterOperationSettings;
@@ -249,6 +259,7 @@ public class AlloyDBAdminStubSettings extends StubSettings restartInstanceSettings;
private final OperationCallSettings
restartInstanceOperationSettings;
+ private final UnaryCallSettings executeSqlSettings;
private final PagedCallSettings
listBackupsSettings;
private final UnaryCallSettings getBackupSettings;
@@ -277,6 +288,9 @@ public class AlloyDBAdminStubSettings extends StubSettings createUserSettings;
private final UnaryCallSettings updateUserSettings;
private final UnaryCallSettings deleteUserSettings;
+ private final PagedCallSettings<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
+ listDatabasesSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -465,6 +479,40 @@ public Iterable extractResources(ListUsersResponse payload) {
}
};
+ private static final PagedListDescriptor
+ LIST_DATABASES_PAGE_STR_DESC =
+ new PagedListDescriptor() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListDatabasesRequest injectToken(ListDatabasesRequest payload, String token) {
+ return ListDatabasesRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListDatabasesRequest injectPageSize(ListDatabasesRequest payload, int pageSize) {
+ return ListDatabasesRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListDatabasesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListDatabasesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(ListDatabasesResponse payload) {
+ return payload.getDatabasesList();
+ }
+ };
+
private static final PagedListDescriptor
LIST_LOCATIONS_PAGE_STR_DESC =
new PagedListDescriptor() {
@@ -595,6 +643,23 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
+ LIST_DATABASES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListDatabasesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext pageContext =
+ PageContext.create(callable, LIST_DATABASES_PAGE_STR_DESC, request, context);
+ return ListDatabasesPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
LIST_LOCATIONS_PAGE_STR_FACT =
@@ -667,6 +732,17 @@ public UnaryCallSettings promoteClusterSetting
return promoteClusterOperationSettings;
}
+ /** Returns the object with the settings used for calls to switchoverCluster. */
+ public UnaryCallSettings switchoverClusterSettings() {
+ return switchoverClusterSettings;
+ }
+
+ /** Returns the object with the settings used for calls to switchoverCluster. */
+ public OperationCallSettings
+ switchoverClusterOperationSettings() {
+ return switchoverClusterOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to restoreCluster. */
public UnaryCallSettings restoreClusterSettings() {
return restoreClusterSettings;
@@ -791,6 +867,11 @@ public UnaryCallSettings restartInstanceSetti
return restartInstanceOperationSettings;
}
+ /** Returns the object with the settings used for calls to executeSql. */
+ public UnaryCallSettings executeSqlSettings() {
+ return executeSqlSettings;
+ }
+
/** Returns the object with the settings used for calls to listBackups. */
public PagedCallSettings
listBackupsSettings() {
@@ -881,6 +962,12 @@ public UnaryCallSettings deleteUserSettings() {
return deleteUserSettings;
}
+ /** Returns the object with the settings used for calls to listDatabases. */
+ public PagedCallSettings
+ listDatabasesSettings() {
+ return listDatabasesSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -1013,6 +1100,9 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException {
deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build();
promoteClusterSettings = settingsBuilder.promoteClusterSettings().build();
promoteClusterOperationSettings = settingsBuilder.promoteClusterOperationSettings().build();
+ switchoverClusterSettings = settingsBuilder.switchoverClusterSettings().build();
+ switchoverClusterOperationSettings =
+ settingsBuilder.switchoverClusterOperationSettings().build();
restoreClusterSettings = settingsBuilder.restoreClusterSettings().build();
restoreClusterOperationSettings = settingsBuilder.restoreClusterOperationSettings().build();
createSecondaryClusterSettings = settingsBuilder.createSecondaryClusterSettings().build();
@@ -1038,6 +1128,7 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException {
injectFaultOperationSettings = settingsBuilder.injectFaultOperationSettings().build();
restartInstanceSettings = settingsBuilder.restartInstanceSettings().build();
restartInstanceOperationSettings = settingsBuilder.restartInstanceOperationSettings().build();
+ executeSqlSettings = settingsBuilder.executeSqlSettings().build();
listBackupsSettings = settingsBuilder.listBackupsSettings().build();
getBackupSettings = settingsBuilder.getBackupSettings().build();
createBackupSettings = settingsBuilder.createBackupSettings().build();
@@ -1055,6 +1146,7 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException {
createUserSettings = settingsBuilder.createUserSettings().build();
updateUserSettings = settingsBuilder.updateUserSettings().build();
deleteUserSettings = settingsBuilder.deleteUserSettings().build();
+ listDatabasesSettings = settingsBuilder.listDatabasesSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -1079,6 +1171,11 @@ public static class Builder extends StubSettings.Builder
promoteClusterOperationSettings;
+ private final UnaryCallSettings.Builder
+ switchoverClusterSettings;
+ private final OperationCallSettings.Builder<
+ SwitchoverClusterRequest, Cluster, OperationMetadata>
+ switchoverClusterOperationSettings;
private final UnaryCallSettings.Builder
restoreClusterSettings;
private final OperationCallSettings.Builder
@@ -1126,6 +1223,8 @@ public static class Builder extends StubSettings.Builder
restartInstanceOperationSettings;
+ private final UnaryCallSettings.Builder
+ executeSqlSettings;
private final PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings;
@@ -1156,6 +1255,9 @@ public static class Builder extends StubSettings.Builder createUserSettings;
private final UnaryCallSettings.Builder updateUserSettings;
private final UnaryCallSettings.Builder deleteUserSettings;
+ private final PagedCallSettings.Builder<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
+ listDatabasesSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -1218,6 +1320,8 @@ protected Builder(ClientContext clientContext) {
deleteClusterOperationSettings = OperationCallSettings.newBuilder();
promoteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
promoteClusterOperationSettings = OperationCallSettings.newBuilder();
+ switchoverClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ switchoverClusterOperationSettings = OperationCallSettings.newBuilder();
restoreClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
restoreClusterOperationSettings = OperationCallSettings.newBuilder();
createSecondaryClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1240,6 +1344,7 @@ protected Builder(ClientContext clientContext) {
injectFaultOperationSettings = OperationCallSettings.newBuilder();
restartInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
restartInstanceOperationSettings = OperationCallSettings.newBuilder();
+ executeSqlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT);
getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1257,6 +1362,7 @@ protected Builder(ClientContext clientContext) {
createUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listDatabasesSettings = PagedCallSettings.newBuilder(LIST_DATABASES_PAGE_STR_FACT);
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1268,6 +1374,7 @@ protected Builder(ClientContext clientContext) {
updateClusterSettings,
deleteClusterSettings,
promoteClusterSettings,
+ switchoverClusterSettings,
restoreClusterSettings,
createSecondaryClusterSettings,
listInstancesSettings,
@@ -1280,6 +1387,7 @@ protected Builder(ClientContext clientContext) {
failoverInstanceSettings,
injectFaultSettings,
restartInstanceSettings,
+ executeSqlSettings,
listBackupsSettings,
getBackupSettings,
createBackupSettings,
@@ -1293,6 +1401,7 @@ protected Builder(ClientContext clientContext) {
createUserSettings,
updateUserSettings,
deleteUserSettings,
+ listDatabasesSettings,
listLocationsSettings,
getLocationSettings);
initDefaults(this);
@@ -1311,6 +1420,8 @@ protected Builder(AlloyDBAdminStubSettings settings) {
deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder();
promoteClusterSettings = settings.promoteClusterSettings.toBuilder();
promoteClusterOperationSettings = settings.promoteClusterOperationSettings.toBuilder();
+ switchoverClusterSettings = settings.switchoverClusterSettings.toBuilder();
+ switchoverClusterOperationSettings = settings.switchoverClusterOperationSettings.toBuilder();
restoreClusterSettings = settings.restoreClusterSettings.toBuilder();
restoreClusterOperationSettings = settings.restoreClusterOperationSettings.toBuilder();
createSecondaryClusterSettings = settings.createSecondaryClusterSettings.toBuilder();
@@ -1336,6 +1447,7 @@ protected Builder(AlloyDBAdminStubSettings settings) {
injectFaultOperationSettings = settings.injectFaultOperationSettings.toBuilder();
restartInstanceSettings = settings.restartInstanceSettings.toBuilder();
restartInstanceOperationSettings = settings.restartInstanceOperationSettings.toBuilder();
+ executeSqlSettings = settings.executeSqlSettings.toBuilder();
listBackupsSettings = settings.listBackupsSettings.toBuilder();
getBackupSettings = settings.getBackupSettings.toBuilder();
createBackupSettings = settings.createBackupSettings.toBuilder();
@@ -1352,6 +1464,7 @@ protected Builder(AlloyDBAdminStubSettings settings) {
createUserSettings = settings.createUserSettings.toBuilder();
updateUserSettings = settings.updateUserSettings.toBuilder();
deleteUserSettings = settings.deleteUserSettings.toBuilder();
+ listDatabasesSettings = settings.listDatabasesSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
@@ -1363,6 +1476,7 @@ protected Builder(AlloyDBAdminStubSettings settings) {
updateClusterSettings,
deleteClusterSettings,
promoteClusterSettings,
+ switchoverClusterSettings,
restoreClusterSettings,
createSecondaryClusterSettings,
listInstancesSettings,
@@ -1375,6 +1489,7 @@ protected Builder(AlloyDBAdminStubSettings settings) {
failoverInstanceSettings,
injectFaultSettings,
restartInstanceSettings,
+ executeSqlSettings,
listBackupsSettings,
getBackupSettings,
createBackupSettings,
@@ -1388,6 +1503,7 @@ protected Builder(AlloyDBAdminStubSettings settings) {
createUserSettings,
updateUserSettings,
deleteUserSettings,
+ listDatabasesSettings,
listLocationsSettings,
getLocationSettings);
}
@@ -1447,6 +1563,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .switchoverClusterSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
builder
.restoreClusterSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -1507,6 +1628,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .executeSqlSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
builder
.listBackupsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -1572,6 +1698,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .listDatabasesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -1678,6 +1809,30 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
+ builder
+ .switchoverClusterOperationSettings()
+ .setInitialCallSettings(
+ UnaryCallSettings
+ .newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
+ .build())
+ .setResponseTransformer(
+ ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
+ .setMetadataTransformer(
+ ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
+ .setPollingAlgorithm(
+ OperationTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(5000L))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelay(Duration.ofMillis(45000L))
+ .setInitialRpcTimeout(Duration.ZERO)
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ZERO)
+ .setTotalTimeout(Duration.ofMillis(300000L))
+ .build()));
+
builder
.restoreClusterOperationSettings()
.setInitialCallSettings(
@@ -2064,6 +2219,18 @@ public UnaryCallSettings.Builder promoteCluste
return promoteClusterOperationSettings;
}
+ /** Returns the builder for the settings used for calls to switchoverCluster. */
+ public UnaryCallSettings.Builder
+ switchoverClusterSettings() {
+ return switchoverClusterSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to switchoverCluster. */
+ public OperationCallSettings.Builder
+ switchoverClusterOperationSettings() {
+ return switchoverClusterOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to restoreCluster. */
public UnaryCallSettings.Builder restoreClusterSettings() {
return restoreClusterSettings;
@@ -2192,6 +2359,11 @@ public UnaryCallSettings.Builder restartInsta
return restartInstanceOperationSettings;
}
+ /** Returns the builder for the settings used for calls to executeSql. */
+ public UnaryCallSettings.Builder executeSqlSettings() {
+ return executeSqlSettings;
+ }
+
/** Returns the builder for the settings used for calls to listBackups. */
public PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
@@ -2285,6 +2457,13 @@ public UnaryCallSettings.Builder deleteUserSettings()
return deleteUserSettings;
}
+ /** Returns the builder for the settings used for calls to listDatabases. */
+ public PagedCallSettings.Builder<
+ ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
+ listDatabasesSettings() {
+ return listDatabasesSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java
index 0280a77c2902..9ee21a1c019f 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse;
+import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse;
@@ -46,6 +47,8 @@
import com.google.cloud.alloydb.v1.DeleteClusterRequest;
import com.google.cloud.alloydb.v1.DeleteInstanceRequest;
import com.google.cloud.alloydb.v1.DeleteUserRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlResponse;
import com.google.cloud.alloydb.v1.FailoverInstanceRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse;
@@ -60,6 +63,8 @@
import com.google.cloud.alloydb.v1.ListBackupsResponse;
import com.google.cloud.alloydb.v1.ListClustersRequest;
import com.google.cloud.alloydb.v1.ListClustersResponse;
+import com.google.cloud.alloydb.v1.ListDatabasesRequest;
+import com.google.cloud.alloydb.v1.ListDatabasesResponse;
import com.google.cloud.alloydb.v1.ListInstancesRequest;
import com.google.cloud.alloydb.v1.ListInstancesResponse;
import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest;
@@ -70,6 +75,7 @@
import com.google.cloud.alloydb.v1.PromoteClusterRequest;
import com.google.cloud.alloydb.v1.RestartInstanceRequest;
import com.google.cloud.alloydb.v1.RestoreClusterRequest;
+import com.google.cloud.alloydb.v1.SwitchoverClusterRequest;
import com.google.cloud.alloydb.v1.UpdateBackupRequest;
import com.google.cloud.alloydb.v1.UpdateClusterRequest;
import com.google.cloud.alloydb.v1.UpdateInstanceRequest;
@@ -154,6 +160,16 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ switchoverClusterMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/SwitchoverCluster")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(SwitchoverClusterRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
restoreClusterMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -271,6 +287,15 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ executeSqlMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExecuteSql")
+ .setRequestMarshaller(ProtoUtils.marshaller(ExecuteSqlRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(ExecuteSqlResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listBackupsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -393,6 +418,17 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ listDatabasesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ListDatabases")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListDatabasesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListDatabasesResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -428,6 +464,9 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
private final UnaryCallable promoteClusterCallable;
private final OperationCallable
promoteClusterOperationCallable;
+ private final UnaryCallable switchoverClusterCallable;
+ private final OperationCallable
+ switchoverClusterOperationCallable;
private final UnaryCallable restoreClusterCallable;
private final OperationCallable
restoreClusterOperationCallable;
@@ -465,6 +504,7 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
private final UnaryCallable restartInstanceCallable;
private final OperationCallable
restartInstanceOperationCallable;
+ private final UnaryCallable executeSqlCallable;
private final UnaryCallable listBackupsCallable;
private final UnaryCallable
listBackupsPagedCallable;
@@ -492,6 +532,9 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub {
private final UnaryCallable createUserCallable;
private final UnaryCallable updateUserCallable;
private final UnaryCallable deleteUserCallable;
+ private final UnaryCallable listDatabasesCallable;
+ private final UnaryCallable
+ listDatabasesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -599,6 +642,16 @@ protected GrpcAlloyDBAdminStub(
return builder.build();
})
.build();
+ GrpcCallSettings switchoverClusterTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(switchoverClusterMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings restoreClusterTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(restoreClusterMethodDescriptor)
@@ -721,6 +774,16 @@ protected GrpcAlloyDBAdminStub(
return builder.build();
})
.build();
+ GrpcCallSettings executeSqlTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(executeSqlMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("instance", String.valueOf(request.getInstance()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listBackupsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listBackupsMethodDescriptor)
@@ -855,6 +918,16 @@ protected GrpcAlloyDBAdminStub(
return builder.build();
})
.build();
+ GrpcCallSettings listDatabasesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listDatabasesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -921,6 +994,17 @@ protected GrpcAlloyDBAdminStub(
settings.promoteClusterOperationSettings(),
clientContext,
operationsStub);
+ this.switchoverClusterCallable =
+ callableFactory.createUnaryCallable(
+ switchoverClusterTransportSettings,
+ settings.switchoverClusterSettings(),
+ clientContext);
+ this.switchoverClusterOperationCallable =
+ callableFactory.createOperationCallable(
+ switchoverClusterTransportSettings,
+ settings.switchoverClusterOperationSettings(),
+ clientContext,
+ operationsStub);
this.restoreClusterCallable =
callableFactory.createUnaryCallable(
restoreClusterTransportSettings, settings.restoreClusterSettings(), clientContext);
@@ -1026,6 +1110,9 @@ protected GrpcAlloyDBAdminStub(
settings.restartInstanceOperationSettings(),
clientContext,
operationsStub);
+ this.executeSqlCallable =
+ callableFactory.createUnaryCallable(
+ executeSqlTransportSettings, settings.executeSqlSettings(), clientContext);
this.listBackupsCallable =
callableFactory.createUnaryCallable(
listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
@@ -1100,6 +1187,12 @@ protected GrpcAlloyDBAdminStub(
this.deleteUserCallable =
callableFactory.createUnaryCallable(
deleteUserTransportSettings, settings.deleteUserSettings(), clientContext);
+ this.listDatabasesCallable =
+ callableFactory.createUnaryCallable(
+ listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext);
+ this.listDatabasesPagedCallable =
+ callableFactory.createPagedCallable(
+ listDatabasesTransportSettings, settings.listDatabasesSettings(), clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -1177,6 +1270,17 @@ public UnaryCallable promoteClusterCallable()
return promoteClusterOperationCallable;
}
+ @Override
+ public UnaryCallable switchoverClusterCallable() {
+ return switchoverClusterCallable;
+ }
+
+ @Override
+ public OperationCallable
+ switchoverClusterOperationCallable() {
+ return switchoverClusterOperationCallable;
+ }
+
@Override
public UnaryCallable restoreClusterCallable() {
return restoreClusterCallable;
@@ -1305,6 +1409,11 @@ public UnaryCallable restartInstanceCallable(
return restartInstanceOperationCallable;
}
+ @Override
+ public UnaryCallable executeSqlCallable() {
+ return executeSqlCallable;
+ }
+
@Override
public UnaryCallable listBackupsCallable() {
return listBackupsCallable;
@@ -1406,6 +1515,17 @@ public UnaryCallable deleteUserCallable() {
return deleteUserCallable;
}
+ @Override
+ public UnaryCallable listDatabasesCallable() {
+ return listDatabasesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listDatabasesPagedCallable() {
+ return listDatabasesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java
index e08107a8de44..503650a9edd0 100644
--- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java
+++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListBackupsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListClustersPagedResponse;
+import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListDatabasesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListInstancesPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListLocationsPagedResponse;
import static com.google.cloud.alloydb.v1.AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse;
@@ -54,6 +55,8 @@
import com.google.cloud.alloydb.v1.DeleteClusterRequest;
import com.google.cloud.alloydb.v1.DeleteInstanceRequest;
import com.google.cloud.alloydb.v1.DeleteUserRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlRequest;
+import com.google.cloud.alloydb.v1.ExecuteSqlResponse;
import com.google.cloud.alloydb.v1.FailoverInstanceRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest;
import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse;
@@ -68,6 +71,8 @@
import com.google.cloud.alloydb.v1.ListBackupsResponse;
import com.google.cloud.alloydb.v1.ListClustersRequest;
import com.google.cloud.alloydb.v1.ListClustersResponse;
+import com.google.cloud.alloydb.v1.ListDatabasesRequest;
+import com.google.cloud.alloydb.v1.ListDatabasesResponse;
import com.google.cloud.alloydb.v1.ListInstancesRequest;
import com.google.cloud.alloydb.v1.ListInstancesResponse;
import com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest;
@@ -78,6 +83,7 @@
import com.google.cloud.alloydb.v1.PromoteClusterRequest;
import com.google.cloud.alloydb.v1.RestartInstanceRequest;
import com.google.cloud.alloydb.v1.RestoreClusterRequest;
+import com.google.cloud.alloydb.v1.SwitchoverClusterRequest;
import com.google.cloud.alloydb.v1.UpdateBackupRequest;
import com.google.cloud.alloydb.v1.UpdateClusterRequest;
import com.google.cloud.alloydb.v1.UpdateInstanceRequest;
@@ -362,6 +368,46 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub {
HttpJsonOperationSnapshot.create(response))
.build();
+ private static final ApiMethodDescriptor
+ switchoverClusterMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/SwitchoverCluster")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/clusters/*}:switchover",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (SwitchoverClusterRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
private static final ApiMethodDescriptor
restoreClusterMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -856,6 +902,43 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub {
HttpJsonOperationSnapshot.create(response))
.build();
+ private static final ApiMethodDescriptor
+ executeSqlMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExecuteSql")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{instance=projects/*/locations/*/clusters/*/instances/*}:executeSql",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "instance", request.getInstance());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearInstance().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(ExecuteSqlResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listBackupsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -1354,6 +1437,43 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ listDatabasesMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ListDatabases")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*/clusters/*}/databases",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "parent", request.getParent());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "filter", request.getFilter());
+ serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+ serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(ListDatabasesResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -1438,6 +1558,9 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub {
private final UnaryCallable promoteClusterCallable;
private final OperationCallable
promoteClusterOperationCallable;
+ private final UnaryCallable switchoverClusterCallable;
+ private final OperationCallable
+ switchoverClusterOperationCallable;
private final UnaryCallable restoreClusterCallable;
private final OperationCallable
restoreClusterOperationCallable;
@@ -1475,6 +1598,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub {
private final UnaryCallable