Class UpdateSchemaBundleRequest
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.UpdateSchemaBundleRequest
Parameters for updating an existing Cloud Bigtable
SchemaBundle.
Sample code:
SchemaBundle existingSchemaBundle = client.getSchemaBundle("my-table", "my-schema-bundle");
UpdateSchemaBundleRequest request =
UpdateSchemaBundleRequest.of(existingSchemaBundle).setProtoSchemaFile("file.pb");
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static UpdateSchemaBundleRequestof(SchemaBundle schemaBundle) Builds a new update request using an existing schema bundle.static UpdateSchemaBundleRequestBuilds a new update schema bundle request.setIgnoreWarnings(boolean value) Configures if safety warnings should be disabled.setProtoSchema(com.google.protobuf.ByteString protoSchema) Sets the proto schema for this schema bundle.setProtoSchemaFile(String protoSchemaFile) Sets the proto schema for this schema bundle.Creates the request protobuf.
-
Method Details
-
of
Builds a new update request using an existing schema bundle. -
of
Builds a new update schema bundle request. -
setProtoSchemaFile
public UpdateSchemaBundleRequest setProtoSchemaFile(@Nonnull String protoSchemaFile) throws IOException Sets the proto schema for this schema bundle.- Throws:
IOException
-
setProtoSchema
public UpdateSchemaBundleRequest setProtoSchema(@Nonnull com.google.protobuf.ByteString protoSchema) throws IOException Sets the proto schema for this schema bundle.- Throws:
IOException
-
setIgnoreWarnings
Configures if safety warnings should be disabled. If set, then non backwards compatible changes are allowed. -
equals
-
hashCode
public int hashCode() -
toProto
@InternalApi public UpdateSchemaBundleRequest toProto(@Nonnull String projectId, @Nonnull String instanceId) Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
-