Class HealthSourceHealth.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HealthSourceHealth.Builder>
com.google.cloud.compute.v1.HealthSourceHealth.Builder
All Implemented Interfaces:
HealthSourceHealthOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HealthSourceHealth

public static final class HealthSourceHealth.Builder extends com.google.protobuf.GeneratedMessage.Builder<HealthSourceHealth.Builder> implements HealthSourceHealthOrBuilder
 Response message for RegionHealthSources.GetHealth
 
Protobuf type google.cloud.compute.v1.HealthSourceHealth
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HealthSourceHealth.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.GeneratedMessage.Builder<HealthSourceHealth.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.GeneratedMessage.Builder<HealthSourceHealth.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public HealthSourceHealth.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<HealthSourceHealth.Builder>
      Throws:
      IOException
    • hasHealthState

      public boolean hasHealthState()
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Specified by:
      hasHealthState in interface HealthSourceHealthOrBuilder
      Returns:
      Whether the healthState field is set.
    • getHealthState

      public String getHealthState()
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Specified by:
      getHealthState in interface HealthSourceHealthOrBuilder
      Returns:
      The healthState.
    • getHealthStateBytes

      public com.google.protobuf.ByteString getHealthStateBytes()
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Specified by:
      getHealthStateBytes in interface HealthSourceHealthOrBuilder
      Returns:
      The bytes for healthState.
    • setHealthState

      public HealthSourceHealth.Builder setHealthState(String value)
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Parameters:
      value - The healthState to set.
      Returns:
      This builder for chaining.
    • clearHealthState

      public HealthSourceHealth.Builder clearHealthState()
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Returns:
      This builder for chaining.
    • setHealthStateBytes

      public HealthSourceHealth.Builder setHealthStateBytes(com.google.protobuf.ByteString value)
       Health state of the HealthSource.
       Check the HealthState enum for the list of possible values.
       
      optional string health_state = 324007150;
      Parameters:
      value - The bytes for healthState to set.
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface HealthSourceHealthOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface HealthSourceHealthOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface HealthSourceHealthOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public HealthSourceHealth.Builder setKind(String value)
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public HealthSourceHealth.Builder clearKind()
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public HealthSourceHealth.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • getSourcesList

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
      Specified by:
      getSourcesList in interface HealthSourceHealthOrBuilder
    • getSourcesCount

      public int getSourcesCount()
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
      Specified by:
      getSourcesCount in interface HealthSourceHealthOrBuilder
    • getSources

      public HealthSourcesGetHealthResponseSourceInfo getSources(int index)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
      Specified by:
      getSources in interface HealthSourceHealthOrBuilder
    • setSources

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • setSources

      public HealthSourceHealth.Builder setSources(int index, HealthSourcesGetHealthResponseSourceInfo.Builder builderForValue)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addSources

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addSources

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addSources

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addSources

      public HealthSourceHealth.Builder addSources(int index, HealthSourcesGetHealthResponseSourceInfo.Builder builderForValue)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addAllSources

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • clearSources

      public HealthSourceHealth.Builder clearSources()
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • removeSources

      public HealthSourceHealth.Builder removeSources(int index)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • getSourcesBuilder

      public HealthSourcesGetHealthResponseSourceInfo.Builder getSourcesBuilder(int index)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • getSourcesOrBuilder

      public HealthSourcesGetHealthResponseSourceInfoOrBuilder getSourcesOrBuilder(int index)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
      Specified by:
      getSourcesOrBuilder in interface HealthSourceHealthOrBuilder
    • getSourcesOrBuilderList

      public List<? extends HealthSourcesGetHealthResponseSourceInfoOrBuilder> getSourcesOrBuilderList()
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
      Specified by:
      getSourcesOrBuilderList in interface HealthSourceHealthOrBuilder
    • addSourcesBuilder

       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • addSourcesBuilder

      public HealthSourcesGetHealthResponseSourceInfo.Builder addSourcesBuilder(int index)
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;
    • getSourcesBuilderList

      public List<HealthSourcesGetHealthResponseSourceInfo.Builder> getSourcesBuilderList()
       Health state details of the sources.
       
      repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840;