Class ReplicaComputeCapacity

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.admin.instance.v1.ReplicaComputeCapacity
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ReplicaComputeCapacityOrBuilder, Serializable

public final class ReplicaComputeCapacity extends com.google.protobuf.GeneratedMessageV3 implements ReplicaComputeCapacityOrBuilder
 ReplicaComputeCapacity describes the amount of server resources that are
 allocated to each replica identified by the replica selection.
 
Protobuf type google.spanner.admin.instance.v1.ReplicaComputeCapacity
See Also:
  • Field Details

    • REPLICA_SELECTION_FIELD_NUMBER

      public static final int REPLICA_SELECTION_FIELD_NUMBER
      See Also:
    • NODE_COUNT_FIELD_NUMBER

      public static final int NODE_COUNT_FIELD_NUMBER
      See Also:
    • PROCESSING_UNITS_FIELD_NUMBER

      public static final int PROCESSING_UNITS_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
    • getComputeCapacityCase

      public ReplicaComputeCapacity.ComputeCapacityCase getComputeCapacityCase()
      Specified by:
      getComputeCapacityCase in interface ReplicaComputeCapacityOrBuilder
    • hasReplicaSelection

      public boolean hasReplicaSelection()
       Required. Identifies replicas by specified properties.
       All replicas in the selection have the same amount of compute capacity.
       
      .google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReplicaSelection in interface ReplicaComputeCapacityOrBuilder
      Returns:
      Whether the replicaSelection field is set.
    • getReplicaSelection

      public ReplicaSelection getReplicaSelection()
       Required. Identifies replicas by specified properties.
       All replicas in the selection have the same amount of compute capacity.
       
      .google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReplicaSelection in interface ReplicaComputeCapacityOrBuilder
      Returns:
      The replicaSelection.
    • getReplicaSelectionOrBuilder

      public ReplicaSelectionOrBuilder getReplicaSelectionOrBuilder()
       Required. Identifies replicas by specified properties.
       All replicas in the selection have the same amount of compute capacity.
       
      .google.spanner.admin.instance.v1.ReplicaSelection replica_selection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReplicaSelectionOrBuilder in interface ReplicaComputeCapacityOrBuilder
    • hasNodeCount

      public boolean hasNodeCount()
       The number of nodes allocated to each replica.
      
       This may be zero in API responses for instances that are not yet in
       state `READY`.
       
      int32 node_count = 2;
      Specified by:
      hasNodeCount in interface ReplicaComputeCapacityOrBuilder
      Returns:
      Whether the nodeCount field is set.
    • getNodeCount

      public int getNodeCount()
       The number of nodes allocated to each replica.
      
       This may be zero in API responses for instances that are not yet in
       state `READY`.
       
      int32 node_count = 2;
      Specified by:
      getNodeCount in interface ReplicaComputeCapacityOrBuilder
      Returns:
      The nodeCount.
    • hasProcessingUnits

      public boolean hasProcessingUnits()
       The number of processing units allocated to each replica.
      
       This may be zero in API responses for instances that are not yet in
       state `READY`.
       
      int32 processing_units = 3;
      Specified by:
      hasProcessingUnits in interface ReplicaComputeCapacityOrBuilder
      Returns:
      Whether the processingUnits field is set.
    • getProcessingUnits

      public int getProcessingUnits()
       The number of processing units allocated to each replica.
      
       This may be zero in API responses for instances that are not yet in
       state `READY`.
       
      int32 processing_units = 3;
      Specified by:
      getProcessingUnits in interface ReplicaComputeCapacityOrBuilder
      Returns:
      The processingUnits.
    • 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 ReplicaComputeCapacity parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ReplicaComputeCapacity.Builder newBuilder()
    • newBuilder

      public static ReplicaComputeCapacity.Builder newBuilder(ReplicaComputeCapacity prototype)
    • toBuilder

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

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

      public static ReplicaComputeCapacity getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ReplicaComputeCapacity> 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 ReplicaComputeCapacity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder