Send feedback
  
   
 
  
    
      Class UpdateCloudInstanceAction (6.102.1) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  UpdateCloudInstanceAction   extends   GeneratedMessageV3   implements   UpdateCloudInstanceActionOrBuilder  
   Action that updates a Cloud Spanner instance.
 Protobuf type google.spanner.executor.v1.UpdateCloudInstanceAction
    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
   
  AUTOSCALING_CONFIG_FIELD_NUMBER 
  
    
public   static   final   int   AUTOSCALING_CONFIG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  INSTANCE_ID_FIELD_NUMBER 
  
    
public   static   final   int   INSTANCE_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  LABELS_FIELD_NUMBER 
  
    
public   static   final   int   LABELS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  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  
     
  
  PROJECT_ID_FIELD_NUMBER 
  
    
public   static   final   int   PROJECT_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   UpdateCloudInstanceAction   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   UpdateCloudInstanceAction . Builder   newBuilder ()  
  
  newBuilder(UpdateCloudInstanceAction prototype) 
  
    
public   static   UpdateCloudInstanceAction . Builder   newBuilder ( UpdateCloudInstanceAction   prototype )  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UpdateCloudInstanceAction   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<UpdateCloudInstanceAction>   parser ()  
  
  Methods
   
  containsLabels(String key) 
  
    
public   boolean   containsLabels ( String   key )  
   labels.
 map<string, string> labels = 6;
    
      
        Parameter  
      
        Name Description  
      
        keyString  
     
  
  
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAutoscalingConfig() 
  
    
public   AutoscalingConfig   getAutoscalingConfig ()  
   The autoscaling config for this instance. If non-empty, this instance is
 using autoscaling (processing_units and node_count should be set to
 0 if used).
 optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
 
getAutoscalingConfigOrBuilder() 
  
    
public   AutoscalingConfigOrBuilder   getAutoscalingConfigOrBuilder ()  
   The autoscaling config for this instance. If non-empty, this instance is
 using autoscaling (processing_units and node_count should be set to
 0 if used).
 optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
 
getDefaultInstanceForType() 
  
    
public   UpdateCloudInstanceAction   getDefaultInstanceForType ()  
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   The descriptive name for this instance as it appears in UIs.
 Must be unique per project and between 4 and 30 characters in length.
 optional string display_name = 3;
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   The descriptive name for this instance as it appears in UIs.
 Must be unique per project and between 4 and 30 characters in length.
 optional string display_name = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getInstanceId() 
  
    
public   String   getInstanceId ()  
   Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
    
      
        Returns  
      
        Type Description  
      
        String The instanceId.
 
     
  
  getInstanceIdBytes() 
  
    
public   ByteString   getInstanceIdBytes ()  
   Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for instanceId.
 
     
  
  getLabels() (deprecated) 
  
    
public   Map<String , String >  getLabels ()  
  
  
  getLabelsCount() 
  
    
public   int   getLabelsCount ()  
   labels.
 map<string, string> labels = 6;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getLabelsMap() 
  
    
public   Map<String , String >  getLabelsMap ()  
   labels.
 map<string, string> labels = 6;
getLabelsOrDefault(String key, String defaultValue) 
  
    
public   String   getLabelsOrDefault ( String   key ,   String   defaultValue )  
   labels.
 map<string, string> labels = 6;
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getLabelsOrThrow(String key) 
  
    
public   String   getLabelsOrThrow ( String   key )  
   labels.
 map<string, string> labels = 6;
    
      
        Parameter  
      
        Name Description  
      
        keyString  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getNodeCount() 
  
    
public   int   getNodeCount ()  
   The number of nodes allocated to this instance. At most one of either
 node_count or processing_units should be present in the message.
 optional int32 node_count = 4;
    
      
        Returns  
      
        Type Description  
      
        int The nodeCount.
 
     
  
  getParserForType() 
  
    
public   Parser<UpdateCloudInstanceAction>   getParserForType ()  
  
  Overrides 
  
  getProcessingUnits() 
  
    
public   int   getProcessingUnits ()  
   The number of processing units allocated to this instance. At most one of
 processing_units or node_count should be present in the message.
 optional int32 processing_units = 5;
    
      
        Returns  
      
        Type Description  
      
        int The processingUnits.
 
     
  
  getProjectId() 
  
    
public   String   getProjectId ()  
   Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
    
      
        Returns  
      
        Type Description  
      
        String The projectId.
 
     
  
  getProjectIdBytes() 
  
    
public   ByteString   getProjectIdBytes ()  
   Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for projectId.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasAutoscalingConfig() 
  
    
public   boolean   hasAutoscalingConfig ()  
   The autoscaling config for this instance. If non-empty, this instance is
 using autoscaling (processing_units and node_count should be set to
 0 if used).
 optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the autoscalingConfig field is set.
 
     
  
  hasDisplayName() 
  
    
public   boolean   hasDisplayName ()  
   The descriptive name for this instance as it appears in UIs.
 Must be unique per project and between 4 and 30 characters in length.
 optional string display_name = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the displayName field is set.
 
     
  
  hasNodeCount() 
  
    
public   boolean   hasNodeCount ()  
   The number of nodes allocated to this instance. At most one of either
 node_count or processing_units should be present in the message.
 optional int32 node_count = 4;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the nodeCount field is set.
 
     
  
  hasProcessingUnits() 
  
    
public   boolean   hasProcessingUnits ()  
   The number of processing units allocated to this instance. At most one of
 processing_units or node_count should be present in the message.
 optional int32 processing_units = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the processingUnits field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  internalGetMapFieldReflection(int number) 
  
    
protected   MapFieldReflectionAccessor   internalGetMapFieldReflection ( int   number )  
  
    
      
        Parameter  
      
        Name Description  
      
        numberint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.protobuf.MapFieldReflectionAccessor  
     
  
  Overrides 
  com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   UpdateCloudInstanceAction . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   UpdateCloudInstanceAction . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   UpdateCloudInstanceAction . 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-29 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-29 UTC."],[],[]]