Class ReplicaComputeCapacity.Builder

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

public static final class ReplicaComputeCapacity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReplicaComputeCapacity.Builder> 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
  • 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<ReplicaComputeCapacity.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<ReplicaComputeCapacity.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<ReplicaComputeCapacity.Builder>
    • getDefaultInstanceForType

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

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

      public ReplicaComputeCapacity buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ReplicaComputeCapacity.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public ReplicaComputeCapacity.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<ReplicaComputeCapacity.Builder>
      Throws:
      IOException
    • getComputeCapacityCase

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

      public ReplicaComputeCapacity.Builder clearComputeCapacity()
    • 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.
    • setReplicaSelection

      public ReplicaComputeCapacity.Builder setReplicaSelection(ReplicaSelection value)
       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];
    • setReplicaSelection

      public ReplicaComputeCapacity.Builder setReplicaSelection(ReplicaSelection.Builder builderForValue)
       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];
    • mergeReplicaSelection

      public ReplicaComputeCapacity.Builder mergeReplicaSelection(ReplicaSelection value)
       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];
    • clearReplicaSelection

      public ReplicaComputeCapacity.Builder clearReplicaSelection()
       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];
    • getReplicaSelectionBuilder

      public ReplicaSelection.Builder getReplicaSelectionBuilder()
       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];
    • 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.
    • setNodeCount

      public ReplicaComputeCapacity.Builder setNodeCount(int value)
       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;
      Parameters:
      value - The nodeCount to set.
      Returns:
      This builder for chaining.
    • clearNodeCount

      public ReplicaComputeCapacity.Builder clearNodeCount()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setProcessingUnits

      public ReplicaComputeCapacity.Builder setProcessingUnits(int value)
       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;
      Parameters:
      value - The processingUnits to set.
      Returns:
      This builder for chaining.
    • clearProcessingUnits

      public ReplicaComputeCapacity.Builder clearProcessingUnits()
       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;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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