Class AddSplitPointsRequest.Builder

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

public static final class AddSplitPointsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AddSplitPointsRequest.Builder> implements AddSplitPointsRequestOrBuilder
 The request for
 [AddSplitPoints][google.spanner.admin.database.v1.DatabaseAdmin.AddSplitPoints].
 
Protobuf type google.spanner.admin.database.v1.AddSplitPointsRequest
  • 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<AddSplitPointsRequest.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<AddSplitPointsRequest.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<AddSplitPointsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public AddSplitPointsRequest.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<AddSplitPointsRequest.Builder>
      Throws:
      IOException
    • getDatabase

      public String getDatabase()
       Required. The database on whose tables/indexes split points are to be
       added. Values are of the form
       `projects/<project>/instances/<instance>/databases/<database>`.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabase in interface AddSplitPointsRequestOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.ByteString getDatabaseBytes()
       Required. The database on whose tables/indexes split points are to be
       added. Values are of the form
       `projects/<project>/instances/<instance>/databases/<database>`.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabaseBytes in interface AddSplitPointsRequestOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      public AddSplitPointsRequest.Builder setDatabase(String value)
       Required. The database on whose tables/indexes split points are to be
       added. Values are of the form
       `projects/<project>/instances/<instance>/databases/<database>`.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • clearDatabase

      public AddSplitPointsRequest.Builder clearDatabase()
       Required. The database on whose tables/indexes split points are to be
       added. Values are of the form
       `projects/<project>/instances/<instance>/databases/<database>`.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDatabaseBytes

      public AddSplitPointsRequest.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
       Required. The database on whose tables/indexes split points are to be
       added. Values are of the form
       `projects/<project>/instances/<instance>/databases/<database>`.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for database to set.
      Returns:
      This builder for chaining.
    • getSplitPointsList

      public List<SplitPoints> getSplitPointsList()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitPointsList in interface AddSplitPointsRequestOrBuilder
    • getSplitPointsCount

      public int getSplitPointsCount()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitPointsCount in interface AddSplitPointsRequestOrBuilder
    • getSplitPoints

      public SplitPoints getSplitPoints(int index)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitPoints in interface AddSplitPointsRequestOrBuilder
    • setSplitPoints

      public AddSplitPointsRequest.Builder setSplitPoints(int index, SplitPoints value)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSplitPoints

      public AddSplitPointsRequest.Builder setSplitPoints(int index, SplitPoints.Builder builderForValue)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addSplitPoints

      public AddSplitPointsRequest.Builder addSplitPoints(SplitPoints value)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addSplitPoints

      public AddSplitPointsRequest.Builder addSplitPoints(int index, SplitPoints value)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addSplitPoints

      public AddSplitPointsRequest.Builder addSplitPoints(SplitPoints.Builder builderForValue)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addSplitPoints

      public AddSplitPointsRequest.Builder addSplitPoints(int index, SplitPoints.Builder builderForValue)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllSplitPoints

      public AddSplitPointsRequest.Builder addAllSplitPoints(Iterable<? extends SplitPoints> values)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSplitPoints

      public AddSplitPointsRequest.Builder clearSplitPoints()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeSplitPoints

      public AddSplitPointsRequest.Builder removeSplitPoints(int index)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSplitPointsBuilder

      public SplitPoints.Builder getSplitPointsBuilder(int index)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSplitPointsOrBuilder

      public SplitPointsOrBuilder getSplitPointsOrBuilder(int index)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitPointsOrBuilder in interface AddSplitPointsRequestOrBuilder
    • getSplitPointsOrBuilderList

      public List<? extends SplitPointsOrBuilder> getSplitPointsOrBuilderList()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitPointsOrBuilderList in interface AddSplitPointsRequestOrBuilder
    • addSplitPointsBuilder

      public SplitPoints.Builder addSplitPointsBuilder()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • addSplitPointsBuilder

      public SplitPoints.Builder addSplitPointsBuilder(int index)
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSplitPointsBuilderList

      public List<SplitPoints.Builder> getSplitPointsBuilderList()
       Required. The split points to add.
       
      repeated .google.spanner.admin.database.v1.SplitPoints split_points = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInitiator

      public String getInitiator()
       Optional. A user-supplied tag associated with the split points.
       For example, "intital_data_load", "special_event_1".
       Defaults to "CloudAddSplitPointsAPI" if not specified.
       The length of the tag must not exceed 50 characters,else will be trimmed.
       Only valid UTF8 characters are allowed.
       
      string initiator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInitiator in interface AddSplitPointsRequestOrBuilder
      Returns:
      The initiator.
    • getInitiatorBytes

      public com.google.protobuf.ByteString getInitiatorBytes()
       Optional. A user-supplied tag associated with the split points.
       For example, "intital_data_load", "special_event_1".
       Defaults to "CloudAddSplitPointsAPI" if not specified.
       The length of the tag must not exceed 50 characters,else will be trimmed.
       Only valid UTF8 characters are allowed.
       
      string initiator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInitiatorBytes in interface AddSplitPointsRequestOrBuilder
      Returns:
      The bytes for initiator.
    • setInitiator

      public AddSplitPointsRequest.Builder setInitiator(String value)
       Optional. A user-supplied tag associated with the split points.
       For example, "intital_data_load", "special_event_1".
       Defaults to "CloudAddSplitPointsAPI" if not specified.
       The length of the tag must not exceed 50 characters,else will be trimmed.
       Only valid UTF8 characters are allowed.
       
      string initiator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The initiator to set.
      Returns:
      This builder for chaining.
    • clearInitiator

      public AddSplitPointsRequest.Builder clearInitiator()
       Optional. A user-supplied tag associated with the split points.
       For example, "intital_data_load", "special_event_1".
       Defaults to "CloudAddSplitPointsAPI" if not specified.
       The length of the tag must not exceed 50 characters,else will be trimmed.
       Only valid UTF8 characters are allowed.
       
      string initiator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setInitiatorBytes

      public AddSplitPointsRequest.Builder setInitiatorBytes(com.google.protobuf.ByteString value)
       Optional. A user-supplied tag associated with the split points.
       For example, "intital_data_load", "special_event_1".
       Defaults to "CloudAddSplitPointsAPI" if not specified.
       The length of the tag must not exceed 50 characters,else will be trimmed.
       Only valid UTF8 characters are allowed.
       
      string initiator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for initiator to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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