Class CreateTableFromSnapshotRequest.Builder

  • All Implemented Interfaces:
    CreateTableFromSnapshotRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateTableFromSnapshotRequest

    public static final class CreateTableFromSnapshotRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    implements CreateTableFromSnapshotRequestOrBuilder
     Request message for
     [google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot]
    
     Note: This is a private alpha release of Cloud Bigtable snapshots. This
     feature is not currently available to most Cloud Bigtable customers. This
     feature might be changed in backward-incompatible ways and is not recommended
     for production use. It is not subject to any SLA or deprecation policy.
     
    Protobuf type google.bigtable.admin.v2.CreateTableFromSnapshotRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
      • getDefaultInstanceForType

        public CreateTableFromSnapshotRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateTableFromSnapshotRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateTableFromSnapshotRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
      • getParent

        public String getParent()
         Required. The unique name of the instance in which to create the table.
         Values are of the form `projects/{project}/instances/{instance}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The unique name of the instance in which to create the table.
         Values are of the form `projects/{project}/instances/{instance}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateTableFromSnapshotRequest.Builder setParent​(String value)
         Required. The unique name of the instance in which to create the table.
         Values are of the form `projects/{project}/instances/{instance}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateTableFromSnapshotRequest.Builder clearParent()
         Required. The unique name of the instance in which to create the table.
         Values are of the form `projects/{project}/instances/{instance}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateTableFromSnapshotRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The unique name of the instance in which to create the table.
         Values are of the form `projects/{project}/instances/{instance}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getTableId

        public String getTableId()
         Required. The name by which the new table should be referred to within the
         parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
         
        string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTableId in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The tableId.
      • getTableIdBytes

        public com.google.protobuf.ByteString getTableIdBytes()
         Required. The name by which the new table should be referred to within the
         parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
         
        string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTableIdBytes in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The bytes for tableId.
      • setTableId

        public CreateTableFromSnapshotRequest.Builder setTableId​(String value)
         Required. The name by which the new table should be referred to within the
         parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
         
        string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The tableId to set.
        Returns:
        This builder for chaining.
      • clearTableId

        public CreateTableFromSnapshotRequest.Builder clearTableId()
         Required. The name by which the new table should be referred to within the
         parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
         
        string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setTableIdBytes

        public CreateTableFromSnapshotRequest.Builder setTableIdBytes​(com.google.protobuf.ByteString value)
         Required. The name by which the new table should be referred to within the
         parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
         
        string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for tableId to set.
        Returns:
        This builder for chaining.
      • getSourceSnapshot

        public String getSourceSnapshot()
         Required. The unique name of the snapshot from which to restore the table.
         The snapshot and the table must be in the same instance. Values are of the
         form
         `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
         
        string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSourceSnapshot in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The sourceSnapshot.
      • getSourceSnapshotBytes

        public com.google.protobuf.ByteString getSourceSnapshotBytes()
         Required. The unique name of the snapshot from which to restore the table.
         The snapshot and the table must be in the same instance. Values are of the
         form
         `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
         
        string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSourceSnapshotBytes in interface CreateTableFromSnapshotRequestOrBuilder
        Returns:
        The bytes for sourceSnapshot.
      • setSourceSnapshot

        public CreateTableFromSnapshotRequest.Builder setSourceSnapshot​(String value)
         Required. The unique name of the snapshot from which to restore the table.
         The snapshot and the table must be in the same instance. Values are of the
         form
         `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
         
        string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The sourceSnapshot to set.
        Returns:
        This builder for chaining.
      • clearSourceSnapshot

        public CreateTableFromSnapshotRequest.Builder clearSourceSnapshot()
         Required. The unique name of the snapshot from which to restore the table.
         The snapshot and the table must be in the same instance. Values are of the
         form
         `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
         
        string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setSourceSnapshotBytes

        public CreateTableFromSnapshotRequest.Builder setSourceSnapshotBytes​(com.google.protobuf.ByteString value)
         Required. The unique name of the snapshot from which to restore the table.
         The snapshot and the table must be in the same instance. Values are of the
         form
         `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
         
        string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for sourceSnapshot to set.
        Returns:
        This builder for chaining.