diff --git a/generation_config.yaml b/generation_config.yaml
index 1979180ffafc..37344f5d76cf 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
gapic_generator_version: 2.62.3
-googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d
-libraries_bom_version: 26.69.0
+googleapis_commitish: 6821943108fe3284f483defc9b60774a3752de2b
+libraries_bom_version: 26.70.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 90741e50ddfe..a32470f63717 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:
GenerateFetchAccessToken
RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *generateFetchAccessToken(GenerateFetchAccessTokenRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *generateFetchAccessTokenCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GenerateFetchAccessTokenRequest request =
+ * GenerateFetchAccessTokenRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * GenerateFetchAccessTokenResponse response =
+ * featureOnlineStoreServiceClient.generateFetchAccessToken(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 GenerateFetchAccessTokenResponse generateFetchAccessToken(
+ GenerateFetchAccessTokenRequest request) {
+ return generateFetchAccessTokenCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * RPC to generate an access token for the given feature view. FeatureViews under the same
+ * FeatureOnlineStore share the same access token.
+ *
+ * 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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GenerateFetchAccessTokenRequest request =
+ * GenerateFetchAccessTokenRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * featureOnlineStoreServiceClient.generateFetchAccessTokenCallable().futureCall(request);
+ * // Do something.
+ * GenerateFetchAccessTokenResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableGenerateFetchAccessToken
RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *generateFetchAccessToken(GenerateFetchAccessTokenRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *generateFetchAccessTokenCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GenerateFetchAccessTokenRequest request =
+ * GenerateFetchAccessTokenRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * GenerateFetchAccessTokenResponse response =
+ * featureOnlineStoreServiceClient.generateFetchAccessToken(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 GenerateFetchAccessTokenResponse generateFetchAccessToken(
+ GenerateFetchAccessTokenRequest request) {
+ return generateFetchAccessTokenCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * RPC to generate an access token for the given feature view. FeatureViews under the same
+ * FeatureOnlineStore share the same access token.
+ *
+ * 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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ * FeatureOnlineStoreServiceClient.create()) {
+ * GenerateFetchAccessTokenRequest request =
+ * GenerateFetchAccessTokenRequest.newBuilder()
+ * .setFeatureView(
+ * FeatureViewName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * featureOnlineStoreServiceClient.generateFetchAccessTokenCallable().futureCall(request);
+ * // Do something.
+ * GenerateFetchAccessTokenResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + default void generateFetchAccessToken( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request, + io.grpc.stub.StreamObserver
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public void generateFetchAccessToken( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request, + io.grpc.stub.StreamObserver
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse generateFetchAccessToken( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); + } } /** @@ -515,6 +616,20 @@ public com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse searchNeares return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchNearestEntitiesMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse generateFetchAccessToken( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); + } } /** @@ -567,11 +682,28 @@ protected FeatureOnlineStoreServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchNearestEntitiesMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse> + generateFetchAccessToken( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateFetchAccessTokenMethod(), getCallOptions()), request); + } } private static final int METHODID_FETCH_FEATURE_VALUES = 0; private static final int METHODID_SEARCH_NEAREST_ENTITIES = 1; - private static final int METHODID_FEATURE_VIEW_DIRECT_WRITE = 2; + private static final int METHODID_GENERATE_FETCH_ACCESS_TOKEN = 2; + private static final int METHODID_FEATURE_VIEW_DIRECT_WRITE = 3; private static final class MethodHandlers
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + default void generateFetchAccessToken( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateFetchAccessTokenMethod(), responseObserver); + } } /** @@ -493,6 +563,25 @@ public void searchNearestEntities( getChannel().newCall(getFeatureViewDirectWriteMethod(), getCallOptions()), responseObserver); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public void generateFetchAccessToken( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateFetchAccessTokenMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -578,6 +667,21 @@ public com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse searchN return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( getChannel(), getFeatureViewDirectWriteMethod(), getCallOptions()); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse + generateFetchAccessToken( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); + } } /** @@ -628,6 +732,21 @@ public com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse searchN return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchNearestEntitiesMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse + generateFetchAccessToken( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateFetchAccessTokenMethod(), getCallOptions(), request); + } } /** @@ -681,12 +800,29 @@ protected FeatureOnlineStoreServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchNearestEntitiesMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * RPC to generate an access token for the given feature view. FeatureViews + * under the same FeatureOnlineStore share the same access token. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse> + generateFetchAccessToken( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateFetchAccessTokenMethod(), getCallOptions()), request); + } } private static final int METHODID_FETCH_FEATURE_VALUES = 0; private static final int METHODID_SEARCH_NEAREST_ENTITIES = 1; - private static final int METHODID_STREAMING_FETCH_FEATURE_VALUES = 2; - private static final int METHODID_FEATURE_VIEW_DIRECT_WRITE = 3; + private static final int METHODID_GENERATE_FETCH_ACCESS_TOKEN = 2; + private static final int METHODID_STREAMING_FETCH_FEATURE_VALUES = 3; + private static final int METHODID_FEATURE_VIEW_DIRECT_WRITE = 4; private static final class MethodHandlers
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ boolean getEnableDirectBigtableAccess();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ boolean hasBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder();
}
/** Protobuf type {@code google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} */
@@ -1149,161 +1208,1385 @@ public com.google.protobuf.Parser- * Required. Autoscaling config applied to Bigtable Instance. - *- * - *
- * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the autoScaling field is set.
- */
- @java.lang.Override
- public boolean hasAutoScaling() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ java.lang.String getTenantProjectId();
- /**
- *
- *
- * - * Required. Autoscaling config applied to Bigtable Instance. - *- * - *
- * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The autoScaling.
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling getAutoScaling() {
- return autoScaling_ == null
- ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling
- .getDefaultInstance()
- : autoScaling_;
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ com.google.protobuf.ByteString getTenantProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ java.lang.String getTableId();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ com.google.protobuf.ByteString getTableIdBytes();
}
/**
*
*
*
- * Required. Autoscaling config applied to Bigtable Instance.
+ * Metadata of the Bigtable instance. This is used by direct read access to
+ * the Bigtable in tenant project.
*
*
- *
- * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * Protobuf type {@code google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata}
*/
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingOrBuilder
- getAutoScalingOrBuilder() {
- return autoScaling_ == null
- ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling
- .getDefaultInstance()
- : autoScaling_;
- }
-
- 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;
- }
+ public static final class BigtableMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ BigtableMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getAutoScaling());
+ // Use BigtableMetadata.newBuilder() to construct.
+ private BigtableMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoScaling());
+ private BigtableMetadata() {
+ tenantProjectId_ = "";
+ instanceId_ = "";
+ tableId_ = "";
}
- 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.v1.FeatureOnlineStore.Bigtable)) {
- return super.equals(obj);
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BigtableMetadata();
}
- com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable other =
- (com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable) obj;
- if (hasAutoScaling() != other.hasAutoScaling()) return false;
- if (hasAutoScaling()) {
- if (!getAutoScaling().equals(other.getAutoScaling())) return false;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.FeatureOnlineStoreProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor;
}
- 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();
- if (hasAutoScaling()) {
- hash = (37 * hash) + AUTO_SCALING_FIELD_NUMBER;
- hash = (53 * hash) + getAutoScaling().hashCode();
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.FeatureOnlineStoreProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.class,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder
+ .class);
}
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ public static final int TENANT_PROJECT_ID_FIELD_NUMBER = 1;
- public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tenantProjectId_ = "";
- public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ @java.lang.Override
+ public java.lang.String getTenantProjectId() {
+ java.lang.Object ref = tenantProjectId_;
+ 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();
+ tenantProjectId_ = s;
+ return s;
+ }
+ }
- public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTenantProjectIdBytes() {
+ java.lang.Object ref = tenantProjectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tenantProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ @java.lang.Override
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ 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();
+ tableId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = 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(tenantProjectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenantProjectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableId_);
+ }
+ 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(tenantProjectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenantProjectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableId_);
+ }
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata other =
+ (com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata) obj;
+
+ if (!getTenantProjectId().equals(other.getTenantProjectId())) return false;
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getTableId().equals(other.getTableId())) 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) + TENANT_PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTenantProjectId().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTableId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata 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;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. This is used by direct read access to + * the Bigtable in tenant project. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ public java.lang.String getTenantProjectId() {
+ java.lang.Object ref = tenantProjectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tenantProjectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ public com.google.protobuf.ByteString getTenantProjectIdBytes() {
+ java.lang.Object ref = tenantProjectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tenantProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @param value The tenantProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tenantProjectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTenantProjectId() {
+ tenantProjectId_ = getDefaultInstance().getTenantProjectId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @param value The bytes for tenantProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tenantProjectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @param value The tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableId() {
+ tableId_ = getDefaultInstance().getTableId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @param value The bytes for tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tableId_ = 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.v1.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ private static final com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable
+ .BigtableMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the autoScaling field is set.
+ */
+ @java.lang.Override
+ public boolean hasAutoScaling() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The autoScaling.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling getAutoScaling() {
+ return autoScaling_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling
+ .getDefaultInstance()
+ : autoScaling_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingOrBuilder
+ getAutoScalingOrBuilder() {
+ return autoScaling_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling
+ .getDefaultInstance()
+ : autoScaling_;
+ }
+
+ public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 2;
+ private boolean enableDirectBigtableAccess_ = false;
+
+ /**
+ *
+ *
+ * + * Optional. Whether direct access to the Bigtable instance is enabled or not. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ @java.lang.Override
+ public boolean getEnableDirectBigtableAccess() {
+ return enableDirectBigtableAccess_;
+ }
+
+ public static final int BIGTABLE_METADATA_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ bigtableMetadata_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getAutoScaling());
+ }
+ if (enableDirectBigtableAccess_ != false) {
+ output.writeBool(2, enableDirectBigtableAccess_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getBigtableMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoScaling());
+ }
+ if (enableDirectBigtableAccess_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDirectBigtableAccess_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigtableMetadata());
+ }
+ 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.v1.FeatureOnlineStore.Bigtable)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable other =
+ (com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable) obj;
+
+ if (hasAutoScaling() != other.hasAutoScaling()) return false;
+ if (hasAutoScaling()) {
+ if (!getAutoScaling().equals(other.getAutoScaling())) return false;
+ }
+ if (getEnableDirectBigtableAccess() != other.getEnableDirectBigtableAccess()) return false;
+ if (hasBigtableMetadata() != other.hasBigtableMetadata()) return false;
+ if (hasBigtableMetadata()) {
+ if (!getBigtableMetadata().equals(other.getBigtableMetadata())) 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();
+ if (hasAutoScaling()) {
+ hash = (37 * hash) + AUTO_SCALING_FIELD_NUMBER;
+ hash = (53 * hash) + getAutoScaling().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDirectBigtableAccess());
+ if (hasBigtableMetadata()) {
+ hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getBigtableMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable 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.v1.FeatureOnlineStore.Bigtable parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable 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.v1.FeatureOnlineStore.Bigtable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1413,6 +2696,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAutoScalingFieldBuilder();
+ getBigtableMetadataFieldBuilder();
}
}
@@ -1425,6 +2709,12 @@ public Builder clear() {
autoScalingBuilder_.dispose();
autoScalingBuilder_ = null;
}
+ enableDirectBigtableAccess_ = false;
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
return this;
}
@@ -1469,6 +2759,16 @@ private void buildPartial0(
autoScalingBuilder_ == null ? autoScaling_ : autoScalingBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.enableDirectBigtableAccess_ = enableDirectBigtableAccess_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.bigtableMetadata_ =
+ bigtableMetadataBuilder_ == null
+ ? bigtableMetadata_
+ : bigtableMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1524,6 +2824,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigta
if (other.hasAutoScaling()) {
mergeAutoScaling(other.getAutoScaling());
}
+ if (other.getEnableDirectBigtableAccess() != false) {
+ setEnableDirectBigtableAccess(other.getEnableDirectBigtableAccess());
+ }
+ if (other.hasBigtableMetadata()) {
+ mergeBigtableMetadata(other.getBigtableMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1556,6 +2862,19 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 16:
+ {
+ enableDirectBigtableAccess_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26:
+ {
+ input.readMessage(
+ getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1798,6 +3117,291 @@ public Builder clearAutoScaling() {
return autoScalingBuilder_;
}
+ private boolean enableDirectBigtableAccess_;
+
+ /**
+ *
+ *
+ * + * Optional. Whether direct access to the Bigtable instance is enabled or not. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ @java.lang.Override
+ public boolean getEnableDirectBigtableAccess() {
+ return enableDirectBigtableAccess_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether direct access to the Bigtable instance is enabled or not. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enableDirectBigtableAccess to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableDirectBigtableAccess(boolean value) {
+
+ enableDirectBigtableAccess_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Whether direct access to the Bigtable instance is enabled or not. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableDirectBigtableAccess() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enableDirectBigtableAccess_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ bigtableMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder>
+ bigtableMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata() {
+ if (bigtableMetadataBuilder_ == null) {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ } else {
+ return bigtableMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigtableMetadata_ = value;
+ } else {
+ bigtableMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder
+ builderForValue) {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadata_ = builderForValue.build();
+ } else {
+ bigtableMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && bigtableMetadata_ != null
+ && bigtableMetadata_
+ != com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()) {
+ getBigtableMetadataBuilder().mergeFrom(value);
+ } else {
+ bigtableMetadata_ = value;
+ }
+ } else {
+ bigtableMetadataBuilder_.mergeFrom(value);
+ }
+ if (bigtableMetadata_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBigtableMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder
+ getBigtableMetadataBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getBigtableMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ if (bigtableMetadataBuilder_ != null) {
+ return bigtableMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder>
+ getBigtableMetadataFieldBuilder() {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder,
+ com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable
+ .BigtableMetadataOrBuilder>(
+ getBigtableMetadata(), getParentForChildren(), isClean());
+ bigtableMetadata_ = null;
+ }
+ return bigtableMetadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
index 8718ef947580..8f3d3f0a6214 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java
@@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_AutoScaling_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Optimized_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -68,7 +72,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "platform/v1/encryption_spec.proto\0323googl"
+ "e/cloud/aiplatform/v1/service_networking"
+ ".proto\032\037google/protobuf/timestamp.proto\""
- + "\211\013\n\022FeatureOnlineStore\022K\n\010bigtable\030\010 \001(\013"
+ + "\365\014\n\022FeatureOnlineStore\022K\n\010bigtable\030\010 \001(\013"
+ "27.google.cloud.aiplatform.v1.FeatureOnl"
+ "ineStore.BigtableH\000\022M\n\toptimized\030\014 \001(\01328"
+ ".google.cloud.aiplatform.v1.FeatureOnlin"
@@ -86,30 +90,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ryption_spec\030\r \001(\0132*.google.cloud.aiplat"
+ "form.v1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies"
+ "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003"
- + "\340A\003\032\330\001\n\010Bigtable\022^\n\014auto_scaling\030\001 \001(\0132C"
+ + "\340A\003\032\304\003\n\010Bigtable\022^\n\014auto_scaling\030\001 \001(\0132C"
+ ".google.cloud.aiplatform.v1.FeatureOnlin"
- + "eStore.Bigtable.AutoScalingB\003\340A\002\032l\n\013Auto"
- + "Scaling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016"
- + "max_node_count\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utiliza"
- + "tion_target\030\003 \001(\005B\003\340A\001\032\013\n\tOptimized\032\313\001\n\030"
- + "DedicatedServingEndpoint\022(\n\033public_endpo"
- + "int_domain_name\030\002 \001(\tB\003\340A\003\022d\n\036private_se"
- + "rvice_connect_config\030\003 \001(\01327.google.clou"
- + "d.aiplatform.v1.PrivateServiceConnectCon"
- + "figB\003\340A\001\022\037\n\022service_attachment\030\004 \001(\tB\003\340A"
- + "\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
- + " \001(\t:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
- + "\022\n\n\006STABLE\020\001\022\014\n\010UPDATING\020\002:\206\001\352A\202\001\n,aipla"
- + "tform.googleapis.com/FeatureOnlineStore\022"
- + "Rprojects/{project}/locations/{location}"
- + "/featureOnlineStores/{feature_online_sto"
- + "re}B\016\n\014storage_typeB\325\001\n\036com.google.cloud"
- + ".aiplatform.v1B\027FeatureOnlineStoreProtoP"
- + "\001Z>cloud.google.com/go/aiplatform/apiv1/"
- + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud"
- + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform"
- + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro"
- + "to3"
+ + "eStore.Bigtable.AutoScalingB\003\340A\002\022*\n\035enab"
+ + "le_direct_bigtable_access\030\002 \001(\010B\003\340A\001\022h\n\021"
+ + "bigtable_metadata\030\003 \001(\0132H.google.cloud.a"
+ + "iplatform.v1.FeatureOnlineStore.Bigtable"
+ + ".BigtableMetadataB\003\340A\003\032l\n\013AutoScaling\022\033\n"
+ + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_c"
+ + "ount\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utilization_targe"
+ + "t\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetadata\022\031\n\021tena"
+ + "nt_project_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t"
+ + "\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimized\032\313\001\n\030Dedi"
+ + "catedServingEndpoint\022(\n\033public_endpoint_"
+ + "domain_name\030\002 \001(\tB\003\340A\003\022d\n\036private_servic"
+ + "e_connect_config\030\003 \001(\01327.google.cloud.ai"
+ + "platform.v1.PrivateServiceConnectConfigB"
+ + "\003\340A\001\022\037\n\022service_attachment\030\004 \001(\tB\003\340A\003\032-\n"
+ + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
+ + ":\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006"
+ + "STABLE\020\001\022\014\n\010UPDATING\020\002:\206\001\352A\202\001\n,aiplatfor"
+ + "m.googleapis.com/FeatureOnlineStore\022Rpro"
+ + "jects/{project}/locations/{location}/fea"
+ + "tureOnlineStores/{feature_online_store}B"
+ + "\016\n\014storage_typeB\325\001\n\036com.google.cloud.aip"
+ + "latform.v1B\027FeatureOnlineStoreProtoP\001Z>c"
+ + "loud.google.com/go/aiplatform/apiv1/aipl"
+ + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP"
+ + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352"
+ + "\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -149,7 +158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor,
new java.lang.String[] {
- "AutoScaling",
+ "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata",
});
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor =
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor
@@ -161,6 +170,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"MinNodeCount", "MaxNodeCount", "CpuUtilizationTarget",
});
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor,
+ new java.lang.String[] {
+ "TenantProjectId", "InstanceId", "TableId",
+ });
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Optimized_descriptor =
internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_descriptor
.getNestedTypes()
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java
index dee61540ac74..e75b1a35a23e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceProto.java
@@ -108,6 +108,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_FeatureViewDirectWriteResponse_WriteResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_FeatureViewDirectWriteResponse_WriteResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -229,33 +237,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ud.aiplatform.v1.FeatureViewDirectWriteResponse.WriteResponse\032\216\001\n\r"
+ "WriteResponse\022@\n"
+ "\010data_key\030\001 \001(\0132..google.cloud.aiplatform.v1.FeatureViewDataKey\022;\n"
- + "\027online_store_write_time\030\002 \001(\0132\032.google.protobuf.Timestamp*b\n"
+ + "\027online_store_write_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"c\n"
+ + "\037GenerateFetchAccessTokenRequest\022@\n"
+ + "\014feature_view\030\001 \001(\tB*\372A\'\n"
+ + "%aiplatform.googleapis.com/FeatureView\"i\n"
+ + " GenerateFetchAccessTokenResponse\022\024\n"
+ + "\014access_token\030\001 \001(\t\022/\n"
+ + "\013expire_time\030\002 \001(\0132\032.google.protobuf.Timestamp*b\n"
+ "\025FeatureViewDataFormat\022(\n"
+ "$FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED\020\000\022\r\n"
+ "\tKEY_VALUE\020\001\022\020\n"
- + "\014PROTO_STRUCT\020\0022\365\006\n"
+ + "\014PROTO_STRUCT\020\0022\201\t\n"
+ "\031FeatureOnlineStoreService\022\213\002\n"
- + "\022FetchFeatureValues\0225.google.cloud.aiplatform.v1.FetchFeatur"
- + "eValuesRequest\0326.google.cloud.aiplatform"
- + ".v1.FetchFeatureValuesResponse\"\205\001\332A\026feature_view,"
- + " data_key\202\323\344\223\002f\"a/v1/{feature_v"
+ + "\022FetchFeatureValues\0225.google.cloud.aiplatform.v1.Fet"
+ + "chFeatureValuesRequest\0326.google.cloud.ai"
+ + "platform.v1.FetchFeatureValuesResponse\"\205\001\332A\026feature_view,"
+ + " data_key\202\323\344\223\002f\"a/v1/{feature_view=projects/*/locations/*/featu"
+ + "reOnlineStores/*/featureViews/*}:fetchFeatureValues:\001*\022\375\001\n"
+ + "\025SearchNearestEntities\0228.google.cloud.aiplatform.v1.SearchNear"
+ + "estEntitiesRequest\0329.google.cloud.aiplat"
+ + "form.v1.SearchNearestEntitiesResponse\"o\202"
+ + "\323\344\223\002i\"d/v1/{feature_view=projects/*/loca"
+ + "tions/*/featureOnlineStores/*/featureViews/*}:searchNearestEntities:\001*\022\372\001\n"
+ + "\026FeatureViewDirectWrite\0229.google.cloud.aiplatf"
+ + "orm.v1.FeatureViewDirectWriteRequest\032:.google.cloud.aiplatform.v1.FeatureViewDir"
+ + "ectWriteResponse\"e\202\323\344\223\002_\"Z/v1/{feature_v"
+ "iew=projects/*/locations/*/featureOnline"
- + "Stores/*/featureViews/*}:fetchFeatureValues:\001*\022\375\001\n"
- + "\025SearchNearestEntities\0228.google.cloud.aiplatform.v1.SearchNearestEntit"
- + "iesRequest\0329.google.cloud.aiplatform.v1."
- + "SearchNearestEntitiesResponse\"o\202\323\344\223\002i\"d/"
- + "v1/{feature_view=projects/*/locations/*/"
- + "featureOnlineStores/*/featureViews/*}:searchNearestEntities:\001*\022\372\001\n"
- + "\026FeatureViewDirectWrite\0229.google.cloud.aiplatform.v1.F"
- + "eatureViewDirectWriteRequest\032:.google.cloud.aiplatform.v1.FeatureViewDirectWrite"
- + "Response\"e\202\323\344\223\002_\"Z/v1/{feature_view=proj"
- + "ects/*/locations/*/featureOnlineStores/*"
- + "/featureViews/*}:directWrite:\001*(\0010\001\032M\312A\031"
- + "aiplatform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\334\001\n"
- + "\036com.google.cloud.aiplatform.v1B\036FeatureOn"
- + "lineStoreServiceProtoP\001Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aipla"
- + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G"
- + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "Stores/*/featureViews/*}:directWrite:\001*(\0010\001\022\211\002\n"
+ + "\030GenerateFetchAccessToken\022;.google.cloud.aiplatform.v1.GenerateFetchAcces"
+ + "sTokenRequest\032<.google.cloud.aiplatform."
+ + "v1.GenerateFetchAccessTokenResponse\"r\202\323\344"
+ + "\223\002l\"g/v1/{feature_view=projects/*/locati"
+ + "ons/*/featureOnlineStores/*/featureViews"
+ + "/*}:generateFetchAccessToken:\001*\032M\312A\031aipl"
+ + "atform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\334\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\036FeatureOnline"
+ + "StoreServiceProtoP\001Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatfor"
+ + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl"
+ + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -459,6 +478,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"DataKey", "OnlineStoreWriteTime",
});
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_descriptor,
+ new java.lang.String[] {
+ "FeatureView",
+ });
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_descriptor,
+ new java.lang.String[] {
+ "AccessToken", "ExpireTime",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
index 03317d67dea5..4c38ddebff85 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
@@ -10077,6 +10077,665 @@ public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getDefaultInst
}
}
+ public interface BigtableMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.FeatureView.BigtableMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ java.lang.String getReadAppProfile();
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ com.google.protobuf.ByteString getReadAppProfileBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for the Cloud Bigtable that supports directly interacting Bigtable + * instances. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView.BigtableMetadata} + */ + public static final class BigtableMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FeatureView.BigtableMetadata) + BigtableMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BigtableMetadata.newBuilder() to construct. + private BigtableMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BigtableMetadata() { + readAppProfile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigtableMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.class, + com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder.class); + } + + public static final int READ_APP_PROFILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object readAppProfile_ = ""; + + /** + * + * + *
+ * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ @java.lang.Override
+ public java.lang.String getReadAppProfile() {
+ java.lang.Object ref = readAppProfile_;
+ 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();
+ readAppProfile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReadAppProfileBytes() {
+ java.lang.Object ref = readAppProfile_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readAppProfile_ = 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(readAppProfile_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readAppProfile_);
+ }
+ 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(readAppProfile_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readAppProfile_);
+ }
+ 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.v1.FeatureView.BigtableMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata other =
+ (com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata) obj;
+
+ if (!getReadAppProfile().equals(other.getReadAppProfile())) 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) + READ_APP_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getReadAppProfile().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata 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.v1.FeatureView.BigtableMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata 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.v1.FeatureView.BigtableMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata 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.v1.FeatureView.BigtableMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata 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.v1.FeatureView.BigtableMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata 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.v1.FeatureView.BigtableMetadata 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;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for the Cloud Bigtable that supports directly interacting Bigtable + * instances. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView.BigtableMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ public java.lang.String getReadAppProfile() {
+ java.lang.Object ref = readAppProfile_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readAppProfile_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ public com.google.protobuf.ByteString getReadAppProfileBytes() {
+ java.lang.Object ref = readAppProfile_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readAppProfile_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The readAppProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadAppProfile(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ readAppProfile_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadAppProfile() {
+ readAppProfile_ = getDefaultInstance().getReadAppProfile();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for readAppProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadAppProfileBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ readAppProfile_ = value;
+ bitField0_ |= 0x00000001;
+ 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.v1.FeatureView.BigtableMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FeatureView.BigtableMetadata)
+ private static final com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getBigtableMetadata() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -11082,6 +11801,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (satisfiesPzi_ != false) {
output.writeBool(20, satisfiesPzi_);
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(21, getBigtableMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -11152,6 +11874,9 @@ public int getSerializedSize() {
if (satisfiesPzi_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_);
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBigtableMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -11195,6 +11920,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false;
if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false;
+ if (hasBigtableMetadata() != other.hasBigtableMetadata()) return false;
+ if (hasBigtableMetadata()) {
+ if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false;
+ }
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 6:
@@ -11256,6 +11985,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi());
+ if (hasBigtableMetadata()) {
+ hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getBigtableMetadata().hashCode();
+ }
switch (sourceCase_) {
case 6:
hash = (37 * hash) + BIG_QUERY_SOURCE_FIELD_NUMBER;
@@ -11441,6 +12174,7 @@ private void maybeForceBuilderInitialization() {
getSyncConfigFieldBuilder();
getIndexConfigFieldBuilder();
getOptimizedConfigFieldBuilder();
+ getBigtableMetadataFieldBuilder();
}
}
@@ -11489,6 +12223,11 @@ public Builder clear() {
serviceAccountEmail_ = "";
satisfiesPzs_ = false;
satisfiesPzi_ = false;
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
sourceCase_ = 0;
source_ = null;
return this;
@@ -11573,6 +12312,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureView result) {
if (((from_bitField0_ & 0x00004000) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.bigtableMetadata_ =
+ bigtableMetadataBuilder_ == null ? bigtableMetadata_ : bigtableMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -11676,6 +12420,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureView other) {
if (other.getSatisfiesPzi() != false) {
setSatisfiesPzi(other.getSatisfiesPzi());
}
+ if (other.hasBigtableMetadata()) {
+ mergeBigtableMetadata(other.getBigtableMetadata());
+ }
switch (other.getSourceCase()) {
case BIG_QUERY_SOURCE:
{
@@ -11820,6 +12567,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00004000;
break;
} // case 160
+ case 170:
+ {
+ input.readMessage(
+ getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 170
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -14549,6 +15303,225 @@ public Builder clearSatisfiesPzi() {
return this;
}
+ private com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtableMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder>
+ bigtableMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getBigtableMetadata() {
+ if (bigtableMetadataBuilder_ == null) {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ } else {
+ return bigtableMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigtableMetadata_ = value;
+ } else {
+ bigtableMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder builderForValue) {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadata_ = builderForValue.build();
+ } else {
+ bigtableMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBigtableMetadata(
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00008000) != 0)
+ && bigtableMetadata_ != null
+ && bigtableMetadata_
+ != com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata
+ .getDefaultInstance()) {
+ getBigtableMetadataBuilder().mergeFrom(value);
+ } else {
+ bigtableMetadata_ = value;
+ }
+ } else {
+ bigtableMetadataBuilder_.mergeFrom(value);
+ }
+ if (bigtableMetadata_ != null) {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBigtableMetadata() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder
+ getBigtableMetadataBuilder() {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return getBigtableMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ if (bigtableMetadataBuilder_ != null) {
+ return bigtableMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder>
+ getBigtableMetadataFieldBuilder() {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder>(
+ getBigtableMetadata(), getParentForChildren(), isClean());
+ bigtableMetadata_ = null;
+ }
+ return bigtableMetadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java
index e2cb69800c6f..fca8fbcfc77c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java
@@ -646,5 +646,49 @@ java.lang.String getLabelsOrDefault(
*/
boolean getSatisfiesPzi();
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ boolean hasBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadata getBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder();
+
com.google.cloud.aiplatform.v1.FeatureView.SourceCase getSourceCase();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
index dcc6fc2ba76e..c71d81f71eee 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
@@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -86,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "w.proto\022\032google.cloud.aiplatform.v1\032\037goo"
+ "gle/api/field_behavior.proto\032\031google/api"
+ "/resource.proto\0322google/cloud/aiplatform"
- + "/v1/machine_resources.proto\032\037google/protobuf/timestamp.proto\"\212\024\n"
+ + "/v1/machine_resources.proto\032\037google/protobuf/timestamp.proto\"\227\025\n"
+ "\013FeatureView\022W\n"
+ "\020big_query_source\030\006 \001(\01326.google.cloud.ai"
+ "platform.v1.FeatureView.BigQuerySourceB\003\340A\001H\000\022e\n"
@@ -112,7 +116,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\025service_account_email\030\r"
+ " \001(\tB\003\340A\003\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\024 \001(\010B\003\340A\003\032B\n"
+ + "satisfies_pzi\030\024 \001(\010B\003\340A\003\022X\n"
+ + "\021bigtable_metadata\030\025 \001(\01328.google."
+ + "cloud.aiplatform.v1.FeatureView.BigtableMetadataB\003\340A\003\032B\n"
+ "\016BigQuerySource\022\020\n"
+ "\003uri\030\001 \001(\tB\003\340A\002\022\036\n"
+ "\021entity_id_columns\030\002 \003(\tB\003\340A\002\0323\n\n"
@@ -120,16 +126,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004cron\030\001 \001(\t\022\027\n\n"
+ "continuous\030\002 \001(\010B\003\340A\001\032\347\005\n"
+ "\013IndexConfig\022_\n"
- + "\016tree_ah_config\030\006"
- + " \001(\0132@.google.cloud.aiplatform.v1.FeatureView.IndexConfig.TreeAHConfigB\003\340A\001H\000\022g\n"
- + "\022brute_force_config\030\007 \001(\0132D.google.cloud"
- + ".aiplatform.v1.FeatureView.IndexConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ + "\016tree_ah_config\030\006 \001(\0132@.google.cloud.aiplatform"
+ + ".v1.FeatureView.IndexConfig.TreeAHConfigB\003\340A\001H\000\022g\n"
+ + "\022brute_force_config\030\007 \001(\0132D.go"
+ + "ogle.cloud.aiplatform.v1.FeatureView.IndexConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ "\020embedding_column\030\001 \001(\tB\003\340A\001\022\033\n"
+ "\016filter_columns\030\002 \003(\tB\003\340A\001\022\034\n"
+ "\017crowding_column\030\003 \001(\tB\003\340A\001\022%\n"
+ "\023embedding_dimension\030\004 \001(\005B\003\340A\001H\001\210\001\001\022k\n"
- + "\025distance_measure_type\030\005 \001(\0162G.google.cloud.ai"
- + "platform.v1.FeatureView.IndexConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ + "\025distance_measure_type\030\005 \001(\0162G.googl"
+ + "e.cloud.aiplatform.v1.FeatureView.IndexConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ "\020BruteForceConfig\032Y\n"
+ "\014TreeAHConfig\022+\n"
+ "\031leaf_node_embedding_count\030\001 \001(\003B\003\340A\001H\000\210\001\001B\034\n"
@@ -142,8 +148,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020algorithm_configB\026\n"
+ "\024_embedding_dimension\032\376\001\n"
+ "\025FeatureRegistrySource\022g\n"
- + "\016feature_groups\030\001 \003(\0132J.google.cloud.aiplatform.v1.FeatureVie"
- + "w.FeatureRegistrySource.FeatureGroupB\003\340A\002\022 \n"
+ + "\016feature_groups\030\001 \003(\0132J.google.cloud.aiplatform.v1."
+ + "FeatureView.FeatureRegistrySource.FeatureGroupB\003\340A\002\022 \n"
+ "\016project_number\030\002 \001(\003B\003\340A\001H\000\210\001\001\032G\n"
+ "\014FeatureGroup\022\035\n"
+ "\020feature_group_id\030\001 \001(\tB\003\340A\002\022\030\n"
@@ -153,24 +159,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003uri\030\001 \001(\tB\003\340A\002\022\032\n\r"
+ "rag_corpus_id\030\002 \001(\003B\003\340A\001\032c\n"
+ "\017OptimizedConfig\022P\n"
- + "\023automatic_resources\030\007 \001(\013"
- + "2..google.cloud.aiplatform.v1.AutomaticResourcesB\003\340A\001\032-\n"
+ + "\023automatic_resources\030\007"
+ + " \001(\0132..google.cloud.aiplatform.v1.AutomaticResourcesB\003\340A\001\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"{\n"
+ + "\005value\030\002 \001(\t:\0028\001\0321\n"
+ + "\020BigtableMetadata\022\035\n"
+ + "\020read_app_profile\030\001 \001(\tB\003\340A\003\"{\n"
+ "\020ServiceAgentType\022\"\n"
+ "\036SERVICE_AGENT_TYPE_UNSPECIFIED\020\000\022\036\n"
+ "\032SERVICE_AGENT_TYPE_PROJECT\020\001\022#\n"
+ "\037SERVICE_AGENT_TYPE_FEATURE_VIEW\020\002:\233\001\352A\227\001\n"
- + "%aiplatform.googleapis.com/FeatureView\022nproject"
- + "s/{project}/locations/{location}/feature"
- + "OnlineStores/{feature_online_store}/featureViews/{feature_view}B\010\n"
+ + "%aiplatform.googleapis.com/FeatureView\022nprojects/{project}/locatio"
+ + "ns/{location}/featureOnlineStores/{featu"
+ + "re_online_store}/featureViews/{feature_view}B\010\n"
+ "\006sourceB\316\001\n"
- + "\036com.google.cloud.aiplatform.v1B\020FeatureVie"
- + "wProtoP\001Z>cloud.google.com/go/aiplatform"
- + "/apiv1/aiplatformpb;aiplatformpb\252\002\032Googl"
- + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP"
- + "latform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\020FeatureViewProtoP\001Z>cloud.goo"
+ + "gle.com/go/aiplatform/apiv1/aiplatformpb"
+ + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform."
+ + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google"
+ + "::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -202,6 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceAccountEmail",
"SatisfiesPzs",
"SatisfiesPzi",
+ "BigtableMetadata",
"Source",
});
internal_static_google_cloud_aiplatform_v1_FeatureView_BigQuerySource_descriptor =
@@ -295,6 +304,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Key", "Value",
});
+ internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor.getNestedTypes().get(7);
+ internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_FeatureView_BigtableMetadata_descriptor,
+ new java.lang.String[] {
+ "ReadAppProfile",
+ });
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-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
index 5216e9697b41..e0cd130716c4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java
@@ -314,6 +314,16 @@ public enum BlockedReason implements com.google.protobuf.ProtocolMessageEnum {
* MODEL_ARMOR = 5;
*/
MODEL_ARMOR(5),
+ /**
+ *
+ *
+ * + * The user prompt was blocked due to jailbreak. + *+ * + *
JAILBREAK = 6;
+ */
+ JAILBREAK(6),
UNRECOGNIZED(-1),
;
@@ -384,6 +394,17 @@ public enum BlockedReason implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int MODEL_ARMOR_VALUE = 5;
+ /**
+ *
+ *
+ * + * The user prompt was blocked due to jailbreak. + *+ * + *
JAILBREAK = 6;
+ */
+ public static final int JAILBREAK_VALUE = 6;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -420,6 +441,8 @@ public static BlockedReason forNumber(int value) {
return PROHIBITED_CONTENT;
case 5:
return MODEL_ARMOR;
+ case 6:
+ return JAILBREAK;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenRequest.java
new file mode 100644
index 000000000000..cfe72cbaae0e
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenRequest.java
@@ -0,0 +1,651 @@
+/*
+ * 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/v1/feature_online_store_service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Request message for + * [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest} + */ +public final class GenerateFetchAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest) + GenerateFetchAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFetchAccessTokenRequest.newBuilder() to construct. + private GenerateFetchAccessTokenRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GenerateFetchAccessTokenRequest() { + featureView_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFetchAccessTokenRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest.class, + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest.Builder.class); + } + + public static final int FEATURE_VIEW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureView_ = ""; + + /** + * + * + *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ @java.lang.Override
+ public java.lang.String getFeatureView() {
+ java.lang.Object ref = featureView_;
+ 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();
+ featureView_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFeatureViewBytes() {
+ java.lang.Object ref = featureView_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ featureView_ = 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(featureView_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, featureView_);
+ }
+ 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(featureView_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featureView_);
+ }
+ 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.v1.GenerateFetchAccessTokenRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest other =
+ (com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest) obj;
+
+ if (!getFeatureView().equals(other.getFeatureView())) 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) + FEATURE_VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + getFeatureView().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest 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.v1.GenerateFetchAccessTokenRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest 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.v1.GenerateFetchAccessTokenRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest 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.v1.GenerateFetchAccessTokenRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest 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.v1.GenerateFetchAccessTokenRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest 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.v1.GenerateFetchAccessTokenRequest 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;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for + * [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ public java.lang.String getFeatureView() {
+ java.lang.Object ref = featureView_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ featureView_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ public com.google.protobuf.ByteString getFeatureViewBytes() {
+ java.lang.Object ref = featureView_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ featureView_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The featureView to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureView(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ featureView_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFeatureView() {
+ featureView_ = getDefaultInstance().getFeatureView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for featureView to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureViewBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ featureView_ = value;
+ bitField0_ |= 0x00000001;
+ 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.v1.GenerateFetchAccessTokenRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest)
+ private static final com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ java.lang.String getFeatureView();
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ com.google.protobuf.ByteString getFeatureViewBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenResponse.java
new file mode 100644
index 000000000000..2795d6c76390
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateFetchAccessTokenResponse.java
@@ -0,0 +1,932 @@
+/*
+ * 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/v1/feature_online_store_service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Response message for + * [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse} + */ +public final class GenerateFetchAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse) + GenerateFetchAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFetchAccessTokenResponse.newBuilder() to construct. + private GenerateFetchAccessTokenResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GenerateFetchAccessTokenResponse() { + accessToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFetchAccessTokenResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1_GenerateFetchAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse.class, + com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accessToken_ = ""; + + /** + * + * + *
+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ @java.lang.Override
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ 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();
+ accessToken_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp expireTime_;
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ 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(accessToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getExpireTime());
+ }
+ 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(accessToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
+ }
+ 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.v1.GenerateFetchAccessTokenResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse other =
+ (com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse) obj;
+
+ if (!getAccessToken().equals(other.getAccessToken())) return false;
+ if (hasExpireTime() != other.hasExpireTime()) return false;
+ if (hasExpireTime()) {
+ if (!getExpireTime().equals(other.getExpireTime())) 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) + ACCESS_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getAccessToken().hashCode();
+ if (hasExpireTime()) {
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse 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.v1.GenerateFetchAccessTokenResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse 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.v1.GenerateFetchAccessTokenResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse 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.v1.GenerateFetchAccessTokenResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse 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.v1.GenerateFetchAccessTokenResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse 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.v1.GenerateFetchAccessTokenResponse 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;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for + * [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accessToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @param value The accessToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccessToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accessToken_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAccessToken() {
+ accessToken_ = getDefaultInstance().getAccessToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @param value The bytes for accessToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ accessToken_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp expireTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expireTimeBuilder_;
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ } else {
+ return expireTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireTime_ = value;
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = builderForValue.build();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && expireTime_ != null
+ && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getExpireTimeBuilder().mergeFrom(value);
+ } else {
+ expireTime_ = value;
+ }
+ } else {
+ expireTimeBuilder_.mergeFrom(value);
+ }
+ if (expireTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder clearExpireTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ expireTime_ = null;
+ if (expireTimeBuilder_ != null) {
+ expireTimeBuilder_.dispose();
+ expireTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expireTimeBuilder_ != null) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpireTime(), getParentForChildren(), isClean());
+ expireTime_ = null;
+ }
+ return expireTimeBuilder_;
+ }
+
+ @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.v1.GenerateFetchAccessTokenResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse)
+ private static final com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ java.lang.String getAccessToken();
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ com.google.protobuf.ByteString getAccessTokenBytes();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ boolean hasExpireTime();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HarmCategory.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HarmCategory.java
index 69b5c18077af..bf24e4874148 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HarmCategory.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HarmCategory.java
@@ -91,6 +91,16 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum {
*/
@java.lang.Deprecated
HARM_CATEGORY_CIVIC_INTEGRITY(5),
+ /**
+ *
+ *
+ * + * The harm category is for jailbreak prompts. + *+ * + *
HARM_CATEGORY_JAILBREAK = 6;
+ */
+ HARM_CATEGORY_JAILBREAK(6),
UNRECOGNIZED(-1),
;
@@ -161,6 +171,17 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum {
*/
@java.lang.Deprecated public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE = 5;
+ /**
+ *
+ *
+ * + * The harm category is for jailbreak prompts. + *+ * + *
HARM_CATEGORY_JAILBREAK = 6;
+ */
+ public static final int HARM_CATEGORY_JAILBREAK_VALUE = 6;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -197,6 +218,8 @@ public static HarmCategory forNumber(int value) {
return HARM_CATEGORY_SEXUALLY_EXPLICIT;
case 5:
return HARM_CATEGORY_CIVIC_INTEGRITY;
+ case 6:
+ return HARM_CATEGORY_JAILBREAK;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
index 89d292cdaa3f..1723359e5d58 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
@@ -276,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001B\025\n"
- + "\023_system_instruction\"\240\t\n"
+ + "\023_system_instruction\"\260\t\n"
+ "\027GenerateContentResponse\022>\n\n"
+ "candidates\030\002"
+ " \003(\0132%.google.cloud.aiplatform.v1.CandidateB\003\340A\003\022\032\n\r"
@@ -288,96 +288,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017prompt_feedback\030\003 \001("
+ "\0132B.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\003\340A\003\022Y\n"
+ "\016usage_metadata\030\004 \001(\0132A.google.cloud.aiplat"
- + "form.v1.GenerateContentResponse.UsageMetadata\032\347\002\n"
+ + "form.v1.GenerateContentResponse.UsageMetadata\032\367\002\n"
+ "\016PromptFeedback\022k\n"
+ "\014block_reason\030\001 \001(\0162P.google.cloud.aiplatform.v1.Gene"
+ "rateContentResponse.PromptFeedback.BlockedReasonB\003\340A\003\022E\n"
+ "\016safety_ratings\030\002 \003(\0132(."
+ "google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022!\n"
- + "\024block_reason_message\030\003 \001(\tB\003\340A\003\"~\n\r"
+ + "\024block_reason_message\030\003 \001(\tB\003\340A\003\"\215\001\n\r"
+ "BlockedReason\022\036\n"
+ "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n"
+ "\006SAFETY\020\001\022\t\n"
+ "\005OTHER\020\002\022\r\n"
+ "\tBLOCKLIST\020\003\022\026\n"
+ "\022PROHIBITED_CONTENT\020\004\022\017\n"
- + "\013MODEL_ARMOR\020\005\032\261\003\n\r"
+ + "\013MODEL_ARMOR\020\005\022\r\n"
+ + "\tJAILBREAK\020\006\032\261\003\n\r"
+ "UsageMetadata\022\032\n"
+ "\022prompt_token_count\030\001 \001(\005\022\036\n"
+ "\026candidates_token_count\030\002 \001(\005\022!\n"
+ "\024thoughts_token_count\030\016 \001(\005B\003\340A\003\022\031\n"
+ "\021total_token_count\030\003 \001(\005\022\'\n"
+ "\032cached_content_token_count\030\005 \001(\005B\003\340A\003\022R\n"
- + "\025prompt_tokens_details\030\t"
- + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022Q\n"
+ + "\025prompt_tokens_details\030\t \003(\0132..go"
+ + "ogle.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022Q\n"
+ "\024cache_tokens_details\030\n"
+ " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022V\n"
- + "\031candidates_tokens_details\030\013 \003(\0132..google."
- + "cloud.aiplatform.v1.ModalityTokenCountB\003\340A\0032\362\031\n"
+ + "\031candidates_tokens_details\030\013"
+ + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\0032\362\031\n"
+ "\021PredictionService\022\224\002\n"
- + "\007Predict\022*.google.cloud.aiplatform.v1.PredictReques"
- + "t\032+.google.cloud.aiplatform.v1.PredictRe"
- + "sponse\"\257\001\332A\035endpoint,instances,parameter"
- + "s\202\323\344\223\002\210\001\"9/v1/{endpoint=projects/*/locat"
- + "ions/*/endpoints/*}:predict:\001*ZH\"C/v1/{e"
- + "ndpoint=projects/*/locations/*/publishers/*/models/*}:predict:\001*\022\376\001\n\n"
- + "RawPredict\022-.google.cloud.aiplatform.v1.RawPredictR"
- + "equest\032\024.google.api.HttpBody\"\252\001\332A\022endpoi"
- + "nt,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\001*\022\215\003\n"
- + "\017GenerateContent\0222.google.cloud.aiplatform.v1"
- + ".GenerateContentRequest\0323.google.cloud.a"
- + "iplatform.v1.GenerateContentResponse\"\220\002\332"
- + "A\016model,contents\202\323\344\223\002\370\001\">/v1/{model=proj"
- + "ects/*/locations/*/endpoints/*}:generateContent:\001*ZM\"H/v1/{model=projects/*/loca"
- + "tions/*/publishers/*/models/*}:generateContent:\001*Z,\"\'/v1/{model=endpoints/*}:gen"
- + "erateContent:\001*Z6\"1/v1/{model=publishers/*/models/*}:generateContent:\001*\022\255\003\n"
- + "\025StreamGenerateContent\0222.google.cloud.aiplatf"
- + "orm.v1.GenerateContentRequest\0323.google.cloud.aiplatform.v1.GenerateContentRespon"
- + "se\"\250\002\332A\016model,contents\202\323\344\223\002\220\002\"D/v1/{mode"
- + "l=projects/*/locations/*/endpoints/*}:streamGenerateContent:\001*ZS\"N/v1/{model=pro"
- + "jects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\001*Z2\"-/v1/{mode"
- + "l=endpoints/*}:streamGenerateContent:\001*Z<\"7/v1/{model=publishers/*/models/*}:str"
- + "eamGenerateContent:\001*0\001\032\206\001\312A\031aiplatform."
- + "googleapis.com\322Aghttps://www.googleapis.com/auth/cloud-platform,https://www.goog"
- + "leapis.com/auth/cloud-platform.read-onlyB\324\001\n"
- + "\036com.google.cloud.aiplatform.v1B\026PredictionServiceProtoP\001Z>cloud.google.com/"
- + "go/aiplatform/apiv1/aiplatformpb;aiplatf"
- + "ormpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goo"
- + "gle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\007Predict\022*.google.cloud.aiplatform.v1.PredictRequest\032+.google.cloud.aiplatf"
+ + "orm.v1.PredictResponse\"\257\001\332A\035endpoint,ins"
+ + "tances,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint="
+ + "projects/*/locations/*/endpoints/*}:predict:\001*ZH\"C/v1/{endpoint=projects/*/locat"
+ + "ions/*/publishers/*/models/*}:predict:\001*\022\376\001\n\n"
+ + "RawPredict\022-.google.cloud.aiplatform.v1.RawPredictRequest\032\024.google.api.Http"
+ + "Body\"\252\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint"
+ + "=projects/*/locations/*/endpoints/*}:explain:\001*\022\215\003\n"
+ + "\017GenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRequest\032"
+ + "3.google.cloud.aiplatform.v1.GenerateCon"
+ + "tentResponse\"\220\002\332A\016model,contents\202\323\344\223\002\370\001\""
+ + ">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\001*ZM\"H/v1/{model"
+ + "=projects/*/locations/*/publishers/*/models/*}:generateContent:\001*Z,\"\'/v1/{model="
+ + "endpoints/*}:generateContent:\001*Z6\"1/v1/{"
+ + "model=publishers/*/models/*}:generateContent:\001*\022\255\003\n"
+ + "\025StreamGenerateContent\0222.google.cloud.aiplatform.v1.GenerateContentRe"
+ + "quest\0323.google.cloud.aiplatform.v1.Gener"
+ + "ateContentResponse\"\250\002\332A\016model,contents\202\323"
+ + "\344\223\002\220\002\"D/v1/{model=projects/*/locations/*"
+ + "/endpoints/*}:streamGenerateContent:\001*ZS\"N/v1/{model=projects/*/locations/*/publ"
+ + "ishers/*/models/*}:streamGenerateContent:\001*Z2\"-/v1/{model=endpoints/*}:streamGen"
+ + "erateContent:\001*Z<\"7/v1/{model=publishers"
+ + "/*/models/*}:streamGenerateContent:\001*0\001\032"
+ + "\206\001\312A\031aiplatform.googleapis.com\322Aghttps:/"
+ + "/www.googleapis.com/auth/cloud-platform,"
+ + "https://www.googleapis.com/auth/cloud-platform.read-onlyB\324\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\026PredictionServiceProtoP\001Z>c"
+ + "loud.google.com/go/aiplatform/apiv1/aipl"
+ + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP"
+ + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352"
+ + "\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index 0856df030a0e..ec9e47608bad 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
@@ -57,6 +57,9 @@ enum HarmCategory {
// Deprecated: Election filter is not longer supported.
// The harm category is civic integrity.
HARM_CATEGORY_CIVIC_INTEGRITY = 5 [deprecated = true];
+
+ // The harm category is for jailbreak prompts.
+ HARM_CATEGORY_JAILBREAK = 6;
}
// Content Part modality
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
index 5970079d6c02..1c4c018c4160 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto
@@ -58,8 +58,29 @@ message FeatureOnlineStore {
int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL];
}
+ // Metadata of the Bigtable instance. This is used by direct read access to
+ // the Bigtable in tenant project.
+ message BigtableMetadata {
+ // Tenant project ID.
+ string tenant_project_id = 1;
+
+ // The Cloud Bigtable instance id.
+ string instance_id = 2;
+
+ // The Cloud Bigtable table id.
+ string table_id = 3;
+ }
+
// Required. Autoscaling config applied to Bigtable Instance.
AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Whether direct access to the Bigtable instance is enabled or not.
+ bool enable_direct_bigtable_access = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Metadata of the Bigtable instance. Output only.
+ BigtableMetadata bigtable_metadata = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Optimized storage type
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto
index a42c2fb8c779..d153e0f040d5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto
@@ -70,6 +70,16 @@ service FeatureOnlineStoreService {
body: "*"
};
}
+
+ // RPC to generate an access token for the given feature view. FeatureViews
+ // under the same FeatureOnlineStore share the same access token.
+ rpc GenerateFetchAccessToken(GenerateFetchAccessTokenRequest)
+ returns (GenerateFetchAccessTokenResponse) {
+ option (google.api.http) = {
+ post: "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:generateFetchAccessToken"
+ body: "*"
+ };
+ }
}
// Format of the data in the Feature View.
@@ -414,3 +424,23 @@ message FeatureViewDirectWriteResponse {
// will not be present.
repeated WriteResponse write_responses = 2;
}
+
+// Request message for
+// [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken].
+message GenerateFetchAccessTokenRequest {
+ // FeatureView resource format
+ // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ string feature_view = 1 [(google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/FeatureView"
+ }];
+}
+
+// Response message for
+// [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken].
+message GenerateFetchAccessTokenResponse {
+ // The OAuth 2.0 access token.
+ string access_token = 1;
+
+ // Token expiration time. This is always set
+ google.protobuf.Timestamp expire_time = 2;
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto
index 41704bd69fe0..e57dcb3d30d3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto
@@ -288,4 +288,15 @@ message FeatureView {
// Output only. Reserved for future use.
bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Metadata for the Cloud Bigtable that supports directly interacting Bigtable
+ // instances.
+ message BigtableMetadata {
+ // The Bigtable App Profile to use for reading from Bigtable.
+ string read_app_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Metadata containing information about the Cloud Bigtable.
+ BigtableMetadata bigtable_metadata = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
index 9e000382be07..5ec25c4f1136 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
@@ -776,6 +776,9 @@ message GenerateContentResponse {
// The user prompt was blocked by Model Armor.
MODEL_ARMOR = 5;
+
+ // The user prompt was blocked due to jailbreak.
+ JAILBREAK = 6;
}
// Output only. Blocked reason.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
index 8fc4c1867d3f..eac04570880e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
@@ -528,14 +528,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\"modelarmor.googleapis.com/Template\"f\n"
+ "\022ModalityTokenCount\022;\n"
+ "\010modality\030\001 \001(\0162).google.cloud.aiplatform.v1beta1.Modality\022\023\n"
- + "\013token_count\030\002 \001(\005*\333\001\n"
+ + "\013token_count\030\002 \001(\005*\370\001\n"
+ "\014HarmCategory\022\035\n"
+ "\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n"
+ "\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n"
+ "\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n"
+ "\030HARM_CATEGORY_HARASSMENT\020\003\022#\n"
+ "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022%\n"
- + "\035HARM_CATEGORY_CIVIC_INTEGRITY\020\005\032\002\010\001*]\n"
+ + "\035HARM_CATEGORY_CIVIC_INTEGRITY\020\005\032\002\010\001\022\033\n"
+ + "\027HARM_CATEGORY_JAILBREAK\020\006*]\n"
+ "\010Modality\022\030\n"
+ "\024MODALITY_UNSPECIFIED\020\000\022\010\n"
+ "\004TEXT\020\001\022\t\n"
@@ -543,13 +544,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005VIDEO\020\003\022\t\n"
+ "\005AUDIO\020\004\022\014\n"
+ "\010DOCUMENT\020\005B\310\002\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014ContentProtoP\001ZCcloud.g"
- + "oogle.com/go/aiplatform/apiv1beta1/aipla"
- + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl"
- + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform"
- + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the minScaleupPeriod field is set.
+ */
+ boolean hasMinScaleupPeriod();
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The minScaleupPeriod.
+ */
+ com.google.protobuf.Duration getMinScaleupPeriod();
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getMinScaleupPeriodOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the idleScaledownPeriod field is set.
+ */
+ boolean hasIdleScaledownPeriod();
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The idleScaledownPeriod.
+ */
+ com.google.protobuf.Duration getIdleScaledownPeriod();
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getIdleScaledownPeriodOrBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Specification for scale-to-zero feature. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec} + */ + public static final class ScaleToZeroSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec) + ScaleToZeroSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ScaleToZeroSpec.newBuilder() to construct. + private ScaleToZeroSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ScaleToZeroSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScaleToZeroSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.class, + com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.Builder.class); + } + + private int bitField0_; + public static final int MIN_SCALEUP_PERIOD_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minScaleupPeriod_; + + /** + * + * + *
+ * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the minScaleupPeriod field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinScaleupPeriod() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The minScaleupPeriod.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getMinScaleupPeriod() {
+ return minScaleupPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minScaleupPeriod_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getMinScaleupPeriodOrBuilder() {
+ return minScaleupPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minScaleupPeriod_;
+ }
+
+ public static final int IDLE_SCALEDOWN_PERIOD_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration idleScaledownPeriod_;
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the idleScaledownPeriod field is set.
+ */
+ @java.lang.Override
+ public boolean hasIdleScaledownPeriod() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The idleScaledownPeriod.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getIdleScaledownPeriod() {
+ return idleScaledownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : idleScaledownPeriod_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getIdleScaledownPeriodOrBuilder() {
+ return idleScaledownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : idleScaledownPeriod_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getMinScaleupPeriod());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getIdleScaledownPeriod());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinScaleupPeriod());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdleScaledownPeriod());
+ }
+ 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.DedicatedResources.ScaleToZeroSpec)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec other =
+ (com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec) obj;
+
+ if (hasMinScaleupPeriod() != other.hasMinScaleupPeriod()) return false;
+ if (hasMinScaleupPeriod()) {
+ if (!getMinScaleupPeriod().equals(other.getMinScaleupPeriod())) return false;
+ }
+ if (hasIdleScaledownPeriod() != other.hasIdleScaledownPeriod()) return false;
+ if (hasIdleScaledownPeriod()) {
+ if (!getIdleScaledownPeriod().equals(other.getIdleScaledownPeriod())) 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();
+ if (hasMinScaleupPeriod()) {
+ hash = (37 * hash) + MIN_SCALEUP_PERIOD_FIELD_NUMBER;
+ hash = (53 * hash) + getMinScaleupPeriod().hashCode();
+ }
+ if (hasIdleScaledownPeriod()) {
+ hash = (37 * hash) + IDLE_SCALEDOWN_PERIOD_FIELD_NUMBER;
+ hash = (53 * hash) + getIdleScaledownPeriod().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ 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.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec 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.DedicatedResources.ScaleToZeroSpec 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;
+ }
+
+ /**
+ *
+ *
+ * + * Specification for scale-to-zero feature. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the minScaleupPeriod field is set.
+ */
+ public boolean hasMinScaleupPeriod() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The minScaleupPeriod.
+ */
+ public com.google.protobuf.Duration getMinScaleupPeriod() {
+ if (minScaleupPeriodBuilder_ == null) {
+ return minScaleupPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minScaleupPeriod_;
+ } else {
+ return minScaleupPeriodBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMinScaleupPeriod(com.google.protobuf.Duration value) {
+ if (minScaleupPeriodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ minScaleupPeriod_ = value;
+ } else {
+ minScaleupPeriodBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMinScaleupPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+ if (minScaleupPeriodBuilder_ == null) {
+ minScaleupPeriod_ = builderForValue.build();
+ } else {
+ minScaleupPeriodBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeMinScaleupPeriod(com.google.protobuf.Duration value) {
+ if (minScaleupPeriodBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && minScaleupPeriod_ != null
+ && minScaleupPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getMinScaleupPeriodBuilder().mergeFrom(value);
+ } else {
+ minScaleupPeriod_ = value;
+ }
+ } else {
+ minScaleupPeriodBuilder_.mergeFrom(value);
+ }
+ if (minScaleupPeriod_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearMinScaleupPeriod() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ minScaleupPeriod_ = null;
+ if (minScaleupPeriodBuilder_ != null) {
+ minScaleupPeriodBuilder_.dispose();
+ minScaleupPeriodBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getMinScaleupPeriodBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getMinScaleupPeriodFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getMinScaleupPeriodOrBuilder() {
+ if (minScaleupPeriodBuilder_ != null) {
+ return minScaleupPeriodBuilder_.getMessageOrBuilder();
+ } else {
+ return minScaleupPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : minScaleupPeriod_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Minimum duration that a deployment will be scaled up before + * traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration min_scaleup_period = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getMinScaleupPeriodFieldBuilder() {
+ if (minScaleupPeriodBuilder_ == null) {
+ minScaleupPeriodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getMinScaleupPeriod(), getParentForChildren(), isClean());
+ minScaleupPeriod_ = null;
+ }
+ return minScaleupPeriodBuilder_;
+ }
+
+ private com.google.protobuf.Duration idleScaledownPeriod_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ idleScaledownPeriodBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the idleScaledownPeriod field is set.
+ */
+ public boolean hasIdleScaledownPeriod() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The idleScaledownPeriod.
+ */
+ public com.google.protobuf.Duration getIdleScaledownPeriod() {
+ if (idleScaledownPeriodBuilder_ == null) {
+ return idleScaledownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : idleScaledownPeriod_;
+ } else {
+ return idleScaledownPeriodBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIdleScaledownPeriod(com.google.protobuf.Duration value) {
+ if (idleScaledownPeriodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ idleScaledownPeriod_ = value;
+ } else {
+ idleScaledownPeriodBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIdleScaledownPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+ if (idleScaledownPeriodBuilder_ == null) {
+ idleScaledownPeriod_ = builderForValue.build();
+ } else {
+ idleScaledownPeriodBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeIdleScaledownPeriod(com.google.protobuf.Duration value) {
+ if (idleScaledownPeriodBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && idleScaledownPeriod_ != null
+ && idleScaledownPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getIdleScaledownPeriodBuilder().mergeFrom(value);
+ } else {
+ idleScaledownPeriod_ = value;
+ }
+ } else {
+ idleScaledownPeriodBuilder_.mergeFrom(value);
+ }
+ if (idleScaledownPeriod_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearIdleScaledownPeriod() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ idleScaledownPeriod_ = null;
+ if (idleScaledownPeriodBuilder_ != null) {
+ idleScaledownPeriodBuilder_.dispose();
+ idleScaledownPeriodBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getIdleScaledownPeriodBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getIdleScaledownPeriodFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getIdleScaledownPeriodOrBuilder() {
+ if (idleScaledownPeriodBuilder_ != null) {
+ return idleScaledownPeriodBuilder_.getMessageOrBuilder();
+ } else {
+ return idleScaledownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : idleScaledownPeriod_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Duration of no traffic before scaling to zero. + * [MinValue=3600] (5 minutes) + * [MaxValue=28800] (8 hours) + *+ * + *
+ * .google.protobuf.Duration idle_scaledown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getIdleScaledownPeriodFieldBuilder() {
+ if (idleScaledownPeriodBuilder_ == null) {
+ idleScaledownPeriodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getIdleScaledownPeriod(), getParentForChildren(), isClean());
+ idleScaledownPeriod_ = null;
+ }
+ return idleScaledownPeriodBuilder_;
+ }
+
+ @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.DedicatedResources.ScaleToZeroSpec)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec)
+ private static final com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requiredReplicaCount.
+ */
+ @java.lang.Override
+ public int getRequiredReplicaCount() {
+ return requiredReplicaCount_;
+ }
+
+ public static final int INITIAL_REPLICA_COUNT_FIELD_NUMBER = 6;
+ private int initialReplicaCount_ = 0;
+
+ /**
+ *
+ *
+ * + * Immutable. Number of initial replicas being deployed on when scaling the + * workload up from zero or when creating the workload in case + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * > 0 (meaning that the scale-to-zero feature is not enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should not be set. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0 (meaning that the scale-to-zero feature is enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should be larger than zero, but no greater than + * [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count]. + *+ * + *
int32 initial_replica_count = 6 [(.google.api.field_behavior) = IMMUTABLE];
*
- * @return The requiredReplicaCount.
+ * @return The initialReplicaCount.
*/
@java.lang.Override
- public int getRequiredReplicaCount() {
- return requiredReplicaCount_;
+ public int getInitialReplicaCount() {
+ return initialReplicaCount_;
}
public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4;
@@ -491,6 +1749,69 @@ public com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder getFlexStartOrBuil
: flexStart_;
}
+ public static final int SCALE_TO_ZERO_SPEC_FIELD_NUMBER = 11;
+ private com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scaleToZeroSpec_;
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the scaleToZeroSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasScaleToZeroSpec() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The scaleToZeroSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ getScaleToZeroSpec() {
+ return scaleToZeroSpec_ == null
+ ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ .getDefaultInstance()
+ : scaleToZeroSpec_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecOrBuilder
+ getScaleToZeroSpecOrBuilder() {
+ return scaleToZeroSpec_ == null
+ ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ .getDefaultInstance()
+ : scaleToZeroSpec_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -520,12 +1841,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (spot_ != false) {
output.writeBool(5, spot_);
}
+ if (initialReplicaCount_ != 0) {
+ output.writeInt32(6, initialReplicaCount_);
+ }
if (requiredReplicaCount_ != 0) {
output.writeInt32(9, requiredReplicaCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(10, getFlexStart());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(11, getScaleToZeroSpec());
+ }
getUnknownFields().writeTo(output);
}
@@ -552,12 +1879,18 @@ public int getSerializedSize() {
if (spot_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, spot_);
}
+ if (initialReplicaCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, initialReplicaCount_);
+ }
if (requiredReplicaCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requiredReplicaCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFlexStart());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getScaleToZeroSpec());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -581,6 +1914,7 @@ public boolean equals(final java.lang.Object obj) {
if (getMinReplicaCount() != other.getMinReplicaCount()) return false;
if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false;
if (getRequiredReplicaCount() != other.getRequiredReplicaCount()) return false;
+ if (getInitialReplicaCount() != other.getInitialReplicaCount()) return false;
if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList()))
return false;
if (getSpot() != other.getSpot()) return false;
@@ -588,6 +1922,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasFlexStart()) {
if (!getFlexStart().equals(other.getFlexStart())) return false;
}
+ if (hasScaleToZeroSpec() != other.hasScaleToZeroSpec()) return false;
+ if (hasScaleToZeroSpec()) {
+ if (!getScaleToZeroSpec().equals(other.getScaleToZeroSpec())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -609,6 +1947,8 @@ public int hashCode() {
hash = (53 * hash) + getMaxReplicaCount();
hash = (37 * hash) + REQUIRED_REPLICA_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRequiredReplicaCount();
+ hash = (37 * hash) + INITIAL_REPLICA_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getInitialReplicaCount();
if (getAutoscalingMetricSpecsCount() > 0) {
hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode();
@@ -619,6 +1959,10 @@ public int hashCode() {
hash = (37 * hash) + FLEX_START_FIELD_NUMBER;
hash = (53 * hash) + getFlexStart().hashCode();
}
+ if (hasScaleToZeroSpec()) {
+ hash = (37 * hash) + SCALE_TO_ZERO_SPEC_FIELD_NUMBER;
+ hash = (53 * hash) + getScaleToZeroSpec().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -765,6 +2109,7 @@ private void maybeForceBuilderInitialization() {
getMachineSpecFieldBuilder();
getAutoscalingMetricSpecsFieldBuilder();
getFlexStartFieldBuilder();
+ getScaleToZeroSpecFieldBuilder();
}
}
@@ -780,19 +2125,25 @@ public Builder clear() {
minReplicaCount_ = 0;
maxReplicaCount_ = 0;
requiredReplicaCount_ = 0;
+ initialReplicaCount_ = 0;
if (autoscalingMetricSpecsBuilder_ == null) {
autoscalingMetricSpecs_ = java.util.Collections.emptyList();
} else {
autoscalingMetricSpecs_ = null;
autoscalingMetricSpecsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
spot_ = false;
flexStart_ = null;
if (flexStartBuilder_ != null) {
flexStartBuilder_.dispose();
flexStartBuilder_ = null;
}
+ scaleToZeroSpec_ = null;
+ if (scaleToZeroSpecBuilder_ != null) {
+ scaleToZeroSpecBuilder_.dispose();
+ scaleToZeroSpecBuilder_ = null;
+ }
return this;
}
@@ -831,9 +2182,9 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources buildPartial() {
private void buildPartialRepeatedFields(
com.google.cloud.aiplatform.v1beta1.DedicatedResources result) {
if (autoscalingMetricSpecsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_);
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_;
} else {
@@ -858,13 +2209,21 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DedicatedResource
if (((from_bitField0_ & 0x00000008) != 0)) {
result.requiredReplicaCount_ = requiredReplicaCount_;
}
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.spot_ = spot_;
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.initialReplicaCount_ = initialReplicaCount_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.spot_ = spot_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.flexStart_ = flexStartBuilder_ == null ? flexStart_ : flexStartBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.scaleToZeroSpec_ =
+ scaleToZeroSpecBuilder_ == null ? scaleToZeroSpec_ : scaleToZeroSpecBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -926,11 +2285,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources
if (other.getRequiredReplicaCount() != 0) {
setRequiredReplicaCount(other.getRequiredReplicaCount());
}
+ if (other.getInitialReplicaCount() != 0) {
+ setInitialReplicaCount(other.getInitialReplicaCount());
+ }
if (autoscalingMetricSpecsBuilder_ == null) {
if (!other.autoscalingMetricSpecs_.isEmpty()) {
if (autoscalingMetricSpecs_.isEmpty()) {
autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAutoscalingMetricSpecsIsMutable();
autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_);
@@ -943,7 +2305,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources
autoscalingMetricSpecsBuilder_.dispose();
autoscalingMetricSpecsBuilder_ = null;
autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
autoscalingMetricSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAutoscalingMetricSpecsFieldBuilder()
@@ -959,6 +2321,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources
if (other.hasFlexStart()) {
mergeFlexStart(other.getFlexStart());
}
+ if (other.hasScaleToZeroSpec()) {
+ mergeScaleToZeroSpec(other.getScaleToZeroSpec());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1020,9 +2385,15 @@ public Builder mergeFrom(
case 40:
{
spot_ = input.readBool();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 40
+ case 48:
+ {
+ initialReplicaCount_ = input.readInt32();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 48
case 72:
{
requiredReplicaCount_ = input.readInt32();
@@ -1032,9 +2403,15 @@ public Builder mergeFrom(
case 82:
{
input.readMessage(getFlexStartFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 82
+ case 90:
+ {
+ input.readMessage(getScaleToZeroSpecFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1505,15 +2882,107 @@ public Builder clearRequiredReplicaCount() {
return this;
}
+ private int initialReplicaCount_;
+
+ /**
+ *
+ *
+ * + * Immutable. Number of initial replicas being deployed on when scaling the + * workload up from zero or when creating the workload in case + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * > 0 (meaning that the scale-to-zero feature is not enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should not be set. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0 (meaning that the scale-to-zero feature is enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should be larger than zero, but no greater than + * [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count]. + *+ * + *
int32 initial_replica_count = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The initialReplicaCount.
+ */
+ @java.lang.Override
+ public int getInitialReplicaCount() {
+ return initialReplicaCount_;
+ }
+
+ /**
+ *
+ *
+ * + * Immutable. Number of initial replicas being deployed on when scaling the + * workload up from zero or when creating the workload in case + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * > 0 (meaning that the scale-to-zero feature is not enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should not be set. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0 (meaning that the scale-to-zero feature is enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should be larger than zero, but no greater than + * [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count]. + *+ * + *
int32 initial_replica_count = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The initialReplicaCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInitialReplicaCount(int value) {
+
+ initialReplicaCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Immutable. Number of initial replicas being deployed on when scaling the + * workload up from zero or when creating the workload in case + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * > 0 (meaning that the scale-to-zero feature is not enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should not be set. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0 (meaning that the scale-to-zero feature is enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should be larger than zero, but no greater than + * [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count]. + *+ * + *
int32 initial_replica_count = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInitialReplicaCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ initialReplicaCount_ = 0;
+ onChanged();
+ return this;
+ }
+
private java.util.List+ * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the scaleToZeroSpec field is set.
+ */
+ public boolean hasScaleToZeroSpec() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The scaleToZeroSpec.
+ */
+ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ getScaleToZeroSpec() {
+ if (scaleToZeroSpecBuilder_ == null) {
+ return scaleToZeroSpec_ == null
+ ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ .getDefaultInstance()
+ : scaleToZeroSpec_;
+ } else {
+ return scaleToZeroSpecBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setScaleToZeroSpec(
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec value) {
+ if (scaleToZeroSpecBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ scaleToZeroSpec_ = value;
+ } else {
+ scaleToZeroSpecBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setScaleToZeroSpec(
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.Builder
+ builderForValue) {
+ if (scaleToZeroSpecBuilder_ == null) {
+ scaleToZeroSpec_ = builderForValue.build();
+ } else {
+ scaleToZeroSpecBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeScaleToZeroSpec(
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec value) {
+ if (scaleToZeroSpecBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && scaleToZeroSpec_ != null
+ && scaleToZeroSpec_
+ != com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ .getDefaultInstance()) {
+ getScaleToZeroSpecBuilder().mergeFrom(value);
+ } else {
+ scaleToZeroSpec_ = value;
+ }
+ } else {
+ scaleToZeroSpecBuilder_.mergeFrom(value);
+ }
+ if (scaleToZeroSpec_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearScaleToZeroSpec() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ scaleToZeroSpec_ = null;
+ if (scaleToZeroSpecBuilder_ != null) {
+ scaleToZeroSpecBuilder_.dispose();
+ scaleToZeroSpecBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.Builder
+ getScaleToZeroSpecBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getScaleToZeroSpecFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecOrBuilder
+ getScaleToZeroSpecOrBuilder() {
+ if (scaleToZeroSpecBuilder_ != null) {
+ return scaleToZeroSpecBuilder_.getMessageOrBuilder();
+ } else {
+ return scaleToZeroSpec_ == null
+ ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec
+ .getDefaultInstance()
+ : scaleToZeroSpec_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec,
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.Builder,
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecOrBuilder>
+ getScaleToZeroSpecFieldBuilder() {
+ if (scaleToZeroSpecBuilder_ == null) {
+ scaleToZeroSpecBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec,
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec.Builder,
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecOrBuilder>(
+ getScaleToZeroSpec(), getParentForChildren(), isClean());
+ scaleToZeroSpec_ = null;
+ }
+ return scaleToZeroSpecBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java
index bc16ac3782fd..bbcc12c68c9e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java
@@ -129,6 +129,31 @@ public interface DedicatedResourcesOrBuilder
*/
int getRequiredReplicaCount();
+ /**
+ *
+ *
+ * + * Immutable. Number of initial replicas being deployed on when scaling the + * workload up from zero or when creating the workload in case + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * > 0 (meaning that the scale-to-zero feature is not enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should not be set. When + * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + * = 0 (meaning that the scale-to-zero feature is enabled), + * [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count] + * should be larger than zero, but no greater than + * [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count]. + *+ * + *
int32 initial_replica_count = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The initialReplicaCount.
+ */
+ int getInitialReplicaCount();
+
/**
*
*
@@ -369,4 +394,48 @@ public interface DedicatedResourcesOrBuilder
*
*/
com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder getFlexStartOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the scaleToZeroSpec field is set.
+ */
+ boolean hasScaleToZeroSpec();
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The scaleToZeroSpec.
+ */
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec getScaleToZeroSpec();
+
+ /**
+ *
+ *
+ * + * Optional. Specification for scale-to-zero feature. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpec scale_to_zero_spec = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecOrBuilder
+ getScaleToZeroSpecOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java
index a9a5a153a5b3..cc777343eee4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java
@@ -299,6 +299,65 @@ public interface BigtableOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingOrBuilder
getAutoScalingOrBuilder();
+
+ /**
+ *
+ *
+ * + * If true, enable direct access to the Bigtable instance. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ boolean getEnableDirectBigtableAccess();
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ boolean hasBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder();
}
/** Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable} */
@@ -1156,159 +1215,1392 @@ public com.google.protobuf.Parser- * Required. Autoscaling config applied to Bigtable Instance. - *- * - *
- * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the autoScaling field is set.
- */
- @java.lang.Override
- public boolean hasAutoScaling() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ java.lang.String getTenantProjectId();
- /**
- *
- *
- * - * Required. Autoscaling config applied to Bigtable Instance. - *- * - *
- * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The autoScaling.
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
- getAutoScaling() {
- return autoScaling_ == null
- ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
- .getDefaultInstance()
- : autoScaling_;
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ com.google.protobuf.ByteString getTenantProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ java.lang.String getTableId();
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ com.google.protobuf.ByteString getTableIdBytes();
}
/**
*
*
*
- * Required. Autoscaling config applied to Bigtable Instance.
+ * Metadata of the Bigtable instance. This is used by direct read access to
+ * the Bigtable in tenant project.
*
*
- *
- * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
- *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata}
*/
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingOrBuilder
- getAutoScalingOrBuilder() {
- return autoScaling_ == null
- ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
- .getDefaultInstance()
- : autoScaling_;
- }
-
- 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;
- }
+ public static final class BigtableMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ BigtableMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getAutoScaling());
+ // Use BigtableMetadata.newBuilder() to construct.
+ private BigtableMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoScaling());
+ private BigtableMetadata() {
+ tenantProjectId_ = "";
+ instanceId_ = "";
+ tableId_ = "";
}
- 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.FeatureOnlineStore.Bigtable)) {
- return super.equals(obj);
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BigtableMetadata();
}
- com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable other =
- (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable) obj;
- if (hasAutoScaling() != other.hasAutoScaling()) return false;
- if (hasAutoScaling()) {
- if (!getAutoScaling().equals(other.getAutoScaling())) return false;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto
+ .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor;
}
- 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();
- if (hasAutoScaling()) {
- hash = (37 * hash) + AUTO_SCALING_FIELD_NUMBER;
- hash = (53 * hash) + getAutoScaling().hashCode();
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto
+ .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .class,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder.class);
}
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ public static final int TENANT_PROJECT_ID_FIELD_NUMBER = 1;
- public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tenantProjectId_ = "";
- public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ @java.lang.Override
+ public java.lang.String getTenantProjectId() {
+ java.lang.Object ref = tenantProjectId_;
+ 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();
+ tenantProjectId_ = s;
+ return s;
+ }
+ }
- public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
- com.google.protobuf.ByteString data,
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTenantProjectIdBytes() {
+ java.lang.Object ref = tenantProjectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tenantProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TABLE_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tableId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ @java.lang.Override
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ 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();
+ tableId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = 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(tenantProjectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenantProjectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableId_);
+ }
+ 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(tenantProjectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenantProjectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableId_);
+ }
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata other =
+ (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata) obj;
+
+ if (!getTenantProjectId().equals(other.getTenantProjectId())) return false;
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getTableId().equals(other.getTableId())) 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) + TENANT_PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTenantProjectId().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTableId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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.FeatureOnlineStore.Bigtable.BigtableMetadata
+ 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;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. This is used by direct read access to + * the Bigtable in tenant project. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The tenantProjectId.
+ */
+ public java.lang.String getTenantProjectId() {
+ java.lang.Object ref = tenantProjectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tenantProjectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return The bytes for tenantProjectId.
+ */
+ public com.google.protobuf.ByteString getTenantProjectIdBytes() {
+ java.lang.Object ref = tenantProjectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tenantProjectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @param value The tenantProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tenantProjectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTenantProjectId() {
+ tenantProjectId_ = getDefaultInstance().getTenantProjectId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Tenant project ID. + *+ * + *
string tenant_project_id = 1;
+ *
+ * @param value The bytes for tenantProjectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tenantProjectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable instance id. + *+ * + *
string instance_id = 2;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tableId_ = "";
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The tableId.
+ */
+ public java.lang.String getTableId() {
+ java.lang.Object ref = tableId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tableId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return The bytes for tableId.
+ */
+ public com.google.protobuf.ByteString getTableIdBytes() {
+ java.lang.Object ref = tableId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ tableId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @param value The tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTableId() {
+ tableId_ = getDefaultInstance().getTableId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Cloud Bigtable table id. + *+ * + *
string table_id = 3;
+ *
+ * @param value The bytes for tableId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ tableId_ = 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.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata)
+ private static final com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the autoScaling field is set.
+ */
+ @java.lang.Override
+ public boolean hasAutoScaling() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The autoScaling.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
+ getAutoScaling() {
+ return autoScaling_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
+ .getDefaultInstance()
+ : autoScaling_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Autoscaling config applied to Bigtable Instance. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingOrBuilder
+ getAutoScalingOrBuilder() {
+ return autoScaling_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScaling
+ .getDefaultInstance()
+ : autoScaling_;
+ }
+
+ public static final int ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER = 2;
+ private boolean enableDirectBigtableAccess_ = false;
+
+ /**
+ *
+ *
+ * + * If true, enable direct access to the Bigtable instance. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ @java.lang.Override
+ public boolean getEnableDirectBigtableAccess() {
+ return enableDirectBigtableAccess_;
+ }
+
+ public static final int BIGTABLE_METADATA_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ bigtableMetadata_;
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getAutoScaling());
+ }
+ if (enableDirectBigtableAccess_ != false) {
+ output.writeBool(2, enableDirectBigtableAccess_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getBigtableMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoScaling());
+ }
+ if (enableDirectBigtableAccess_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableDirectBigtableAccess_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigtableMetadata());
+ }
+ 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.FeatureOnlineStore.Bigtable)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable other =
+ (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable) obj;
+
+ if (hasAutoScaling() != other.hasAutoScaling()) return false;
+ if (hasAutoScaling()) {
+ if (!getAutoScaling().equals(other.getAutoScaling())) return false;
+ }
+ if (getEnableDirectBigtableAccess() != other.getEnableDirectBigtableAccess()) return false;
+ if (hasBigtableMetadata() != other.hasBigtableMetadata()) return false;
+ if (hasBigtableMetadata()) {
+ if (!getBigtableMetadata().equals(other.getBigtableMetadata())) 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();
+ if (hasAutoScaling()) {
+ hash = (37 * hash) + AUTO_SCALING_FIELD_NUMBER;
+ hash = (53 * hash) + getAutoScaling().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_DIRECT_BIGTABLE_ACCESS_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDirectBigtableAccess());
+ if (hasBigtableMetadata()) {
+ hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getBigtableMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable 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.FeatureOnlineStore.Bigtable parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable parseFrom(
+ com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
@@ -1424,6 +2716,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAutoScalingFieldBuilder();
+ getBigtableMetadataFieldBuilder();
}
}
@@ -1436,6 +2729,12 @@ public Builder clear() {
autoScalingBuilder_.dispose();
autoScalingBuilder_ = null;
}
+ enableDirectBigtableAccess_ = false;
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
return this;
}
@@ -1480,6 +2779,16 @@ private void buildPartial0(
autoScalingBuilder_ == null ? autoScaling_ : autoScalingBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.enableDirectBigtableAccess_ = enableDirectBigtableAccess_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.bigtableMetadata_ =
+ bigtableMetadataBuilder_ == null
+ ? bigtableMetadata_
+ : bigtableMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1536,6 +2845,12 @@ public Builder mergeFrom(
if (other.hasAutoScaling()) {
mergeAutoScaling(other.getAutoScaling());
}
+ if (other.getEnableDirectBigtableAccess() != false) {
+ setEnableDirectBigtableAccess(other.getEnableDirectBigtableAccess());
+ }
+ if (other.hasBigtableMetadata()) {
+ mergeBigtableMetadata(other.getBigtableMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1568,6 +2883,19 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 16:
+ {
+ enableDirectBigtableAccess_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26:
+ {
+ input.readMessage(
+ getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1812,6 +3140,297 @@ public Builder clearAutoScaling() {
return autoScalingBuilder_;
}
+ private boolean enableDirectBigtableAccess_;
+
+ /**
+ *
+ *
+ * + * If true, enable direct access to the Bigtable instance. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enableDirectBigtableAccess.
+ */
+ @java.lang.Override
+ public boolean getEnableDirectBigtableAccess() {
+ return enableDirectBigtableAccess_;
+ }
+
+ /**
+ *
+ *
+ * + * If true, enable direct access to the Bigtable instance. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enableDirectBigtableAccess to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableDirectBigtableAccess(boolean value) {
+
+ enableDirectBigtableAccess_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * If true, enable direct access to the Bigtable instance. + *+ * + *
bool enable_direct_bigtable_access = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableDirectBigtableAccess() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enableDirectBigtableAccess_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ bigtableMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadataOrBuilder>
+ bigtableMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ getBigtableMetadata() {
+ if (bigtableMetadataBuilder_ == null) {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ } else {
+ return bigtableMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigtableMetadata_ = value;
+ } else {
+ bigtableMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata.Builder
+ builderForValue) {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadata_ = builderForValue.build();
+ } else {
+ bigtableMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && bigtableMetadata_ != null
+ && bigtableMetadata_
+ != com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadata.getDefaultInstance()) {
+ getBigtableMetadataBuilder().mergeFrom(value);
+ } else {
+ bigtableMetadata_ = value;
+ }
+ } else {
+ bigtableMetadataBuilder_.mergeFrom(value);
+ }
+ if (bigtableMetadata_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBigtableMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder
+ getBigtableMetadataBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getBigtableMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ if (bigtableMetadataBuilder_ != null) {
+ return bigtableMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .getDefaultInstance()
+ : bigtableMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata of the Bigtable instance. Output only. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata bigtable_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadataOrBuilder>
+ getBigtableMetadataFieldBuilder() {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadata
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable
+ .BigtableMetadataOrBuilder>(
+ getBigtableMetadata(), getParentForChildren(), isClean());
+ bigtableMetadata_ = null;
+ }
+ return bigtableMetadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -4964,7 +6583,7 @@ public boolean hasDedicatedServingEndpoint() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Override
@@ -4986,7 +6605,7 @@ public boolean hasEmbeddingManagement() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return The embeddingManagement.
*/
@java.lang.Override
@@ -7681,7 +9300,7 @@ public Builder clearDedicatedServingEndpoint() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Deprecated
@@ -7702,7 +9321,7 @@ public boolean hasEmbeddingManagement() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return The embeddingManagement.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
index 16927da3fa97..4708429808b9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java
@@ -456,7 +456,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return Whether the embeddingManagement field is set.
*/
@java.lang.Deprecated
@@ -475,7 +475,7 @@ java.lang.String getLabelsOrDefault(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is
- * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=175
+ * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196
* @return The embeddingManagement.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
index 81e821010220..3bedb436b3dc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java
@@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Optimized_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -65,65 +69,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + ":google/cloud/aiplatform/v1beta1/feature_online_store.proto\022\037google.cloud.aipla"
+ "\n:google/cloud/aiplatform/v1beta1/featur"
+ + "e_online_store.proto\022\037google.cloud.aipla"
+ "tform.v1beta1\032\037google/api/field_behavior"
+ ".proto\032\031google/api/resource.proto\0325googl"
- + "e/cloud/aiplatform/v1beta1/encryption_spec.proto\0328google/cloud/aiplatform/v1beta"
- + "1/service_networking.proto\032\037google/protobuf/timestamp.proto\"\323\014\n"
- + "\022FeatureOnlineStore\022P\n"
- + "\010bigtable\030\010 \001(\0132<.google.cloud.aipl"
- + "atform.v1beta1.FeatureOnlineStore.BigtableH\000\022R\n"
- + "\toptimized\030\014 \001(\0132=.google.cloud.a"
- + "iplatform.v1beta1.FeatureOnlineStore.OptimizedH\000\022\021\n"
- + "\004name\030\001 \001(\tB\003\340A\010\0224\n"
- + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
- + "\013update_time\030\004"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n"
- + "\004etag\030\005 \001(\tB\003\340A\001\022T\n"
- + "\006labels\030\006 \003(\0132?.google.cloud.aiplatform.v1b"
- + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001\022M\n"
- + "\005state\030\007 \001(\01629.google.cloud.aiplatfor"
- + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022u\n"
- + "\032dedicated_serving_endpoint\030\n"
- + " \001(\0132L.google.cloud.aiplatform.v1beta1.FeatureOnl"
- + "ineStore.DedicatedServingEndpointB\003\340A\001\022l\n"
- + "\024embedding_management\030\013 \001(\0132G.google.cl"
- + "oud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagementB\005\030\001\340A\001\022M\n"
- + "\017encryption_spec\030\r"
- + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpecB\003\340A\001\022\032\n\r"
- + "satisfies_pzs\030\017 \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\020 \001(\010B\003\340A\003\032\335\001\n"
- + "\010Bigtable\022c\n"
- + "\014auto_scaling\030\001 \001(\0132H"
- + ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingB\003\340A\002\032l\n"
- + "\013AutoScaling\022\033\n"
- + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n"
- + "\016max_node_count\030\002 \001(\005B\003\340A\002\022#\n"
- + "\026cpu_utilization_target\030\003 \001(\005B\003\340A\001\032\013\n"
- + "\tOptimized\032\320\001\n"
- + "\030DedicatedServingEndpoint\022(\n"
- + "\033public_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n"
- + "\036private_service_connect_config\030\003 \001(\0132<.google"
- + ".cloud.aiplatform.v1beta1.PrivateServiceConnectConfigB\003\340A\001\022\037\n"
- + "\022service_attachment\030\004 \001(\tB\003\340A\003\0322\n"
- + "\023EmbeddingManagement\022\027\n"
- + "\007enabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n"
- + "\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"8\n"
- + "\005State\022\025\n"
- + "\021STATE_UNSPECIFIED\020\000\022\n\n"
- + "\006STABLE\020\001\022\014\n"
- + "\010UPDATING\020\002:\206\001\352A\202\001\n"
- + ",aiplatform.googleapis.com/FeatureOnlineStore\022Rprojects/{project"
- + "}/locations/{location}/featureOnlineStores/{feature_online_store}B\016\n"
- + "\014storage_typeB\356\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\027FeatureOnlineStoreProtoP\001ZCcloud.goog"
- + "le.com/go/aiplatform/apiv1beta1/aiplatfo"
- + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf"
- + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1"
- + "beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "e/cloud/aiplatform/v1beta1/encryption_sp"
+ + "ec.proto\0328google/cloud/aiplatform/v1beta"
+ + "1/service_networking.proto\032\037google/proto"
+ + "buf/timestamp.proto\"\304\016\n\022FeatureOnlineSto"
+ + "re\022P\n\010bigtable\030\010 \001(\0132<.google.cloud.aipl"
+ + "atform.v1beta1.FeatureOnlineStore.Bigtab"
+ + "leH\000\022R\n\toptimized\030\014 \001(\0132=.google.cloud.a"
+ + "iplatform.v1beta1.FeatureOnlineStore.Opt"
+ + "imizedH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_ti"
+ + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A"
+ + "\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf"
+ + ".TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022T\n\006la"
+ + "bels\030\006 \003(\0132?.google.cloud.aiplatform.v1b"
+ + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001"
+ + "\022M\n\005state\030\007 \001(\01629.google.cloud.aiplatfor"
+ + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022"
+ + "u\n\032dedicated_serving_endpoint\030\n \001(\0132L.go"
+ + "ogle.cloud.aiplatform.v1beta1.FeatureOnl"
+ + "ineStore.DedicatedServingEndpointB\003\340A\001\022l"
+ + "\n\024embedding_management\030\013 \001(\0132G.google.cl"
+ + "oud.aiplatform.v1beta1.FeatureOnlineStor"
+ + "e.EmbeddingManagementB\005\030\001\340A\001\022M\n\017encrypti"
+ + "on_spec\030\r \001(\0132/.google.cloud.aiplatform."
+ + "v1beta1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies"
+ + "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003"
+ + "\340A\003\032\316\003\n\010Bigtable\022c\n\014auto_scaling\030\001 \001(\0132H"
+ + ".google.cloud.aiplatform.v1beta1.Feature"
+ + "OnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n"
+ + "\035enable_direct_bigtable_access\030\002 \001(\010B\003\340A"
+ + "\001\022m\n\021bigtable_metadata\030\003 \001(\0132M.google.cl"
+ + "oud.aiplatform.v1beta1.FeatureOnlineStor"
+ + "e.Bigtable.BigtableMetadataB\003\340A\003\032l\n\013Auto"
+ + "Scaling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016"
+ + "max_node_count\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utiliza"
+ + "tion_target\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetada"
+ + "ta\022\031\n\021tenant_project_id\030\001 \001(\t\022\023\n\013instanc"
+ + "e_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimize"
+ + "d\032\320\001\n\030DedicatedServingEndpoint\022(\n\033public"
+ + "_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n\036priv"
+ + "ate_service_connect_config\030\003 \001(\0132<.googl"
+ + "e.cloud.aiplatform.v1beta1.PrivateServic"
+ + "eConnectConfigB\003\340A\001\022\037\n\022service_attachmen"
+ + "t\030\004 \001(\tB\003\340A\003\0322\n\023EmbeddingManagement\022\027\n\007e"
+ + "nabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n\013LabelsEntry\022"
+ + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State"
+ + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010U"
+ + "PDATING\020\002:\206\001\352A\202\001\n,aiplatform.googleapis."
+ + "com/FeatureOnlineStore\022Rprojects/{projec"
+ + "t}/locations/{location}/featureOnlineSto"
+ + "res/{feature_online_store}B\016\n\014storage_ty"
+ + "peB\356\001\n#com.google.cloud.aiplatform.v1bet"
+ + "a1B\027FeatureOnlineStoreProtoP\001ZCcloud.goo"
+ + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
+ + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
+ + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
+ + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be"
+ + "ta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -164,7 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor,
new java.lang.String[] {
- "AutoScaling",
+ "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata",
});
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor
@@ -176,6 +182,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"MinNodeCount", "MaxNodeCount", "CpuUtilizationTarget",
});
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_BigtableMetadata_descriptor,
+ new java.lang.String[] {
+ "TenantProjectId", "InstanceId", "TableId",
+ });
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Optimized_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_descriptor
.getNestedTypes()
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceProto.java
index 93de3e2cfce0..fda7653a9f08 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceProto.java
@@ -120,6 +120,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_FeatureViewDirectWriteResponse_WriteResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_FeatureViewDirectWriteResponse_WriteResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -273,39 +281,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "WriteResponse\022E\n"
+ "\010data_key\030\001 \001(\01323.google."
+ "cloud.aiplatform.v1beta1.FeatureViewDataKey\022;\n"
- + "\027online_store_write_time\030\002 \001(\0132\032.google.protobuf.Timestamp*b\n"
+ + "\027online_store_write_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"c\n"
+ + "\037GenerateFetchAccessTokenRequest\022@\n"
+ + "\014feature_view\030\001 \001(\tB*\372A\'\n"
+ + "%aiplatform.googleapis.com/FeatureView\"i\n"
+ + " GenerateFetchAccessTokenResponse\022\024\n"
+ + "\014access_token\030\001 \001(\t\022/\n"
+ + "\013expire_time\030\002 \001(\0132\032.google.protobuf.Timestamp*b\n"
+ "\025FeatureViewDataFormat\022(\n"
+ "$FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED\020\000\022\r\n"
+ "\tKEY_VALUE\020\001\022\020\n"
- + "\014PROTO_STRUCT\020\0022\350\t\n"
+ + "\014PROTO_STRUCT\020\0022\203\014\n"
+ "\031FeatureOnlineStoreService\022\232\002\n"
- + "\022FetchFeatureValues\022:.google.cloud.aiplatf"
- + "orm.v1beta1.FetchFeatureValuesRequest\032;."
- + "google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse\"\212\001\332A\026feature_view,"
- + " data_key\202\323\344\223\002k\"f/v1beta1/{feature_view=pro"
- + "jects/*/locations/*/featureOnlineStores/"
- + "*/featureViews/*}:fetchFeatureValues:\001*\022\303\002\n"
- + "\033StreamingFetchFeatureValues\022C.google.cloud.aiplatform.v1beta1.StreamingFetch"
- + "FeatureValuesRequest\032D.google.cloud.aipl"
- + "atform.v1beta1.StreamingFetchFeatureValuesResponse\"\224\001\332A\027feature_view,"
- + " data_keys\202\323\344\223\002t\"o/v1beta1/{feature_view=projects/*"
- + "/locations/*/featureOnlineStores/*/featu"
- + "reViews/*}:streamingFetchFeatureValues:\001*(\0010\001\022\214\002\n"
- + "\025SearchNearestEntities\022=.google.cloud.aiplatform.v1beta1.SearchNearestE"
- + "ntitiesRequest\032>.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse\"t"
- + "\202\323\344\223\002n\"i/v1beta1/{feature_view=projects/"
- + "*/locations/*/featureOnlineStores/*/featureViews/*}:searchNearestEntities:\001*\022\211\002\n"
- + "\026FeatureViewDirectWrite\022>.google.cloud.aiplatform.v1beta1.FeatureViewDirectWrite"
- + "Request\032?.google.cloud.aiplatform.v1beta"
- + "1.FeatureViewDirectWriteResponse\"j\202\323\344\223\002d"
- + "\"_/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureVie"
- + "ws/*}:directWrite:\001*(\0010\001\032M\312A\031aiplatform."
- + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\365\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\036FeatureOnlineSt"
- + "oreServiceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplat"
- + "formpb\252\002\037Google.Cloud.AIPlatform.V1Beta1"
- + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo"
- + "gle::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\022FetchFeatureValues\022:.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRe"
+ + "quest\032;.google.cloud.aiplatform.v1beta1."
+ + "FetchFeatureValuesResponse\"\212\001\332A\026feature_view,"
+ + " data_key\202\323\344\223\002k\"f/v1beta1/{feature_"
+ + "view=projects/*/locations/*/featureOnlin"
+ + "eStores/*/featureViews/*}:fetchFeatureValues:\001*\022\303\002\n"
+ + "\033StreamingFetchFeatureValues\022C.google.cloud.aiplatform.v1beta1.Stream"
+ + "ingFetchFeatureValuesRequest\032D.google.cl"
+ + "oud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse\"\224\001\332A\027feature_view,"
+ + " data_keys\202\323\344\223\002t\"o/v1beta1/{feature_view=pr"
+ + "ojects/*/locations/*/featureOnlineStores"
+ + "/*/featureViews/*}:streamingFetchFeatureValues:\001*(\0010\001\022\214\002\n"
+ + "\025SearchNearestEntities\022=.google.cloud.aiplatform.v1beta1.Search"
+ + "NearestEntitiesRequest\032>.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRe"
+ + "sponse\"t\202\323\344\223\002n\"i/v1beta1/{feature_view=p"
+ + "rojects/*/locations/*/featureOnlineStore"
+ + "s/*/featureViews/*}:searchNearestEntities:\001*\022\211\002\n"
+ + "\026FeatureViewDirectWrite\022>.google.cloud.aiplatform.v1beta1.FeatureViewDir"
+ + "ectWriteRequest\032?.google.cloud.aiplatform.v1beta1.FeatureViewDirectWriteResponse"
+ + "\"j\202\323\344\223\002d\"_/v1beta1/{feature_view=project"
+ + "s/*/locations/*/featureOnlineStores/*/featureViews/*}:directWrite:\001*(\0010\001\022\230\002\n"
+ + "\030GenerateFetchAccessToken\022@.google.cloud.aip"
+ + "latform.v1beta1.GenerateFetchAccessTokenRequest\032A.google.cloud.aiplatform.v1beta"
+ + "1.GenerateFetchAccessTokenResponse\"w\202\323\344\223"
+ + "\002q\"l/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureV"
+ + "iews/*}:generateFetchAccessToken:\001*\032M\312A\031"
+ + "aiplatform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\365\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\036Feat"
+ + "ureOnlineStoreServiceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatfo"
+ + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf"
+ + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1"
+ + "beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -535,6 +554,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"DataKey", "OnlineStoreWriteTime",
});
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_descriptor,
+ new java.lang.String[] {
+ "FeatureView",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_descriptor,
+ new java.lang.String[] {
+ "AccessToken", "ExpireTime",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java
index a9590a3ae154..dac9dab8348e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java
@@ -14095,6 +14095,672 @@ public com.google.protobuf.Parser+ * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ java.lang.String getReadAppProfile();
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ com.google.protobuf.ByteString getReadAppProfileBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for the Cloud Bigtable that supports directly interacting Bigtable + * instances. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata} + */ + public static final class BigtableMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata) + BigtableMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BigtableMetadata.newBuilder() to construct. + private BigtableMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BigtableMetadata() { + readAppProfile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigtableMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.class, + com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder.class); + } + + public static final int READ_APP_PROFILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object readAppProfile_ = ""; + + /** + * + * + *
+ * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ @java.lang.Override
+ public java.lang.String getReadAppProfile() {
+ java.lang.Object ref = readAppProfile_;
+ 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();
+ readAppProfile_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReadAppProfileBytes() {
+ java.lang.Object ref = readAppProfile_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readAppProfile_ = 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(readAppProfile_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readAppProfile_);
+ }
+ 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(readAppProfile_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readAppProfile_);
+ }
+ 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.FeatureView.BigtableMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata other =
+ (com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata) obj;
+
+ if (!getReadAppProfile().equals(other.getReadAppProfile())) 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) + READ_APP_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getReadAppProfile().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata
+ 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.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata 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.FeatureView.BigtableMetadata 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;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for the Cloud Bigtable that supports directly interacting Bigtable + * instances. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The readAppProfile.
+ */
+ public java.lang.String getReadAppProfile() {
+ java.lang.Object ref = readAppProfile_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readAppProfile_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for readAppProfile.
+ */
+ public com.google.protobuf.ByteString getReadAppProfileBytes() {
+ java.lang.Object ref = readAppProfile_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readAppProfile_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The readAppProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadAppProfile(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ readAppProfile_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadAppProfile() {
+ readAppProfile_ = getDefaultInstance().getReadAppProfile();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Bigtable App Profile to use for reading from Bigtable. + *+ * + *
string read_app_profile = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for readAppProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadAppProfileBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ readAppProfile_ = value;
+ bitField0_ |= 0x00000001;
+ 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.FeatureView.BigtableMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata)
+ private static final com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata getBigtableMetadata() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -15184,6 +15910,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (satisfiesPzi_ != false) {
output.writeBool(20, satisfiesPzi_);
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(21, getBigtableMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -15257,6 +15986,9 @@ public int getSerializedSize() {
if (satisfiesPzi_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_);
}
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBigtableMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -15304,6 +16036,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false;
if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false;
+ if (hasBigtableMetadata() != other.hasBigtableMetadata()) return false;
+ if (hasBigtableMetadata()) {
+ if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false;
+ }
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 6:
@@ -15369,6 +16105,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi());
+ if (hasBigtableMetadata()) {
+ hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getBigtableMetadata().hashCode();
+ }
switch (sourceCase_) {
case 6:
hash = (37 * hash) + BIG_QUERY_SOURCE_FIELD_NUMBER;
@@ -15555,6 +16295,7 @@ private void maybeForceBuilderInitialization() {
getVectorSearchConfigFieldBuilder();
getIndexConfigFieldBuilder();
getOptimizedConfigFieldBuilder();
+ getBigtableMetadataFieldBuilder();
}
}
@@ -15608,6 +16349,11 @@ public Builder clear() {
serviceAccountEmail_ = "";
satisfiesPzs_ = false;
satisfiesPzi_ = false;
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
sourceCase_ = 0;
source_ = null;
return this;
@@ -15699,6 +16445,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureView resul
if (((from_bitField0_ & 0x00008000) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
+ if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.bigtableMetadata_ =
+ bigtableMetadataBuilder_ == null ? bigtableMetadata_ : bigtableMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -15806,6 +16557,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureView other)
if (other.getSatisfiesPzi() != false) {
setSatisfiesPzi(other.getSatisfiesPzi());
}
+ if (other.hasBigtableMetadata()) {
+ mergeBigtableMetadata(other.getBigtableMetadata());
+ }
switch (other.getSourceCase()) {
case BIG_QUERY_SOURCE:
{
@@ -15957,6 +16711,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00008000;
break;
} // case 160
+ case 170:
+ {
+ input.readMessage(
+ getBigtableMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 170
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -18954,6 +19715,225 @@ public Builder clearSatisfiesPzi() {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtableMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder>
+ bigtableMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ public boolean hasBigtableMetadata() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata getBigtableMetadata() {
+ if (bigtableMetadataBuilder_ == null) {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ } else {
+ return bigtableMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bigtableMetadata_ = value;
+ } else {
+ bigtableMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder builderForValue) {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadata_ = builderForValue.build();
+ } else {
+ bigtableMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBigtableMetadata(
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata value) {
+ if (bigtableMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00010000) != 0)
+ && bigtableMetadata_ != null
+ && bigtableMetadata_
+ != com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata
+ .getDefaultInstance()) {
+ getBigtableMetadataBuilder().mergeFrom(value);
+ } else {
+ bigtableMetadata_ = value;
+ }
+ } else {
+ bigtableMetadataBuilder_.mergeFrom(value);
+ }
+ if (bigtableMetadata_ != null) {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBigtableMetadata() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ bigtableMetadata_ = null;
+ if (bigtableMetadataBuilder_ != null) {
+ bigtableMetadataBuilder_.dispose();
+ bigtableMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder
+ getBigtableMetadataBuilder() {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return getBigtableMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder() {
+ if (bigtableMetadataBuilder_ != null) {
+ return bigtableMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return bigtableMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.getDefaultInstance()
+ : bigtableMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder>
+ getBigtableMetadataFieldBuilder() {
+ if (bigtableMetadataBuilder_ == null) {
+ bigtableMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder>(
+ getBigtableMetadata(), getParentForChildren(), isClean());
+ bigtableMetadata_ = null;
+ }
+ return bigtableMetadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java
index bae0aef6c6da..22d061111a20 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java
@@ -706,5 +706,49 @@ java.lang.String getLabelsOrDefault(
*/
boolean getSatisfiesPzi();
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the bigtableMetadata field is set.
+ */
+ boolean hasBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bigtableMetadata.
+ */
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata getBigtableMetadata();
+
+ /**
+ *
+ *
+ * + * Metadata containing information about the Cloud Bigtable. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadata bigtable_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.FeatureView.BigtableMetadataOrBuilder
+ getBigtableMetadataOrBuilder();
+
com.google.cloud.aiplatform.v1beta1.FeatureView.SourceCase getSourceCase();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java
index 1eed68dd070c..140bef654213 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java
@@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_FeatureView_LabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_FeatureView_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -97,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "2google/cloud/aiplatform/v1beta1/feature_view.proto\022\037google.cloud.aiplatform.v1"
+ "beta1\032\037google/api/field_behavior.proto\032\031"
+ "google/api/resource.proto\0327google/cloud/"
- + "aiplatform/v1beta1/machine_resources.proto\032\037google/protobuf/timestamp.proto\"\261\033\n"
+ + "aiplatform/v1beta1/machine_resources.proto\032\037google/protobuf/timestamp.proto\"\303\034\n"
+ "\013FeatureView\022\\\n"
+ "\020big_query_source\030\006 \001(\0132;."
+ "google.cloud.aiplatform.v1beta1.FeatureView.BigQuerySourceB\003\340A\001H\000\022j\n"
@@ -125,23 +129,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\025service_account_email\030\r"
+ " \001(\tB\003\340A\003\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\024 \001(\010B\003\340A\003\032B\n"
+ + "satisfies_pzi\030\024 \001(\010B\003\340A\003\022]\n"
+ + "\021bigtable_metadata\030\025 \001(\0132=.google.clo"
+ + "ud.aiplatform.v1beta1.FeatureView.BigtableMetadataB\003\340A\003\032B\n"
+ "\016BigQuerySource\022\020\n"
+ "\003uri\030\001 \001(\tB\003\340A\002\022\036\n"
+ "\021entity_id_columns\030\002 \003(\tB\003\340A\002\032\032\n\n"
+ "SyncConfig\022\014\n"
+ "\004cron\030\001 \001(\t\032\226\006\n"
+ "\022VectorSearchConfig\022k\n"
- + "\016tree_ah_config\030\010 \001(\0132L.google.cloud.a"
- + "iplatform.v1beta1.FeatureView.VectorSearchConfig.TreeAHConfigB\003\340A\001H\000\022s\n"
- + "\022brute_force_config\030\t \001(\0132P.google.cloud.aiplatfo"
- + "rm.v1beta1.FeatureView.VectorSearchConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ + "\016tree_ah_config\030\010 \001(\0132L.google.cloud.aiplatform.v1beta1.Feature"
+ + "View.VectorSearchConfig.TreeAHConfigB\003\340A\001H\000\022s\n"
+ + "\022brute_force_config\030\t \001(\0132P.google"
+ + ".cloud.aiplatform.v1beta1.FeatureView.Ve"
+ + "ctorSearchConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ "\020embedding_column\030\003 \001(\tB\003\340A\001\022\033\n"
+ "\016filter_columns\030\004 \003(\tB\003\340A\001\022\034\n"
+ "\017crowding_column\030\005 \001(\tB\003\340A\001\022%\n"
+ "\023embedding_dimension\030\006 \001(\005B\003\340A\001H\001\210\001\001\022w\n"
- + "\025distance_measure_type\030\007 \001(\0162S.google.cloud"
- + ".aiplatform.v1beta1.FeatureView.VectorSearchConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ + "\025distance_measure_type\030\007 \001(\0162S.google.cloud.aiplatform.v1beta1.Featu"
+ + "reView.VectorSearchConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ "\020BruteForceConfig\032Y\n"
+ "\014TreeAHConfig\022+\n"
+ "\031leaf_node_embedding_count\030\001 \001(\003B\003\340A\001H\000\210\001\001B\034\n"
@@ -154,16 +161,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020algorithm_configB\026\n"
+ "\024_embedding_dimension\032\366\005\n"
+ "\013IndexConfig\022d\n"
- + "\016tree_ah_config\030\006 \001(\0132E.google.cloud.aiplatform.v1be"
- + "ta1.FeatureView.IndexConfig.TreeAHConfigB\003\340A\001H\000\022l\n"
- + "\022brute_force_config\030\007 \001(\0132I.go"
- + "ogle.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ + "\016tree_ah_config\030\006 \001(\0132E.google.cloud."
+ + "aiplatform.v1beta1.FeatureView.IndexConfig.TreeAHConfigB\003\340A\001H\000\022l\n"
+ + "\022brute_force_config\030\007 \001(\0132I.google.cloud.aiplatform.v1b"
+ + "eta1.FeatureView.IndexConfig.BruteForceConfigB\003\340A\001H\000\022\035\n"
+ "\020embedding_column\030\001 \001(\tB\003\340A\001\022\033\n"
+ "\016filter_columns\030\002 \003(\tB\003\340A\001\022\034\n"
+ "\017crowding_column\030\003 \001(\tB\003\340A\001\022%\n"
+ "\023embedding_dimension\030\004 \001(\005B\003\340A\001H\001\210\001\001\022p\n"
- + "\025distance_measure_type\030\005 \001(\0162L.google.cloud.aiplatform.v1beta1.FeatureV"
- + "iew.IndexConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ + "\025distance_measure_type\030\005 \001(\0162L.google.cloud.aiplatform.v"
+ + "1beta1.FeatureView.IndexConfig.DistanceMeasureTypeB\003\340A\001\032\022\n"
+ "\020BruteForceConfig\032Y\n"
+ "\014TreeAHConfig\022+\n"
+ "\031leaf_node_embedding_count\030\001 \001(\003B\003\340A\001H\000\210\001\001B\034\n"
@@ -176,8 +183,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020algorithm_configB\026\n"
+ "\024_embedding_dimension\032\203\002\n"
+ "\025FeatureRegistrySource\022l\n"
- + "\016feature_groups\030\001 \003(\0132O.google.cloud.aipl"
- + "atform.v1beta1.FeatureView.FeatureRegistrySource.FeatureGroupB\003\340A\002\022 \n"
+ + "\016feature_groups\030\001 \003(\0132O.google.cloud.aiplatform.v1beta1.FeatureVie"
+ + "w.FeatureRegistrySource.FeatureGroupB\003\340A\002\022 \n"
+ "\016project_number\030\002 \001(\003B\003\340A\001H\000\210\001\001\032G\n"
+ "\014FeatureGroup\022\035\n"
+ "\020feature_group_id\030\001 \001(\tB\003\340A\002\022\030\n"
@@ -187,24 +194,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003uri\030\001 \001(\tB\003\340A\002\022\032\n\r"
+ "rag_corpus_id\030\002 \001(\003B\003\340A\001\032h\n"
+ "\017OptimizedConfig\022U\n"
- + "\023automatic_resources\030\007 \001(\01323.google.cloud"
- + ".aiplatform.v1beta1.AutomaticResourcesB\003\340A\001\032-\n"
+ + "\023automatic_resources\030\007 \001(\013"
+ + "23.google.cloud.aiplatform.v1beta1.AutomaticResourcesB\003\340A\001\032-\n"
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001\"{\n"
+ + "\005value\030\002 \001(\t:\0028\001\0321\n"
+ + "\020BigtableMetadata\022\035\n"
+ + "\020read_app_profile\030\001 \001(\tB\003\340A\003\"{\n"
+ "\020ServiceAgentType\022\"\n"
+ "\036SERVICE_AGENT_TYPE_UNSPECIFIED\020\000\022\036\n"
+ "\032SERVICE_AGENT_TYPE_PROJECT\020\001\022#\n"
+ "\037SERVICE_AGENT_TYPE_FEATURE_VIEW\020\002:\233\001\352A\227\001\n"
- + "%aiplatform.googleapis.com/FeatureView\022nprojects/{project"
- + "}/locations/{location}/featureOnlineStor"
- + "es/{feature_online_store}/featureViews/{feature_view}B\010\n"
+ + "%aiplatform.googleapis.com/FeatureView\022nprojects/{project}/locations/{l"
+ + "ocation}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}B\010\n"
+ "\006sourceB\347\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\020FeatureViewProt"
- + "oP\001ZCcloud.google.com/go/aiplatform/apiv"
- + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl"
- + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou"
- + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\020FeatureViewProtoP\001ZCcloud.goo"
+ + "gle.com/go/aiplatform/apiv1beta1/aiplatf"
+ + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat"
+ + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V"
+ + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -237,6 +245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceAccountEmail",
"SatisfiesPzs",
"SatisfiesPzi",
+ "BigtableMetadata",
"Source",
});
internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigQuerySource_descriptor =
@@ -379,6 +388,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Key", "Value",
});
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_descriptor
+ .getNestedTypes()
+ .get(8);
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_FeatureView_BigtableMetadata_descriptor,
+ new java.lang.String[] {
+ "ReadAppProfile",
+ });
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/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequest.java
index 33fa98ffc583..cf1610976cba 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequest.java
@@ -292,7 +292,7 @@ public EntityIdCase getEntityIdCase() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return Whether the id field is set.
*/
@java.lang.Deprecated
@@ -311,7 +311,7 @@ public boolean hasId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The id.
*/
@java.lang.Deprecated
@@ -343,7 +343,7 @@ public java.lang.String getId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The bytes for id.
*/
@java.lang.Deprecated
@@ -546,7 +546,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureViewDataFormat getDataFormat()
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override
@@ -569,7 +569,7 @@ public int getFormatValue() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The format.
*/
@java.lang.Override
@@ -1104,7 +1104,7 @@ public Builder clearEntityId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return Whether the id field is set.
*/
@java.lang.Override
@@ -1124,7 +1124,7 @@ public boolean hasId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The id.
*/
@java.lang.Override
@@ -1157,7 +1157,7 @@ public java.lang.String getId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The bytes for id.
*/
@java.lang.Override
@@ -1190,7 +1190,7 @@ public com.google.protobuf.ByteString getIdBytes() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @param value The id to set.
* @return This builder for chaining.
*/
@@ -1216,7 +1216,7 @@ public Builder setId(java.lang.String value) {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1240,7 +1240,7 @@ public Builder clearId() {
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
@@ -1729,7 +1729,7 @@ public Builder clearDataFormat() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated.
- * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override
@@ -1752,7 +1752,7 @@ public int getFormatValue() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated.
- * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
@@ -1778,7 +1778,7 @@ public Builder setFormatValue(int value) {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated.
- * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The format.
*/
@java.lang.Override
@@ -1805,7 +1805,7 @@ public com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format getF
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated.
- * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @param value The format to set.
* @return This builder for chaining.
*/
@@ -1835,7 +1835,7 @@ public Builder setFormat(
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated.
- * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * See google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @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/FetchFeatureValuesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequestOrBuilder.java
index bfeded1d4a11..9da49af89a08 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FetchFeatureValuesRequestOrBuilder.java
@@ -35,7 +35,7 @@ public interface FetchFeatureValuesRequestOrBuilder
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return Whether the id field is set.
*/
@java.lang.Deprecated
@@ -52,7 +52,7 @@ public interface FetchFeatureValuesRequestOrBuilder
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The id.
*/
@java.lang.Deprecated
@@ -69,7 +69,7 @@ public interface FetchFeatureValuesRequestOrBuilder
* string id = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.id is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=141
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=151
* @return The bytes for id.
*/
@java.lang.Deprecated
@@ -198,7 +198,7 @@ public interface FetchFeatureValuesRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The enum numeric value on the wire for format.
*/
@java.lang.Deprecated
@@ -218,7 +218,7 @@ public interface FetchFeatureValuesRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.format is deprecated. See
- * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=165
+ * google/cloud/aiplatform/v1beta1/feature_online_store_service.proto;l=175
* @return The format.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenRequest.java
new file mode 100644
index 000000000000..a218a1772d38
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenRequest.java
@@ -0,0 +1,654 @@
+/*
+ * 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/feature_online_store_service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Request message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest} + */ +public final class GenerateFetchAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest) + GenerateFetchAccessTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFetchAccessTokenRequest.newBuilder() to construct. + private GenerateFetchAccessTokenRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GenerateFetchAccessTokenRequest() { + featureView_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFetchAccessTokenRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest.class, + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest.Builder.class); + } + + public static final int FEATURE_VIEW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureView_ = ""; + + /** + * + * + *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ @java.lang.Override
+ public java.lang.String getFeatureView() {
+ java.lang.Object ref = featureView_;
+ 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();
+ featureView_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFeatureViewBytes() {
+ java.lang.Object ref = featureView_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ featureView_ = 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(featureView_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, featureView_);
+ }
+ 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(featureView_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, featureView_);
+ }
+ 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.GenerateFetchAccessTokenRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest other =
+ (com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest) obj;
+
+ if (!getFeatureView().equals(other.getFeatureView())) 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) + FEATURE_VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + getFeatureView().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest
+ 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.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest 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.GenerateFetchAccessTokenRequest 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;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ public java.lang.String getFeatureView() {
+ java.lang.Object ref = featureView_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ featureView_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ public com.google.protobuf.ByteString getFeatureViewBytes() {
+ java.lang.Object ref = featureView_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ featureView_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The featureView to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureView(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ featureView_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFeatureView() {
+ featureView_ = getDefaultInstance().getFeatureView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for featureView to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureViewBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ featureView_ = value;
+ bitField0_ |= 0x00000001;
+ 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.GenerateFetchAccessTokenRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest)
+ private static final com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The featureView.
+ */
+ java.lang.String getFeatureView();
+
+ /**
+ *
+ *
+ *
+ * FeatureView resource format
+ * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ *
+ *
+ * string feature_view = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for featureView.
+ */
+ com.google.protobuf.ByteString getFeatureViewBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenResponse.java
new file mode 100644
index 000000000000..3bb5c936ded5
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateFetchAccessTokenResponse.java
@@ -0,0 +1,934 @@
+/*
+ * 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/feature_online_store_service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Response message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse} + */ +public final class GenerateFetchAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse) + GenerateFetchAccessTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateFetchAccessTokenResponse.newBuilder() to construct. + private GenerateFetchAccessTokenResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GenerateFetchAccessTokenResponse() { + accessToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateFetchAccessTokenResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateFetchAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accessToken_ = ""; + + /** + * + * + *
+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ @java.lang.Override
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ 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();
+ accessToken_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp expireTime_;
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ 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(accessToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getExpireTime());
+ }
+ 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(accessToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
+ }
+ 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.GenerateFetchAccessTokenResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse other =
+ (com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse) obj;
+
+ if (!getAccessToken().equals(other.getAccessToken())) return false;
+ if (hasExpireTime() != other.hasExpireTime()) return false;
+ if (hasExpireTime()) {
+ if (!getExpireTime().equals(other.getExpireTime())) 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) + ACCESS_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getAccessToken().hashCode();
+ if (hasExpireTime()) {
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse
+ 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.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse 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.GenerateFetchAccessTokenResponse 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;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accessToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @param value The accessToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccessToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accessToken_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAccessToken() {
+ accessToken_ = getDefaultInstance().getAccessToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @param value The bytes for accessToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ accessToken_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp expireTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expireTimeBuilder_;
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ } else {
+ return expireTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireTime_ = value;
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = builderForValue.build();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && expireTime_ != null
+ && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getExpireTimeBuilder().mergeFrom(value);
+ } else {
+ expireTime_ = value;
+ }
+ } else {
+ expireTimeBuilder_.mergeFrom(value);
+ }
+ if (expireTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder clearExpireTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ expireTime_ = null;
+ if (expireTimeBuilder_ != null) {
+ expireTimeBuilder_.dispose();
+ expireTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expireTimeBuilder_ != null) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpireTime(), getParentForChildren(), isClean());
+ expireTime_ = null;
+ }
+ return expireTimeBuilder_;
+ }
+
+ @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.GenerateFetchAccessTokenResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse)
+ private static final com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The accessToken.
+ */
+ java.lang.String getAccessToken();
+
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ *
+ * @return The bytes for accessToken.
+ */
+ com.google.protobuf.ByteString getAccessTokenBytes();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ boolean hasExpireTime();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ *
+ * @return The expireTime.
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+
+ /**
+ *
+ *
+ * + * Token expiration time. This is always set + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HarmCategory.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HarmCategory.java
index d0e34e259a23..75dcef435a34 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HarmCategory.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HarmCategory.java
@@ -91,6 +91,16 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum {
*/
@java.lang.Deprecated
HARM_CATEGORY_CIVIC_INTEGRITY(5),
+ /**
+ *
+ *
+ * + * The harm category is for jailbreak prompts. + *+ * + *
HARM_CATEGORY_JAILBREAK = 6;
+ */
+ HARM_CATEGORY_JAILBREAK(6),
UNRECOGNIZED(-1),
;
@@ -161,6 +171,17 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum {
*/
@java.lang.Deprecated public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE = 5;
+ /**
+ *
+ *
+ * + * The harm category is for jailbreak prompts. + *+ * + *
HARM_CATEGORY_JAILBREAK = 6;
+ */
+ public static final int HARM_CATEGORY_JAILBREAK_VALUE = 6;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -197,6 +218,8 @@ public static HarmCategory forNumber(int value) {
return HARM_CATEGORY_SEXUALLY_EXPLICIT;
case 5:
return HARM_CATEGORY_CIVIC_INTEGRITY;
+ case 6:
+ return HARM_CATEGORY_JAILBREAK;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
index 59211959b1bc..78f9132db386 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java
@@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_AutomaticResources_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -99,24 +103,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014tpu_topology\030\004 \001(\tB\003\340A\005\022(\n"
+ "\030multihost_gpu_node_count\030\006 \001(\005B\006\340A\005\340A\001\022Z\n"
+ "\024reservation_affinity\030\005 \001(\01324."
- + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\202\003\n"
+ + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\233\005\n"
+ "\022DedicatedResources\022J\n"
+ "\014machine_spec\030\001 \001(\0132,.google.cloud."
+ "aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n"
+ "\021min_replica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n"
+ "\021max_replica_count\030\003 \001(\005B\003\340A\005\022#\n"
- + "\026required_replica_count\030\t \001(\005B\003\340A\001\022]\n"
+ + "\026required_replica_count\030\t \001(\005B\003\340A\001\022\"\n"
+ + "\025initial_replica_count\030\006 \001(\005B\003\340A\005\022]\n"
+ "\030autoscaling_metric_specs\030\004"
+ " \003(\01326.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecB\003\340A\005\022\021\n"
+ "\004spot\030\005 \001(\010B\003\340A\001\022F\n\n"
+ "flex_start\030\n"
- + " \001(\0132*.google.cloud.aiplatform.v1beta1.FlexStartB\006\340A\005\340A\001\"T\n"
+ + " \001(\0132*.google.cloud.aiplatform.v1beta1.FlexStartB\006\340A\005\340A\001\022d\n"
+ + "\022scale_to_zero_spec\030\013 \001(\0132C.googl"
+ + "e.cloud.aiplatform.v1beta1.DedicatedResources.ScaleToZeroSpecB\003\340A\001\032\214\001\n"
+ + "\017ScaleToZeroSpec\022:\n"
+ + "\022min_scaleup_period\030\001"
+ + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022=\n"
+ + "\025idle_scaledown_period\030\002"
+ + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"T\n"
+ "\022AutomaticResources\022\036\n"
+ "\021min_replica_count\030\001 \001(\005B\003\340A\005\022\036\n"
+ "\021max_replica_count\030\002 \001(\005B\003\340A\005\"\205\002\n"
+ "\027BatchDedicatedResources\022J\n"
- + "\014machine_spec\030\001 \001(\0132,.google.cloud."
- + "aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022#\n"
+ + "\014machine_spec\030\001 \001(\0132,.google.cloud"
+ + ".aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022#\n"
+ "\026starting_replica_count\030\002 \001(\005B\003\340A\005\022\036\n"
+ "\021max_replica_count\030\003 \001(\005B\003\340A\005\022F\n\n"
+ "flex_start\030\004"
@@ -137,9 +149,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\025AutoscalingMetricSpec\022\030\n"
+ "\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n"
+ "\006target\030\002 \001(\005\022{\n"
- + "\031monitored_resource_labels\030\003 \003(\0132S.goo"
- + "gle.cloud.aiplatform.v1beta1.Autoscaling"
- + "MetricSpec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n"
+ + "\031monitored_resource_labels\030\003 \003(\0132S.go"
+ + "ogle.cloud.aiplatform.v1beta1.Autoscalin"
+ + "gMetricSpec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n"
+ "\034MonitoredResourceLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001\".\n"
@@ -147,10 +159,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022enable_secure_boot\030\001 \001(\010\"D\n"
+ "\tFlexStart\0227\n"
+ "\024max_runtime_duration\030\001 \001(\0132\031.google.protobuf.DurationB\354\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\025MachineResou"
- + "rcesProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"
- + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo"
- + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\025MachineReso"
+ + "urcesProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformp"
+ + "b\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go"
+ + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::"
+ + "Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -185,9 +198,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MinReplicaCount",
"MaxReplicaCount",
"RequiredReplicaCount",
+ "InitialReplicaCount",
"AutoscalingMetricSpecs",
"Spot",
"FlexStart",
+ "ScaleToZeroSpec",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_descriptor =
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_ScaleToZeroSpec_descriptor,
+ new java.lang.String[] {
+ "MinScaleupPeriod", "IdleScaledownPeriod",
});
internal_static_google_cloud_aiplatform_v1beta1_AutomaticResources_descriptor =
getDescriptor().getMessageTypes().get(2);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
index ce3e7448a150..ee5abbf44fa4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto
@@ -57,6 +57,9 @@ enum HarmCategory {
// Deprecated: Election filter is not longer supported.
// The harm category is civic integrity.
HARM_CATEGORY_CIVIC_INTEGRITY = 5 [deprecated = true];
+
+ // The harm category is for jailbreak prompts.
+ HARM_CATEGORY_JAILBREAK = 6;
}
// Content Part modality
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
index 9ffc568ad19e..f89d9e0eafbc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto
@@ -58,8 +58,29 @@ message FeatureOnlineStore {
int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL];
}
+ // Metadata of the Bigtable instance. This is used by direct read access to
+ // the Bigtable in tenant project.
+ message BigtableMetadata {
+ // Tenant project ID.
+ string tenant_project_id = 1;
+
+ // The Cloud Bigtable instance id.
+ string instance_id = 2;
+
+ // The Cloud Bigtable table id.
+ string table_id = 3;
+ }
+
// Required. Autoscaling config applied to Bigtable Instance.
AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // If true, enable direct access to the Bigtable instance.
+ bool enable_direct_bigtable_access = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Metadata of the Bigtable instance. Output only.
+ BigtableMetadata bigtable_metadata = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Optimized storage type
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto
index c8bf6df7f831..b11ac1cfbb3b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto
@@ -82,6 +82,16 @@ service FeatureOnlineStoreService {
body: "*"
};
}
+
+ // RPC to generate an access token for the given feature view. FeatureViews
+ // under the same FeatureOnlineStore share the same access token.
+ rpc GenerateFetchAccessToken(GenerateFetchAccessTokenRequest)
+ returns (GenerateFetchAccessTokenResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:generateFetchAccessToken"
+ body: "*"
+ };
+ }
}
// Format of the data in the Feature View.
@@ -507,3 +517,21 @@ message FeatureViewDirectWriteResponse {
// will not be present.
repeated WriteResponse write_responses = 2;
}
+
+// Request message for [FeatureOnlineStoreService.GenerateFetchAccessToken][].
+message GenerateFetchAccessTokenRequest {
+ // FeatureView resource format
+ // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
+ string feature_view = 1 [(google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/FeatureView"
+ }];
+}
+
+// Response message for [FeatureOnlineStoreService.GenerateFetchAccessToken][].
+message GenerateFetchAccessTokenResponse {
+ // The OAuth 2.0 access token.
+ string access_token = 1;
+
+ // Token expiration time. This is always set
+ google.protobuf.Timestamp expire_time = 2;
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto
index d747137a0911..e2ef1fc96891 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto
@@ -370,4 +370,15 @@ message FeatureView {
// Output only. Reserved for future use.
bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Metadata for the Cloud Bigtable that supports directly interacting Bigtable
+ // instances.
+ message BigtableMetadata {
+ // The Bigtable App Profile to use for reading from Bigtable.
+ string read_app_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Metadata containing information about the Cloud Bigtable.
+ BigtableMetadata bigtable_metadata = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
index 4cea35b7fae9..9218beab2fa1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto
@@ -96,6 +96,21 @@ message MachineSpec {
// A description of resources that are dedicated to a DeployedModel or
// DeployedIndex, and that need a higher degree of manual configuration.
message DedicatedResources {
+ // Specification for scale-to-zero feature.
+ message ScaleToZeroSpec {
+ // Optional. Minimum duration that a deployment will be scaled up before
+ // traffic is evaluated for potential scale-down. [MinValue=300] (5 minutes)
+ // [MaxValue=28800] (8 hours)
+ google.protobuf.Duration min_scaleup_period = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Duration of no traffic before scaling to zero.
+ // [MinValue=3600] (5 minutes)
+ // [MaxValue=28800] (8 hours)
+ google.protobuf.Duration idle_scaledown_period = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
// Required. Immutable. The specification of a single machine being used.
MachineSpec machine_spec = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -135,6 +150,21 @@ message DedicatedResources {
// required_replica_count will be min_replica_count.
int32 required_replica_count = 9 [(google.api.field_behavior) = OPTIONAL];
+ // Immutable. Number of initial replicas being deployed on when scaling the
+ // workload up from zero or when creating the workload in case
+ // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
+ // = 0. When
+ // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
+ // > 0 (meaning that the scale-to-zero feature is not enabled),
+ // [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count]
+ // should not be set. When
+ // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
+ // = 0 (meaning that the scale-to-zero feature is enabled),
+ // [initial_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.initial_replica_count]
+ // should be larger than zero, but no greater than
+ // [max_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.max_replica_count].
+ int32 initial_replica_count = 6 [(google.api.field_behavior) = IMMUTABLE];
+
// Immutable. The metric specifications that overrides a resource
// utilization metric (CPU utilization, accelerator's duty cycle, and so on)
// target value (default to 60 if not set). At most one entry is allowed per
@@ -172,6 +202,10 @@ message DedicatedResources {
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = OPTIONAL
];
+
+ // Optional. Specification for scale-to-zero feature.
+ ScaleToZeroSpec scale_to_zero_spec = 11
+ [(google.api.field_behavior) = OPTIONAL];
}
// A description of resources that to large degree are decided by Vertex AI,
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/featureonlinestoreservice/generatefetchaccesstoken/AsyncGenerateFetchAccessToken.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/featureonlinestoreservice/generatefetchaccesstoken/AsyncGenerateFetchAccessToken.java
new file mode 100644
index 000000000000..c7be1ec773fe
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/featureonlinestoreservice/generatefetchaccesstoken/AsyncGenerateFetchAccessToken.java
@@ -0,0 +1,54 @@
+/*
+ * 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.
+ */
+
+package com.google.cloud.aiplatform.v1.samples;
+
+// [START aiplatform_v1_generated_FeatureOnlineStoreService_GenerateFetchAccessToken_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient;
+import com.google.cloud.aiplatform.v1.FeatureViewName;
+import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest;
+import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse;
+
+public class AsyncGenerateFetchAccessToken {
+
+ public static void main(String[] args) throws Exception {
+ asyncGenerateFetchAccessToken();
+ }
+
+ public static void asyncGenerateFetchAccessToken() throws Exception {
+ // 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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
+ FeatureOnlineStoreServiceClient.create()) {
+ GenerateFetchAccessTokenRequest request =
+ GenerateFetchAccessTokenRequest.newBuilder()
+ .setFeatureView(
+ FeatureViewName.of(
+ "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
+ .toString())
+ .build();
+ ApiFutureGetEffectiveSecurityPolicies
Returns effective security policies applied to this backend service.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getEffectiveSecurityPolicies(GetEffectiveSecurityPoliciesBackendServiceRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getEffectiveSecurityPolicies(String project, String backendService) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getEffectiveSecurityPoliciesCallable() + *
GetHealth
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
+ * String project = "project-309310695";
+ * String backendService = "backendService-1884714623";
+ * GetEffectiveSecurityPoliciesBackendServiceResponse response =
+ * backendServicesClient.getEffectiveSecurityPolicies(project, backendService);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param backendService Name of the Backend Service for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GetEffectiveSecurityPoliciesBackendServiceResponse getEffectiveSecurityPolicies(
+ String project, String backendService) {
+ GetEffectiveSecurityPoliciesBackendServiceRequest request =
+ GetEffectiveSecurityPoliciesBackendServiceRequest.newBuilder()
+ .setProject(project)
+ .setBackendService(backendService)
+ .build();
+ return getEffectiveSecurityPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns effective security policies applied to this backend service.
+ *
+ * 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
+ * GetEffectiveSecurityPoliciesBackendServiceRequest request =
+ * GetEffectiveSecurityPoliciesBackendServiceRequest.newBuilder()
+ * .setBackendService("backendService-1884714623")
+ * .setProject("project-309310695")
+ * .build();
+ * GetEffectiveSecurityPoliciesBackendServiceResponse response =
+ * backendServicesClient.getEffectiveSecurityPolicies(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 GetEffectiveSecurityPoliciesBackendServiceResponse getEffectiveSecurityPolicies(
+ GetEffectiveSecurityPoliciesBackendServiceRequest request) {
+ return getEffectiveSecurityPoliciesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns effective security policies applied to this backend service.
+ *
+ * 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 (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
+ * GetEffectiveSecurityPoliciesBackendServiceRequest request =
+ * GetEffectiveSecurityPoliciesBackendServiceRequest.newBuilder()
+ * .setBackendService("backendService-1884714623")
+ * .setProject("project-309310695")
+ * .build();
+ * ApiFuture future =
+ * backendServicesClient.getEffectiveSecurityPoliciesCallable().futureCall(request);
+ * // Do something.
+ * GetEffectiveSecurityPoliciesBackendServiceResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ GetEffectiveSecurityPoliciesBackendServiceRequest,
+ GetEffectiveSecurityPoliciesBackendServiceResponse>
+ getEffectiveSecurityPoliciesCallable() {
+ return stub.getEffectiveSecurityPoliciesCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the most recent health check results for this BackendService. Example request body: {
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java
index c1413ccafc93..773731fdd84a 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java
@@ -164,6 +164,14 @@ public UnaryCallSettingsThis class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicy response = organizationSecurityPoliciesClient.get(securityPolicy);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the OrganizationSecurityPoliciesClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
AddAssociation |
+ * Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
AddRule |
+ * Inserts a rule into a security policy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CopyRules |
+ * Copies rules to the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.copyRules instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Delete |
+ * Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Get |
+ * List all of the ordered rules present in a single specified policy. Use of this API to read firewall policies is deprecated. Use firewallPolicies.get instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAssociation |
+ * Gets an association with the specified name. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getAssociation instead if possible. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetRule |
+ * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getRule instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Insert |
+ * Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
List |
+ * List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAssociations |
+ * Lists associations of a specified target, i.e., organization or folder. Use of this API to read firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListPreconfiguredExpressionSets |
+ * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Move |
+ * Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Patch |
+ * Patches the specified policy with the data included in the request. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patch instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
PatchRule |
+ * Patches a rule at the specified priority. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patchRule instead. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RemoveAssociation |
+ * Removes an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.removeAssociation instead if possible. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RemoveRule |
+ * Deletes a rule at the specified priority. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * OrganizationSecurityPoliciesSettings to create(). For example: + * + *
To customize credentials: + * + *
{@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
+ * OrganizationSecurityPoliciesSettings organizationSecurityPoliciesSettings =
+ * OrganizationSecurityPoliciesSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create(organizationSecurityPoliciesSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@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
+ * OrganizationSecurityPoliciesSettings organizationSecurityPoliciesSettings =
+ * OrganizationSecurityPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create(organizationSecurityPoliciesSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OrganizationSecurityPoliciesClient implements BackgroundResource { + private final OrganizationSecurityPoliciesSettings settings; + private final OrganizationSecurityPoliciesStub stub; + + /** Constructs an instance of OrganizationSecurityPoliciesClient with default settings. */ + public static final OrganizationSecurityPoliciesClient create() throws IOException { + return create(OrganizationSecurityPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OrganizationSecurityPoliciesClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final OrganizationSecurityPoliciesClient create( + OrganizationSecurityPoliciesSettings settings) throws IOException { + return new OrganizationSecurityPoliciesClient(settings); + } + + /** + * Constructs an instance of OrganizationSecurityPoliciesClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(OrganizationSecurityPoliciesSettings). + */ + public static final OrganizationSecurityPoliciesClient create( + OrganizationSecurityPoliciesStub stub) { + return new OrganizationSecurityPoliciesClient(stub); + } + + /** + * Constructs an instance of OrganizationSecurityPoliciesClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected OrganizationSecurityPoliciesClient(OrganizationSecurityPoliciesSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((OrganizationSecurityPoliciesStubSettings) settings.getStubSettings()).createStub(); + } + + protected OrganizationSecurityPoliciesClient(OrganizationSecurityPoliciesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final OrganizationSecurityPoliciesSettings getSettings() { + return settings; + } + + public OrganizationSecurityPoliciesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Inserts an association for the specified security policy. This has billing implications. + * Projects in the hierarchy with effective hierarchical security policies will be automatically + * enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify + * firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible. + * + *
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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicyAssociation securityPolicyAssociationResource =
+ * SecurityPolicyAssociation.newBuilder().build();
+ * Operation response =
+ * organizationSecurityPoliciesClient
+ * .addAssociationAsync(securityPolicy, securityPolicyAssociationResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @param securityPolicyAssociationResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddAssociationOrganizationSecurityPolicyRequest request =
+ * AddAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setReplaceExistingAssociation(true)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyAssociationResource(SecurityPolicyAssociation.newBuilder().build())
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.addAssociationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddAssociationOrganizationSecurityPolicyRequest request =
+ * AddAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setReplaceExistingAssociation(true)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyAssociationResource(SecurityPolicyAssociation.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.addAssociationOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ AddAssociationOrganizationSecurityPolicyRequest, Operation, Operation>
+ addAssociationOperationCallable() {
+ return stub.addAssociationOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Inserts an association for the specified security policy. This has billing implications.
+ * Projects in the hierarchy with effective hierarchical security policies will be automatically
+ * enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify
+ * firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddAssociationOrganizationSecurityPolicyRequest request =
+ * AddAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setReplaceExistingAssociation(true)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyAssociationResource(SecurityPolicyAssociation.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.addAssociationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
+ * Operation response =
+ * organizationSecurityPoliciesClient
+ * .addRuleAsync(securityPolicy, securityPolicyRuleResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @param securityPolicyRuleResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddRuleOrganizationSecurityPolicyRequest request =
+ * AddRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.addRuleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddRuleOrganizationSecurityPolicyRequest request =
+ * AddRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.addRuleOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * AddRuleOrganizationSecurityPolicyRequest request =
+ * AddRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.addRuleCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * Operation response = organizationSecurityPoliciesClient.copyRulesAsync(securityPolicy).get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * CopyRulesOrganizationSecurityPolicyRequest request =
+ * CopyRulesOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSourceSecurityPolicy("sourceSecurityPolicy1092878733")
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.copyRulesAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * CopyRulesOrganizationSecurityPolicyRequest request =
+ * CopyRulesOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSourceSecurityPolicy("sourceSecurityPolicy1092878733")
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.copyRulesOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * CopyRulesOrganizationSecurityPolicyRequest request =
+ * CopyRulesOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSourceSecurityPolicy("sourceSecurityPolicy1092878733")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.copyRulesCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * Operation response = organizationSecurityPoliciesClient.deleteAsync(securityPolicy).get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * DeleteOrganizationSecurityPolicyRequest request =
+ * DeleteOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * DeleteOrganizationSecurityPolicyRequest request =
+ * DeleteOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.deleteOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * DeleteOrganizationSecurityPolicyRequest request =
+ * DeleteOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.deleteCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicy response = organizationSecurityPoliciesClient.get(securityPolicy);
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to get.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecurityPolicy get(String securityPolicy) {
+ GetOrganizationSecurityPolicyRequest request =
+ GetOrganizationSecurityPolicyRequest.newBuilder().setSecurityPolicy(securityPolicy).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List all of the ordered rules present in a single specified policy. Use of this API to read
+ * firewall policies is deprecated. Use firewallPolicies.get instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetOrganizationSecurityPolicyRequest request =
+ * GetOrganizationSecurityPolicyRequest.newBuilder()
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * SecurityPolicy response = organizationSecurityPoliciesClient.get(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 SecurityPolicy get(GetOrganizationSecurityPolicyRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List all of the ordered rules present in a single specified policy. Use of this API to read
+ * firewall policies is deprecated. Use firewallPolicies.get instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetOrganizationSecurityPolicyRequest request =
+ * GetOrganizationSecurityPolicyRequest.newBuilder()
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.getCallable().futureCall(request);
+ * // Do something.
+ * SecurityPolicy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicyAssociation response =
+ * organizationSecurityPoliciesClient.getAssociation(securityPolicy);
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to which the queried rule belongs.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecurityPolicyAssociation getAssociation(String securityPolicy) {
+ GetAssociationOrganizationSecurityPolicyRequest request =
+ GetAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ .setSecurityPolicy(securityPolicy)
+ .build();
+ return getAssociation(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an association with the specified name. Use of this API to read firewall policies is
+ * deprecated. Use firewallPolicies.getAssociation instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetAssociationOrganizationSecurityPolicyRequest request =
+ * GetAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setName("name3373707")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * SecurityPolicyAssociation response =
+ * organizationSecurityPoliciesClient.getAssociation(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 SecurityPolicyAssociation getAssociation(
+ GetAssociationOrganizationSecurityPolicyRequest request) {
+ return getAssociationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an association with the specified name. Use of this API to read firewall policies is
+ * deprecated. Use firewallPolicies.getAssociation instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetAssociationOrganizationSecurityPolicyRequest request =
+ * GetAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setName("name3373707")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.getAssociationCallable().futureCall(request);
+ * // Do something.
+ * SecurityPolicyAssociation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ GetAssociationOrganizationSecurityPolicyRequest, SecurityPolicyAssociation>
+ getAssociationCallable() {
+ return stub.getAssociationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated.
+ * Use firewallPolicies.getRule instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicyRule response = organizationSecurityPoliciesClient.getRule(securityPolicy);
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to which the queried rule belongs.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SecurityPolicyRule getRule(String securityPolicy) {
+ GetRuleOrganizationSecurityPolicyRequest request =
+ GetRuleOrganizationSecurityPolicyRequest.newBuilder()
+ .setSecurityPolicy(securityPolicy)
+ .build();
+ return getRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated.
+ * Use firewallPolicies.getRule instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetRuleOrganizationSecurityPolicyRequest request =
+ * GetRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * SecurityPolicyRule response = organizationSecurityPoliciesClient.getRule(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 SecurityPolicyRule getRule(GetRuleOrganizationSecurityPolicyRequest request) {
+ return getRuleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated.
+ * Use firewallPolicies.getRule instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * GetRuleOrganizationSecurityPolicyRequest request =
+ * GetRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.getRuleCallable().futureCall(request);
+ * // Do something.
+ * SecurityPolicyRule response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
+ * Operation response =
+ * organizationSecurityPoliciesClient.insertAsync(securityPolicyResource).get();
+ * }
+ * }
+ *
+ * @param securityPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * InsertOrganizationSecurityPolicyRequest request =
+ * InsertOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.insertAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * InsertOrganizationSecurityPolicyRequest request =
+ * InsertOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.insertOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * InsertOrganizationSecurityPolicyRequest request =
+ * InsertOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.insertCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * for (SecurityPolicy element : organizationSecurityPoliciesClient.list().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 ListPagedResponse list() {
+ ListOrganizationSecurityPoliciesRequest request =
+ ListOrganizationSecurityPoliciesRequest.newBuilder().build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List all the policies that have been configured for the specified project. Use of this API to
+ * read firewall policies is deprecated. Use firewallPolicies.list instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListOrganizationSecurityPoliciesRequest request =
+ * ListOrganizationSecurityPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setParentId("parentId1175162725")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (SecurityPolicy element : organizationSecurityPoliciesClient.list(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 ListPagedResponse list(ListOrganizationSecurityPoliciesRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List all the policies that have been configured for the specified project. Use of this API to
+ * read firewall policies is deprecated. Use firewallPolicies.list instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListOrganizationSecurityPoliciesRequest request =
+ * ListOrganizationSecurityPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setParentId("parentId1175162725")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.listPagedCallable().futureCall(request);
+ * // Do something.
+ * for (SecurityPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListOrganizationSecurityPoliciesRequest request =
+ * ListOrganizationSecurityPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setParentId("parentId1175162725")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * SecurityPolicyList response =
+ * organizationSecurityPoliciesClient.listCallable().call(request);
+ * for (SecurityPolicy element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * OrganizationSecurityPoliciesListAssociationsResponse response =
+ * organizationSecurityPoliciesClient.listAssociations();
+ * }
+ * }
+ *
+ * @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 OrganizationSecurityPoliciesListAssociationsResponse listAssociations() {
+ ListAssociationsOrganizationSecurityPolicyRequest request =
+ ListAssociationsOrganizationSecurityPolicyRequest.newBuilder().build();
+ return listAssociations(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists associations of a specified target, i.e., organization or folder. Use of this API to read
+ * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListAssociationsOrganizationSecurityPolicyRequest request =
+ * ListAssociationsOrganizationSecurityPolicyRequest.newBuilder()
+ * .setTargetResource("targetResource-1933150017")
+ * .build();
+ * OrganizationSecurityPoliciesListAssociationsResponse response =
+ * organizationSecurityPoliciesClient.listAssociations(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 OrganizationSecurityPoliciesListAssociationsResponse listAssociations(
+ ListAssociationsOrganizationSecurityPolicyRequest request) {
+ return listAssociationsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists associations of a specified target, i.e., organization or folder. Use of this API to read
+ * firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListAssociationsOrganizationSecurityPolicyRequest request =
+ * ListAssociationsOrganizationSecurityPolicyRequest.newBuilder()
+ * .setTargetResource("targetResource-1933150017")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.listAssociationsCallable().futureCall(request);
+ * // Do something.
+ * OrganizationSecurityPoliciesListAssociationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListAssociationsOrganizationSecurityPolicyRequest,
+ OrganizationSecurityPoliciesListAssociationsResponse>
+ listAssociationsCallable() {
+ return stub.listAssociationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * SecurityPoliciesListPreconfiguredExpressionSetsResponse response =
+ * organizationSecurityPoliciesClient.listPreconfiguredExpressionSets();
+ * }
+ * }
+ *
+ * @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 SecurityPoliciesListPreconfiguredExpressionSetsResponse
+ listPreconfiguredExpressionSets() {
+ ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request =
+ ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest.newBuilder().build();
+ return listPreconfiguredExpressionSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request =
+ * ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setParentId("parentId1175162725")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * SecurityPoliciesListPreconfiguredExpressionSetsResponse response =
+ * organizationSecurityPoliciesClient.listPreconfiguredExpressionSets(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 SecurityPoliciesListPreconfiguredExpressionSetsResponse
+ listPreconfiguredExpressionSets(
+ ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request) {
+ return listPreconfiguredExpressionSetsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request =
+ * ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setParentId("parentId1175162725")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient
+ * .listPreconfiguredExpressionSetsCallable()
+ * .futureCall(request);
+ * // Do something.
+ * SecurityPoliciesListPreconfiguredExpressionSetsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest,
+ SecurityPoliciesListPreconfiguredExpressionSetsResponse>
+ listPreconfiguredExpressionSetsCallable() {
+ return stub.listPreconfiguredExpressionSetsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Moves the specified security policy. Use of this API to modify firewall policies is deprecated.
+ * Use firewallPolicies.move instead.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * Operation response = organizationSecurityPoliciesClient.moveAsync(securityPolicy).get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * MoveOrganizationSecurityPolicyRequest request =
+ * MoveOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.moveAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * MoveOrganizationSecurityPolicyRequest request =
+ * MoveOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.moveOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * MoveOrganizationSecurityPolicyRequest request =
+ * MoveOrganizationSecurityPolicyRequest.newBuilder()
+ * .setParentId("parentId1175162725")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.moveCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
+ * Operation response =
+ * organizationSecurityPoliciesClient
+ * .patchAsync(securityPolicy, securityPolicyResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @param securityPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchOrganizationSecurityPolicyRequest request =
+ * PatchOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.patchAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchOrganizationSecurityPolicyRequest request =
+ * PatchOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.patchOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchOrganizationSecurityPolicyRequest request =
+ * PatchOrganizationSecurityPolicyRequest.newBuilder()
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyResource(SecurityPolicy.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.patchCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
+ * Operation response =
+ * organizationSecurityPoliciesClient
+ * .patchRuleAsync(securityPolicy, securityPolicyRuleResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @param securityPolicyRuleResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchRuleOrganizationSecurityPolicyRequest request =
+ * PatchRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.patchRuleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchRuleOrganizationSecurityPolicyRequest request =
+ * PatchRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.patchRuleOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * PatchRuleOrganizationSecurityPolicyRequest request =
+ * PatchRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .setSecurityPolicyRuleResource(SecurityPolicyRule.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.patchRuleCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * Operation response =
+ * organizationSecurityPoliciesClient.removeAssociationAsync(securityPolicy).get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveAssociationOrganizationSecurityPolicyRequest request =
+ * RemoveAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.removeAssociationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveAssociationOrganizationSecurityPolicyRequest request =
+ * RemoveAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient
+ * .removeAssociationOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ RemoveAssociationOrganizationSecurityPolicyRequest, Operation, Operation>
+ removeAssociationOperationCallable() {
+ return stub.removeAssociationOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes an association for the specified security policy. Use of this API to modify firewall
+ * policies is deprecated. Use firewallPolicies.removeAssociation instead if possible.
+ *
+ * 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveAssociationOrganizationSecurityPolicyRequest request =
+ * RemoveAssociationOrganizationSecurityPolicyRequest.newBuilder()
+ * .setName("name3373707")
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.removeAssociationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * Operation response = organizationSecurityPoliciesClient.removeRuleAsync(securityPolicy).get();
+ * }
+ * }
+ *
+ * @param securityPolicy Name of the security policy to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveRuleOrganizationSecurityPolicyRequest request =
+ * RemoveRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * Operation response = organizationSecurityPoliciesClient.removeRuleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveRuleOrganizationSecurityPolicyRequest request =
+ * RemoveRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * OperationFuture future =
+ * organizationSecurityPoliciesClient.removeRuleOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * RemoveRuleOrganizationSecurityPolicyRequest request =
+ * RemoveRuleOrganizationSecurityPolicyRequest.newBuilder()
+ * .setPriority(-1165461084)
+ * .setRequestId("requestId693933066")
+ * .setSecurityPolicy("securityPolicy-788621166")
+ * .build();
+ * ApiFuture future =
+ * organizationSecurityPoliciesClient.removeRuleCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *
{@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
+ * OrganizationSecurityPoliciesSettings.Builder organizationSecurityPoliciesSettingsBuilder =
+ * OrganizationSecurityPoliciesSettings.newBuilder();
+ * organizationSecurityPoliciesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * organizationSecurityPoliciesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * OrganizationSecurityPoliciesSettings organizationSecurityPoliciesSettings =
+ * organizationSecurityPoliciesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for addAssociation: + * + *
{@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
+ * OrganizationSecurityPoliciesSettings.Builder organizationSecurityPoliciesSettingsBuilder =
+ * OrganizationSecurityPoliciesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * organizationSecurityPoliciesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class OrganizationSecurityPoliciesSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the PreviewFeaturesClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * Get Returns the details of the given PreviewFeature. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetPreviewFeatureRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String previewFeature)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * List Returns the details of the given PreviewFeature. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListPreviewFeaturesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * Update Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateAsync(UpdatePreviewFeatureRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateAsync(String project, String previewFeature, PreviewFeature previewFeatureResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateOperationCallable()
+ * updateCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of PreviewFeaturesSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class PreviewFeaturesClient implements BackgroundResource {
+ private final PreviewFeaturesSettings settings;
+ private final PreviewFeaturesStub stub;
+
+ /** Constructs an instance of PreviewFeaturesClient with default settings. */
+ public static final PreviewFeaturesClient create() throws IOException {
+ return create(PreviewFeaturesSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PreviewFeaturesClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final PreviewFeaturesClient create(PreviewFeaturesSettings settings)
+ throws IOException {
+ return new PreviewFeaturesClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PreviewFeaturesClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(PreviewFeaturesSettings).
+ */
+ public static final PreviewFeaturesClient create(PreviewFeaturesStub stub) {
+ return new PreviewFeaturesClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PreviewFeaturesClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected PreviewFeaturesClient(PreviewFeaturesSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((PreviewFeaturesStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected PreviewFeaturesClient(PreviewFeaturesStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final PreviewFeaturesSettings getSettings() {
+ return settings;
+ }
+
+ public PreviewFeaturesStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of the given PreviewFeature.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for update:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * String project = "project-309310695";
+ * String previewFeature = "previewFeature-712516082";
+ * PreviewFeature response = previewFeaturesClient.get(project, previewFeature);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * PreviewFeaturesSettings previewFeaturesSettings =
+ * PreviewFeaturesSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PreviewFeaturesClient previewFeaturesClient =
+ * PreviewFeaturesClient.create(previewFeaturesSettings);
+ * }
+ *
+ * {@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
+ * PreviewFeaturesSettings previewFeaturesSettings =
+ * PreviewFeaturesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PreviewFeaturesClient previewFeaturesClient =
+ * PreviewFeaturesClient.create(previewFeaturesSettings);
+ * }
+ *
+ * {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * String project = "project-309310695";
+ * String previewFeature = "previewFeature-712516082";
+ * PreviewFeature response = previewFeaturesClient.get(project, previewFeature);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param previewFeature Name of the PreviewFeature for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PreviewFeature get(String project, String previewFeature) {
+ GetPreviewFeatureRequest request =
+ GetPreviewFeatureRequest.newBuilder()
+ .setProject(project)
+ .setPreviewFeature(previewFeature)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of the given PreviewFeature.
+ *
+ * {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * GetPreviewFeatureRequest request =
+ * GetPreviewFeatureRequest.newBuilder()
+ * .setPreviewFeature("previewFeature-712516082")
+ * .setProject("project-309310695")
+ * .build();
+ * PreviewFeature response = previewFeaturesClient.get(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 PreviewFeature get(GetPreviewFeatureRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of the given PreviewFeature.
+ *
+ * {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * GetPreviewFeatureRequest request =
+ * GetPreviewFeatureRequest.newBuilder()
+ * .setPreviewFeature("previewFeature-712516082")
+ * .setProject("project-309310695")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * String project = "project-309310695";
+ * for (PreviewFeature element : previewFeaturesClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListPreviewFeaturesRequest request =
+ ListPreviewFeaturesRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of the given PreviewFeature.
+ *
+ * {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * ListPreviewFeaturesRequest request =
+ * ListPreviewFeaturesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (PreviewFeature element : previewFeaturesClient.list(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 ListPagedResponse list(ListPreviewFeaturesRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of the given PreviewFeature.
+ *
+ * {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * ListPreviewFeaturesRequest request =
+ * ListPreviewFeaturesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * ListPreviewFeaturesRequest request =
+ * ListPreviewFeaturesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * PreviewFeatureList response = previewFeaturesClient.listCallable().call(request);
+ * for (PreviewFeature element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * String project = "project-309310695";
+ * String previewFeature = "previewFeature-712516082";
+ * PreviewFeature previewFeatureResource = PreviewFeature.newBuilder().build();
+ * Operation response =
+ * previewFeaturesClient.updateAsync(project, previewFeature, previewFeatureResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param previewFeature Name of the PreviewFeature for this request.
+ * @param previewFeatureResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * UpdatePreviewFeatureRequest request =
+ * UpdatePreviewFeatureRequest.newBuilder()
+ * .setPreviewFeature("previewFeature-712516082")
+ * .setPreviewFeatureResource(PreviewFeature.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = previewFeaturesClient.updateAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * UpdatePreviewFeatureRequest request =
+ * UpdatePreviewFeatureRequest.newBuilder()
+ * .setPreviewFeature("previewFeature-712516082")
+ * .setPreviewFeatureResource(PreviewFeature.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * UpdatePreviewFeatureRequest request =
+ * UpdatePreviewFeatureRequest.newBuilder()
+ * .setPreviewFeature("previewFeature-712516082")
+ * .setPreviewFeatureResource(PreviewFeature.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@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
+ * PreviewFeaturesSettings.Builder previewFeaturesSettingsBuilder =
+ * PreviewFeaturesSettings.newBuilder();
+ * previewFeaturesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * previewFeaturesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * PreviewFeaturesSettings previewFeaturesSettings = previewFeaturesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * {@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
+ * PreviewFeaturesSettings.Builder previewFeaturesSettingsBuilder =
+ * PreviewFeaturesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * previewFeaturesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class PreviewFeaturesSettings extends ClientSettings
ReportFaulty
Allows customers to report a faulty subBlock.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *reportFaultyAsync(ReportFaultyReservationSubBlockRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *reportFaultyAsync(String project, String zone, String parentName, String reservationSubBlock, ReservationSubBlocksReportFaultyRequest reservationSubBlocksReportFaultyRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *reportFaultyOperationCallable() + *
reportFaultyCallable() + *
See the individual methods for example code.
@@ -636,6 +655,173 @@ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * ======================= OrganizationSecurityPoliciesClient =======================
+ *
+ * Service Description: The OrganizationSecurityPolicies API.
+ *
+ * Sample for OrganizationSecurityPoliciesClient:
+ *
+ * ======================= PacketMirroringsClient =======================
*
* Service Description: The PacketMirrorings API.
@@ -960,6 +979,25 @@
* }
* }
*
+ * ======================= PreviewFeaturesClient =======================
+ *
+ * Service Description: The PreviewFeatures API.
+ *
+ * Sample for PreviewFeaturesClient:
+ *
+ * ======================= ProjectsClient =======================
*
* Service Description: The Projects API.
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStub.java
index 85eb5f34a752..035fbef4dea7 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStub.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStub.java
@@ -33,6 +33,8 @@
import com.google.cloud.compute.v1.DeleteBackendServiceRequest;
import com.google.cloud.compute.v1.DeleteSignedUrlKeyBackendServiceRequest;
import com.google.cloud.compute.v1.GetBackendServiceRequest;
+import com.google.cloud.compute.v1.GetEffectiveSecurityPoliciesBackendServiceRequest;
+import com.google.cloud.compute.v1.GetEffectiveSecurityPoliciesBackendServiceResponse;
import com.google.cloud.compute.v1.GetHealthBackendServiceRequest;
import com.google.cloud.compute.v1.GetIamPolicyBackendServiceRequest;
import com.google.cloud.compute.v1.InsertBackendServiceRequest;
@@ -101,6 +103,14 @@ public UnaryCallable This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonOrganizationSecurityPoliciesCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonOrganizationSecurityPoliciesStub extends OrganizationSecurityPoliciesStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder().add(Operation.getDescriptor()).build();
+
+ private static final ApiMethodDescriptor<
+ AddAssociationOrganizationSecurityPolicyRequest, Operation>
+ addAssociationMethodDescriptor =
+ ApiMethodDescriptor
+ .{@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 (ReservationSubBlocksClient reservationSubBlocksClient =
+ * ReservationSubBlocksClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String parentName = "parentName-244870571";
+ * String reservationSubBlock = "reservationSubBlock-1816847847";
+ * ReservationSubBlocksReportFaultyRequest reservationSubBlocksReportFaultyRequestResource =
+ * ReservationSubBlocksReportFaultyRequest.newBuilder().build();
+ * Operation response =
+ * reservationSubBlocksClient
+ * .reportFaultyAsync(
+ * project,
+ * zone,
+ * parentName,
+ * reservationSubBlock,
+ * reservationSubBlocksReportFaultyRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
+ * @param parentName The name of the parent reservation and parent block. In the format of
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035
+ * or be a resource ID.
+ * @param reservationSubBlocksReportFaultyRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (ReservationSubBlocksClient reservationSubBlocksClient =
+ * ReservationSubBlocksClient.create()) {
+ * ReportFaultyReservationSubBlockRequest request =
+ * ReportFaultyReservationSubBlockRequest.newBuilder()
+ * .setParentName("parentName-244870571")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setReservationSubBlock("reservationSubBlock-1816847847")
+ * .setReservationSubBlocksReportFaultyRequestResource(
+ * ReservationSubBlocksReportFaultyRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = reservationSubBlocksClient.reportFaultyAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (ReservationSubBlocksClient reservationSubBlocksClient =
+ * ReservationSubBlocksClient.create()) {
+ * ReportFaultyReservationSubBlockRequest request =
+ * ReportFaultyReservationSubBlockRequest.newBuilder()
+ * .setParentName("parentName-244870571")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setReservationSubBlock("reservationSubBlock-1816847847")
+ * .setReservationSubBlocksReportFaultyRequestResource(
+ * ReservationSubBlocksReportFaultyRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (ReservationSubBlocksClient reservationSubBlocksClient =
+ * ReservationSubBlocksClient.create()) {
+ * ReportFaultyReservationSubBlockRequest request =
+ * ReportFaultyReservationSubBlockRequest.newBuilder()
+ * .setParentName("parentName-244870571")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setReservationSubBlock("reservationSubBlock-1816847847")
+ * .setReservationSubBlocksReportFaultyRequestResource(
+ * ReservationSubBlocksReportFaultyRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (OrganizationSecurityPoliciesClient organizationSecurityPoliciesClient =
+ * OrganizationSecurityPoliciesClient.create()) {
+ * String securityPolicy = "securityPolicy-788621166";
+ * SecurityPolicy response = organizationSecurityPoliciesClient.get(securityPolicy);
+ * }
+ * }
+ *
* {@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 (PreviewFeaturesClient previewFeaturesClient = PreviewFeaturesClient.create()) {
+ * String project = "project-309310695";
+ * String previewFeature = "previewFeature-712516082";
+ * PreviewFeature response = previewFeaturesClient.get(project, previewFeature);
+ * }
+ * }
+ *
*