Class HealthCheckService.Builder

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

public static final class HealthCheckService.Builder extends com.google.protobuf.GeneratedMessage.Builder<HealthCheckService.Builder> implements HealthCheckServiceOrBuilder
 Represents a Health-Check as a Service resource.
 
Protobuf type google.cloud.compute.v1.HealthCheckService
  • 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<HealthCheckService.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<HealthCheckService.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<HealthCheckService.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public HealthCheckService.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<HealthCheckService.Builder>
      Throws:
      IOException
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface HealthCheckServiceOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public HealthCheckService.Builder setCreationTimestamp(String value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public HealthCheckService.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public HealthCheckService.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface HealthCheckServiceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public HealthCheckService.Builder setDescription(String value)
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public HealthCheckService.Builder clearDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public HealthCheckService.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasFingerprint

      public boolean hasFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface HealthCheckServiceOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public HealthCheckService.Builder setFingerprint(String value)
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      public HealthCheckService.Builder clearFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      public HealthCheckService.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a HealthCheckService. An up-to-date fingerprint must
       be provided in order to patch/update the HealthCheckService; Otherwise, the
       request will fail with error 412 conditionNotMet. To see the
       latest fingerprint, make a get() request to retrieve the
       HealthCheckService.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • getHealthChecksList

      public com.google.protobuf.ProtocolStringList getHealthChecksList()
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Specified by:
      getHealthChecksList in interface HealthCheckServiceOrBuilder
      Returns:
      A list containing the healthChecks.
    • getHealthChecksCount

      public int getHealthChecksCount()
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Specified by:
      getHealthChecksCount in interface HealthCheckServiceOrBuilder
      Returns:
      The count of healthChecks.
    • getHealthChecks

      public String getHealthChecks(int index)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Specified by:
      getHealthChecks in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The healthChecks at the given index.
    • getHealthChecksBytes

      public com.google.protobuf.ByteString getHealthChecksBytes(int index)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Specified by:
      getHealthChecksBytes in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the healthChecks at the given index.
    • setHealthChecks

      public HealthCheckService.Builder setHealthChecks(int index, String value)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Parameters:
      index - The index to set the value at.
      value - The healthChecks to set.
      Returns:
      This builder for chaining.
    • addHealthChecks

      public HealthCheckService.Builder addHealthChecks(String value)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Parameters:
      value - The healthChecks to add.
      Returns:
      This builder for chaining.
    • addAllHealthChecks

      public HealthCheckService.Builder addAllHealthChecks(Iterable<String> values)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Parameters:
      values - The healthChecks to add.
      Returns:
      This builder for chaining.
    • clearHealthChecks

      public HealthCheckService.Builder clearHealthChecks()
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Returns:
      This builder for chaining.
    • addHealthChecksBytes

      public HealthCheckService.Builder addHealthChecksBytes(com.google.protobuf.ByteString value)
       A list of URLs to the HealthCheck resources. Must have
       at least one HealthCheck, and not more than 10 for regionalHealthCheckService, and not more than 1 for globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT orportSpecification=USE_FIXED_PORT. For
       regional HealthCheckService, theHealthCheck must be regional and in the same
       region. For global HealthCheckService,HealthCheck must be global. Mix of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong to the same region. RegionalHealthChecks must belong to the same region as zones ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the
       global HealthChecks must specify sourceRegions,
       and HealthChecks that specify sourceRegions can
       only be used with global INTERNET_IP_PORTNetworkEndpointGroups.
       
      repeated string health_checks = 448370606;
      Parameters:
      value - The bytes of the healthChecks to add.
      Returns:
      This builder for chaining.
    • hasHealthStatusAggregationPolicy

      public boolean hasHealthStatusAggregationPolicy()
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Specified by:
      hasHealthStatusAggregationPolicy in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the healthStatusAggregationPolicy field is set.
    • getHealthStatusAggregationPolicy

      public String getHealthStatusAggregationPolicy()
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Specified by:
      getHealthStatusAggregationPolicy in interface HealthCheckServiceOrBuilder
      Returns:
      The healthStatusAggregationPolicy.
    • getHealthStatusAggregationPolicyBytes

      public com.google.protobuf.ByteString getHealthStatusAggregationPolicyBytes()
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Specified by:
      getHealthStatusAggregationPolicyBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for healthStatusAggregationPolicy.
    • setHealthStatusAggregationPolicy

      public HealthCheckService.Builder setHealthStatusAggregationPolicy(String value)
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Parameters:
      value - The healthStatusAggregationPolicy to set.
      Returns:
      This builder for chaining.
    • clearHealthStatusAggregationPolicy

      public HealthCheckService.Builder clearHealthStatusAggregationPolicy()
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Returns:
      This builder for chaining.
    • setHealthStatusAggregationPolicyBytes

      public HealthCheckService.Builder setHealthStatusAggregationPolicyBytes(com.google.protobuf.ByteString value)
       Optional. Policy for how the results from multiple health checks
       for the same endpoint are aggregated. Defaults to NO_AGGREGATION
       if unspecified.
      
       - NO_AGGREGATION. An EndpointHealth message is
       returned for each  pair in the health check
       service.
       - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY.
      
       .
       This is only allowed with regional HealthCheckService.
       Check the HealthStatusAggregationPolicy enum for the list of possible values.
       
      optional string health_status_aggregation_policy = 253163129;
      Parameters:
      value - The bytes for healthStatusAggregationPolicy to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface HealthCheckServiceOrBuilder
      Returns:
      The id.
    • setId

      public HealthCheckService.Builder setId(long value)
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public HealthCheckService.Builder clearId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasKind

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

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

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

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

      public HealthCheckService.Builder clearKind()
       Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

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

      public boolean hasName()
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface HealthCheckServiceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public HealthCheckService.Builder setName(String value)
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public HealthCheckService.Builder clearName()
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public HealthCheckService.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the resource. The name must be 1-63 characters long, and comply
       with RFC1035. Specifically, the name must be 1-63 characters
       long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
       must be a lowercase letter, and all following characters must be a dash,
       lowercase letter, or digit, except the last character, which cannot be a
       dash.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getNetworkEndpointGroupsList

      public com.google.protobuf.ProtocolStringList getNetworkEndpointGroupsList()
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Specified by:
      getNetworkEndpointGroupsList in interface HealthCheckServiceOrBuilder
      Returns:
      A list containing the networkEndpointGroups.
    • getNetworkEndpointGroupsCount

      public int getNetworkEndpointGroupsCount()
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Specified by:
      getNetworkEndpointGroupsCount in interface HealthCheckServiceOrBuilder
      Returns:
      The count of networkEndpointGroups.
    • getNetworkEndpointGroups

      public String getNetworkEndpointGroups(int index)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Specified by:
      getNetworkEndpointGroups in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The networkEndpointGroups at the given index.
    • getNetworkEndpointGroupsBytes

      public com.google.protobuf.ByteString getNetworkEndpointGroupsBytes(int index)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Specified by:
      getNetworkEndpointGroupsBytes in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the networkEndpointGroups at the given index.
    • setNetworkEndpointGroups

      public HealthCheckService.Builder setNetworkEndpointGroups(int index, String value)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Parameters:
      index - The index to set the value at.
      value - The networkEndpointGroups to set.
      Returns:
      This builder for chaining.
    • addNetworkEndpointGroups

      public HealthCheckService.Builder addNetworkEndpointGroups(String value)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Parameters:
      value - The networkEndpointGroups to add.
      Returns:
      This builder for chaining.
    • addAllNetworkEndpointGroups

      public HealthCheckService.Builder addAllNetworkEndpointGroups(Iterable<String> values)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Parameters:
      values - The networkEndpointGroups to add.
      Returns:
      This builder for chaining.
    • clearNetworkEndpointGroups

      public HealthCheckService.Builder clearNetworkEndpointGroups()
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Returns:
      This builder for chaining.
    • addNetworkEndpointGroupsBytes

      public HealthCheckService.Builder addNetworkEndpointGroupsBytes(com.google.protobuf.ByteString value)
       A list of URLs to the NetworkEndpointGroup
       resources. Must not have more than 100.  For regionalHealthCheckService, NEGs must be in
       zones in the region of the HealthCheckService. For globalHealthCheckServices, the NetworkEndpointGroups
       must be global INTERNET_IP_PORT.
       
      repeated string network_endpoint_groups = 29346733;
      Parameters:
      value - The bytes of the networkEndpointGroups to add.
      Returns:
      This builder for chaining.
    • getNotificationEndpointsList

      public com.google.protobuf.ProtocolStringList getNotificationEndpointsList()
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Specified by:
      getNotificationEndpointsList in interface HealthCheckServiceOrBuilder
      Returns:
      A list containing the notificationEndpoints.
    • getNotificationEndpointsCount

      public int getNotificationEndpointsCount()
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Specified by:
      getNotificationEndpointsCount in interface HealthCheckServiceOrBuilder
      Returns:
      The count of notificationEndpoints.
    • getNotificationEndpoints

      public String getNotificationEndpoints(int index)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Specified by:
      getNotificationEndpoints in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notificationEndpoints at the given index.
    • getNotificationEndpointsBytes

      public com.google.protobuf.ByteString getNotificationEndpointsBytes(int index)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Specified by:
      getNotificationEndpointsBytes in interface HealthCheckServiceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the notificationEndpoints at the given index.
    • setNotificationEndpoints

      public HealthCheckService.Builder setNotificationEndpoints(int index, String value)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Parameters:
      index - The index to set the value at.
      value - The notificationEndpoints to set.
      Returns:
      This builder for chaining.
    • addNotificationEndpoints

      public HealthCheckService.Builder addNotificationEndpoints(String value)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Parameters:
      value - The notificationEndpoints to add.
      Returns:
      This builder for chaining.
    • addAllNotificationEndpoints

      public HealthCheckService.Builder addAllNotificationEndpoints(Iterable<String> values)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Parameters:
      values - The notificationEndpoints to add.
      Returns:
      This builder for chaining.
    • clearNotificationEndpoints

      public HealthCheckService.Builder clearNotificationEndpoints()
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Returns:
      This builder for chaining.
    • addNotificationEndpointsBytes

      public HealthCheckService.Builder addNotificationEndpointsBytes(com.google.protobuf.ByteString value)
       A list of URLs to the NotificationEndpoint
       resources. Must not have more than 10.  A list of endpoints for
       receiving notifications of change in health status. For regionalHealthCheckService,NotificationEndpoint must be regional and in the
       same region. For global HealthCheckService,NotificationEndpoint must be global.
       
      repeated string notification_endpoints = 406728490;
      Parameters:
      value - The bytes of the notificationEndpoints to add.
      Returns:
      This builder for chaining.
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface HealthCheckServiceOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public HealthCheckService.Builder setRegion(String value)
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public HealthCheckService.Builder clearRegion()
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public HealthCheckService.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] URL of the region where the health check service
       resides. This field is not applicable to global health check services.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface HealthCheckServiceOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface HealthCheckServiceOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface HealthCheckServiceOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public HealthCheckService.Builder setSelfLink(String value)
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public HealthCheckService.Builder clearSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public HealthCheckService.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.