Class InstanceFlexibilityPolicy.InstanceSelectionResult.Builder (4.26.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.26.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   extends   GeneratedMessageV3 . Builder<InstanceFlexibilityPolicy . InstanceSelectionResult . Builder >  implements   InstanceFlexibilityPolicy . InstanceSelectionResultOrBuilder  
   Defines a mapping from machine types to the number of VMs that are created
 with each machine type.
 Protobuf type 
 google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionResult
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult   build ()  
  
  buildPartial() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult   buildPartial ()  
  
  clear() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearMachineType() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clearMachineType ()  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearVmCount() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clearVmCount ()  
   Output only. Number of VM provisioned with the machine_type.
 optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getMachineType() 
  
    
public   String   getMachineType ()  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        String The machineType.
 
     
  
  getMachineTypeBytes() 
  
    
public   ByteString   getMachineTypeBytes ()  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for machineType.
 
     
  
  getVmCount() 
  
   Output only. Number of VM provisioned with the machine_type.
 optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        int The vmCount.
 
     
  
  hasMachineType() 
  
    
public   boolean   hasMachineType ()  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the machineType field is set.
 
     
  
  hasVmCount() 
  
    
public   boolean   hasVmCount ()  
   Output only. Number of VM provisioned with the machine_type.
 optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the vmCount field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(InstanceFlexibilityPolicy.InstanceSelectionResult other) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   mergeFrom ( InstanceFlexibilityPolicy . InstanceSelectionResult   other )  
  
  
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setMachineType(String value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setMachineType ( String   value )  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Parameter  
      
        Name Description  
      
        valueString The machineType to set.
 
     
  
  
  setMachineTypeBytes(ByteString value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setMachineTypeBytes ( ByteString   value )  
   Output only. Full machine-type names, e.g. "n1-standard-16".
 optional string machine_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for machineType to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setVmCount(int value) 
  
    
public   InstanceFlexibilityPolicy . InstanceSelectionResult . Builder   setVmCount ( int   value )  
   Output only. Number of VM provisioned with the machine_type.
 optional int32 vm_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Parameter  
      
        Name Description  
      
        valueint The vmCount to set.
 
     
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]