Class CreateSchemaBundleRequest
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.CreateSchemaBundleRequest
Parameters for creating a new Cloud Bigtable
SchemaBundle, which represents subsets of a
particular table.
Sample code:
CreateSchemaBundleRequest request =
CreateSchemaBundleRequest.of("my-table", "my-new-schema-bundle")
.setProtoSchemaFile("proto_file.pb");
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static CreateSchemaBundleRequestsetProtoSchema(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
-
setProtoSchemaFile
public CreateSchemaBundleRequest setProtoSchemaFile(@Nonnull String protoSchemaFile) throws IOException Sets the proto schema for this schema bundle.- Throws:
IOException
-
setProtoSchema
public CreateSchemaBundleRequest setProtoSchema(@Nonnull com.google.protobuf.ByteString protoSchema) throws IOException Sets the proto schema for this schema bundle.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toProto
@InternalApi public CreateSchemaBundleRequest 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.
-