diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml
index 02d55be1f066..04e4063f52aa 100644
--- a/.github/workflows/hermetic_library_generation.yaml
+++ b/.github/workflows/hermetic_library_generation.yaml
@@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.0
+ - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
diff --git a/generation_config.yaml b/generation_config.yaml
index 3f5ce705fa25..592fadffd773 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.62.0
-googleapis_commitish: b738e78ed63effb7d199ed2d61c9e03291b6077f
-libraries_bom_version: 26.66.0
+gapic_generator_version: 2.62.1
+googleapis_commitish: 6d1dca2b8e3d50914609414e219df2778b2b20ba
+libraries_bom_version: 26.67.0
# the libraries are ordered with respect to library name, which is
# java-{library.library_name} or java-{library.api-shortname} when
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index a6896fda2c21..b054903e3bc0 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
- * Optional. By default, if dedicated endpoint is enabled, the endpoint will
- * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- * Your request to the dedicated DNS will be isolated from other users'
- * traffic and will have better performance and reliability. Note: Once you
- * enabled dedicated endpoint, you won't be able to send request to the
- * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- * removed soon.
+ * Optional. By default, if dedicated endpoint is enabled and private
+ * service connect config is not set, the endpoint will be exposed through a
+ * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ * connect config is set, the endpoint will be exposed through private
+ * service connect. Your request to the dedicated DNS will be isolated from
+ * other users' traffic and will have better performance and reliability.
+ * Note: Once you enabled dedicated endpoint, you won't be able to send
+ * request to the shared DNS {region}-aiplatform.googleapis.com. The
+ * limitations will be removed soon.
*
* If this field is set to true, the dedicated endpoint will be disabled
* and the deployed model will be exposed through the shared DNS
@@ -2754,6 +2756,54 @@ public interface EndpointConfigOrBuilder
*/
boolean getDedicatedEndpointDisabled();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ boolean hasPrivateServiceConnectConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ getPrivateServiceConnectConfig();
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder();
+
/**
*
*
@@ -2859,6 +2909,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.Builder.class);
}
+ private int bitField0_;
public static final int ENDPOINT_DISPLAY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -2936,7 +2987,7 @@ public com.google.protobuf.ByteString getEndpointDisplayNameBytes() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled
- * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281
+ * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282
* @return The dedicatedEndpointEnabled.
*/
@java.lang.Override
@@ -2952,13 +3003,15 @@ public boolean getDedicatedEndpointEnabled() {
*
*
*
- * Optional. By default, if dedicated endpoint is enabled, the endpoint will
- * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- * Your request to the dedicated DNS will be isolated from other users'
- * traffic and will have better performance and reliability. Note: Once you
- * enabled dedicated endpoint, you won't be able to send request to the
- * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- * removed soon.
+ * Optional. By default, if dedicated endpoint is enabled and private
+ * service connect config is not set, the endpoint will be exposed through a
+ * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ * connect config is set, the endpoint will be exposed through private
+ * service connect. Your request to the dedicated DNS will be isolated from
+ * other users' traffic and will have better performance and reliability.
+ * Note: Once you enabled dedicated endpoint, you won't be able to send
+ * request to the shared DNS {region}-aiplatform.googleapis.com. The
+ * limitations will be removed soon.
*
* If this field is set to true, the dedicated endpoint will be disabled
* and the deployed model will be exposed through the shared DNS
@@ -2974,6 +3027,71 @@ public boolean getDedicatedEndpointDisabled() {
return dedicatedEndpointDisabled_;
}
+ public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ privateServiceConnectConfig_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrivateServiceConnectConfig() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ getPrivateServiceConnectConfig() {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder() {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+
public static final int ENDPOINT_USER_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
@@ -3085,6 +3203,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dedicatedEndpointDisabled_ != false) {
output.writeBool(4, dedicatedEndpointDisabled_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getPrivateServiceConnectConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -3107,6 +3228,11 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(4, dedicatedEndpointDisabled_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, getPrivateServiceConnectConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3126,6 +3252,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getEndpointDisplayName().equals(other.getEndpointDisplayName())) return false;
if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false;
if (getDedicatedEndpointDisabled() != other.getDedicatedEndpointDisabled()) return false;
+ if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false;
+ if (hasPrivateServiceConnectConfig()) {
+ if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig()))
+ return false;
+ }
if (!getEndpointUserId().equals(other.getEndpointUserId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -3144,6 +3275,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled());
hash = (37 * hash) + DEDICATED_ENDPOINT_DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointDisabled());
+ if (hasPrivateServiceConnectConfig()) {
+ hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode();
+ }
hash = (37 * hash) + ENDPOINT_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getEndpointUserId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
@@ -3281,10 +3416,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
// Construct using
// com.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.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) {
+ getPrivateServiceConnectConfigFieldBuilder();
+ }
}
@java.lang.Override
@@ -3294,6 +3438,11 @@ public Builder clear() {
endpointDisplayName_ = "";
dedicatedEndpointEnabled_ = false;
dedicatedEndpointDisabled_ = false;
+ privateServiceConnectConfig_ = null;
+ if (privateServiceConnectConfigBuilder_ != null) {
+ privateServiceConnectConfigBuilder_.dispose();
+ privateServiceConnectConfigBuilder_ = null;
+ }
endpointUserId_ = "";
return this;
}
@@ -3343,9 +3492,18 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dedicatedEndpointDisabled_ = dedicatedEndpointDisabled_;
}
+ int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.privateServiceConnectConfig_ =
+ privateServiceConnectConfigBuilder_ == null
+ ? privateServiceConnectConfig_
+ : privateServiceConnectConfigBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
result.endpointUserId_ = endpointUserId_;
}
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -3410,9 +3568,12 @@ public Builder mergeFrom(
if (other.getDedicatedEndpointDisabled() != false) {
setDedicatedEndpointDisabled(other.getDedicatedEndpointDisabled());
}
+ if (other.hasPrivateServiceConnectConfig()) {
+ mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig());
+ }
if (!other.getEndpointUserId().isEmpty()) {
endpointUserId_ = other.endpointUserId_;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -3456,7 +3617,7 @@ public Builder mergeFrom(
case 26:
{
endpointUserId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
break;
} // case 26
case 32:
@@ -3465,6 +3626,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 32
+ case 42:
+ {
+ input.readMessage(
+ getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3621,7 +3789,7 @@ public Builder setEndpointDisplayNameBytes(com.google.protobuf.ByteString value)
*
* @deprecated
* google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled
- * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281
+ * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282
* @return The dedicatedEndpointEnabled.
*/
@java.lang.Override
@@ -3649,7 +3817,7 @@ public boolean getDedicatedEndpointEnabled() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled
- * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281
+ * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282
* @param value The dedicatedEndpointEnabled to set.
* @return This builder for chaining.
*/
@@ -3681,7 +3849,7 @@ public Builder setDedicatedEndpointEnabled(boolean value) {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled
- * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281
+ * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -3698,13 +3866,15 @@ public Builder clearDedicatedEndpointEnabled() {
*
*
*
- * Optional. By default, if dedicated endpoint is enabled, the endpoint will
- * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- * Your request to the dedicated DNS will be isolated from other users'
- * traffic and will have better performance and reliability. Note: Once you
- * enabled dedicated endpoint, you won't be able to send request to the
- * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- * removed soon.
+ * Optional. By default, if dedicated endpoint is enabled and private
+ * service connect config is not set, the endpoint will be exposed through a
+ * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ * connect config is set, the endpoint will be exposed through private
+ * service connect. Your request to the dedicated DNS will be isolated from
+ * other users' traffic and will have better performance and reliability.
+ * Note: Once you enabled dedicated endpoint, you won't be able to send
+ * request to the shared DNS {region}-aiplatform.googleapis.com. The
+ * limitations will be removed soon.
*
* If this field is set to true, the dedicated endpoint will be disabled
* and the deployed model will be exposed through the shared DNS
@@ -3725,13 +3895,15 @@ public boolean getDedicatedEndpointDisabled() {
*
*
*
- * Optional. By default, if dedicated endpoint is enabled, the endpoint will
- * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- * Your request to the dedicated DNS will be isolated from other users'
- * traffic and will have better performance and reliability. Note: Once you
- * enabled dedicated endpoint, you won't be able to send request to the
- * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- * removed soon.
+ * Optional. By default, if dedicated endpoint is enabled and private
+ * service connect config is not set, the endpoint will be exposed through a
+ * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ * connect config is set, the endpoint will be exposed through private
+ * service connect. Your request to the dedicated DNS will be isolated from
+ * other users' traffic and will have better performance and reliability.
+ * Note: Once you enabled dedicated endpoint, you won't be able to send
+ * request to the shared DNS {region}-aiplatform.googleapis.com. The
+ * limitations will be removed soon.
*
* If this field is set to true, the dedicated endpoint will be disabled
* and the deployed model will be exposed through the shared DNS
@@ -3756,13 +3928,15 @@ public Builder setDedicatedEndpointDisabled(boolean value) {
*
*
*
- * Optional. By default, if dedicated endpoint is enabled, the endpoint will
- * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- * Your request to the dedicated DNS will be isolated from other users'
- * traffic and will have better performance and reliability. Note: Once you
- * enabled dedicated endpoint, you won't be able to send request to the
- * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- * removed soon.
+ * Optional. By default, if dedicated endpoint is enabled and private
+ * service connect config is not set, the endpoint will be exposed through a
+ * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ * connect config is set, the endpoint will be exposed through private
+ * service connect. Your request to the dedicated DNS will be isolated from
+ * other users' traffic and will have better performance and reliability.
+ * Note: Once you enabled dedicated endpoint, you won't be able to send
+ * request to the shared DNS {region}-aiplatform.googleapis.com. The
+ * limitations will be removed soon.
*
* If this field is set to true, the dedicated endpoint will be disabled
* and the deployed model will be exposed through the shared DNS
@@ -3781,6 +3955,236 @@ public Builder clearDedicatedEndpointDisabled() {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ privateServiceConnectConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder>
+ privateServiceConnectConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ public boolean hasPrivateServiceConnectConfig() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ getPrivateServiceConnectConfig() {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ } else {
+ return privateServiceConnectConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig value) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ privateServiceConnectConfig_ = value;
+ } else {
+ privateServiceConnectConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder builderForValue) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ privateServiceConnectConfig_ = builderForValue.build();
+ } else {
+ privateServiceConnectConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig value) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && privateServiceConnectConfig_ != null
+ && privateServiceConnectConfig_
+ != com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+ .getDefaultInstance()) {
+ getPrivateServiceConnectConfigBuilder().mergeFrom(value);
+ } else {
+ privateServiceConnectConfig_ = value;
+ }
+ } else {
+ privateServiceConnectConfigBuilder_.mergeFrom(value);
+ }
+ if (privateServiceConnectConfig_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPrivateServiceConnectConfig() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ privateServiceConnectConfig_ = null;
+ if (privateServiceConnectConfigBuilder_ != null) {
+ privateServiceConnectConfigBuilder_.dispose();
+ privateServiceConnectConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder
+ getPrivateServiceConnectConfigBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getPrivateServiceConnectConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder() {
+ if (privateServiceConnectConfigBuilder_ != null) {
+ return privateServiceConnectConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect. If set, the endpoint
+ * will be exposed through private service connect.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder>
+ getPrivateServiceConnectConfigFieldBuilder() {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ privateServiceConnectConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder>(
+ getPrivateServiceConnectConfig(), getParentForChildren(), isClean());
+ privateServiceConnectConfig_ = null;
+ }
+ return privateServiceConnectConfigBuilder_;
+ }
+
private java.lang.Object endpointUserId_ = "";
/**
@@ -3894,7 +4298,7 @@ public Builder setEndpointUserId(java.lang.String value) {
throw new NullPointerException();
}
endpointUserId_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -3928,7 +4332,7 @@ public Builder setEndpointUserId(java.lang.String value) {
*/
public Builder clearEndpointUserId() {
endpointUserId_ = getDefaultInstance().getEndpointUserId();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
@@ -3967,7 +4371,7 @@ public Builder setEndpointUserIdBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
endpointUserId_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java
index f953cf58a1cd..7e31279c6149 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java
@@ -176,6 +176,66 @@ public com.google.protobuf.ByteString getCheckpointIdBytes() {
}
}
+ public static final int EVALUATE_DATASET_RESPONSE_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluateDatasetResponse_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the evaluateDatasetResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasEvaluateDatasetResponse() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The evaluateDatasetResponse.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse getEvaluateDatasetResponse() {
+ return evaluateDatasetResponse_ == null
+ ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance()
+ : evaluateDatasetResponse_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder
+ getEvaluateDatasetResponseOrBuilder() {
+ return evaluateDatasetResponse_ == null
+ ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance()
+ : evaluateDatasetResponse_;
+ }
+
public static final int ERROR_FIELD_NUMBER = 4;
private com.google.rpc.Status error_;
@@ -192,7 +252,7 @@ public com.google.protobuf.ByteString getCheckpointIdBytes() {
*/
@java.lang.Override
public boolean hasError() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
@@ -246,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, checkpointId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getEvaluateDatasetResponse());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getError());
}
getUnknownFields().writeTo(output);
@@ -264,6 +327,10 @@ public int getSerializedSize() {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, checkpointId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluateDatasetResponse());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError());
}
size += getUnknownFields().getSerializedSize();
@@ -284,6 +351,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getOperationName().equals(other.getOperationName())) return false;
if (!getCheckpointId().equals(other.getCheckpointId())) return false;
+ if (hasEvaluateDatasetResponse() != other.hasEvaluateDatasetResponse()) return false;
+ if (hasEvaluateDatasetResponse()) {
+ if (!getEvaluateDatasetResponse().equals(other.getEvaluateDatasetResponse())) return false;
+ }
if (hasError() != other.hasError()) return false;
if (hasError()) {
if (!getError().equals(other.getError())) return false;
@@ -303,6 +374,10 @@ public int hashCode() {
hash = (53 * hash) + getOperationName().hashCode();
hash = (37 * hash) + CHECKPOINT_ID_FIELD_NUMBER;
hash = (53 * hash) + getCheckpointId().hashCode();
+ if (hasEvaluateDatasetResponse()) {
+ hash = (37 * hash) + EVALUATE_DATASET_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getEvaluateDatasetResponse().hashCode();
+ }
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
@@ -449,6 +524,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getEvaluateDatasetResponseFieldBuilder();
getErrorFieldBuilder();
}
}
@@ -459,6 +535,11 @@ public Builder clear() {
bitField0_ = 0;
operationName_ = "";
checkpointId_ = "";
+ evaluateDatasetResponse_ = null;
+ if (evaluateDatasetResponseBuilder_ != null) {
+ evaluateDatasetResponseBuilder_.dispose();
+ evaluateDatasetResponseBuilder_ = null;
+ }
error_ = null;
if (errorBuilder_ != null) {
errorBuilder_.dispose();
@@ -508,9 +589,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRu
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
- result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+ result.evaluateDatasetResponse_ =
+ evaluateDatasetResponseBuilder_ == null
+ ? evaluateDatasetResponse_
+ : evaluateDatasetResponseBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -570,6 +658,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.hasEvaluateDatasetResponse()) {
+ mergeEvaluateDatasetResponse(other.getEvaluateDatasetResponse());
+ }
if (other.hasError()) {
mergeError(other.getError());
}
@@ -611,10 +702,17 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ getEvaluateDatasetResponseFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
case 34:
{
input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -868,6 +966,226 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluateDatasetResponse_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder>
+ evaluateDatasetResponseBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the evaluateDatasetResponse field is set.
+ */
+ public boolean hasEvaluateDatasetResponse() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The evaluateDatasetResponse.
+ */
+ public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse
+ getEvaluateDatasetResponse() {
+ if (evaluateDatasetResponseBuilder_ == null) {
+ return evaluateDatasetResponse_ == null
+ ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance()
+ : evaluateDatasetResponse_;
+ } else {
+ return evaluateDatasetResponseBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEvaluateDatasetResponse(
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse value) {
+ if (evaluateDatasetResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ evaluateDatasetResponse_ = value;
+ } else {
+ evaluateDatasetResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEvaluateDatasetResponse(
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder builderForValue) {
+ if (evaluateDatasetResponseBuilder_ == null) {
+ evaluateDatasetResponse_ = builderForValue.build();
+ } else {
+ evaluateDatasetResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeEvaluateDatasetResponse(
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse value) {
+ if (evaluateDatasetResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && evaluateDatasetResponse_ != null
+ && evaluateDatasetResponse_
+ != com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse
+ .getDefaultInstance()) {
+ getEvaluateDatasetResponseBuilder().mergeFrom(value);
+ } else {
+ evaluateDatasetResponse_ = value;
+ }
+ } else {
+ evaluateDatasetResponseBuilder_.mergeFrom(value);
+ }
+ if (evaluateDatasetResponse_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearEvaluateDatasetResponse() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ evaluateDatasetResponse_ = null;
+ if (evaluateDatasetResponseBuilder_ != null) {
+ evaluateDatasetResponseBuilder_.dispose();
+ evaluateDatasetResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder
+ getEvaluateDatasetResponseBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getEvaluateDatasetResponseFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder
+ getEvaluateDatasetResponseOrBuilder() {
+ if (evaluateDatasetResponseBuilder_ != null) {
+ return evaluateDatasetResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return evaluateDatasetResponse_ == null
+ ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance()
+ : evaluateDatasetResponse_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder>
+ getEvaluateDatasetResponseFieldBuilder() {
+ if (evaluateDatasetResponseBuilder_ == null) {
+ evaluateDatasetResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder,
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder>(
+ getEvaluateDatasetResponse(), getParentForChildren(), isClean());
+ evaluateDatasetResponse_ = null;
+ }
+ return evaluateDatasetResponseBuilder_;
+ }
+
private com.google.rpc.Status error_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
@@ -885,7 +1203,7 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) {
* @return Whether the error field is set.
*/
public boolean hasError() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
@@ -925,7 +1243,7 @@ public Builder setError(com.google.rpc.Status value) {
} else {
errorBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -945,7 +1263,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
} else {
errorBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -961,7 +1279,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
*/
public Builder mergeError(com.google.rpc.Status value) {
if (errorBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
+ if (((bitField0_ & 0x00000008) != 0)
&& error_ != null
&& error_ != com.google.rpc.Status.getDefaultInstance()) {
getErrorBuilder().mergeFrom(value);
@@ -972,7 +1290,7 @@ public Builder mergeError(com.google.rpc.Status value) {
errorBuilder_.mergeFrom(value);
}
if (error_ != null) {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
}
return this;
@@ -988,7 +1306,7 @@ public Builder mergeError(com.google.rpc.Status value) {
* .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearError() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
error_ = null;
if (errorBuilder_ != null) {
errorBuilder_.dispose();
@@ -1008,7 +1326,7 @@ public Builder clearError() {
* .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.rpc.Status.Builder getErrorBuilder() {
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java
index 1f3c9ad94a5d..4b976c6eb0be 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java
@@ -80,6 +80,50 @@ public interface EvaluateDatasetRunOrBuilder
*/
com.google.protobuf.ByteString getCheckpointIdBytes();
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the evaluateDatasetResponse field is set.
+ */
+ boolean hasEvaluateDatasetResponse();
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The evaluateDatasetResponse.
+ */
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse getEvaluateDatasetResponse();
+
+ /**
+ *
+ *
+ *
+ * Output only. Results for EvaluationService.EvaluateDataset.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder
+ getEvaluateDatasetResponseOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java
index f2eccb1cc72a..1873c301be32 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java
@@ -101,9 +101,10 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Model is constrained to always predicting function calls only.
- * If "allowed_function_names" are set, the predicted function calls will be
- * limited to any one of "allowed_function_names", else the predicted
- * function calls will be any one of the provided "function_declarations".
+ * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ * are set, the predicted function calls will be limited to any one of
+ * `allowed_function_names`, else the predicted function calls will be any
+ * one of the provided [FunctionDeclaration].
*
*
* ANY = 2;
@@ -120,6 +121,21 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
* NONE = 3;
*/
NONE(3),
+ /**
+ *
+ *
+ *
+ * Model is constrained to predict either function calls or natural language
+ * response.
+ * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ * are set, the predicted function calls will be limited to any one of
+ * `allowed_function_names`, else the predicted function calls will be any
+ * one of the provided [FunctionDeclaration].
+ *
+ *
+ * VALIDATED = 5;
+ */
+ VALIDATED(5),
UNRECOGNIZED(-1),
;
@@ -151,9 +167,10 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Model is constrained to always predicting function calls only.
- * If "allowed_function_names" are set, the predicted function calls will be
- * limited to any one of "allowed_function_names", else the predicted
- * function calls will be any one of the provided "function_declarations".
+ * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ * are set, the predicted function calls will be limited to any one of
+ * `allowed_function_names`, else the predicted function calls will be any
+ * one of the provided [FunctionDeclaration].
*
*
* ANY = 2;
@@ -172,6 +189,22 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int NONE_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Model is constrained to predict either function calls or natural language
+ * response.
+ * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ * are set, the predicted function calls will be limited to any one of
+ * `allowed_function_names`, else the predicted function calls will be any
+ * one of the provided [FunctionDeclaration].
+ *
+ *
+ * VALIDATED = 5;
+ */
+ public static final int VALIDATED_VALUE = 5;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -204,6 +237,8 @@ public static Mode forNumber(int value) {
return ANY;
case 3:
return NONE;
+ case 5:
+ return VALIDATED;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java
index d32fc6cb0089..fcf25024b4e3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java
@@ -125,13 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ce.proto\032(google/cloud/aiplatform/v1beta1/io.proto\0327google/cloud/aiplatform/v1be"
+ "ta1/machine_resources.proto\032+google/cloud/aiplatform/v1beta1/model.proto\032/google"
+ "/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aiplatform/v1beta1/publi"
- + "sher_model.proto\032#google/longrunning/operations.proto\"\312\002\n"
+ + "sher_model.proto\0328google/cloud/aiplatfor"
+ + "m/v1beta1/service_networking.proto\032#google/longrunning/operations.proto\"\312\002\n"
+ "\030GetPublisherModelRequest\022>\n"
+ "\004name\030\001 \001(\tB0\340A\002\372A*\n"
+ "(aiplatform.googleapis.com/PublisherModel\022\032\n\r"
+ "language_code\030\002 \001(\tB\003\340A\001\022F\n"
- + "\004view\030\003 \001(\01623.google.cl"
- + "oud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\"\n"
+ + "\004view\030\003"
+ + " \001(\01623.google.cloud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\"\n"
+ "\025is_hugging_face_model\030\005 \001(\010B\003\340A\001\022\037\n"
+ "\022hugging_face_token\030\006 \001(\tB\003\340A\001\022E\n"
+ "8include_equivalent_model_garden_model_deployment_configs\030\007"
@@ -141,29 +142,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006filter\030\002 \001(\tB\003\340A\001\022\026\n"
+ "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n"
+ "page_token\030\004 \001(\tB\003\340A\001\022F\n"
- + "\004view\030\005 \001"
- + "(\01623.google.cloud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\025\n"
+ + "\004view\030\005 \001(\01623.google.cloud.aipl"
+ + "atform.v1beta1.PublisherModelViewB\003\340A\001\022\025\n"
+ "\010order_by\030\006 \001(\tB\003\340A\001\022\032\n\r"
+ "language_code\030\007 \001(\tB\003\340A\001\022\036\n"
+ "\021list_all_versions\030\010 \001(\010B\003\340A\001\"\201\001\n"
+ "\033ListPublisherModelsResponse\022I\n"
- + "\020publisher_models\030\001 \003("
- + "\0132/.google.cloud.aiplatform.v1beta1.PublisherModel\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"\306\n\n\r"
+ + "\020publisher_models\030\001"
+ + " \003(\0132/.google.cloud.aiplatform.v1beta1.PublisherModel\022\027\n"
+ + "\017next_page_token\030\002 \001(\t\"\261\013\n\r"
+ "DeployRequest\022M\n"
+ "\024publisher_model_name\030\001 \001(\tB-\372A*\n"
+ "(aiplatform.googleapis.com/PublisherModelH\000\022\037\n"
+ "\025hugging_face_model_id\030\002 \001(\tH\000\022R\n"
- + "\014custom_model\030\003 \001(\0132:.google.clo"
- + "ud.aiplatform.v1beta1.DeployRequest.CustomModelH\000\022>\n"
+ + "\014custom_model\030\003"
+ + " \001(\0132:.google.cloud.aiplatform.v1beta1.DeployRequest.CustomModelH\000\022>\n"
+ "\013destination\030\004 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022U\n"
- + "\014model_config\030\005 \001(\0132:.google.cloud.aiplatfor"
- + "m.v1beta1.DeployRequest.ModelConfigB\003\340A\001\022[\n"
- + "\017endpoint_config\030\006 \001(\0132=.google.cloud"
- + ".aiplatform.v1beta1.DeployRequest.EndpointConfigB\003\340A\001\022W\n\r"
- + "deploy_config\030\007 \001(\0132;.g"
- + "oogle.cloud.aiplatform.v1beta1.DeployRequest.DeployConfigB\003\340A\001\0325\n"
+ + "\014model_config\030\005 \001(\0132:.goog"
+ + "le.cloud.aiplatform.v1beta1.DeployRequest.ModelConfigB\003\340A\001\022[\n"
+ + "\017endpoint_config\030\006 "
+ + "\001(\0132=.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfigB\003\340A\001\022W\n\r"
+ + "deploy_config\030\007 \001(\0132;.google.cloud.aiplatform"
+ + ".v1beta1.DeployRequest.DeployConfigB\003\340A\001\0325\n"
+ "\013CustomModel\022\026\n"
+ "\007gcs_uri\030\002 \001(\tB\003\340A\005H\000B\016\n"
+ "\014model_source\032\207\002\n"
@@ -172,20 +173,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\031hugging_face_access_token\030\002 \001(\tB\003\340A\001\022\'\n"
+ "\032hugging_face_cache_enabled\030\003 \001(\010B\003\340A\001\022\037\n"
+ "\022model_display_name\030\004 \001(\tB\003\340A\001\022P\n"
- + "\016container_spec\030\005"
- + " \001(\01323.google.cloud.aiplatform.v1beta1.ModelContainerSpecB\003\340A\001\022\032\n\r"
- + "model_user_id\030\006 \001(\tB\003\340A\001\032\253\001\n"
+ + "\016container_spec\030\005 \001(\01323.go"
+ + "ogle.cloud.aiplatform.v1beta1.ModelContainerSpecB\003\340A\001\022\032\n\r"
+ + "model_user_id\030\006 \001(\tB\003\340A\001\032\226\002\n"
+ "\016EndpointConfig\022\"\n"
+ "\025endpoint_display_name\030\001 \001(\tB\003\340A\001\022)\n"
+ "\032dedicated_endpoint_enabled\030\002 \001(\010B\005\030\001\340A\001\022(\n"
- + "\033dedicated_endpoint_disabled\030\004 \001(\010B\003\340A\001\022 \n"
+ + "\033dedicated_endpoint_disabled\030\004 \001(\010B\003\340A\001\022i\n"
+ + "\036private_service_connect_config\030\005 \001(\0132<.google.cloud.aip"
+ + "latform.v1beta1.PrivateServiceConnectConfigB\003\340A\001\022 \n"
+ "\020endpoint_user_id\030\003 \001(\tB\006\340A\005\340A\001\032\247\002\n"
+ "\014DeployConfig\022U\n"
- + "\023dedicated_resources\030\001 "
- + "\001(\01323.google.cloud.aiplatform.v1beta1.DedicatedResourcesB\003\340A\001\022 \n"
+ + "\023dedicated_resources\030\001"
+ + " \001(\01323.google.cloud.aiplatform.v1beta1.DedicatedResourcesB\003\340A\001\022 \n"
+ "\023fast_tryout_enabled\030\002 \001(\010B\003\340A\001\022i\n\r"
- + "system_labels\030\003 \003(\0132M.google.cloud.aiplatform.v1beta1.DeployR"
- + "equest.DeployConfig.SystemLabelsEntryB\003\340A\001\0323\n"
+ + "system_labels\030\003 \003(\0132M.google.cloud.aiplatform.v1beta1.De"
+ + "ployRequest.DeployConfig.SystemLabelsEntryB\003\340A\001\0323\n"
+ "\021SystemLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001B\013\n"
@@ -215,8 +218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005model\030\003 \001(\tB\'\340A\003\372A!\n"
+ "\037aiplatform.googleapis.com/Model:\002\030\001\"\255\002\n"
+ "\027DeployOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.clou"
- + "d.aiplatform.v1beta1.GenericOperationMetadata\022I\n"
+ + "\020generic_metadata\030\001 \001(\01329.google"
+ + ".cloud.aiplatform.v1beta1.GenericOperationMetadata\022I\n"
+ "\017publisher_model\030\002 \001(\tB0\340A\003\372A*\n"
+ "(aiplatform.googleapis.com/PublisherModel\022>\n"
+ "\013destination\030\003 \001(\tB)\340A\003\372A#\n"
@@ -224,8 +227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016project_number\030\004 \001(\003B\003\340A\003\022\025\n"
+ "\010model_id\030\005 \001(\tB\003\340A\003\"\250\002\n"
+ "%DeployPublisherModelOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cloud."
- + "aiplatform.v1beta1.GenericOperationMetadata\022I\n"
+ + "\020generic_metadata\030\001 \001(\01329.google.c"
+ + "loud.aiplatform.v1beta1.GenericOperationMetadata\022I\n"
+ "\017publisher_model\030\002 \001(\tB0\340A\003\372A*\n"
+ "(aiplatform.googleapis.com/PublisherModel\022>\n"
+ "\013destination\030\003 \001(\tB)\340A\003\372A#\n"
@@ -263,42 +266,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\031PUBLISHER_MODEL_VIEW_FULL\020\002\022&\n"
+ "\"PUBLISHER_MODEL_VERSION_VIEW_BASIC\020\0032\325\r\n"
+ "\022ModelGardenService\022\265\001\n"
- + "\021GetPublisherModel\0229.google.cloud.aiplatform.v1beta1.GetPublisherModelReque"
- + "st\032/.google.cloud.aiplatform.v1beta1.Pub"
- + "lisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{name=publishers/*/models/*}\022\310\001\n"
- + "\023ListPublisherModels\022;.google.cloud.aiplatform.v1be"
- + "ta1.ListPublisherModelsRequest\032<.google.cloud.aiplatform.v1beta1.ListPublisherMo"
- + "delsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/{parent=publishers/*}/models\022\304\001\n"
- + "\006Deploy\022..google.cloud.aiplatform.v1beta1.Deploy"
- + "Request\032\035.google.longrunning.Operation\"k\312A)\n"
- + "\016DeployResponse\022\027DeployOperationMeta"
- + "data\202\323\344\223\0029\"4/v1beta1/{destination=projects/*/locations/*}:deploy:\001*\022\216\002\n"
- + "\024DeployPublisherModel\022<.google.cloud.aiplatform.v"
- + "1beta1.DeployPublisherModelRequest\032\035.google.longrunning.Operation\"\230\001\210\002\001\312AE\n"
- + "\034DeployPublisherModelResponse\022%DeployPublishe"
- + "rModelOperationMetadata\202\323\344\223\002G\"B/v1beta1/"
- + "{destination=projects/*/locations/*}:deployPublisherModel:\001*\022\225\002\n"
- + "\024ExportPublisherModel\022<.google.cloud.aiplatform.v1beta1."
- + "ExportPublisherModelRequest\032\035.google.longrunning.Operation\"\237\001\312AE\n"
- + "\034ExportPublisherModelResponse\022%ExportPublisherModelOper"
- + "ationMetadata\202\323\344\223\002Q\"L/v1beta1/{parent=pr"
- + "ojects/*/locations/*}/{name=publishers/*/models/*}:export:\001*\022\205\002\n"
- + "!CheckPublisherModelEulaAcceptance\022I.google.cloud.aiplat"
- + "form.v1beta1.CheckPublisherModelEulaAcceptanceRequest\032=.google.cloud.aiplatform."
- + "v1beta1.PublisherModelEulaAcceptance\"V\332A"
- + "\026parent,publisher_model\202\323\344\223\0027\"2/v1beta1/"
- + "{parent=projects/*}/modelGardenEula:check:\001*\022\364\001\n"
- + "\030AcceptPublisherModelEula\022@.google.cloud.aiplatform.v1beta1.AcceptPublis"
- + "herModelEulaRequest\032=.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptan"
- + "ce\"W\332A\026parent,publisher_model\202\323\344\223\0028\"3/v1"
- + "beta1/{parent=projects/*}/modelGardenEul"
- + "a:accept:\001*\032M\312A\031aiplatform.googleapis.co"
- + "m\322A.https://www.googleapis.com/auth/cloud-platformB\356\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\027ModelGardenServiceProtoP\001ZCc"
- + "loud.google.com/go/aiplatform/apiv1beta1"
- + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou"
- + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl"
- + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\021GetPublisherModel\0229.google.cloud.aiplatform.v1beta1.GetPublisherModel"
+ + "Request\032/.google.cloud.aiplatform.v1beta"
+ + "1.PublisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{name=publishers/*/models/*}\022\310\001\n"
+ + "\023ListPublisherModels\022;.google.cloud.aiplatform"
+ + ".v1beta1.ListPublisherModelsRequest\032<.google.cloud.aiplatform.v1beta1.ListPublis"
+ + "herModelsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/{parent=publishers/*}/models\022\304\001\n"
+ + "\006Deploy\022..google.cloud.aiplatform.v1beta1.D"
+ + "eployRequest\032\035.google.longrunning.Operation\"k\312A)\n"
+ + "\016DeployResponse\022\027DeployOperatio"
+ + "nMetadata\202\323\344\223\0029\"4/v1beta1/{destination=projects/*/locations/*}:deploy:\001*\022\216\002\n"
+ + "\024DeployPublisherModel\022<.google.cloud.aiplatf"
+ + "orm.v1beta1.DeployPublisherModelRequest\032\035.google.longrunning.Operation\"\230\001\210\002\001\312AE\n"
+ + "\034DeployPublisherModelResponse\022%DeployPub"
+ + "lisherModelOperationMetadata\202\323\344\223\002G\"B/v1b"
+ + "eta1/{destination=projects/*/locations/*}:deployPublisherModel:\001*\022\225\002\n"
+ + "\024ExportPublisherModel\022<.google.cloud.aiplatform.v1b"
+ + "eta1.ExportPublisherModelRequest\032\035.google.longrunning.Operation\"\237\001\312AE\n"
+ + "\034ExportPublisherModelResponse\022%ExportPublisherMode"
+ + "lOperationMetadata\202\323\344\223\002Q\"L/v1beta1/{pare"
+ + "nt=projects/*/locations/*}/{name=publishers/*/models/*}:export:\001*\022\205\002\n"
+ + "!CheckPublisherModelEulaAcceptance\022I.google.cloud.a"
+ + "iplatform.v1beta1.CheckPublisherModelEulaAcceptanceRequest\032=.google.cloud.aiplat"
+ + "form.v1beta1.PublisherModelEulaAcceptanc"
+ + "e\"V\332A\026parent,publisher_model\202\323\344\223\0027\"2/v1b"
+ + "eta1/{parent=projects/*}/modelGardenEula:check:\001*\022\364\001\n"
+ + "\030AcceptPublisherModelEula\022@.google.cloud.aiplatform.v1beta1.AcceptP"
+ + "ublisherModelEulaRequest\032=.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcc"
+ + "eptance\"W\332A\026parent,publisher_model\202\323\344\223\0028"
+ + "\"3/v1beta1/{parent=projects/*}/modelGard"
+ + "enEula:accept:\001*\032M\312A\031aiplatform.googleap"
+ + "is.com\322A.https://www.googleapis.com/auth/cloud-platformB\356\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\027ModelGardenServiceProto"
+ + "P\001ZCcloud.google.com/go/aiplatform/apiv1"
+ + "beta1/aiplatformpb;aiplatformpb\252\002\037Google"
+ + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud"
+ + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -313,6 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.PublisherModelProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
});
internal_static_google_cloud_aiplatform_v1beta1_GetPublisherModelRequest_descriptor =
@@ -402,6 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EndpointDisplayName",
"DedicatedEndpointEnabled",
"DedicatedEndpointDisabled",
+ "PrivateServiceConnectConfig",
"EndpointUserId",
});
internal_static_google_cloud_aiplatform_v1beta1_DeployRequest_DeployConfig_descriptor =
@@ -538,6 +543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.PublisherModelProto.getDescriptor();
+ com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java
new file mode 100644
index 000000000000..e58bf1248754
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java
@@ -0,0 +1,1096 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/tuning_job.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * A pre-tuned model for continuous tuning.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.PreTunedModel}
+ */
+public final class PreTunedModel extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PreTunedModel)
+ PreTunedModelOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PreTunedModel.newBuilder() to construct.
+ private PreTunedModel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PreTunedModel() {
+ tunedModelName_ = "";
+ checkpointId_ = "";
+ baseModel_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PreTunedModel();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.TuningJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.TuningJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.class,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder.class);
+ }
+
+ public static final int TUNED_MODEL_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tunedModelName_ = "";
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The tunedModelName.
+ */
+ @java.lang.Override
+ public java.lang.String getTunedModelName() {
+ java.lang.Object ref = tunedModelName_;
+ 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();
+ tunedModelName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for tunedModelName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTunedModelNameBytes() {
+ java.lang.Object ref = tunedModelName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tunedModelName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHECKPOINT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object checkpointId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The checkpointId.
+ */
+ @java.lang.Override
+ public java.lang.String getCheckpointId() {
+ java.lang.Object ref = checkpointId_;
+ 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();
+ checkpointId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for checkpointId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCheckpointIdBytes() {
+ java.lang.Object ref = checkpointId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ checkpointId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BASE_MODEL_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseModel_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The baseModel.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseModel() {
+ java.lang.Object ref = baseModel_;
+ 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();
+ baseModel_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for baseModel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBaseModelBytes() {
+ java.lang.Object ref = baseModel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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(tunedModelName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tunedModelName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, checkpointId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, baseModel_);
+ }
+ 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(tunedModelName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tunedModelName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, checkpointId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, baseModel_);
+ }
+ 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.PreTunedModel)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel other =
+ (com.google.cloud.aiplatform.v1beta1.PreTunedModel) obj;
+
+ if (!getTunedModelName().equals(other.getTunedModelName())) return false;
+ if (!getCheckpointId().equals(other.getCheckpointId())) return false;
+ if (!getBaseModel().equals(other.getBaseModel())) 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) + TUNED_MODEL_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTunedModelName().hashCode();
+ hash = (37 * hash) + CHECKPOINT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCheckpointId().hashCode();
+ hash = (37 * hash) + BASE_MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseModel().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel 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.PreTunedModel 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.PreTunedModel 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;
+ }
+
+ /**
+ *
+ *
+ *
+ * A pre-tuned model for continuous tuning.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.PreTunedModel}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PreTunedModel)
+ com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.TuningJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.TuningJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.class,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1beta1.PreTunedModel.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ tunedModelName_ = "";
+ checkpointId_ = "";
+ baseModel_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.TuningJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel build() {
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel result =
+ new com.google.cloud.aiplatform.v1beta1.PreTunedModel(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PreTunedModel result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.tunedModelName_ = tunedModelName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.checkpointId_ = checkpointId_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.baseModel_ = baseModel_;
+ }
+ }
+
+ @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.PreTunedModel) {
+ return mergeFrom((com.google.cloud.aiplatform.v1beta1.PreTunedModel) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PreTunedModel other) {
+ if (other == com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance())
+ return this;
+ if (!other.getTunedModelName().isEmpty()) {
+ tunedModelName_ = other.tunedModelName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getCheckpointId().isEmpty()) {
+ checkpointId_ = other.checkpointId_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getBaseModel().isEmpty()) {
+ baseModel_ = other.baseModel_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ 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:
+ {
+ tunedModelName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ checkpointId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ baseModel_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ 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 tunedModelName_ = "";
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The tunedModelName.
+ */
+ public java.lang.String getTunedModelName() {
+ java.lang.Object ref = tunedModelName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tunedModelName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for tunedModelName.
+ */
+ public com.google.protobuf.ByteString getTunedModelNameBytes() {
+ java.lang.Object ref = tunedModelName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tunedModelName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The tunedModelName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTunedModelName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tunedModelName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTunedModelName() {
+ tunedModelName_ = getDefaultInstance().getTunedModelName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for tunedModelName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTunedModelNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tunedModelName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object checkpointId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The checkpointId.
+ */
+ public java.lang.String getCheckpointId() {
+ java.lang.Object ref = checkpointId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ checkpointId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for checkpointId.
+ */
+ public com.google.protobuf.ByteString getCheckpointIdBytes() {
+ java.lang.Object ref = checkpointId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ checkpointId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The checkpointId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCheckpointId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkpointId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCheckpointId() {
+ checkpointId_ = getDefaultInstance().getCheckpointId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for checkpointId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ checkpointId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object baseModel_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The baseModel.
+ */
+ public java.lang.String getBaseModel() {
+ java.lang.Object ref = baseModel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseModel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for baseModel.
+ */
+ public com.google.protobuf.ByteString getBaseModelBytes() {
+ java.lang.Object ref = baseModel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The baseModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseModel_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseModel() {
+ baseModel_ = getDefaultInstance().getBaseModel();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for baseModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ baseModel_ = value;
+ bitField0_ |= 0x00000004;
+ 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.PreTunedModel)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PreTunedModel)
+ private static final com.google.cloud.aiplatform.v1beta1.PreTunedModel DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PreTunedModel();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.PreTunedModel getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PreTunedModel 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.PreTunedModel getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java
new file mode 100644
index 000000000000..2fa0ae1f259e
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java
@@ -0,0 +1,128 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/tuning_job.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface PreTunedModelOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PreTunedModel)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The tunedModelName.
+ */
+ java.lang.String getTunedModelName();
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Model.
+ * E.g., a model resource name with a specified version id or alias:
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ *
+ * `projects/{project}/locations/{location}/models/{model}@{alias}`
+ *
+ * Or, omit the version id to use the default version:
+ *
+ * `projects/{project}/locations/{location}/models/{model}`
+ *
+ *
+ * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for tunedModelName.
+ */
+ com.google.protobuf.ByteString getTunedModelNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The checkpointId.
+ */
+ java.lang.String getCheckpointId();
+
+ /**
+ *
+ *
+ *
+ * Optional. The source checkpoint id. If not specified, the default
+ * checkpoint will be used.
+ *
+ *
+ * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for checkpointId.
+ */
+ com.google.protobuf.ByteString getCheckpointIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The baseModel.
+ */
+ java.lang.String getBaseModel();
+
+ /**
+ *
+ *
+ *
+ * Output only. The name of the base model this
+ * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ * from.
+ *
+ *
+ * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for baseModel.
+ */
+ com.google.protobuf.ByteString getBaseModelBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java
index 18e579964414..5275448c1270 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java
@@ -123,7 +123,7 @@ public long getTotalTuningCharacterCount() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is
- * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=274
+ * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277
* @return The totalBillableCharacterCount.
*/
@java.lang.Override
@@ -1511,7 +1511,7 @@ public Builder clearTotalTuningCharacterCount() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count
- * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=274
+ * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277
* @return The totalBillableCharacterCount.
*/
@java.lang.Override
@@ -1533,7 +1533,7 @@ public long getTotalBillableCharacterCount() {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count
- * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=274
+ * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277
* @param value The totalBillableCharacterCount to set.
* @return This builder for chaining.
*/
@@ -1559,7 +1559,7 @@ public Builder setTotalBillableCharacterCount(long value) {
*
* @deprecated
* google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count
- * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=274
+ * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java
index 3ee2a54bf01d..a5ad1e630049 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java
@@ -65,7 +65,7 @@ public interface SupervisedTuningDataStatsOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is
- * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=274
+ * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277
* @return The totalBillableCharacterCount.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
index 0a5c799161f9..34c1d993e5c1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
@@ -295,16 +295,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027function_calling_config\030\001 \001(\01326.google.clo"
+ "ud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n"
+ "\020retrieval_config\030\002 \001(\01320.goo"
- + "gle.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\307\001\n"
+ + "gle.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\334\001\n"
+ "\025FunctionCallingConfig\022N\n"
+ "\004mode\030\001"
+ " \001(\0162;.google.cloud.aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n"
- + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n"
+ + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"N\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\010\n"
+ "\004AUTO\020\001\022\007\n"
+ "\003ANY\020\002\022\010\n"
- + "\004NONE\020\003\"v\n"
+ + "\004NONE\020\003\022\r\n"
+ + "\tVALIDATED\020\005\"\004\010\004\020\004\"v\n"
+ "\017RetrievalConfig\022)\n"
+ "\007lat_lng\030\001 \001(\0132\023.google.type.LatLngH\000\210\001\001\022\032\n\r"
+ "language_code\030\002 \001(\tH\001\210\001\001B\n\n"
@@ -312,12 +313,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016_language_code\"\317\006\n"
+ "\022RagRetrievalConfig\022\022\n"
+ "\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\r"
- + "hybrid_search\030\002 \001(\0132@."
- + "google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n"
- + "\006filter\030\003"
- + " \001(\0132:.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n"
- + "\007ranking\030\004"
- + " \001(\0132;.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n"
+ + "hybrid_search\030\002 \001(\0132@.google.cloud.aiplat"
+ + "form.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n"
+ + "\006filter\030\003 \001(\0132:.google.cloud"
+ + ".aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n"
+ + "\007ranking\030\004 \001(\0132;.google.clo"
+ + "ud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n"
+ "\014HybridSearch\022\027\n"
+ "\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n"
+ "\006_alpha\032\223\001\n"
@@ -327,10 +328,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n"
+ "\023vector_db_threshold\032\331\002\n"
+ "\007Ranking\022d\n"
- + "\014rank_service\030\001 \001(\0132G.google.clo"
- + "ud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n"
- + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatform.v1beta"
- + "1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ + "\014rank_service\030\001 \001(\0132G.google.cloud.aiplatform.v1bet"
+ + "a1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n"
+ + "llm_ranker\030\003 \001(\0132E.google.cl"
+ + "oud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ "\013RankService\022\034\n\n"
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_name\0328\n"
@@ -338,11 +339,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_nameB\020\n"
+ "\016ranking_configB\340\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCclou"
- + "d.google.com/go/aiplatform/apiv1beta1/ai"
- + "platformpb;aiplatformpb\252\002\037Google.Cloud.A"
- + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf"
- + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCcloud.google.com/go/aip"
+ + "latform/apiv1beta1/aiplatformpb;aiplatfo"
+ + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002"
+ + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl"
+ + "e::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
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 4df41689c07f..8320c0c218d5 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
@@ -96,6 +96,7 @@ public enum SourceModelCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BASE_MODEL(4),
+ PRE_TUNED_MODEL(31),
SOURCEMODEL_NOT_SET(0);
private final int value;
@@ -117,6 +118,8 @@ public static SourceModelCase forNumber(int value) {
switch (value) {
case 4:
return BASE_MODEL;
+ case 31:
+ return PRE_TUNED_MODEL;
case 0:
return SOURCEMODEL_NOT_SET;
default:
@@ -265,6 +268,60 @@ public com.google.protobuf.ByteString getBaseModelBytes() {
}
}
+ public static final int PRE_TUNED_MODEL_FIELD_NUMBER = 31;
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return Whether the preTunedModel field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreTunedModel() {
+ return sourceModelCase_ == 31;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return The preTunedModel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel() {
+ if (sourceModelCase_ == 31) {
+ return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder() {
+ if (sourceModelCase_ == 31) {
+ return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+
public static final int SUPERVISED_TUNING_SPEC_FIELD_NUMBER = 5;
/**
@@ -1782,6 +1839,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customBaseModel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, customBaseModel_);
}
+ if (sourceModelCase_ == 31) {
+ output.writeMessage(31, (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_);
+ }
for (int i = 0; i < evaluateDatasetRuns_.size(); i++) {
output.writeMessage(32, evaluateDatasetRuns_.get(i));
}
@@ -1876,6 +1936,11 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customBaseModel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, customBaseModel_);
}
+ if (sourceModelCase_ == 31) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 31, (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_);
+ }
for (int i = 0; i < evaluateDatasetRuns_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(32, evaluateDatasetRuns_.get(i));
@@ -1949,6 +2014,9 @@ public boolean equals(final java.lang.Object obj) {
case 4:
if (!getBaseModel().equals(other.getBaseModel())) return false;
break;
+ case 31:
+ if (!getPreTunedModel().equals(other.getPreTunedModel())) return false;
+ break;
case 0:
default:
}
@@ -2043,6 +2111,10 @@ public int hashCode() {
hash = (37 * hash) + BASE_MODEL_FIELD_NUMBER;
hash = (53 * hash) + getBaseModel().hashCode();
break;
+ case 31:
+ hash = (37 * hash) + PRE_TUNED_MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getPreTunedModel().hashCode();
+ break;
case 0:
default:
}
@@ -2245,6 +2317,9 @@ private void maybeForceBuilderInitialization() {
public Builder clear() {
super.clear();
bitField0_ = 0;
+ if (preTunedModelBuilder_ != null) {
+ preTunedModelBuilder_.clear();
+ }
if (supervisedTuningSpecBuilder_ != null) {
supervisedTuningSpecBuilder_.clear();
}
@@ -2313,7 +2388,7 @@ public Builder clear() {
evaluateDatasetRuns_ = null;
evaluateDatasetRunsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
sourceModelCase_ = 0;
sourceModel_ = null;
tuningSpecCase_ = 0;
@@ -2356,9 +2431,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.TuningJob result) {
if (evaluateDatasetRunsBuilder_ == null) {
- if (((bitField0_ & 0x00800000) != 0)) {
+ if (((bitField0_ & 0x01000000) != 0)) {
evaluateDatasetRuns_ = java.util.Collections.unmodifiableList(evaluateDatasetRuns_);
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
}
result.evaluateDatasetRuns_ = evaluateDatasetRuns_;
} else {
@@ -2368,70 +2443,70 @@ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Tuni
private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) {
int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000020) != 0)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
result.name_ = name_;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.tunedModelDisplayName_ = tunedModelDisplayName_;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.description_ = description_;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.customBaseModel_ = customBaseModel_;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.state_ = state_;
}
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (((from_bitField0_ & 0x00001000) != 0)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
+ if (((from_bitField0_ & 0x00004000) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00004000) != 0)) {
+ if (((from_bitField0_ & 0x00008000) != 0)) {
result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
to_bitField0_ |= 0x00000010;
}
- if (((from_bitField0_ & 0x00008000) != 0)) {
+ if (((from_bitField0_ & 0x00010000) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
- if (((from_bitField0_ & 0x00010000) != 0)) {
+ if (((from_bitField0_ & 0x00020000) != 0)) {
result.experiment_ = experiment_;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00040000) != 0)) {
result.tunedModel_ = tunedModelBuilder_ == null ? tunedModel_ : tunedModelBuilder_.build();
to_bitField0_ |= 0x00000020;
}
- if (((from_bitField0_ & 0x00040000) != 0)) {
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.tuningDataStats_ =
tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
- if (((from_bitField0_ & 0x00080000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.pipelineJob_ = pipelineJob_;
}
- if (((from_bitField0_ & 0x00100000) != 0)) {
+ if (((from_bitField0_ & 0x00200000) != 0)) {
result.encryptionSpec_ =
encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build();
to_bitField0_ |= 0x00000080;
}
- if (((from_bitField0_ & 0x00200000) != 0)) {
+ if (((from_bitField0_ & 0x00400000) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
- if (((from_bitField0_ & 0x00400000) != 0)) {
+ if (((from_bitField0_ & 0x00800000) != 0)) {
result.outputUri_ = outputUri_;
}
result.bitField0_ |= to_bitField0_;
@@ -2440,6 +2515,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result)
private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningJob result) {
result.sourceModelCase_ = sourceModelCase_;
result.sourceModel_ = this.sourceModel_;
+ if (sourceModelCase_ == 31 && preTunedModelBuilder_ != null) {
+ result.sourceModel_ = preTunedModelBuilder_.build();
+ }
result.tuningSpecCase_ = tuningSpecCase_;
result.tuningSpec_ = this.tuningSpec_;
if (tuningSpecCase_ == 5 && supervisedTuningSpecBuilder_ != null) {
@@ -2503,22 +2581,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
if (other == com.google.cloud.aiplatform.v1beta1.TuningJob.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getTunedModelDisplayName().isEmpty()) {
tunedModelDisplayName_ = other.tunedModelDisplayName_;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getCustomBaseModel().isEmpty()) {
customBaseModel_ = other.customBaseModel_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.state_ != 0) {
@@ -2540,10 +2618,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
mergeError(other.getError());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
if (!other.getExperiment().isEmpty()) {
experiment_ = other.experiment_;
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
}
if (other.hasTunedModel()) {
@@ -2554,7 +2632,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
}
if (!other.getPipelineJob().isEmpty()) {
pipelineJob_ = other.pipelineJob_;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
}
if (other.hasEncryptionSpec()) {
@@ -2562,19 +2640,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
}
if (!other.getServiceAccount().isEmpty()) {
serviceAccount_ = other.serviceAccount_;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
onChanged();
}
if (!other.getOutputUri().isEmpty()) {
outputUri_ = other.outputUri_;
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
}
if (evaluateDatasetRunsBuilder_ == null) {
if (!other.evaluateDatasetRuns_.isEmpty()) {
if (evaluateDatasetRuns_.isEmpty()) {
evaluateDatasetRuns_ = other.evaluateDatasetRuns_;
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
} else {
ensureEvaluateDatasetRunsIsMutable();
evaluateDatasetRuns_.addAll(other.evaluateDatasetRuns_);
@@ -2587,7 +2665,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
evaluateDatasetRunsBuilder_.dispose();
evaluateDatasetRunsBuilder_ = null;
evaluateDatasetRuns_ = other.evaluateDatasetRuns_;
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
evaluateDatasetRunsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEvaluateDatasetRunsFieldBuilder()
@@ -2605,6 +2683,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) {
onChanged();
break;
}
+ case PRE_TUNED_MODEL:
+ {
+ mergePreTunedModel(other.getPreTunedModel());
+ break;
+ }
case SOURCEMODEL_NOT_SET:
{
break;
@@ -2665,19 +2748,19 @@ public Builder mergeFrom(
case 10:
{
name_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 10
case 18:
{
tunedModelDisplayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 26
case 34:
@@ -2697,37 +2780,37 @@ public Builder mergeFrom(
case 48:
{
state_ = input.readEnum();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 48
case 58:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 58
case 66:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 66
case 74:
{
input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 74
case 82:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
} // case 82
case 90:
{
input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
break;
} // case 90
case 98:
@@ -2739,31 +2822,31 @@ public Builder mergeFrom(
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 98
case 106:
{
experiment_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
break;
} // case 106
case 114:
{
input.readMessage(getTunedModelFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
break;
} // case 114
case 122:
{
input.readMessage(getTuningDataStatsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
break;
} // case 122
case 130:
{
input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
break;
} // case 130
case 138:
@@ -2776,7 +2859,7 @@ public Builder mergeFrom(
case 146:
{
pipelineJob_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
break;
} // case 146
case 170:
@@ -2789,21 +2872,27 @@ public Builder mergeFrom(
case 178:
{
serviceAccount_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
break;
} // case 178
case 202:
{
outputUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
break;
} // case 202
case 210:
{
customBaseModel_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 210
+ case 250:
+ {
+ input.readMessage(getPreTunedModelFieldBuilder().getBuilder(), extensionRegistry);
+ sourceModelCase_ = 31;
+ break;
+ } // case 250
case 258:
{
com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun m =
@@ -3016,6 +3105,225 @@ public Builder setBaseModelBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder>
+ preTunedModelBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return Whether the preTunedModel field is set.
+ */
+ @java.lang.Override
+ public boolean hasPreTunedModel() {
+ return sourceModelCase_ == 31;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return The preTunedModel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel() {
+ if (preTunedModelBuilder_ == null) {
+ if (sourceModelCase_ == 31) {
+ return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ } else {
+ if (sourceModelCase_ == 31) {
+ return preTunedModelBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ public Builder setPreTunedModel(com.google.cloud.aiplatform.v1beta1.PreTunedModel value) {
+ if (preTunedModelBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceModel_ = value;
+ onChanged();
+ } else {
+ preTunedModelBuilder_.setMessage(value);
+ }
+ sourceModelCase_ = 31;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ public Builder setPreTunedModel(
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder builderForValue) {
+ if (preTunedModelBuilder_ == null) {
+ sourceModel_ = builderForValue.build();
+ onChanged();
+ } else {
+ preTunedModelBuilder_.setMessage(builderForValue.build());
+ }
+ sourceModelCase_ = 31;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ public Builder mergePreTunedModel(com.google.cloud.aiplatform.v1beta1.PreTunedModel value) {
+ if (preTunedModelBuilder_ == null) {
+ if (sourceModelCase_ == 31
+ && sourceModel_
+ != com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance()) {
+ sourceModel_ =
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ sourceModel_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceModelCase_ == 31) {
+ preTunedModelBuilder_.mergeFrom(value);
+ } else {
+ preTunedModelBuilder_.setMessage(value);
+ }
+ }
+ sourceModelCase_ = 31;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ public Builder clearPreTunedModel() {
+ if (preTunedModelBuilder_ == null) {
+ if (sourceModelCase_ == 31) {
+ sourceModelCase_ = 0;
+ sourceModel_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceModelCase_ == 31) {
+ sourceModelCase_ = 0;
+ sourceModel_ = null;
+ }
+ preTunedModelBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder getPreTunedModelBuilder() {
+ return getPreTunedModelFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder() {
+ if ((sourceModelCase_ == 31) && (preTunedModelBuilder_ != null)) {
+ return preTunedModelBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceModelCase_ == 31) {
+ return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder>
+ getPreTunedModelFieldBuilder() {
+ if (preTunedModelBuilder_ == null) {
+ if (!(sourceModelCase_ == 31)) {
+ sourceModel_ = com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance();
+ }
+ preTunedModelBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder,
+ com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_,
+ getParentForChildren(),
+ isClean());
+ sourceModel_ = null;
+ }
+ sourceModelCase_ = 31;
+ onChanged();
+ return preTunedModelBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec,
com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec.Builder,
@@ -3998,7 +4306,7 @@ public Builder setName(java.lang.String value) {
throw new NullPointerException();
}
name_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -4019,7 +4327,7 @@ public Builder setName(java.lang.String value) {
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -4045,7 +4353,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
name_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -4121,7 +4429,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) {
throw new NullPointerException();
}
tunedModelDisplayName_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -4141,7 +4449,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) {
*/
public Builder clearTunedModelDisplayName() {
tunedModelDisplayName_ = getDefaultInstance().getTunedModelDisplayName();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -4166,7 +4474,7 @@ public Builder setTunedModelDisplayNameBytes(com.google.protobuf.ByteString valu
}
checkByteStringIsUtf8(value);
tunedModelDisplayName_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -4239,7 +4547,7 @@ public Builder setDescription(java.lang.String value) {
throw new NullPointerException();
}
description_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4258,7 +4566,7 @@ public Builder setDescription(java.lang.String value) {
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -4282,7 +4590,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
description_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -4367,7 +4675,7 @@ public Builder setCustomBaseModel(java.lang.String value) {
throw new NullPointerException();
}
customBaseModel_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4390,7 +4698,7 @@ public Builder setCustomBaseModel(java.lang.String value) {
*/
public Builder clearCustomBaseModel() {
customBaseModel_ = getDefaultInstance().getCustomBaseModel();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -4418,7 +4726,7 @@ public Builder setCustomBaseModelBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
customBaseModel_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -4459,7 +4767,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4502,7 +4810,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
state_ = value.getNumber();
onChanged();
return this;
@@ -4522,7 +4830,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) {
* @return This builder for chaining.
*/
public Builder clearState() {
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
state_ = 0;
onChanged();
return this;
@@ -4550,7 +4858,7 @@ public Builder clearState() {
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000400) != 0);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
@@ -4598,7 +4906,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
} else {
createTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -4621,7 +4929,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -4640,7 +4948,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)
+ if (((bitField0_ & 0x00000800) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
@@ -4651,7 +4959,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
}
return this;
@@ -4670,7 +4978,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearCreateTime() {
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
@@ -4693,7 +5001,7 @@ public Builder clearCreateTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
@@ -4771,7 +5079,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
- return ((bitField0_ & 0x00000800) != 0);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
@@ -4817,7 +5125,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
} else {
startTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4840,7 +5148,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4859,7 +5167,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0)
+ if (((bitField0_ & 0x00001000) != 0)
&& startTime_ != null
&& startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
@@ -4870,7 +5178,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
}
return this;
@@ -4889,7 +5197,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearStartTime() {
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
@@ -4912,7 +5220,7 @@ public Builder clearStartTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
@@ -4988,7 +5296,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
- return ((bitField0_ & 0x00001000) != 0);
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
@@ -5034,7 +5342,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
} else {
endTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5057,7 +5365,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -5076,7 +5384,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
- if (((bitField0_ & 0x00001000) != 0)
+ if (((bitField0_ & 0x00002000) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
@@ -5087,7 +5395,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
}
return this;
@@ -5106,7 +5414,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearEndTime() {
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
@@ -5129,7 +5437,7 @@ public Builder clearEndTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
@@ -5206,7 +5514,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
@@ -5256,7 +5564,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
} else {
updateTimeBuilder_.setMessage(value);
}
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -5280,7 +5588,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -5300,7 +5608,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
- if (((bitField0_ & 0x00002000) != 0)
+ if (((bitField0_ & 0x00004000) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
@@ -5311,7 +5619,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
}
return this;
@@ -5331,7 +5639,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*/
public Builder clearUpdateTime() {
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
@@ -5355,7 +5663,7 @@ public Builder clearUpdateTime() {
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
@@ -5431,7 +5739,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
* @return Whether the error field is set.
*/
public boolean hasError() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -5473,7 +5781,7 @@ public Builder setError(com.google.rpc.Status value) {
} else {
errorBuilder_.setMessage(value);
}
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -5494,7 +5802,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
} else {
errorBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -5511,7 +5819,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
*/
public Builder mergeError(com.google.rpc.Status value) {
if (errorBuilder_ == null) {
- if (((bitField0_ & 0x00004000) != 0)
+ if (((bitField0_ & 0x00008000) != 0)
&& error_ != null
&& error_ != com.google.rpc.Status.getDefaultInstance()) {
getErrorBuilder().mergeFrom(value);
@@ -5522,7 +5830,7 @@ public Builder mergeError(com.google.rpc.Status value) {
errorBuilder_.mergeFrom(value);
}
if (error_ != null) {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
}
return this;
@@ -5539,7 +5847,7 @@ public Builder mergeError(com.google.rpc.Status value) {
* .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearError() {
- bitField0_ = (bitField0_ & ~0x00004000);
+ bitField0_ = (bitField0_ & ~0x00008000);
error_ = null;
if (errorBuilder_ != null) {
errorBuilder_.dispose();
@@ -5560,7 +5868,7 @@ public Builder clearError() {
* .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.rpc.Status.Builder getErrorBuilder() {
- bitField0_ |= 0x00004000;
+ bitField0_ |= 0x00008000;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
@@ -5624,7 +5932,7 @@ private com.google.protobuf.MapField interna
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return labels_;
}
@@ -5750,7 +6058,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
}
public Builder clearLabels() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
@@ -5784,7 +6092,7 @@ public Builder removeLabels(java.lang.String key) {
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
return internalGetMutableLabels().getMutableMap();
}
@@ -5814,7 +6122,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
return this;
}
@@ -5838,7 +6146,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
return this;
}
@@ -5916,7 +6224,7 @@ public Builder setExperiment(java.lang.String value) {
throw new NullPointerException();
}
experiment_ = value;
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -5937,7 +6245,7 @@ public Builder setExperiment(java.lang.String value) {
*/
public Builder clearExperiment() {
experiment_ = getDefaultInstance().getExperiment();
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
@@ -5963,7 +6271,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
experiment_ = value;
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -5990,7 +6298,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) {
* @return Whether the tunedModel field is set.
*/
public boolean hasTunedModel() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00040000) != 0);
}
/**
@@ -6038,7 +6346,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu
} else {
tunedModelBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -6062,7 +6370,7 @@ public Builder setTunedModel(
} else {
tunedModelBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -6081,7 +6389,7 @@ public Builder setTunedModel(
*/
public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel value) {
if (tunedModelBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00040000) != 0)
&& tunedModel_ != null
&& tunedModel_ != com.google.cloud.aiplatform.v1beta1.TunedModel.getDefaultInstance()) {
getTunedModelBuilder().mergeFrom(value);
@@ -6092,7 +6400,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va
tunedModelBuilder_.mergeFrom(value);
}
if (tunedModel_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
}
return this;
@@ -6111,7 +6419,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va
*
*/
public Builder clearTunedModel() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00040000);
tunedModel_ = null;
if (tunedModelBuilder_ != null) {
tunedModelBuilder_.dispose();
@@ -6134,7 +6442,7 @@ public Builder clearTunedModel() {
*
*/
public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00040000;
onChanged();
return getTunedModelFieldBuilder().getBuilder();
}
@@ -6212,7 +6520,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu
* @return Whether the tuningDataStats field is set.
*/
public boolean hasTuningDataStats() {
- return ((bitField0_ & 0x00040000) != 0);
+ return ((bitField0_ & 0x00080000) != 0);
}
/**
@@ -6260,7 +6568,7 @@ public Builder setTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningData
} else {
tuningDataStatsBuilder_.setMessage(value);
}
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -6284,7 +6592,7 @@ public Builder setTuningDataStats(
} else {
tuningDataStatsBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -6303,7 +6611,7 @@ public Builder setTuningDataStats(
*/
public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDataStats value) {
if (tuningDataStatsBuilder_ == null) {
- if (((bitField0_ & 0x00040000) != 0)
+ if (((bitField0_ & 0x00080000) != 0)
&& tuningDataStats_ != null
&& tuningDataStats_
!= com.google.cloud.aiplatform.v1beta1.TuningDataStats.getDefaultInstance()) {
@@ -6315,7 +6623,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa
tuningDataStatsBuilder_.mergeFrom(value);
}
if (tuningDataStats_ != null) {
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
}
return this;
@@ -6334,7 +6642,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa
*
*/
public Builder clearTuningDataStats() {
- bitField0_ = (bitField0_ & ~0x00040000);
+ bitField0_ = (bitField0_ & ~0x00080000);
tuningDataStats_ = null;
if (tuningDataStatsBuilder_ != null) {
tuningDataStatsBuilder_.dispose();
@@ -6357,7 +6665,7 @@ public Builder clearTuningDataStats() {
*
*/
public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningDataStatsBuilder() {
- bitField0_ |= 0x00040000;
+ bitField0_ |= 0x00080000;
onChanged();
return getTuningDataStatsFieldBuilder().getBuilder();
}
@@ -6491,7 +6799,7 @@ public Builder setPipelineJob(java.lang.String value) {
throw new NullPointerException();
}
pipelineJob_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -6513,7 +6821,7 @@ public Builder setPipelineJob(java.lang.String value) {
*/
public Builder clearPipelineJob() {
pipelineJob_ = getDefaultInstance().getPipelineJob();
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
@@ -6540,7 +6848,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
pipelineJob_ = value;
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -6566,7 +6874,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) {
* @return Whether the encryptionSpec field is set.
*/
public boolean hasEncryptionSpec() {
- return ((bitField0_ & 0x00100000) != 0);
+ return ((bitField0_ & 0x00200000) != 0);
}
/**
@@ -6612,7 +6920,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS
} else {
encryptionSpecBuilder_.setMessage(value);
}
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -6635,7 +6943,7 @@ public Builder setEncryptionSpec(
} else {
encryptionSpecBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return this;
}
@@ -6653,7 +6961,7 @@ public Builder setEncryptionSpec(
*/
public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) {
if (encryptionSpecBuilder_ == null) {
- if (((bitField0_ & 0x00100000) != 0)
+ if (((bitField0_ & 0x00200000) != 0)
&& encryptionSpec_ != null
&& encryptionSpec_
!= com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) {
@@ -6665,7 +6973,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio
encryptionSpecBuilder_.mergeFrom(value);
}
if (encryptionSpec_ != null) {
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
}
return this;
@@ -6683,7 +6991,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio
* .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16;
*/
public Builder clearEncryptionSpec() {
- bitField0_ = (bitField0_ & ~0x00100000);
+ bitField0_ = (bitField0_ & ~0x00200000);
encryptionSpec_ = null;
if (encryptionSpecBuilder_ != null) {
encryptionSpecBuilder_.dispose();
@@ -6705,7 +7013,7 @@ public Builder clearEncryptionSpec() {
* .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16;
*/
public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() {
- bitField0_ |= 0x00100000;
+ bitField0_ |= 0x00200000;
onChanged();
return getEncryptionSpecFieldBuilder().getBuilder();
}
@@ -6843,7 +7151,7 @@ public Builder setServiceAccount(java.lang.String value) {
throw new NullPointerException();
}
serviceAccount_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
onChanged();
return this;
}
@@ -6867,7 +7175,7 @@ public Builder setServiceAccount(java.lang.String value) {
*/
public Builder clearServiceAccount() {
serviceAccount_ = getDefaultInstance().getServiceAccount();
- bitField0_ = (bitField0_ & ~0x00200000);
+ bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
return this;
}
@@ -6896,7 +7204,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
serviceAccount_ = value;
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00400000;
onChanged();
return this;
}
@@ -6972,7 +7280,7 @@ public Builder setOutputUri(java.lang.String value) {
throw new NullPointerException();
}
outputUri_ = value;
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -6992,7 +7300,7 @@ public Builder setOutputUri(java.lang.String value) {
*/
public Builder clearOutputUri() {
outputUri_ = getDefaultInstance().getOutputUri();
- bitField0_ = (bitField0_ & ~0x00400000);
+ bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
return this;
}
@@ -7017,7 +7325,7 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
outputUri_ = value;
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00800000;
onChanged();
return this;
}
@@ -7026,11 +7334,11 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) {
evaluateDatasetRuns_ = java.util.Collections.emptyList();
private void ensureEvaluateDatasetRunsIsMutable() {
- if (!((bitField0_ & 0x00800000) != 0)) {
+ if (!((bitField0_ & 0x01000000) != 0)) {
evaluateDatasetRuns_ =
new java.util.ArrayList(
evaluateDatasetRuns_);
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x01000000;
}
}
@@ -7284,7 +7592,7 @@ public Builder addAllEvaluateDatasetRuns(
public Builder clearEvaluateDatasetRuns() {
if (evaluateDatasetRunsBuilder_ == null) {
evaluateDatasetRuns_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00800000);
+ bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
} else {
evaluateDatasetRunsBuilder_.clear();
@@ -7433,7 +7741,7 @@ public Builder removeEvaluateDatasetRuns(int index) {
com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun.Builder,
com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunOrBuilder>(
evaluateDatasetRuns_,
- ((bitField0_ & 0x00800000) != 0),
+ ((bitField0_ & 0x01000000) != 0),
getParentForChildren(),
isClean());
evaluateDatasetRuns_ = null;
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 30e040f79a7f..65979089d4c4 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
@@ -66,6 +66,43 @@ public interface TuningJobOrBuilder
*/
com.google.protobuf.ByteString getBaseModelBytes();
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return Whether the preTunedModel field is set.
+ */
+ boolean hasPreTunedModel();
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ *
+ * @return The preTunedModel.
+ */
+ com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel();
+
+ /**
+ *
+ *
+ *
+ * The pre-tuned model for continuous tuning.
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31;
+ */
+ com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java
index bf6dbb9b5381..fde264ec44d3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java
@@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -137,17 +141,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "valuation_service.proto\032/google/cloud/ai"
+ "platform/v1beta1/job_state.proto\032\034google"
+ "/protobuf/struct.proto\032\037google/protobuf/"
- + "timestamp.proto\032\027google/rpc/status.proto\"\265\014\n"
+ + "timestamp.proto\032\027google/rpc/status.proto\"\200\r\n"
+ "\tTuningJob\022\024\n\n"
- + "base_model\030\004 \001(\tH\000\022W\n"
- + "\026supervised_tuning_spec\030\005 \001(\01325.google.cl"
- + "oud.aiplatform.v1beta1.SupervisedTuningSpecH\001\022N\n"
- + "\021distillation_spec\030\021 \001(\01321.googl"
- + "e.cloud.aiplatform.v1beta1.DistillationSpecH\001\022\\\n"
- + "\031partner_model_tuning_spec\030\025 \001(\013"
- + "27.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n"
- + "\017veo_tuning_spec\030!"
- + " \001(\0132..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n"
+ + "base_model\030\004 \001(\tH\000\022I\n"
+ + "\017pre_tuned_model\030\037"
+ + " \001(\0132..google.cloud.aiplatform.v1beta1.PreTunedModelH\000\022W\n"
+ + "\026supervised_tuning_spec\030\005 \001(\01325.google.cloud.a"
+ + "iplatform.v1beta1.SupervisedTuningSpecH\001\022N\n"
+ + "\021distillation_spec\030\021 \001(\01321.google.clo"
+ + "ud.aiplatform.v1beta1.DistillationSpecH\001\022\\\n"
+ + "\031partner_model_tuning_spec\030\025 \001(\01327.go"
+ + "ogle.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n"
+ + "\017veo_tuning_spec\030! \001(\0132"
+ + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n"
+ "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n"
+ "\030tuned_model_display_name\030\002 \001(\tB\003\340A\001\022\030\n"
+ "\013description\030\003 \001(\tB\003\340A\001\022\036\n"
@@ -161,28 +167,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\n"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n"
+ "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022K\n"
- + "\006labels\030\014 \003(\01326.google.cloud."
- + "aiplatform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n"
+ + "\006labels\030\014 \003(\01326.google.cloud.aipla"
+ + "tform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n"
+ "experiment\030\r"
+ " \001(\tB)\340A\003\372A#\n"
+ "!aiplatform.googleapis.com/Context\022E\n"
+ "\013tuned_model\030\016"
+ " \001(\0132+.google.cloud.aiplatform.v1beta1.TunedModelB\003\340A\003\022P\n"
- + "\021tuning_data_stats\030\017"
- + " \001(\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n"
+ + "\021tuning_data_stats\030\017 \001("
+ + "\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n"
+ "\014pipeline_job\030\022 \001(\tB-\340A\003\372A\'\n"
+ "%aiplatform.googleapis.com/PipelineJob\022H\n"
- + "\017encryption_spec\030\020 \001(\0132/.go"
- + "ogle.cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n"
+ + "\017encryption_spec\030\020 \001(\0132/.google."
+ + "cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n"
+ "\017service_account\030\026 \001(\t\022\027\n\n"
+ "output_uri\030\031 \001(\tB\003\340A\001\022W\n"
- + "\025evaluate_dataset_runs\030 "
- + " \003(\01323.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n"
+ + "\025evaluate_dataset_runs\030 \003(\013"
+ + "23.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n"
- + "#aiplatform.googleapis.com/TuningJob\022?proje"
- + "cts/{project}/locations/{location}/tuningJobs/{tuning_job}*\n"
+ + "#aiplatform.googleapis.com/TuningJob\022?projects/{"
+ + "project}/locations/{location}/tuningJobs/{tuning_job}*\n"
+ "tuningJobs2\ttuningJobB\016\n"
+ "\014source_modelB\r\n"
+ "\013tuning_spec\"\323\001\n\n"
@@ -191,8 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037aiplatform.googleapis.com/Model\022<\n"
+ "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n"
+ "\"aiplatform.googleapis.com/Endpoint\022O\n"
- + "\013checkpoints\030\003 \003(\01325.google.clou"
- + "d.aiplatform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n"
+ + "\013checkpoints\030\003 \003(\01325.google.cloud.aip"
+ + "latform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n"
+ "#SupervisedTuningDatasetDistribution\022\020\n"
+ "\003sum\030\001 \001(\003B\003\340A\003\022\031\n"
+ "\014billable_sum\030\t \001(\003B\003\340A\003\022\020\n"
@@ -202,8 +208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006median\030\005 \001(\001B\003\340A\003\022\017\n"
+ "\002p5\030\006 \001(\001B\003\340A\003\022\020\n"
+ "\003p95\030\007 \001(\001B\003\340A\003\022h\n"
- + "\007buckets\030\010 \003(\0132R.google.cloud.aipla"
- + "tform.v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r"
+ + "\007buckets\030\010 \003(\0132R.google.cloud.aiplatform"
+ + ".v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r"
+ "DatasetBucket\022\022\n"
+ "\005count\030\001 \001(\001B\003\340A\003\022\021\n"
+ "\004left\030\002 \001(\001B\003\340A\003\022\022\n"
@@ -214,14 +220,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\036total_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n"
+ "\032total_billable_token_count\030\t \001(\003B\003\340A\003\022\036\n"
+ "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022p\n"
- + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aipla"
- + "tform.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n"
- + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform"
- + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n"
- + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatfo"
- + "rm.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n"
- + "\025user_dataset_examples\030\010 \003"
- + "(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n"
+ + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aiplatform"
+ + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n"
+ + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform.v1be"
+ + "ta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n"
+ + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatform.v1"
+ + "beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n"
+ + "\025user_dataset_examples\030\010 \003(\0132(."
+ + "google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n"
+ "\035total_truncated_example_count\030\n"
+ " \001(\003B\003\340A\003\022&\n"
+ "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n"
@@ -234,8 +240,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006median\030\005 \001(\001B\003\340A\003\022\017\n"
+ "\002p5\030\006 \001(\001B\003\340A\003\022\020\n"
+ "\003p95\030\007 \001(\001B\003\340A\003\022]\n"
- + "\007buckets\030\010 \003(\0132G.google.cloud.aip"
- + "latform.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n"
+ + "\007buckets\030\010 \003(\0132G.google.cloud.aiplatfo"
+ + "rm.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n"
+ "\022DistributionBucket\022\022\n"
+ "\005count\030\001 \001(\003B\003\340A\003\022\021\n"
+ "\004left\030\002 \001(\001B\003\340A\003\022\022\n"
@@ -245,30 +251,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n"
+ "\036total_billable_character_count\030\003 \001(\003B\003\340A\003\022\036\n"
+ "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022`\n"
- + "\035user_input_token_distribution\030\005 \001(\0132"
- + "4.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n"
- + "\036user_output_token_distribution\030\006 \001(\01324.google.cloud.aiplat"
- + "form.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n"
+ + "\035user_input_token_distribution\030\005 \001(\01324.goo"
+ + "gle.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n"
+ + "\036user_output_token_distribution\030\006"
+ + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n"
+ "%user_message_per_example_distribution\030\007"
+ " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022L\n"
+ "\025user_dataset_examples\030\010"
+ " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003B!\n"
+ "\037_user_output_token_distribution\"k\n"
+ "\025DistillationDataStats\022R\n"
- + "\026training_dataset_stats\030\001 \001(\0132-"
- + ".google.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n"
+ + "\026training_dataset_stats\030\001 \001(\0132-.goog"
+ + "le.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n"
+ "\017TuningDataStats\022b\n"
- + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cl"
- + "oud.aiplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n"
- + "\027distillation_data_stats\030\003 "
- + "\001(\01326.google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n"
+ + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cloud.a"
+ + "iplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n"
+ + "\027distillation_data_stats\030\003 \001(\01326"
+ + ".google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n"
+ "\021tuning_data_stats\"\264\003\n"
+ "\031SupervisedHyperParameters\022\030\n"
+ "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n"
+ "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\032\n\r"
+ "learning_rate\030\006 \001(\001B\003\340A\001\022a\n"
- + "\014adapter_size\030\003 \001(\0162F.googl"
- + "e.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n"
+ + "\014adapter_size\030\003 \001(\0162F.google.clo"
+ + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n"
+ "batch_size\030\005 \001(\003B\003\340A\001\"\275\001\n"
+ "\013AdapterSize\022\034\n"
+ "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n"
@@ -284,10 +290,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020hyper_parameters\030\003"
+ " \001(\0132:.google.cloud.aiplatform.v1beta1.SupervisedHyperParametersB\003\340A\001\022(\n"
+ "\033export_last_checkpoint_only\030\006 \001(\010B\003\340A\001\022Q\n"
- + "\021evaluation_config\030\005 \001(\01321.google.cloud.a"
- + "iplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n"
- + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aipl"
- + "atform.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n"
+ + "\021evaluation_config\030\005"
+ + " \001(\01321.google.cloud.aiplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n"
+ + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aiplatfor"
+ + "m.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n"
+ "TuningMode\022\033\n"
+ "\027TUNING_MODE_UNSPECIFIED\020\000\022\024\n"
+ "\020TUNING_MODE_FULL\020\001\022\034\n"
@@ -298,8 +304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\037aiplatform.googleapis.com/ModelH\000\022!\n"
+ "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022(\n"
+ "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001H\001\210\001\001\022[\n"
- + "\020hyper_parameters\030\003 \001(\0132<.google.cloud.aiplatform.v1"
- + "beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r"
+ + "\020hyper_parameters\030\003"
+ + " \001(\0132<.google.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r"
+ "student_model\030\004 \001(\t\022$\n"
+ "\027pipeline_root_directory\030\007 \001(\tB\003\340A\002B\017\n\r"
+ "teacher_modelB\031\n"
@@ -307,15 +313,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\033DistillationHyperParameters\022\035\n"
+ "\013epoch_count\030\001 \001(\003B\003\340A\001H\000\210\001\001\022*\n"
+ "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001H\001\210\001\001\022a\n"
- + "\014adapter_size\030\003 \001(\0162F.googl"
- + "e.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n"
+ + "\014adapter_size\030\003 \001(\0162F.google.clo"
+ + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n"
+ "\014_epoch_countB\033\n"
+ "\031_learning_rate_multiplier\"\230\002\n"
+ "\026PartnerModelTuningSpec\022!\n"
+ "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n"
+ "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022f\n"
- + "\020hyper_parameters\030\003 \003(\0132"
- + "L.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n"
+ + "\020hyper_parameters\030\003 \003(\0132L.goo"
+ + "gle.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n"
+ "\024HyperParametersEntry\022\013\n"
+ "\003key\030\001 \001(\t\022%\n"
+ "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n\r"
@@ -330,8 +336,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022VeoHyperParameters\022\030\n"
+ "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n"
+ "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022X\n"
- + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatfo"
- + "rm.v1beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n"
+ + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatform.v1"
+ + "beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n"
+ "TuningTask\022\033\n"
+ "\027TUNING_TASK_UNSPECIFIED\020\000\022\023\n"
+ "\017TUNING_TASK_I2V\020\001\022\023\n"
@@ -339,29 +345,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "VeoTuningSpec\022!\n"
+ "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n"
+ "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n"
- + "\020hyper_parameters\030\003"
- + " \001(\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\355\001\n"
+ + "\020hyper_parameters\030\003 \001("
+ + "\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\355\001\n"
+ "\020EvaluationConfig\022=\n"
+ "\007metrics\030\001"
+ " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r"
+ "output_config\030\002"
+ " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n"
+ "\020autorater_config\030\003"
- + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"u\n"
+ + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"\327\001\n"
+ "\022EvaluateDatasetRun\022\033\n"
+ "\016operation_name\030\001 \001(\tB\003\340A\003\022\032\n\r"
- + "checkpoint_id\030\002 \001(\tB\003\340A\003\022&\n"
+ + "checkpoint_id\030\002 \001(\tB\003\340A\003\022`\n"
+ + "\031evaluate_dataset_response\030\003"
+ + " \001(\01328.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n"
+ "\005error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A\003\"\\\n"
+ "\024TunedModelCheckpoint\022\025\n\r"
+ "checkpoint_id\030\001 \001(\t\022\r\n"
+ "\005epoch\030\002 \001(\003\022\014\n"
+ "\004step\030\003 \001(\003\022\020\n"
- + "\010endpoint\030\004 \001(\tB\345\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobProtoP\001ZCcloud.google.com/go/aip"
- + "latform/apiv1beta1/aiplatformpb;aiplatfo"
- + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002"
- + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl"
- + "e::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\010endpoint\030\004 \001(\t\"\204\001\n\r"
+ + "PreTunedModel\022>\n"
+ + "\020tuned_model_name\030\001 \001(\tB$\372A!\n"
+ + "\037aiplatform.googleapis.com/Model\022\032\n\r"
+ + "checkpoint_id\030\002 \001(\tB\003\340A\001\022\027\n\n"
+ + "base_model\030\003 \001(\tB\003\340A\003B\345\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobPro"
+ + "toP\001ZCcloud.google.com/go/aiplatform/api"
+ + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog"
+ + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo"
+ + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -384,6 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_aiplatform_v1beta1_TuningJob_descriptor,
new java.lang.String[] {
"BaseModel",
+ "PreTunedModel",
"SupervisedTuningSpec",
"DistillationSpec",
"PartnerModelTuningSpec",
@@ -614,7 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor,
new java.lang.String[] {
- "OperationName", "CheckpointId", "Error",
+ "OperationName", "CheckpointId", "EvaluateDatasetResponse", "Error",
});
internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor =
getDescriptor().getMessageTypes().get(18);
@@ -624,6 +638,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"CheckpointId", "Epoch", "Step", "Endpoint",
});
+ internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor,
+ new java.lang.String[] {
+ "TunedModelName", "CheckpointId", "BaseModel",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto
index 0fce711f3502..5fdbf6b477e4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto
@@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto";
import "google/cloud/aiplatform/v1beta1/model.proto";
import "google/cloud/aiplatform/v1beta1/operation.proto";
import "google/cloud/aiplatform/v1beta1/publisher_model.proto";
+import "google/cloud/aiplatform/v1beta1/service_networking.proto";
import "google/longrunning/operations.proto";
option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
@@ -282,13 +283,15 @@ message DeployRequest {
bool dedicated_endpoint_enabled = 2
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
- // Optional. By default, if dedicated endpoint is enabled, the endpoint will
- // be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
- // Your request to the dedicated DNS will be isolated from other users'
- // traffic and will have better performance and reliability. Note: Once you
- // enabled dedicated endpoint, you won't be able to send request to the
- // shared DNS {region}-aiplatform.googleapis.com. The limitations will be
- // removed soon.
+ // Optional. By default, if dedicated endpoint is enabled and private
+ // service connect config is not set, the endpoint will be exposed through a
+ // dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+ // connect config is set, the endpoint will be exposed through private
+ // service connect. Your request to the dedicated DNS will be isolated from
+ // other users' traffic and will have better performance and reliability.
+ // Note: Once you enabled dedicated endpoint, you won't be able to send
+ // request to the shared DNS {region}-aiplatform.googleapis.com. The
+ // limitations will be removed soon.
//
// If this field is set to true, the dedicated endpoint will be disabled
// and the deployed model will be exposed through the shared DNS
@@ -296,6 +299,11 @@ message DeployRequest {
bool dedicated_endpoint_disabled = 4
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. Configuration for private service connect. If set, the endpoint
+ // will be exposed through private service connect.
+ PrivateServiceConnectConfig private_service_connect_config = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. Immutable. The ID to use for endpoint, which will become the
// final component of the endpoint resource name. If not provided, Vertex AI
// will generate a value for this ID.
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 8945a322c486..31c83cf10e3b 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
@@ -484,6 +484,8 @@ message ToolConfig {
message FunctionCallingConfig {
// Function calling mode.
enum Mode {
+ reserved 4;
+
// Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;
@@ -492,14 +494,23 @@ message FunctionCallingConfig {
AUTO = 1;
// Model is constrained to always predicting function calls only.
- // If "allowed_function_names" are set, the predicted function calls will be
- // limited to any one of "allowed_function_names", else the predicted
- // function calls will be any one of the provided "function_declarations".
+ // If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ // are set, the predicted function calls will be limited to any one of
+ // `allowed_function_names`, else the predicted function calls will be any
+ // one of the provided [FunctionDeclaration].
ANY = 2;
// Model will not predict any function calls. Model behavior is same as when
// not passing any function declarations.
NONE = 3;
+
+ // Model is constrained to predict either function calls or natural language
+ // response.
+ // If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+ // are set, the predicted function calls will be limited to any one of
+ // `allowed_function_names`, else the predicted function calls will be any
+ // one of the provided [FunctionDeclaration].
+ VALIDATED = 5;
}
// Optional. Function calling mode.
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 3d19fed1c82c..62ba33a7b50e 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
@@ -47,6 +47,9 @@ message TuningJob {
// The base model that is being tuned. See [Supported
// models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_model = 4;
+
+ // The pre-tuned model for continuous tuning.
+ PreTunedModel pre_tuned_model = 31;
}
oneof tuning_spec {
@@ -653,6 +656,10 @@ message EvaluateDatasetRun {
// when evaluating checkpoints.
string checkpoint_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // Output only. Results for EvaluationService.EvaluateDataset.
+ EvaluateDatasetResponse evaluate_dataset_response = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Output only. The error of the evaluation run if any.
google.rpc.Status error = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}
@@ -672,3 +679,29 @@ message TunedModelCheckpoint {
// `projects/{project}/locations/{location}/endpoints/{endpoint}`.
string endpoint = 4;
}
+
+// A pre-tuned model for continuous tuning.
+message PreTunedModel {
+ // The resource name of the Model.
+ // E.g., a model resource name with a specified version id or alias:
+ //
+ // `projects/{project}/locations/{location}/models/{model}@{version_id}`
+ //
+ // `projects/{project}/locations/{location}/models/{model}@{alias}`
+ //
+ // Or, omit the version id to use the default version:
+ //
+ // `projects/{project}/locations/{location}/models/{model}`
+ string tuned_model_name = 1 [(google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Model"
+ }];
+
+ // Optional. The source checkpoint id. If not specified, the default
+ // checkpoint will be used.
+ string checkpoint_id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The name of the base model this
+ // [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+ // from.
+ string base_model = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md
index e46e9e97f607..c58d7668a082 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.66.0
+ 26.67.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb-connectors
- 0.50.0
+ 0.51.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.50.0'
+implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.51.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.50.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.51.0"
```
## Authentication
@@ -194,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.50.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.51.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 9dc58b4b98e5..c000ab5d97a6 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.66.0
+ 26.67.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-alloydb
- 0.61.0
+ 0.62.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-alloydb:0.61.0'
+implementation 'com.google.cloud:google-cloud-alloydb:0.62.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.61.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.62.0"
```
## Authentication
@@ -194,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.61.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.62.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-analytics-admin/README.md b/java-analytics-admin/README.md
index 35ecafa78445..bf4856dcb85b 100644
--- a/java-analytics-admin/README.md
+++ b/java-analytics-admin/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.66.0
+ 26.67.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-admin
- 0.82.0
+ 0.83.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-admin:0.82.0'
+implementation 'com.google.analytics:google-analytics-admin:0.83.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.82.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.83.0"
```
## Authentication
@@ -200,7 +200,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-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.82.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.83.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-analytics-data/README.md b/java-analytics-data/README.md
index e5e9fa0091d8..c5913806e127 100644
--- a/java-analytics-data/README.md
+++ b/java-analytics-data/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.66.0
+ 26.67.0
pom
import
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.analytics
google-analytics-data
- 0.83.0
+ 0.84.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.analytics:google-analytics-data:0.83.0'
+implementation 'com.google.analytics:google-analytics-data:0.84.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.83.0"
+libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.84.0"
```
## Authentication
@@ -200,7 +200,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-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.83.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.84.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-analyticshub/README.md b/java-analyticshub/README.md
index 73a77fcd8807..e40929b2d9b9 100644
--- a/java-analyticshub/README.md
+++ b/java-analyticshub/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.66.0
+ 26.67.0
pom
import
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-analyticshub
- 0.69.0
+ 0.70.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-analyticshub:0.69.0'
+implementation 'com.google.cloud:google-cloud-analyticshub:0.70.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.69.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.70.0"
```
## Authentication
@@ -194,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-analyticshub.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.69.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.70.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-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java
index 93c36876f368..d4ae52994cd5 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java
@@ -488,6 +488,139 @@
*
*
*
+ *
+ * CreateQueryTemplate
+ * Creates a new QueryTemplate
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createQueryTemplate(CreateQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createQueryTemplate(DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId)
+ *
createQueryTemplate(String parent, QueryTemplate queryTemplate, String queryTemplateId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createQueryTemplateCallable()
+ *
+ *
+ *
+ *
+ * GetQueryTemplate
+ * Gets a QueryTemplate
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getQueryTemplate(GetQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getQueryTemplate(QueryTemplateName name)
+ *
getQueryTemplate(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.
+ *
+ * getQueryTemplateCallable()
+ *
+ *
+ *
+ *
+ * ListQueryTemplates
+ * Lists all QueryTemplates in a given project and location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listQueryTemplates(ListQueryTemplatesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listQueryTemplates(DataExchangeName parent)
+ *
listQueryTemplates(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.
+ *
+ * listQueryTemplatesPagedCallable()
+ *
listQueryTemplatesCallable()
+ *
+ *
+ *
+ *
+ * UpdateQueryTemplate
+ * Updates an existing QueryTemplate
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateQueryTemplate(UpdateQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * updateQueryTemplate(QueryTemplate queryTemplate, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateQueryTemplateCallable()
+ *
+ *
+ *
+ *
+ * DeleteQueryTemplate
+ * Deletes a query template.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteQueryTemplate(DeleteQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deleteQueryTemplate(QueryTemplateName name)
+ *
deleteQueryTemplate(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.
+ *
+ * deleteQueryTemplateCallable()
+ *
+ *
+ *
+ *
+ * SubmitQueryTemplate
+ * Submits a query template for approval.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * submitQueryTemplate(SubmitQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * submitQueryTemplate(QueryTemplateName name)
+ *
submitQueryTemplate(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.
+ *
+ * submitQueryTemplateCallable()
+ *
+ *
+ *
+ *
+ * ApproveQueryTemplate
+ * Approves a query template.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * approveQueryTemplate(ApproveQueryTemplateRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * approveQueryTemplate(QueryTemplateName name)
+ *
approveQueryTemplate(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.
+ *
+ * approveQueryTemplateCallable()
+ *
+ *
+ *
*
*
* See the individual methods for example code.
@@ -3365,47 +3498,948 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
return stub.testIamPermissionsCallable();
}
- @Override
- public final void close() {
- stub.close();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new QueryTemplate
+ *
+ *
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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+ * QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ * String queryTemplateId = "queryTemplateId-1884800483";
+ * QueryTemplate response =
+ * analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+ * @param queryTemplate Required. The QueryTemplate to create.
+ * @param queryTemplateId Required. The ID of the QueryTemplate to create. Must contain only
+ * Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate createQueryTemplate(
+ DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId) {
+ CreateQueryTemplateRequest request =
+ CreateQueryTemplateRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setQueryTemplate(queryTemplate)
+ .setQueryTemplateId(queryTemplateId)
+ .build();
+ return createQueryTemplate(request);
}
- @Override
- public void shutdown() {
- stub.shutdown();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
+ * QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ * String queryTemplateId = "queryTemplateId-1884800483";
+ * QueryTemplate response =
+ * analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+ * @param queryTemplate Required. The QueryTemplate to create.
+ * @param queryTemplateId Required. The ID of the QueryTemplate to create. Must contain only
+ * Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate createQueryTemplate(
+ String parent, QueryTemplate queryTemplate, String queryTemplateId) {
+ CreateQueryTemplateRequest request =
+ CreateQueryTemplateRequest.newBuilder()
+ .setParent(parent)
+ .setQueryTemplate(queryTemplate)
+ .setQueryTemplateId(queryTemplateId)
+ .build();
+ return createQueryTemplate(request);
}
- @Override
- public boolean isShutdown() {
- return stub.isShutdown();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * CreateQueryTemplateRequest request =
+ * CreateQueryTemplateRequest.newBuilder()
+ * .setParent(
+ * DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+ * .setQueryTemplateId("queryTemplateId-1884800483")
+ * .setQueryTemplate(QueryTemplate.newBuilder().build())
+ * .build();
+ * QueryTemplate response = analyticsHubServiceClient.createQueryTemplate(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 QueryTemplate createQueryTemplate(CreateQueryTemplateRequest request) {
+ return createQueryTemplateCallable().call(request);
}
- @Override
- public boolean isTerminated() {
- return stub.isTerminated();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * CreateQueryTemplateRequest request =
+ * CreateQueryTemplateRequest.newBuilder()
+ * .setParent(
+ * DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+ * .setQueryTemplateId("queryTemplateId-1884800483")
+ * .setQueryTemplate(QueryTemplate.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.createQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * QueryTemplate response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createQueryTemplateCallable() {
+ return stub.createQueryTemplateCallable();
}
- @Override
- public void shutdownNow() {
- stub.shutdownNow();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * QueryTemplateName name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ * QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The parent resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate getQueryTemplate(QueryTemplateName name) {
+ GetQueryTemplateRequest request =
+ GetQueryTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getQueryTemplate(request);
}
- @Override
- public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
- return stub.awaitTermination(duration, unit);
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString();
+ * QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The parent resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate getQueryTemplate(String name) {
+ GetQueryTemplateRequest request = GetQueryTemplateRequest.newBuilder().setName(name).build();
+ return getQueryTemplate(request);
}
- public static class ListDataExchangesPagedResponse
- extends AbstractPagedListResponse<
- ListDataExchangesRequest,
- ListDataExchangesResponse,
- DataExchange,
- ListDataExchangesPage,
- ListDataExchangesFixedSizeCollection> {
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * GetQueryTemplateRequest request =
+ * GetQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(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 QueryTemplate getQueryTemplate(GetQueryTemplateRequest request) {
+ return getQueryTemplateCallable().call(request);
+ }
- public static ApiFuture createAsync(
- PageContext context,
- ApiFuture futureResponse) {
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * GetQueryTemplateRequest request =
+ * GetQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.getQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * QueryTemplate response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getQueryTemplateCallable() {
+ return stub.getQueryTemplateCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all QueryTemplates 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+ * for (QueryTemplate element :
+ * analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource path of the QueryTemplates. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListQueryTemplatesPagedResponse listQueryTemplates(DataExchangeName parent) {
+ ListQueryTemplatesRequest request =
+ ListQueryTemplatesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listQueryTemplates(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all QueryTemplates 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
+ * for (QueryTemplate element :
+ * analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource path of the QueryTemplates. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListQueryTemplatesPagedResponse listQueryTemplates(String parent) {
+ ListQueryTemplatesRequest request =
+ ListQueryTemplatesRequest.newBuilder().setParent(parent).build();
+ return listQueryTemplates(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all QueryTemplates 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * ListQueryTemplatesRequest request =
+ * ListQueryTemplatesRequest.newBuilder()
+ * .setParent(
+ * DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (QueryTemplate element :
+ * analyticsHubServiceClient.listQueryTemplates(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 ListQueryTemplatesPagedResponse listQueryTemplates(
+ ListQueryTemplatesRequest request) {
+ return listQueryTemplatesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all QueryTemplates 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * ListQueryTemplatesRequest request =
+ * ListQueryTemplatesRequest.newBuilder()
+ * .setParent(
+ * DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.listQueryTemplatesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (QueryTemplate element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listQueryTemplatesPagedCallable() {
+ return stub.listQueryTemplatesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all QueryTemplates 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * ListQueryTemplatesRequest request =
+ * ListQueryTemplatesRequest.newBuilder()
+ * .setParent(
+ * DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListQueryTemplatesResponse response =
+ * analyticsHubServiceClient.listQueryTemplatesCallable().call(request);
+ * for (QueryTemplate element : response.getQueryTemplatesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listQueryTemplatesCallable() {
+ return stub.listQueryTemplatesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * QueryTemplate response =
+ * analyticsHubServiceClient.updateQueryTemplate(queryTemplate, updateMask);
+ * }
+ * }
+ *
+ * @param queryTemplate Required. The QueryTemplate to update.
+ * @param updateMask Optional. Field mask specifies the fields to update in the query template
+ * resource. The fields specified in the `updateMask` are relative to the resource and are not
+ * a full request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate updateQueryTemplate(
+ QueryTemplate queryTemplate, FieldMask updateMask) {
+ UpdateQueryTemplateRequest request =
+ UpdateQueryTemplateRequest.newBuilder()
+ .setQueryTemplate(queryTemplate)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * UpdateQueryTemplateRequest request =
+ * UpdateQueryTemplateRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setQueryTemplate(QueryTemplate.newBuilder().build())
+ * .build();
+ * QueryTemplate response = analyticsHubServiceClient.updateQueryTemplate(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 QueryTemplate updateQueryTemplate(UpdateQueryTemplateRequest request) {
+ return updateQueryTemplateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing QueryTemplate
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * UpdateQueryTemplateRequest request =
+ * UpdateQueryTemplateRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setQueryTemplate(QueryTemplate.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.updateQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * QueryTemplate response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateQueryTemplateCallable() {
+ return stub.updateQueryTemplateCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * QueryTemplateName name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ * analyticsHubServiceClient.deleteQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteQueryTemplate(QueryTemplateName name) {
+ DeleteQueryTemplateRequest request =
+ DeleteQueryTemplateRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString();
+ * analyticsHubServiceClient.deleteQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteQueryTemplate(String name) {
+ DeleteQueryTemplateRequest request =
+ DeleteQueryTemplateRequest.newBuilder().setName(name).build();
+ deleteQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * DeleteQueryTemplateRequest request =
+ * DeleteQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * analyticsHubServiceClient.deleteQueryTemplate(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 void deleteQueryTemplate(DeleteQueryTemplateRequest request) {
+ deleteQueryTemplateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * DeleteQueryTemplateRequest request =
+ * DeleteQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.deleteQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteQueryTemplateCallable() {
+ return stub.deleteQueryTemplateCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a query template for approval.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * QueryTemplateName name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ * QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate submitQueryTemplate(QueryTemplateName name) {
+ SubmitQueryTemplateRequest request =
+ SubmitQueryTemplateRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return submitQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a query template for approval.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString();
+ * QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate submitQueryTemplate(String name) {
+ SubmitQueryTemplateRequest request =
+ SubmitQueryTemplateRequest.newBuilder().setName(name).build();
+ return submitQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a query template for approval.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * SubmitQueryTemplateRequest request =
+ * SubmitQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(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 QueryTemplate submitQueryTemplate(SubmitQueryTemplateRequest request) {
+ return submitQueryTemplateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a query template for approval.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * SubmitQueryTemplateRequest request =
+ * SubmitQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.submitQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * QueryTemplate response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ submitQueryTemplateCallable() {
+ return stub.submitQueryTemplateCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * QueryTemplateName name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ * QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate approveQueryTemplate(QueryTemplateName name) {
+ ApproveQueryTemplateRequest request =
+ ApproveQueryTemplateRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return approveQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * String name =
+ * QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString();
+ * QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource path of the QueryTemplate. e.g.
+ * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryTemplate approveQueryTemplate(String name) {
+ ApproveQueryTemplateRequest request =
+ ApproveQueryTemplateRequest.newBuilder().setName(name).build();
+ return approveQueryTemplate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * ApproveQueryTemplateRequest request =
+ * ApproveQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(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 QueryTemplate approveQueryTemplate(ApproveQueryTemplateRequest request) {
+ return approveQueryTemplateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a query template.
+ *
+ * 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 (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+ * ApproveQueryTemplateRequest request =
+ * ApproveQueryTemplateRequest.newBuilder()
+ * .setName(
+ * QueryTemplateName.of(
+ * "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsHubServiceClient.approveQueryTemplateCallable().futureCall(request);
+ * // Do something.
+ * QueryTemplate response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ approveQueryTemplateCallable() {
+ return stub.approveQueryTemplateCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListDataExchangesPagedResponse
+ extends AbstractPagedListResponse<
+ ListDataExchangesRequest,
+ ListDataExchangesResponse,
+ DataExchange,
+ ListDataExchangesPage,
+ ListDataExchangesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
ApiFuture futurePage =
ListDataExchangesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
@@ -3810,4 +4844,84 @@ protected ListSharedResourceSubscriptionsFixedSizeCollection createCollection(
return new ListSharedResourceSubscriptionsFixedSizeCollection(pages, collectionSize);
}
}
+
+ public static class ListQueryTemplatesPagedResponse
+ extends AbstractPagedListResponse<
+ ListQueryTemplatesRequest,
+ ListQueryTemplatesResponse,
+ QueryTemplate,
+ ListQueryTemplatesPage,
+ ListQueryTemplatesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListQueryTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListQueryTemplatesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListQueryTemplatesPagedResponse(ListQueryTemplatesPage page) {
+ super(page, ListQueryTemplatesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListQueryTemplatesPage
+ extends AbstractPage<
+ ListQueryTemplatesRequest,
+ ListQueryTemplatesResponse,
+ QueryTemplate,
+ ListQueryTemplatesPage> {
+
+ private ListQueryTemplatesPage(
+ PageContext context,
+ ListQueryTemplatesResponse response) {
+ super(context, response);
+ }
+
+ private static ListQueryTemplatesPage createEmptyPage() {
+ return new ListQueryTemplatesPage(null, null);
+ }
+
+ @Override
+ protected ListQueryTemplatesPage createPage(
+ PageContext context,
+ ListQueryTemplatesResponse response) {
+ return new ListQueryTemplatesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListQueryTemplatesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListQueryTemplatesRequest,
+ ListQueryTemplatesResponse,
+ QueryTemplate,
+ ListQueryTemplatesPage,
+ ListQueryTemplatesFixedSizeCollection> {
+
+ private ListQueryTemplatesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListQueryTemplatesFixedSizeCollection createEmptyCollection() {
+ return new ListQueryTemplatesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListQueryTemplatesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListQueryTemplatesFixedSizeCollection(pages, collectionSize);
+ }
+ }
}
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java
index 79f1eb9d8eb8..e9acb0285e20 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
@@ -278,6 +279,47 @@ public UnaryCallSettings setIamPolicySettings() {
return ((AnalyticsHubServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
}
+ /** Returns the object with the settings used for calls to createQueryTemplate. */
+ public UnaryCallSettings
+ createQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).createQueryTemplateSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getQueryTemplate. */
+ public UnaryCallSettings getQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).getQueryTemplateSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listQueryTemplates. */
+ public PagedCallSettings<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).listQueryTemplatesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateQueryTemplate. */
+ public UnaryCallSettings
+ updateQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).updateQueryTemplateSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteQueryTemplate. */
+ public UnaryCallSettings deleteQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).deleteQueryTemplateSettings();
+ }
+
+ /** Returns the object with the settings used for calls to submitQueryTemplate. */
+ public UnaryCallSettings
+ submitQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).submitQueryTemplateSettings();
+ }
+
+ /** Returns the object with the settings used for calls to approveQueryTemplate. */
+ public UnaryCallSettings
+ approveQueryTemplateSettings() {
+ return ((AnalyticsHubServiceStubSettings) getStubSettings()).approveQueryTemplateSettings();
+ }
+
public static final AnalyticsHubServiceSettings create(AnalyticsHubServiceStubSettings stub)
throws IOException {
return new AnalyticsHubServiceSettings.Builder(stub.toBuilder()).build();
@@ -545,6 +587,49 @@ public UnaryCallSettings.Builder setIamPolicySettin
return getStubSettingsBuilder().testIamPermissionsSettings();
}
+ /** Returns the builder for the settings used for calls to createQueryTemplate. */
+ public UnaryCallSettings.Builder
+ createQueryTemplateSettings() {
+ return getStubSettingsBuilder().createQueryTemplateSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getQueryTemplate. */
+ public UnaryCallSettings.Builder
+ getQueryTemplateSettings() {
+ return getStubSettingsBuilder().getQueryTemplateSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listQueryTemplates. */
+ public PagedCallSettings.Builder<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings() {
+ return getStubSettingsBuilder().listQueryTemplatesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateQueryTemplate. */
+ public UnaryCallSettings.Builder
+ updateQueryTemplateSettings() {
+ return getStubSettingsBuilder().updateQueryTemplateSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteQueryTemplate. */
+ public UnaryCallSettings.Builder
+ deleteQueryTemplateSettings() {
+ return getStubSettingsBuilder().deleteQueryTemplateSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to submitQueryTemplate. */
+ public UnaryCallSettings.Builder
+ submitQueryTemplateSettings() {
+ return getStubSettingsBuilder().submitQueryTemplateSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to approveQueryTemplate. */
+ public UnaryCallSettings.Builder
+ approveQueryTemplateSettings() {
+ return getStubSettingsBuilder().approveQueryTemplateSettings();
+ }
+
@Override
public AnalyticsHubServiceSettings build() throws IOException {
return new AnalyticsHubServiceSettings(this);
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json
index 8f80aa8efa19..cb7b329b728d 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json
@@ -10,18 +10,27 @@
"grpc": {
"libraryClient": "AnalyticsHubServiceClient",
"rpcs": {
+ "ApproveQueryTemplate": {
+ "methods": ["approveQueryTemplate", "approveQueryTemplate", "approveQueryTemplate", "approveQueryTemplateCallable"]
+ },
"CreateDataExchange": {
"methods": ["createDataExchange", "createDataExchange", "createDataExchange", "createDataExchangeCallable"]
},
"CreateListing": {
"methods": ["createListing", "createListing", "createListing", "createListingCallable"]
},
+ "CreateQueryTemplate": {
+ "methods": ["createQueryTemplate", "createQueryTemplate", "createQueryTemplate", "createQueryTemplateCallable"]
+ },
"DeleteDataExchange": {
"methods": ["deleteDataExchange", "deleteDataExchange", "deleteDataExchange", "deleteDataExchangeCallable"]
},
"DeleteListing": {
"methods": ["deleteListing", "deleteListing", "deleteListing", "deleteListingCallable"]
},
+ "DeleteQueryTemplate": {
+ "methods": ["deleteQueryTemplate", "deleteQueryTemplate", "deleteQueryTemplate", "deleteQueryTemplateCallable"]
+ },
"DeleteSubscription": {
"methods": ["deleteSubscriptionAsync", "deleteSubscriptionAsync", "deleteSubscriptionAsync", "deleteSubscriptionOperationCallable", "deleteSubscriptionCallable"]
},
@@ -34,6 +43,9 @@
"GetListing": {
"methods": ["getListing", "getListing", "getListing", "getListingCallable"]
},
+ "GetQueryTemplate": {
+ "methods": ["getQueryTemplate", "getQueryTemplate", "getQueryTemplate", "getQueryTemplateCallable"]
+ },
"GetSubscription": {
"methods": ["getSubscription", "getSubscription", "getSubscription", "getSubscriptionCallable"]
},
@@ -46,6 +58,9 @@
"ListOrgDataExchanges": {
"methods": ["listOrgDataExchanges", "listOrgDataExchanges", "listOrgDataExchangesPagedCallable", "listOrgDataExchangesCallable"]
},
+ "ListQueryTemplates": {
+ "methods": ["listQueryTemplates", "listQueryTemplates", "listQueryTemplates", "listQueryTemplatesPagedCallable", "listQueryTemplatesCallable"]
+ },
"ListSharedResourceSubscriptions": {
"methods": ["listSharedResourceSubscriptions", "listSharedResourceSubscriptions", "listSharedResourceSubscriptions", "listSharedResourceSubscriptionsPagedCallable", "listSharedResourceSubscriptionsCallable"]
},
@@ -61,6 +76,9 @@
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
+ "SubmitQueryTemplate": {
+ "methods": ["submitQueryTemplate", "submitQueryTemplate", "submitQueryTemplate", "submitQueryTemplateCallable"]
+ },
"SubscribeDataExchange": {
"methods": ["subscribeDataExchangeAsync", "subscribeDataExchangeAsync", "subscribeDataExchangeAsync", "subscribeDataExchangeOperationCallable", "subscribeDataExchangeCallable"]
},
@@ -75,6 +93,9 @@
},
"UpdateListing": {
"methods": ["updateListing", "updateListing", "updateListingCallable"]
+ },
+ "UpdateQueryTemplate": {
+ "methods": ["updateQueryTemplate", "updateQueryTemplate", "updateQueryTemplateCallable"]
}
}
}
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java
index 34afc1a8dba4..8952ea721972 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java
@@ -19,20 +19,25 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DataExchange;
import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse;
@@ -40,16 +45,20 @@
import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.Listing;
import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata;
+import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse;
+import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest;
@@ -57,6 +66,7 @@
import com.google.cloud.bigquery.analyticshub.v1.Subscription;
import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
@@ -227,6 +237,40 @@ public UnaryCallable setIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}
+ public UnaryCallable createQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: createQueryTemplateCallable()");
+ }
+
+ public UnaryCallable getQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: getQueryTemplateCallable()");
+ }
+
+ public UnaryCallable
+ listQueryTemplatesPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listQueryTemplatesPagedCallable()");
+ }
+
+ public UnaryCallable
+ listQueryTemplatesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listQueryTemplatesCallable()");
+ }
+
+ public UnaryCallable updateQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateQueryTemplateCallable()");
+ }
+
+ public UnaryCallable deleteQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteQueryTemplateCallable()");
+ }
+
+ public UnaryCallable submitQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: submitQueryTemplateCallable()");
+ }
+
+ public UnaryCallable approveQueryTemplateCallable() {
+ throw new UnsupportedOperationException("Not implemented: approveQueryTemplateCallable()");
+ }
+
@Override
public abstract void close();
}
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java
index 67e7f80a2cbc..d1fef13693eb 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
@@ -52,14 +53,18 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DataExchange;
import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse;
@@ -67,16 +72,20 @@
import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.Listing;
import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata;
+import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse;
+import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest;
@@ -84,6 +93,7 @@
import com.google.cloud.bigquery.analyticshub.v1.Subscription;
import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
@@ -237,6 +247,19 @@ public class AnalyticsHubServiceStubSettings extends StubSettings setIamPolicySettings;
private final UnaryCallSettings
testIamPermissionsSettings;
+ private final UnaryCallSettings
+ createQueryTemplateSettings;
+ private final UnaryCallSettings getQueryTemplateSettings;
+ private final PagedCallSettings<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings;
+ private final UnaryCallSettings
+ updateQueryTemplateSettings;
+ private final UnaryCallSettings deleteQueryTemplateSettings;
+ private final UnaryCallSettings
+ submitQueryTemplateSettings;
+ private final UnaryCallSettings
+ approveQueryTemplateSettings;
private static final PagedListDescriptor<
ListDataExchangesRequest, ListDataExchangesResponse, DataExchange>
@@ -433,6 +456,44 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, QueryTemplate>
+ LIST_QUERY_TEMPLATES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, QueryTemplate>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListQueryTemplatesRequest injectToken(
+ ListQueryTemplatesRequest payload, String token) {
+ return ListQueryTemplatesRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListQueryTemplatesRequest injectPageSize(
+ ListQueryTemplatesRequest payload, int pageSize) {
+ return ListQueryTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListQueryTemplatesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListQueryTemplatesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(ListQueryTemplatesResponse payload) {
+ return payload.getQueryTemplatesList();
+ }
+ };
+
private static final PagedListResponseFactory<
ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse>
LIST_DATA_EXCHANGES_PAGE_STR_FACT =
@@ -548,6 +609,27 @@ public ApiFuture getFuturePagedRes
}
};
+ private static final PagedListResponseFactory<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ LIST_QUERY_TEMPLATES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListQueryTemplatesRequest,
+ ListQueryTemplatesResponse,
+ ListQueryTemplatesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListQueryTemplatesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext
+ pageContext =
+ PageContext.create(
+ callable, LIST_QUERY_TEMPLATES_PAGE_STR_DESC, request, context);
+ return ListQueryTemplatesPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
/** Returns the object with the settings used for calls to listDataExchanges. */
public PagedCallSettings<
ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse>
@@ -695,6 +777,47 @@ public UnaryCallSettings setIamPolicySettings() {
return testIamPermissionsSettings;
}
+ /** Returns the object with the settings used for calls to createQueryTemplate. */
+ public UnaryCallSettings
+ createQueryTemplateSettings() {
+ return createQueryTemplateSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getQueryTemplate. */
+ public UnaryCallSettings getQueryTemplateSettings() {
+ return getQueryTemplateSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listQueryTemplates. */
+ public PagedCallSettings<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings() {
+ return listQueryTemplatesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateQueryTemplate. */
+ public UnaryCallSettings
+ updateQueryTemplateSettings() {
+ return updateQueryTemplateSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteQueryTemplate. */
+ public UnaryCallSettings deleteQueryTemplateSettings() {
+ return deleteQueryTemplateSettings;
+ }
+
+ /** Returns the object with the settings used for calls to submitQueryTemplate. */
+ public UnaryCallSettings
+ submitQueryTemplateSettings() {
+ return submitQueryTemplateSettings;
+ }
+
+ /** Returns the object with the settings used for calls to approveQueryTemplate. */
+ public UnaryCallSettings
+ approveQueryTemplateSettings() {
+ return approveQueryTemplateSettings;
+ }
+
public AnalyticsHubServiceStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
@@ -835,6 +958,13 @@ protected AnalyticsHubServiceStubSettings(Builder settingsBuilder) throws IOExce
getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
+ createQueryTemplateSettings = settingsBuilder.createQueryTemplateSettings().build();
+ getQueryTemplateSettings = settingsBuilder.getQueryTemplateSettings().build();
+ listQueryTemplatesSettings = settingsBuilder.listQueryTemplatesSettings().build();
+ updateQueryTemplateSettings = settingsBuilder.updateQueryTemplateSettings().build();
+ deleteQueryTemplateSettings = settingsBuilder.deleteQueryTemplateSettings().build();
+ submitQueryTemplateSettings = settingsBuilder.submitQueryTemplateSettings().build();
+ approveQueryTemplateSettings = settingsBuilder.approveQueryTemplateSettings().build();
}
/** Builder for AnalyticsHubServiceStubSettings. */
@@ -896,6 +1026,21 @@ public static class Builder
private final UnaryCallSettings.Builder setIamPolicySettings;
private final UnaryCallSettings.Builder
testIamPermissionsSettings;
+ private final UnaryCallSettings.Builder
+ createQueryTemplateSettings;
+ private final UnaryCallSettings.Builder
+ getQueryTemplateSettings;
+ private final PagedCallSettings.Builder<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings;
+ private final UnaryCallSettings.Builder
+ updateQueryTemplateSettings;
+ private final UnaryCallSettings.Builder
+ deleteQueryTemplateSettings;
+ private final UnaryCallSettings.Builder
+ submitQueryTemplateSettings;
+ private final UnaryCallSettings.Builder
+ approveQueryTemplateSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -963,6 +1108,13 @@ protected Builder(ClientContext clientContext) {
getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listQueryTemplatesSettings = PagedCallSettings.newBuilder(LIST_QUERY_TEMPLATES_PAGE_STR_FACT);
+ updateQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ submitQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ approveQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -987,7 +1139,14 @@ protected Builder(ClientContext clientContext) {
deleteSubscriptionSettings,
getIamPolicySettings,
setIamPolicySettings,
- testIamPermissionsSettings);
+ testIamPermissionsSettings,
+ createQueryTemplateSettings,
+ getQueryTemplateSettings,
+ listQueryTemplatesSettings,
+ updateQueryTemplateSettings,
+ deleteQueryTemplateSettings,
+ submitQueryTemplateSettings,
+ approveQueryTemplateSettings);
initDefaults(this);
}
@@ -1023,6 +1182,13 @@ protected Builder(AnalyticsHubServiceStubSettings settings) {
getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
+ createQueryTemplateSettings = settings.createQueryTemplateSettings.toBuilder();
+ getQueryTemplateSettings = settings.getQueryTemplateSettings.toBuilder();
+ listQueryTemplatesSettings = settings.listQueryTemplatesSettings.toBuilder();
+ updateQueryTemplateSettings = settings.updateQueryTemplateSettings.toBuilder();
+ deleteQueryTemplateSettings = settings.deleteQueryTemplateSettings.toBuilder();
+ submitQueryTemplateSettings = settings.submitQueryTemplateSettings.toBuilder();
+ approveQueryTemplateSettings = settings.approveQueryTemplateSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -1047,7 +1213,14 @@ protected Builder(AnalyticsHubServiceStubSettings settings) {
deleteSubscriptionSettings,
getIamPolicySettings,
setIamPolicySettings,
- testIamPermissionsSettings);
+ testIamPermissionsSettings,
+ createQueryTemplateSettings,
+ getQueryTemplateSettings,
+ listQueryTemplatesSettings,
+ updateQueryTemplateSettings,
+ deleteQueryTemplateSettings,
+ submitQueryTemplateSettings,
+ approveQueryTemplateSettings);
}
private static Builder createDefault() {
@@ -1185,6 +1358,41 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .createQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listQueryTemplatesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .submitQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .approveQueryTemplateSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.subscribeDataExchangeOperationSettings()
.setInitialCallSettings(
@@ -1432,6 +1640,49 @@ public UnaryCallSettings.Builder setIamPolicySettin
return testIamPermissionsSettings;
}
+ /** Returns the builder for the settings used for calls to createQueryTemplate. */
+ public UnaryCallSettings.Builder
+ createQueryTemplateSettings() {
+ return createQueryTemplateSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getQueryTemplate. */
+ public UnaryCallSettings.Builder
+ getQueryTemplateSettings() {
+ return getQueryTemplateSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listQueryTemplates. */
+ public PagedCallSettings.Builder<
+ ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse>
+ listQueryTemplatesSettings() {
+ return listQueryTemplatesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateQueryTemplate. */
+ public UnaryCallSettings.Builder
+ updateQueryTemplateSettings() {
+ return updateQueryTemplateSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteQueryTemplate. */
+ public UnaryCallSettings.Builder
+ deleteQueryTemplateSettings() {
+ return deleteQueryTemplateSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to submitQueryTemplate. */
+ public UnaryCallSettings.Builder
+ submitQueryTemplateSettings() {
+ return submitQueryTemplateSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to approveQueryTemplate. */
+ public UnaryCallSettings.Builder
+ approveQueryTemplateSettings() {
+ return approveQueryTemplateSettings;
+ }
+
@Override
public AnalyticsHubServiceStubSettings build() throws IOException {
return new AnalyticsHubServiceStubSettings(this);
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java
index b6f3c113b7b8..0cd4782bdd7d 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
@@ -30,14 +31,18 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DataExchange;
import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse;
@@ -45,16 +50,20 @@
import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.Listing;
import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata;
+import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse;
+import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest;
@@ -62,6 +71,7 @@
import com.google.cloud.bigquery.analyticshub.v1.Subscription;
import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
@@ -351,6 +361,91 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub {
.setSampledToLocalTracing(true)
.build();
+ private static final MethodDescriptor
+ createQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/CreateQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ getQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/GetQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ listQueryTemplatesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ListQueryTemplates")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListQueryTemplatesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListQueryTemplatesResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ updateQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/UpdateQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ deleteQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/DeleteQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ submitQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/SubmitQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(SubmitQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
+ private static final MethodDescriptor
+ approveQueryTemplateMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ApproveQueryTemplate")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ApproveQueryTemplateRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
private final UnaryCallable
listDataExchangesCallable;
private final UnaryCallable
@@ -401,6 +496,20 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub {
private final UnaryCallable setIamPolicyCallable;
private final UnaryCallable
testIamPermissionsCallable;
+ private final UnaryCallable
+ createQueryTemplateCallable;
+ private final UnaryCallable getQueryTemplateCallable;
+ private final UnaryCallable
+ listQueryTemplatesCallable;
+ private final UnaryCallable
+ listQueryTemplatesPagedCallable;
+ private final UnaryCallable
+ updateQueryTemplateCallable;
+ private final UnaryCallable deleteQueryTemplateCallable;
+ private final UnaryCallable
+ submitQueryTemplateCallable;
+ private final UnaryCallable
+ approveQueryTemplateCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
@@ -678,6 +787,83 @@ protected GrpcAnalyticsHubServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ createQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings getQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listQueryTemplatesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listQueryTemplatesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ "query_template.name",
+ String.valueOf(request.getQueryTemplate().getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings deleteQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ submitQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(submitQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ approveQueryTemplateTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(approveQueryTemplateMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
this.listDataExchangesCallable =
callableFactory.createUnaryCallable(
@@ -810,6 +996,44 @@ protected GrpcAnalyticsHubServiceStub(
testIamPermissionsTransportSettings,
settings.testIamPermissionsSettings(),
clientContext);
+ this.createQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ createQueryTemplateTransportSettings,
+ settings.createQueryTemplateSettings(),
+ clientContext);
+ this.getQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ getQueryTemplateTransportSettings, settings.getQueryTemplateSettings(), clientContext);
+ this.listQueryTemplatesCallable =
+ callableFactory.createUnaryCallable(
+ listQueryTemplatesTransportSettings,
+ settings.listQueryTemplatesSettings(),
+ clientContext);
+ this.listQueryTemplatesPagedCallable =
+ callableFactory.createPagedCallable(
+ listQueryTemplatesTransportSettings,
+ settings.listQueryTemplatesSettings(),
+ clientContext);
+ this.updateQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ updateQueryTemplateTransportSettings,
+ settings.updateQueryTemplateSettings(),
+ clientContext);
+ this.deleteQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ deleteQueryTemplateTransportSettings,
+ settings.deleteQueryTemplateSettings(),
+ clientContext);
+ this.submitQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ submitQueryTemplateTransportSettings,
+ settings.submitQueryTemplateSettings(),
+ clientContext);
+ this.approveQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ approveQueryTemplateTransportSettings,
+ settings.approveQueryTemplateSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -987,6 +1211,48 @@ public UnaryCallable setIamPolicyCallable() {
return testIamPermissionsCallable;
}
+ @Override
+ public UnaryCallable createQueryTemplateCallable() {
+ return createQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable getQueryTemplateCallable() {
+ return getQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listQueryTemplatesCallable() {
+ return listQueryTemplatesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listQueryTemplatesPagedCallable() {
+ return listQueryTemplatesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable updateQueryTemplateCallable() {
+ return updateQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteQueryTemplateCallable() {
+ return deleteQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable submitQueryTemplateCallable() {
+ return submitQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable approveQueryTemplateCallable() {
+ return approveQueryTemplateCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java
index e07d41e31673..327d8a357d9e 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
@@ -37,14 +38,18 @@
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DataExchange;
import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse;
@@ -52,16 +57,20 @@
import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest;
+import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest;
import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse;
import com.google.cloud.bigquery.analyticshub.v1.Listing;
import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata;
+import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest;
import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse;
+import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse;
import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest;
@@ -69,6 +78,7 @@
import com.google.cloud.bigquery.analyticshub.v1.Subscription;
import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest;
import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest;
+import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
@@ -930,6 +940,262 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ createQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/CreateQueryTemplate")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates",
+ 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, "queryTemplateId", request.getQueryTemplateId());
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("queryTemplate", request.getQueryTemplate(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(QueryTemplate.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ getQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/GetQueryTemplate")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}",
+ 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();
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(QueryTemplate.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ listQueryTemplatesMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ListQueryTemplates")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates",
+ 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, "pageSize", request.getPageSize());
+ serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(ListQueryTemplatesResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ updateQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/UpdateQueryTemplate")
+ .setHttpMethod("PATCH")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{queryTemplate.name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(
+ fields, "queryTemplate.name", request.getQueryTemplate().getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("queryTemplate", request.getQueryTemplate(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(QueryTemplate.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ deleteQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/DeleteQueryTemplate")
+ .setHttpMethod("DELETE")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}",
+ 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();
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Empty.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ submitQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/SubmitQueryTemplate")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:submit",
+ 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();
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(QueryTemplate.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ approveQueryTemplateMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ApproveQueryTemplate")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:approve",
+ 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();
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(QueryTemplate.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private final UnaryCallable
listDataExchangesCallable;
private final UnaryCallable
@@ -980,6 +1246,20 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub {
private final UnaryCallable setIamPolicyCallable;
private final UnaryCallable
testIamPermissionsCallable;
+ private final UnaryCallable
+ createQueryTemplateCallable;
+ private final UnaryCallable getQueryTemplateCallable;
+ private final UnaryCallable
+ listQueryTemplatesCallable;
+ private final UnaryCallable
+ listQueryTemplatesPagedCallable;
+ private final UnaryCallable
+ updateQueryTemplateCallable;
+ private final UnaryCallable deleteQueryTemplateCallable;
+ private final UnaryCallable
+ submitQueryTemplateCallable;
+ private final UnaryCallable
+ approveQueryTemplateCallable;
private final BackgroundResource backgroundResources;
private final HttpJsonOperationsStub httpJsonOperationsStub;
@@ -1287,6 +1567,90 @@ protected HttpJsonAnalyticsHubServiceStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings
+ createQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(createQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings getQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(getQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ listQueryTemplatesTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(listQueryTemplatesMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ updateQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(updateQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ "query_template.name",
+ String.valueOf(request.getQueryTemplate().getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings deleteQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(deleteQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ submitQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(submitQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ approveQueryTemplateTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(approveQueryTemplateMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
this.listDataExchangesCallable =
callableFactory.createUnaryCallable(
@@ -1419,6 +1783,44 @@ protected HttpJsonAnalyticsHubServiceStub(
testIamPermissionsTransportSettings,
settings.testIamPermissionsSettings(),
clientContext);
+ this.createQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ createQueryTemplateTransportSettings,
+ settings.createQueryTemplateSettings(),
+ clientContext);
+ this.getQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ getQueryTemplateTransportSettings, settings.getQueryTemplateSettings(), clientContext);
+ this.listQueryTemplatesCallable =
+ callableFactory.createUnaryCallable(
+ listQueryTemplatesTransportSettings,
+ settings.listQueryTemplatesSettings(),
+ clientContext);
+ this.listQueryTemplatesPagedCallable =
+ callableFactory.createPagedCallable(
+ listQueryTemplatesTransportSettings,
+ settings.listQueryTemplatesSettings(),
+ clientContext);
+ this.updateQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ updateQueryTemplateTransportSettings,
+ settings.updateQueryTemplateSettings(),
+ clientContext);
+ this.deleteQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ deleteQueryTemplateTransportSettings,
+ settings.deleteQueryTemplateSettings(),
+ clientContext);
+ this.submitQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ submitQueryTemplateTransportSettings,
+ settings.submitQueryTemplateSettings(),
+ clientContext);
+ this.approveQueryTemplateCallable =
+ callableFactory.createUnaryCallable(
+ approveQueryTemplateTransportSettings,
+ settings.approveQueryTemplateSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1449,6 +1851,13 @@ public static List getMethodDescriptors() {
methodDescriptors.add(getIamPolicyMethodDescriptor);
methodDescriptors.add(setIamPolicyMethodDescriptor);
methodDescriptors.add(testIamPermissionsMethodDescriptor);
+ methodDescriptors.add(createQueryTemplateMethodDescriptor);
+ methodDescriptors.add(getQueryTemplateMethodDescriptor);
+ methodDescriptors.add(listQueryTemplatesMethodDescriptor);
+ methodDescriptors.add(updateQueryTemplateMethodDescriptor);
+ methodDescriptors.add(deleteQueryTemplateMethodDescriptor);
+ methodDescriptors.add(submitQueryTemplateMethodDescriptor);
+ methodDescriptors.add(approveQueryTemplateMethodDescriptor);
return methodDescriptors;
}
@@ -1624,6 +2033,48 @@ public UnaryCallable setIamPolicyCallable() {
return testIamPermissionsCallable;
}
+ @Override
+ public UnaryCallable createQueryTemplateCallable() {
+ return createQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable getQueryTemplateCallable() {
+ return getQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listQueryTemplatesCallable() {
+ return listQueryTemplatesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listQueryTemplatesPagedCallable() {
+ return listQueryTemplatesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable updateQueryTemplateCallable() {
+ return updateQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteQueryTemplateCallable() {
+ return deleteQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable submitQueryTemplateCallable() {
+ return submitQueryTemplateCallable;
+ }
+
+ @Override
+ public UnaryCallable approveQueryTemplateCallable() {
+ return approveQueryTemplateCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json
index 2f4cf17d40cd..0bea571d8094 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json
+++ b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json
@@ -413,6 +413,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.BigQueryConfig",
"queryAllDeclaredConstructors": true,
@@ -521,6 +539,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.DataExchange",
"queryAllDeclaredConstructors": true,
@@ -611,6 +647,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest",
"queryAllDeclaredConstructors": true,
@@ -746,6 +800,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest",
"queryAllDeclaredConstructors": true,
@@ -890,6 +962,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest",
"queryAllDeclaredConstructors": true,
@@ -989,6 +1097,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$PrimaryState",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$ReplicaState",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$RestrictedExportPolicy",
"queryAllDeclaredConstructors": true,
@@ -1277,6 +1421,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest",
"queryAllDeclaredConstructors": true,
@@ -1367,6 +1538,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Routine",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Routine$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.Routine$RoutineType",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.SharedResourceType",
"queryAllDeclaredConstructors": true,
@@ -1430,6 +1628,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest",
"queryAllDeclaredConstructors": true,
@@ -1619,6 +1835,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.iam.v1.AuditConfig",
"queryAllDeclaredConstructors": true,
diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java
index 30419cf4ce50..3b5da5aff721 100644
--- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java
+++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse;
+import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse;
import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse;
@@ -2100,4 +2101,737 @@ public void testIamPermissionsExceptionTest() throws Exception {
// Expected exception.
}
}
+
+ @Test
+ public void createQueryTemplateTest() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+ QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ String queryTemplateId = "queryTemplateId-1884800483";
+
+ QueryTemplate actualResponse =
+ client.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createQueryTemplateExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+ QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ String queryTemplateId = "queryTemplateId-1884800483";
+ client.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createQueryTemplateTest2() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String parent = "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709";
+ QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ String queryTemplateId = "queryTemplateId-1884800483";
+
+ QueryTemplate actualResponse =
+ client.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createQueryTemplateExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String parent =
+ "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709";
+ QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+ String queryTemplateId = "queryTemplateId-1884800483";
+ client.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getQueryTemplateTest() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ QueryTemplateName name =
+ QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+
+ QueryTemplate actualResponse = client.getQueryTemplate(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getQueryTemplateExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ QueryTemplateName name =
+ QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ client.getQueryTemplate(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getQueryTemplateTest2() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String name =
+ "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753";
+
+ QueryTemplate actualResponse = client.getQueryTemplate(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getQueryTemplateExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name =
+ "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753";
+ client.getQueryTemplate(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listQueryTemplatesTest() throws Exception {
+ QueryTemplate responsesElement = QueryTemplate.newBuilder().build();
+ ListQueryTemplatesResponse expectedResponse =
+ ListQueryTemplatesResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllQueryTemplates(Arrays.asList(responsesElement))
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+
+ ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getQueryTemplatesList().get(0), resources.get(0));
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void listQueryTemplatesExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+ client.listQueryTemplates(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listQueryTemplatesTest2() throws Exception {
+ QueryTemplate responsesElement = QueryTemplate.newBuilder().build();
+ ListQueryTemplatesResponse expectedResponse =
+ ListQueryTemplatesResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllQueryTemplates(Arrays.asList(responsesElement))
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String parent = "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709";
+
+ ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getQueryTemplatesList().get(0), resources.get(0));
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void listQueryTemplatesExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String parent =
+ "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709";
+ client.listQueryTemplates(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void updateQueryTemplateTest() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ QueryTemplate queryTemplate =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ FieldMask updateMask = FieldMask.newBuilder().build();
+
+ QueryTemplate actualResponse = client.updateQueryTemplate(queryTemplate, updateMask);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void updateQueryTemplateExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ QueryTemplate queryTemplate =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ FieldMask updateMask = FieldMask.newBuilder().build();
+ client.updateQueryTemplate(queryTemplate, updateMask);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteQueryTemplateTest() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockService.addResponse(expectedResponse);
+
+ QueryTemplateName name =
+ QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+
+ client.deleteQueryTemplate(name);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void deleteQueryTemplateExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ QueryTemplateName name =
+ QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+ client.deleteQueryTemplate(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteQueryTemplateTest2() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockService.addResponse(expectedResponse);
+
+ String name =
+ "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753";
+
+ client.deleteQueryTemplate(name);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void deleteQueryTemplateExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name =
+ "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753";
+ client.deleteQueryTemplate(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void submitQueryTemplateTest() throws Exception {
+ QueryTemplate expectedResponse =
+ QueryTemplate.newBuilder()
+ .setName(
+ QueryTemplateName.of(
+ "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setDescription("description-1724546052")
+ .setProposer("proposer-992842892")
+ .setPrimaryContact("primaryContact-532068418")
+ .setDocumentation("documentation1587405498")
+ .setRoutine(Routine.newBuilder().build())
+ .setCreateTime(Timestamp.newBuilder().build())
+ .setUpdateTime(Timestamp.newBuilder().build())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ QueryTemplateName name =
+ QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+
+ QueryTemplate actualResponse = client.submitQueryTemplate(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List