Class ReadResult.Builder

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

public static final class ReadResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadResult.Builder> implements ReadResultOrBuilder
 ReadResult contains rows read.
 
Protobuf type google.spanner.executor.v1.ReadResult
  • 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<ReadResult.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ReadResult.Builder mergeFrom(ReadResult other)
    • isInitialized

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

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

      public String getTable()
       Table name.
       
      string table = 1;
      Specified by:
      getTable in interface ReadResultOrBuilder
      Returns:
      The table.
    • getTableBytes

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

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

      public ReadResult.Builder clearTable()
       Table name.
       
      string table = 1;
      Returns:
      This builder for chaining.
    • setTableBytes

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

      public boolean hasIndex()
       Index name, if read from an index.
       
      optional string index = 2;
      Specified by:
      hasIndex in interface ReadResultOrBuilder
      Returns:
      Whether the index field is set.
    • getIndex

      public String getIndex()
       Index name, if read from an index.
       
      optional string index = 2;
      Specified by:
      getIndex in interface ReadResultOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
       Index name, if read from an index.
       
      optional string index = 2;
      Specified by:
      getIndexBytes in interface ReadResultOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public ReadResult.Builder setIndex(String value)
       Index name, if read from an index.
       
      optional string index = 2;
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public ReadResult.Builder clearIndex()
       Index name, if read from an index.
       
      optional string index = 2;
      Returns:
      This builder for chaining.
    • setIndexBytes

      public ReadResult.Builder setIndexBytes(com.google.protobuf.ByteString value)
       Index name, if read from an index.
       
      optional string index = 2;
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • hasRequestIndex

      public boolean hasRequestIndex()
       Request index (multiread only).
       
      optional int32 request_index = 3;
      Specified by:
      hasRequestIndex in interface ReadResultOrBuilder
      Returns:
      Whether the requestIndex field is set.
    • getRequestIndex

      public int getRequestIndex()
       Request index (multiread only).
       
      optional int32 request_index = 3;
      Specified by:
      getRequestIndex in interface ReadResultOrBuilder
      Returns:
      The requestIndex.
    • setRequestIndex

      public ReadResult.Builder setRequestIndex(int value)
       Request index (multiread only).
       
      optional int32 request_index = 3;
      Parameters:
      value - The requestIndex to set.
      Returns:
      This builder for chaining.
    • clearRequestIndex

      public ReadResult.Builder clearRequestIndex()
       Request index (multiread only).
       
      optional int32 request_index = 3;
      Returns:
      This builder for chaining.
    • getRowList

      public List<ValueList> getRowList()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
      Specified by:
      getRowList in interface ReadResultOrBuilder
    • getRowCount

      public int getRowCount()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
      Specified by:
      getRowCount in interface ReadResultOrBuilder
    • getRow

      public ValueList getRow(int index)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
      Specified by:
      getRow in interface ReadResultOrBuilder
    • setRow

      public ReadResult.Builder setRow(int index, ValueList value)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • setRow

      public ReadResult.Builder setRow(int index, ValueList.Builder builderForValue)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addRow

      public ReadResult.Builder addRow(ValueList value)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addRow

      public ReadResult.Builder addRow(int index, ValueList value)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addRow

      public ReadResult.Builder addRow(ValueList.Builder builderForValue)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addRow

      public ReadResult.Builder addRow(int index, ValueList.Builder builderForValue)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addAllRow

      public ReadResult.Builder addAllRow(Iterable<? extends ValueList> values)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • clearRow

      public ReadResult.Builder clearRow()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • removeRow

      public ReadResult.Builder removeRow(int index)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • getRowBuilder

      public ValueList.Builder getRowBuilder(int index)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • getRowOrBuilder

      public ValueListOrBuilder getRowOrBuilder(int index)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
      Specified by:
      getRowOrBuilder in interface ReadResultOrBuilder
    • getRowOrBuilderList

      public List<? extends ValueListOrBuilder> getRowOrBuilderList()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
      Specified by:
      getRowOrBuilderList in interface ReadResultOrBuilder
    • addRowBuilder

      public ValueList.Builder addRowBuilder()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • addRowBuilder

      public ValueList.Builder addRowBuilder(int index)
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • getRowBuilderList

      public List<ValueList.Builder> getRowBuilderList()
       Rows read. Each row is a struct with multiple fields, one for each column
       in read result. All rows have the same type.
       
      repeated .google.spanner.executor.v1.ValueList row = 4;
    • hasRowType

      public boolean hasRowType()
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
      Specified by:
      hasRowType in interface ReadResultOrBuilder
      Returns:
      Whether the rowType field is set.
    • getRowType

      public StructType getRowType()
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
      Specified by:
      getRowType in interface ReadResultOrBuilder
      Returns:
      The rowType.
    • setRowType

      public ReadResult.Builder setRowType(StructType value)
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
    • setRowType

      public ReadResult.Builder setRowType(StructType.Builder builderForValue)
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
    • mergeRowType

      public ReadResult.Builder mergeRowType(StructType value)
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
    • clearRowType

      public ReadResult.Builder clearRowType()
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
    • getRowTypeBuilder

      public StructType.Builder getRowTypeBuilder()
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
    • getRowTypeOrBuilder

      public StructTypeOrBuilder getRowTypeOrBuilder()
       The type of rows read. It must be set if at least one row was read.
       
      optional .google.spanner.v1.StructType row_type = 5;
      Specified by:
      getRowTypeOrBuilder in interface ReadResultOrBuilder
    • setUnknownFields

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

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