Class CreateTableFromSnapshotRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
com.google.bigtable.admin.v2.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 Details

    • 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>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear 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

      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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • setField

      public CreateTableFromSnapshotRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • clearField

      public CreateTableFromSnapshotRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • clearOneof

      public CreateTableFromSnapshotRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • setRepeatedField

      public CreateTableFromSnapshotRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • addRepeatedField

      public CreateTableFromSnapshotRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • mergeFrom

      public CreateTableFromSnapshotRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTableFromSnapshotRequest.Builder>
    • mergeFrom

    • 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>
    • mergeFrom

      public CreateTableFromSnapshotRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTableFromSnapshotRequest.Builder>
      Throws:
      IOException
    • 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

       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

       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

       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

       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.
    • setUnknownFields

      public final CreateTableFromSnapshotRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>
    • mergeUnknownFields

      public final CreateTableFromSnapshotRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder>