Send feedback
  
   
 
  
    
      Class ReplicaComputeCapacity (6.101.1)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 6.101.1keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  ReplicaComputeCapacity   extends   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
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  NODE_COUNT_FIELD_NUMBER 
  
    
public   static   final   int   NODE_COUNT_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  PROCESSING_UNITS_FIELD_NUMBER 
  
    
public   static   final   int   PROCESSING_UNITS_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  REPLICA_SELECTION_FIELD_NUMBER 
  
    
public   static   final   int   REPLICA_SELECTION_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   ReplicaComputeCapacity   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   ReplicaComputeCapacity . Builder   newBuilder ()  
   
  
   
  newBuilder(ReplicaComputeCapacity prototype) 
  
    
public   static   ReplicaComputeCapacity . Builder   newBuilder ( ReplicaComputeCapacity   prototype )  
   
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   ReplicaComputeCapacity   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ReplicaComputeCapacity   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<ReplicaComputeCapacity>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getComputeCapacityCase() 
  
    
public   ReplicaComputeCapacity . ComputeCapacityCase   getComputeCapacityCase ()  
   
  
   
  getDefaultInstanceForType() 
  
    
public   ReplicaComputeCapacity   getDefaultInstanceForType ()  
   
  
   
  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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The nodeCount.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<ReplicaComputeCapacity>   getParserForType ()  
   
  
  Overrides 
  
   
  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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The processingUnits.
 
       
     
  
   
  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];
 
 
  
   
  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];
 
 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the nodeCount field is set.
 
       
     
  
   
  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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the processingUnits field is set.
 
       
     
  
   
  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];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the replicaSelection field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   ReplicaComputeCapacity . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ReplicaComputeCapacity . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   ReplicaComputeCapacity . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]