Class SplitPoints.Builder

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

public static final class SplitPoints.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SplitPoints.Builder> implements SplitPointsOrBuilder
 The split points of a table/index.
 
Protobuf type google.spanner.admin.database.v1.SplitPoints
  • 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<SplitPoints.Builder>
    • clear

      public SplitPoints.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<SplitPoints.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<SplitPoints.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public SplitPoints.Builder mergeFrom(SplitPoints other)
    • isInitialized

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

      public SplitPoints.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<SplitPoints.Builder>
      Throws:
      IOException
    • getTable

      public String getTable()
       The table to split.
       
      string table = 1;
      Specified by:
      getTable in interface SplitPointsOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       The table to split.
       
      string table = 1;
      Specified by:
      getTableBytes in interface SplitPointsOrBuilder
      Returns:
      The bytes for table.
    • setTable

      public SplitPoints.Builder setTable(String value)
       The table to split.
       
      string table = 1;
      Parameters:
      value - The table to set.
      Returns:
      This builder for chaining.
    • clearTable

      public SplitPoints.Builder clearTable()
       The table to split.
       
      string table = 1;
      Returns:
      This builder for chaining.
    • setTableBytes

      public SplitPoints.Builder setTableBytes(com.google.protobuf.ByteString value)
       The table to split.
       
      string table = 1;
      Parameters:
      value - The bytes for table to set.
      Returns:
      This builder for chaining.
    • getIndex

      public String getIndex()
       The index to split.
       If specified, the `table` field must refer to the index's base table.
       
      string index = 2;
      Specified by:
      getIndex in interface SplitPointsOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       The index to split.
       If specified, the `table` field must refer to the index's base table.
       
      string index = 2;
      Specified by:
      getIndexBytes in interface SplitPointsOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public SplitPoints.Builder setIndex(String value)
       The index to split.
       If specified, the `table` field must refer to the index's base table.
       
      string index = 2;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public SplitPoints.Builder clearIndex()
       The index to split.
       If specified, the `table` field must refer to the index's base table.
       
      string index = 2;
      Returns:
      This builder for chaining.
    • setIndexBytes

      public SplitPoints.Builder setIndexBytes(com.google.protobuf.ByteString value)
       The index to split.
       If specified, the `table` field must refer to the index's base table.
       
      string index = 2;
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • getKeysList

      public List<SplitPoints.Key> getKeysList()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeysList in interface SplitPointsOrBuilder
    • getKeysCount

      public int getKeysCount()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeysCount in interface SplitPointsOrBuilder
    • getKeys

      public SplitPoints.Key getKeys(int index)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeys in interface SplitPointsOrBuilder
    • setKeys

      public SplitPoints.Builder setKeys(int index, SplitPoints.Key value)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • setKeys

      public SplitPoints.Builder setKeys(int index, SplitPoints.Key.Builder builderForValue)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addKeys

      public SplitPoints.Builder addKeys(SplitPoints.Key value)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addKeys

      public SplitPoints.Builder addKeys(int index, SplitPoints.Key value)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addKeys

      public SplitPoints.Builder addKeys(SplitPoints.Key.Builder builderForValue)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addKeys

      public SplitPoints.Builder addKeys(int index, SplitPoints.Key.Builder builderForValue)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addAllKeys

      public SplitPoints.Builder addAllKeys(Iterable<? extends SplitPoints.Key> values)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearKeys

      public SplitPoints.Builder clearKeys()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • removeKeys

      public SplitPoints.Builder removeKeys(int index)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeysBuilder

      public SplitPoints.Key.Builder getKeysBuilder(int index)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeysOrBuilder

      public SplitPoints.KeyOrBuilder getKeysOrBuilder(int index)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeysOrBuilder in interface SplitPointsOrBuilder
    • getKeysOrBuilderList

      public List<? extends SplitPoints.KeyOrBuilder> getKeysOrBuilderList()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeysOrBuilderList in interface SplitPointsOrBuilder
    • addKeysBuilder

      public SplitPoints.Key.Builder addKeysBuilder()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • addKeysBuilder

      public SplitPoints.Key.Builder addKeysBuilder(int index)
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeysBuilderList

      public List<SplitPoints.Key.Builder> getKeysBuilderList()
       Required. The list of split keys, i.e., the split boundaries.
       
      repeated .google.spanner.admin.database.v1.SplitPoints.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
    • hasExpireTime

      public boolean hasExpireTime()
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExpireTime in interface SplitPointsOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTime in interface SplitPointsOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public SplitPoints.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setExpireTime

      public SplitPoints.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeExpireTime

      public SplitPoints.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearExpireTime

      public SplitPoints.Builder clearExpireTime()
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Optional. The expiration timestamp of the split points.
       A timestamp in the past means immediate expiration.
       The maximum value can be 30 days in the future.
       Defaults to 10 days in the future if not specified.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTimeOrBuilder in interface SplitPointsOrBuilder
    • setUnknownFields

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

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