Class BatchPartition.Builder

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

public static final class BatchPartition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchPartition.Builder> implements BatchPartitionOrBuilder
 Identifies a database partition generated for a particular read or query. To
 read rows from the partition, use ExecutePartitionAction.
 
Protobuf type google.spanner.executor.v1.BatchPartition
  • 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<BatchPartition.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public BatchPartition.Builder mergeFrom(BatchPartition other)
    • isInitialized

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

      public BatchPartition.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<BatchPartition.Builder>
      Throws:
      IOException
    • getPartition

      public com.google.protobuf.ByteString getPartition()
       Serialized Partition instance.
       
      bytes partition = 1;
      Specified by:
      getPartition in interface BatchPartitionOrBuilder
      Returns:
      The partition.
    • setPartition

      public BatchPartition.Builder setPartition(com.google.protobuf.ByteString value)
       Serialized Partition instance.
       
      bytes partition = 1;
      Parameters:
      value - The partition to set.
      Returns:
      This builder for chaining.
    • clearPartition

      public BatchPartition.Builder clearPartition()
       Serialized Partition instance.
       
      bytes partition = 1;
      Returns:
      This builder for chaining.
    • getPartitionToken

      public com.google.protobuf.ByteString getPartitionToken()
       The partition token decrypted from partition.
       
      bytes partition_token = 2;
      Specified by:
      getPartitionToken in interface BatchPartitionOrBuilder
      Returns:
      The partitionToken.
    • setPartitionToken

      public BatchPartition.Builder setPartitionToken(com.google.protobuf.ByteString value)
       The partition token decrypted from partition.
       
      bytes partition_token = 2;
      Parameters:
      value - The partitionToken to set.
      Returns:
      This builder for chaining.
    • clearPartitionToken

      public BatchPartition.Builder clearPartitionToken()
       The partition token decrypted from partition.
       
      bytes partition_token = 2;
      Returns:
      This builder for chaining.
    • hasTable

      public boolean hasTable()
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Specified by:
      hasTable in interface BatchPartitionOrBuilder
      Returns:
      Whether the table field is set.
    • getTable

      public String getTable()
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Specified by:
      getTable in interface BatchPartitionOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Specified by:
      getTableBytes in interface BatchPartitionOrBuilder
      Returns:
      The bytes for table.
    • setTable

      public BatchPartition.Builder setTable(String value)
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Parameters:
      value - The table to set.
      Returns:
      This builder for chaining.
    • clearTable

      public BatchPartition.Builder clearTable()
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Returns:
      This builder for chaining.
    • setTableBytes

      public BatchPartition.Builder setTableBytes(com.google.protobuf.ByteString value)
       Table name is set iff the partition was generated for a read (as opposed to
       a query).
       
      optional string table = 3;
      Parameters:
      value - The bytes for table to set.
      Returns:
      This builder for chaining.
    • hasIndex

      public boolean hasIndex()
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Specified by:
      hasIndex in interface BatchPartitionOrBuilder
      Returns:
      Whether the index field is set.
    • getIndex

      public String getIndex()
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Specified by:
      getIndex in interface BatchPartitionOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Specified by:
      getIndexBytes in interface BatchPartitionOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public BatchPartition.Builder setIndex(String value)
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public BatchPartition.Builder clearIndex()
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Returns:
      This builder for chaining.
    • setIndexBytes

      public BatchPartition.Builder setIndexBytes(com.google.protobuf.ByteString value)
       Index name if the partition was generated for an index read.
       
      optional string index = 4;
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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