Class GenerateDbPartitionsForReadAction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.GenerateDbPartitionsForReadAction
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GenerateDbPartitionsForReadActionOrBuilder, Serializable

public final class GenerateDbPartitionsForReadAction extends com.google.protobuf.GeneratedMessageV3 implements GenerateDbPartitionsForReadActionOrBuilder
 Generate database partitions for the given read. Successful outcomes will
 contain database partitions in the db_partition field.
 
Protobuf type google.spanner.executor.v1.GenerateDbPartitionsForReadAction
See Also:
  • Field Details

    • READ_FIELD_NUMBER

      public static final int READ_FIELD_NUMBER
      See Also:
    • TABLE_FIELD_NUMBER

      public static final int TABLE_FIELD_NUMBER
      See Also:
    • DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER

      public static final int DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER
      See Also:
    • MAX_PARTITION_COUNT_FIELD_NUMBER

      public static final int MAX_PARTITION_COUNT_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasRead

      public boolean hasRead()
       Read to generate partitions for.
       
      .google.spanner.executor.v1.ReadAction read = 1;
      Specified by:
      hasRead in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      Whether the read field is set.
    • getRead

      public ReadAction getRead()
       Read to generate partitions for.
       
      .google.spanner.executor.v1.ReadAction read = 1;
      Specified by:
      getRead in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      The read.
    • getReadOrBuilder

      public ReadActionOrBuilder getReadOrBuilder()
       Read to generate partitions for.
       
      .google.spanner.executor.v1.ReadAction read = 1;
      Specified by:
      getReadOrBuilder in interface GenerateDbPartitionsForReadActionOrBuilder
    • getTableList

      public List<TableMetadata> getTableList()
       Metadata related to the tables involved in the read.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableList in interface GenerateDbPartitionsForReadActionOrBuilder
    • getTableOrBuilderList

      public List<? extends TableMetadataOrBuilder> getTableOrBuilderList()
       Metadata related to the tables involved in the read.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableOrBuilderList in interface GenerateDbPartitionsForReadActionOrBuilder
    • getTableCount

      public int getTableCount()
       Metadata related to the tables involved in the read.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableCount in interface GenerateDbPartitionsForReadActionOrBuilder
    • getTable

      public TableMetadata getTable(int index)
       Metadata related to the tables involved in the read.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTable in interface GenerateDbPartitionsForReadActionOrBuilder
    • getTableOrBuilder

      public TableMetadataOrBuilder getTableOrBuilder(int index)
       Metadata related to the tables involved in the read.
       
      repeated .google.spanner.executor.v1.TableMetadata table = 2;
      Specified by:
      getTableOrBuilder in interface GenerateDbPartitionsForReadActionOrBuilder
    • hasDesiredBytesPerPartition

      public boolean hasDesiredBytesPerPartition()
       Desired size of data in each partition. Spanner doesn't guarantee to
       respect this value.
       
      optional int64 desired_bytes_per_partition = 3;
      Specified by:
      hasDesiredBytesPerPartition in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      Whether the desiredBytesPerPartition field is set.
    • getDesiredBytesPerPartition

      public long getDesiredBytesPerPartition()
       Desired size of data in each partition. Spanner doesn't guarantee to
       respect this value.
       
      optional int64 desired_bytes_per_partition = 3;
      Specified by:
      getDesiredBytesPerPartition in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      The desiredBytesPerPartition.
    • hasMaxPartitionCount

      public boolean hasMaxPartitionCount()
       If set, the desired max number of partitions. Spanner doesn't guarantee to
       respect this value.
       
      optional int64 max_partition_count = 4;
      Specified by:
      hasMaxPartitionCount in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      Whether the maxPartitionCount field is set.
    • getMaxPartitionCount

      public long getMaxPartitionCount()
       If set, the desired max number of partitions. Spanner doesn't guarantee to
       respect this value.
       
      optional int64 max_partition_count = 4;
      Specified by:
      getMaxPartitionCount in interface GenerateDbPartitionsForReadActionOrBuilder
      Returns:
      The maxPartitionCount.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerateDbPartitionsForReadAction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerateDbPartitionsForReadAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateDbPartitionsForReadAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GenerateDbPartitionsForReadAction.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GenerateDbPartitionsForReadAction.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerateDbPartitionsForReadAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static GenerateDbPartitionsForReadAction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerateDbPartitionsForReadAction> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public GenerateDbPartitionsForReadAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder