Class ReadAction.Builder

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

public static final class ReadAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder> implements ReadActionOrBuilder
 A single read request.
 
Protobuf type google.spanner.executor.v1.ReadAction
  • 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<ReadAction.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ReadAction.Builder mergeFrom(ReadAction other)
    • isInitialized

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

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

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

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

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

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

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

      public boolean hasIndex()
       The index to read at if it's an index read.
       
      optional string index = 2;
      Specified by:
      hasIndex in interface ReadActionOrBuilder
      Returns:
      Whether the index field is set.
    • getIndex

      public String getIndex()
       The index to read at if it's an index read.
       
      optional string index = 2;
      Specified by:
      getIndex in interface ReadActionOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       The index to read at if it's an index read.
       
      optional string index = 2;
      Specified by:
      getIndexBytes in interface ReadActionOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public ReadAction.Builder setIndex(String value)
       The index to read at if it's an index read.
       
      optional string index = 2;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public ReadAction.Builder clearIndex()
       The index to read at if it's an index read.
       
      optional string index = 2;
      Returns:
      This builder for chaining.
    • setIndexBytes

      public ReadAction.Builder setIndexBytes(com.google.protobuf.ByteString value)
       The index to read at if it's an index read.
       
      optional string index = 2;
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • getColumnList

      public com.google.protobuf.ProtocolStringList getColumnList()
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Specified by:
      getColumnList in interface ReadActionOrBuilder
      Returns:
      A list containing the column.
    • getColumnCount

      public int getColumnCount()
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Specified by:
      getColumnCount in interface ReadActionOrBuilder
      Returns:
      The count of column.
    • getColumn

      public String getColumn(int index)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Specified by:
      getColumn in interface ReadActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The column at the given index.
    • getColumnBytes

      public com.google.protobuf.ByteString getColumnBytes(int index)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Specified by:
      getColumnBytes in interface ReadActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the column at the given index.
    • setColumn

      public ReadAction.Builder setColumn(int index, String value)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Parameters:
      index - The index to set the value at.
      value - The column to set.
      Returns:
      This builder for chaining.
    • addColumn

      public ReadAction.Builder addColumn(String value)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Parameters:
      value - The column to add.
      Returns:
      This builder for chaining.
    • addAllColumn

      public ReadAction.Builder addAllColumn(Iterable<String> values)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Parameters:
      values - The column to add.
      Returns:
      This builder for chaining.
    • clearColumn

      public ReadAction.Builder clearColumn()
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Returns:
      This builder for chaining.
    • addColumnBytes

      public ReadAction.Builder addColumnBytes(com.google.protobuf.ByteString value)
       List of columns must begin with the key columns used for the read.
       
      repeated string column = 3;
      Parameters:
      value - The bytes of the column to add.
      Returns:
      This builder for chaining.
    • hasKeys

      public boolean hasKeys()
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
      Specified by:
      hasKeys in interface ReadActionOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public KeySet getKeys()
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
      Specified by:
      getKeys in interface ReadActionOrBuilder
      Returns:
      The keys.
    • setKeys

      public ReadAction.Builder setKeys(KeySet value)
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
    • setKeys

      public ReadAction.Builder setKeys(KeySet.Builder builderForValue)
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
    • mergeKeys

      public ReadAction.Builder mergeKeys(KeySet value)
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
    • clearKeys

      public ReadAction.Builder clearKeys()
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
    • getKeysBuilder

      public KeySet.Builder getKeysBuilder()
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
    • getKeysOrBuilder

      public KeySetOrBuilder getKeysOrBuilder()
       Keys for performing this read.
       
      .google.spanner.executor.v1.KeySet keys = 4;
      Specified by:
      getKeysOrBuilder in interface ReadActionOrBuilder
    • getLimit

      public int getLimit()
       Limit on number of rows to read. If set, must be positive.
       
      int32 limit = 5;
      Specified by:
      getLimit in interface ReadActionOrBuilder
      Returns:
      The limit.
    • setLimit

      public ReadAction.Builder setLimit(int value)
       Limit on number of rows to read. If set, must be positive.
       
      int32 limit = 5;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      public ReadAction.Builder clearLimit()
       Limit on number of rows to read. If set, must be positive.
       
      int32 limit = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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