Class CreateInstancePartitionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateInstancePartitionRequest.Builder>
com.google.spanner.admin.instance.v1.CreateInstancePartitionRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CreateInstancePartitionRequestOrBuilder, Cloneable
Enclosing class:
CreateInstancePartitionRequest

public static final class CreateInstancePartitionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateInstancePartitionRequest.Builder> implements CreateInstancePartitionRequestOrBuilder
 The request for
 [CreateInstancePartition][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstancePartition].
 
Protobuf type google.spanner.admin.instance.v1.CreateInstancePartitionRequest
  • 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<CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • getDefaultInstanceForType

      public CreateInstancePartitionRequest 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 CreateInstancePartitionRequest 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<CreateInstancePartitionRequest.Builder>
    • setField

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • clearField

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • clearOneof

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • setRepeatedField

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • addRepeatedField

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • mergeFrom

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • mergeFrom

      public CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The name of the instance in which to create the instance
       partition. 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 CreateInstancePartitionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the instance in which to create the instance
       partition. 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 CreateInstancePartitionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The name of the instance in which to create the instance
       partition. 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 name of the instance in which to create the instance
       partition. 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 CreateInstancePartitionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the instance in which to create the instance
       partition. 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.
    • getInstancePartitionId

      public String getInstancePartitionId()
       Required. The ID of the instance partition to create. Valid identifiers are
       of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
       characters in length.
       
      string instance_partition_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancePartitionId in interface CreateInstancePartitionRequestOrBuilder
      Returns:
      The instancePartitionId.
    • getInstancePartitionIdBytes

      public com.google.protobuf.ByteString getInstancePartitionIdBytes()
       Required. The ID of the instance partition to create. Valid identifiers are
       of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
       characters in length.
       
      string instance_partition_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancePartitionIdBytes in interface CreateInstancePartitionRequestOrBuilder
      Returns:
      The bytes for instancePartitionId.
    • setInstancePartitionId

      public CreateInstancePartitionRequest.Builder setInstancePartitionId(String value)
       Required. The ID of the instance partition to create. Valid identifiers are
       of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
       characters in length.
       
      string instance_partition_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The instancePartitionId to set.
      Returns:
      This builder for chaining.
    • clearInstancePartitionId

      public CreateInstancePartitionRequest.Builder clearInstancePartitionId()
       Required. The ID of the instance partition to create. Valid identifiers are
       of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
       characters in length.
       
      string instance_partition_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInstancePartitionIdBytes

      public CreateInstancePartitionRequest.Builder setInstancePartitionIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the instance partition to create. Valid identifiers are
       of the form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64
       characters in length.
       
      string instance_partition_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for instancePartitionId to set.
      Returns:
      This builder for chaining.
    • hasInstancePartition

      public boolean hasInstancePartition()
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstancePartition in interface CreateInstancePartitionRequestOrBuilder
      Returns:
      Whether the instancePartition field is set.
    • getInstancePartition

      public InstancePartition getInstancePartition()
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancePartition in interface CreateInstancePartitionRequestOrBuilder
      Returns:
      The instancePartition.
    • setInstancePartition

      public CreateInstancePartitionRequest.Builder setInstancePartition(InstancePartition value)
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
    • setInstancePartition

      public CreateInstancePartitionRequest.Builder setInstancePartition(InstancePartition.Builder builderForValue)
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeInstancePartition

      public CreateInstancePartitionRequest.Builder mergeInstancePartition(InstancePartition value)
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearInstancePartition

      public CreateInstancePartitionRequest.Builder clearInstancePartition()
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
    • getInstancePartitionBuilder

      public InstancePartition.Builder getInstancePartitionBuilder()
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
    • getInstancePartitionOrBuilder

      public InstancePartitionOrBuilder getInstancePartitionOrBuilder()
       Required. The instance partition to create. The instance_partition.name may
       be omitted, but if specified must be
       `<parent>/instancePartitions/<instance_partition_id>`.
       
      .google.spanner.admin.instance.v1.InstancePartition instance_partition = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancePartitionOrBuilder in interface CreateInstancePartitionRequestOrBuilder
    • setUnknownFields

      public final CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>
    • mergeUnknownFields

      public final CreateInstancePartitionRequest.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<CreateInstancePartitionRequest.Builder>