Class BackendServiceGroupHealth.Builder

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

public static final class BackendServiceGroupHealth.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendServiceGroupHealth.Builder> implements BackendServiceGroupHealthOrBuilder
 
Protobuf type google.cloud.compute.v1.BackendServiceGroupHealth
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BackendServiceGroupHealth.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BackendServiceGroupHealth.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

      public BackendServiceGroupHealth.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<BackendServiceGroupHealth.Builder>
      Throws:
      IOException
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: BackendServiceGroupHealthOrBuilder
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsCount in interface BackendServiceGroupHealthOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
      Specified by:
      containsAnnotations in interface BackendServiceGroupHealthOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface BackendServiceGroupHealthOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsMap in interface BackendServiceGroupHealthOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrDefault in interface BackendServiceGroupHealthOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrThrow in interface BackendServiceGroupHealthOrBuilder
    • clearAnnotations

      public BackendServiceGroupHealth.Builder clearAnnotations()
    • removeAnnotations

      public BackendServiceGroupHealth.Builder removeAnnotations(String key)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public BackendServiceGroupHealth.Builder putAnnotations(String key, String value)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
    • putAllAnnotations

      public BackendServiceGroupHealth.Builder putAllAnnotations(Map<String,String> values)
       Metadata defined as annotations on the network endpoint group.
       
      map<string, string> annotations = 112032548;
    • getHealthStatusList

      public List<HealthStatus> getHealthStatusList()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
      Specified by:
      getHealthStatusList in interface BackendServiceGroupHealthOrBuilder
    • getHealthStatusCount

      public int getHealthStatusCount()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
      Specified by:
      getHealthStatusCount in interface BackendServiceGroupHealthOrBuilder
    • getHealthStatus

      public HealthStatus getHealthStatus(int index)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
      Specified by:
      getHealthStatus in interface BackendServiceGroupHealthOrBuilder
    • setHealthStatus

      public BackendServiceGroupHealth.Builder setHealthStatus(int index, HealthStatus value)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • setHealthStatus

      public BackendServiceGroupHealth.Builder setHealthStatus(int index, HealthStatus.Builder builderForValue)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addHealthStatus

      public BackendServiceGroupHealth.Builder addHealthStatus(HealthStatus value)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addHealthStatus

      public BackendServiceGroupHealth.Builder addHealthStatus(int index, HealthStatus value)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addHealthStatus

      public BackendServiceGroupHealth.Builder addHealthStatus(HealthStatus.Builder builderForValue)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addHealthStatus

      public BackendServiceGroupHealth.Builder addHealthStatus(int index, HealthStatus.Builder builderForValue)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addAllHealthStatus

      public BackendServiceGroupHealth.Builder addAllHealthStatus(Iterable<? extends HealthStatus> values)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • clearHealthStatus

      public BackendServiceGroupHealth.Builder clearHealthStatus()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • removeHealthStatus

      public BackendServiceGroupHealth.Builder removeHealthStatus(int index)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • getHealthStatusBuilder

      public HealthStatus.Builder getHealthStatusBuilder(int index)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • getHealthStatusOrBuilder

      public HealthStatusOrBuilder getHealthStatusOrBuilder(int index)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
      Specified by:
      getHealthStatusOrBuilder in interface BackendServiceGroupHealthOrBuilder
    • getHealthStatusOrBuilderList

      public List<? extends HealthStatusOrBuilder> getHealthStatusOrBuilderList()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
      Specified by:
      getHealthStatusOrBuilderList in interface BackendServiceGroupHealthOrBuilder
    • addHealthStatusBuilder

      public HealthStatus.Builder addHealthStatusBuilder()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • addHealthStatusBuilder

      public HealthStatus.Builder addHealthStatusBuilder(int index)
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • getHealthStatusBuilderList

      public List<HealthStatus.Builder> getHealthStatusBuilderList()
       Health state of the backend instances or endpoints in requested instance or
       network endpoint group, determined based on configured health checks.
       
      repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;
    • hasKind

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

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

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

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

       Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of backend
       services.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

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