Class ManagedInstanceInstanceHealth.Builder (1.59.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.59.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  ManagedInstanceInstanceHealth . Builder   extends   GeneratedMessageV3 . Builder<ManagedInstanceInstanceHealth . Builder >  implements   ManagedInstanceInstanceHealthOrBuilder  
   Protobuf type google.cloud.compute.v1.ManagedInstanceInstanceHealth
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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   ManagedInstanceInstanceHealth . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   ManagedInstanceInstanceHealth   build ()  
  
  buildPartial() 
  
    
public   ManagedInstanceInstanceHealth   buildPartial ()  
  
  clear() 
  
    
public   ManagedInstanceInstanceHealth . Builder   clear ()  
  
  Overrides 
  
  clearDetailedHealthState() 
  
    
public   ManagedInstanceInstanceHealth . Builder   clearDetailedHealthState ()  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   ManagedInstanceInstanceHealth . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearHealthCheck() 
  
    
public   ManagedInstanceInstanceHealth . Builder   clearHealthCheck ()  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   ManagedInstanceInstanceHealth . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   ManagedInstanceInstanceHealth . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   ManagedInstanceInstanceHealth   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getDetailedHealthState() 
  
    
public   String   getDetailedHealthState ()  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
    
      
        Returns  
      
        Type Description  
      
        String The detailedHealthState.
 
     
  
  getDetailedHealthStateBytes() 
  
    
public   ByteString   getDetailedHealthStateBytes ()  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for detailedHealthState.
 
     
  
  getHealthCheck() 
  
    
public   String   getHealthCheck ()  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
    
      
        Returns  
      
        Type Description  
      
        String The healthCheck.
 
     
  
  getHealthCheckBytes() 
  
    
public   ByteString   getHealthCheckBytes ()  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for healthCheck.
 
     
  
  hasDetailedHealthState() 
  
    
public   boolean   hasDetailedHealthState ()  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the detailedHealthState field is set.
 
     
  
  hasHealthCheck() 
  
    
public   boolean   hasHealthCheck ()  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the healthCheck field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(ManagedInstanceInstanceHealth other) 
  
    
public   ManagedInstanceInstanceHealth . Builder   mergeFrom ( ManagedInstanceInstanceHealth   other )  
  
  
  
    
public   ManagedInstanceInstanceHealth . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   ManagedInstanceInstanceHealth . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ManagedInstanceInstanceHealth . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setDetailedHealthState(String value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setDetailedHealthState ( String   value )  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
    
      
        Parameter  
      
        Name Description  
      
        valueString The detailedHealthState to set.
 
     
  
  
  setDetailedHealthStateBytes(ByteString value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setDetailedHealthStateBytes ( ByteString   value )  
   [Output Only] The current detailed instance health state.
 Check the DetailedHealthState enum for the list of possible values.
 optional string detailed_health_state = 510470173;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for detailedHealthState to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setHealthCheck(String value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setHealthCheck ( String   value )  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
    
      
        Parameter  
      
        Name Description  
      
        valueString The healthCheck to set.
 
     
  
  
  setHealthCheckBytes(ByteString value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setHealthCheckBytes ( ByteString   value )  
   [Output Only] The URL for the health check that verifies whether the instance is healthy.
 optional string health_check = 308876645;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for healthCheck to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   ManagedInstanceInstanceHealth . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ManagedInstanceInstanceHealth . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-11 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-11 UTC."],[],[]]