Package com.google.cloud.compute.v1
Class BackendService.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
- com.google.cloud.compute.v1.BackendService.Builder
-
- All Implemented Interfaces:
BackendServiceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BackendService
public static final class BackendService.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder> implements BackendServiceOrBuilder
Represents a Backend Service resource. A backend service defines how Google Cloud load balancers distribute traffic. The backend service configuration contains a set of values, such as the protocol used to connect to backends, various distribution and session settings, health checks, and timeouts. These settings provide fine-grained control over how your load balancer behaves. Most of the settings have default values that allow for easy configuration if you need to get started quickly. Backend services in Google Compute Engine can be either regionally or globally scoped. * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) For more information, see Backend Services.
Protobuf typegoogle.cloud.compute.v1.BackendService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BackendService.Builder
addAllBackends(Iterable<? extends Backend> values)
The list of backends that serve this BackendService.BackendService.Builder
addAllCustomRequestHeaders(Iterable<String> values)
Headers that the load balancer adds to proxied requests.BackendService.Builder
addAllCustomResponseHeaders(Iterable<String> values)
Headers that the load balancer adds to proxied responses.BackendService.Builder
addAllHealthChecks(Iterable<String> values)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendService.Builder
addAllLocalityLbPolicies(Iterable<? extends BackendServiceLocalityLoadBalancingPolicyConfig> values)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
addAllServiceBindings(Iterable<String> values)
URLs of networkservices.ServiceBinding resources.BackendService.Builder
addBackends(int index, Backend value)
The list of backends that serve this BackendService.BackendService.Builder
addBackends(int index, Backend.Builder builderForValue)
The list of backends that serve this BackendService.BackendService.Builder
addBackends(Backend value)
The list of backends that serve this BackendService.BackendService.Builder
addBackends(Backend.Builder builderForValue)
The list of backends that serve this BackendService.Backend.Builder
addBackendsBuilder()
The list of backends that serve this BackendService.Backend.Builder
addBackendsBuilder(int index)
The list of backends that serve this BackendService.BackendService.Builder
addCustomRequestHeaders(String value)
Headers that the load balancer adds to proxied requests.BackendService.Builder
addCustomRequestHeadersBytes(com.google.protobuf.ByteString value)
Headers that the load balancer adds to proxied requests.BackendService.Builder
addCustomResponseHeaders(String value)
Headers that the load balancer adds to proxied responses.BackendService.Builder
addCustomResponseHeadersBytes(com.google.protobuf.ByteString value)
Headers that the load balancer adds to proxied responses.BackendService.Builder
addHealthChecks(String value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendService.Builder
addHealthChecksBytes(com.google.protobuf.ByteString value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendService.Builder
addLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
addLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
addLocalityLbPolicies(BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
addLocalityLbPolicies(BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference.BackendServiceLocalityLoadBalancingPolicyConfig.Builder
addLocalityLbPoliciesBuilder()
A list of locality load-balancing policies to be used in order of preference.BackendServiceLocalityLoadBalancingPolicyConfig.Builder
addLocalityLbPoliciesBuilder(int index)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendService.Builder
addServiceBindings(String value)
URLs of networkservices.ServiceBinding resources.BackendService.Builder
addServiceBindingsBytes(com.google.protobuf.ByteString value)
URLs of networkservices.ServiceBinding resources.BackendService
build()
BackendService
buildPartial()
BackendService.Builder
clear()
BackendService.Builder
clearAffinityCookieTtlSec()
Lifetime of cookies in seconds.BackendService.Builder
clearBackends()
The list of backends that serve this BackendService.BackendService.Builder
clearCdnPolicy()
Cloud CDN configuration for this BackendService.BackendService.Builder
clearCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
BackendService.Builder
clearCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.BackendService.Builder
clearConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
BackendService.Builder
clearConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService.BackendService.Builder
clearConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.BackendService.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.BackendService.Builder
clearCustomRequestHeaders()
Headers that the load balancer adds to proxied requests.BackendService.Builder
clearCustomResponseHeaders()
Headers that the load balancer adds to proxied responses.BackendService.Builder
clearDescription()
An optional description of this resource.BackendService.Builder
clearEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.BackendService.Builder
clearEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.BackendService.Builder
clearFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendService.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BackendService.Builder
clearFingerprint()
Fingerprint of this resource.BackendService.Builder
clearHealthChecks()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendService.Builder
clearIap()
The configurations for Identity-Aware Proxy on this resource.BackendService.Builder
clearId()
[Output Only] The unique identifier for the resource.BackendService.Builder
clearKind()
[Output Only] Type of resource.BackendService.Builder
clearLoadBalancingScheme()
Specifies the load balancer type.BackendService.Builder
clearLocalityLbPolicies()
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
clearLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality.BackendService.Builder
clearLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service.BackendService.Builder
clearMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service.BackendService.Builder
clearMetadatas()
BackendService.Builder
clearName()
Name of the resource.BackendService.Builder
clearNetwork()
The URL of the network to which this backend service belongs.BackendService.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BackendService.Builder
clearOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.BackendService.Builder
clearPort()
Deprecated in favor of portName.BackendService.Builder
clearPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group.BackendService.Builder
clearProtocol()
The protocol this BackendService uses to communicate with backends.BackendService.Builder
clearRegion()
[Output Only] URL of the region where the regional backend service resides.BackendService.Builder
clearSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.BackendService.Builder
clearSecuritySettings()
This field specifies the security settings that apply to this backend service.BackendService.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.BackendService.Builder
clearServiceBindings()
URLs of networkservices.ServiceBinding resources.BackendService.Builder
clearSessionAffinity()
Type of session affinity to use.BackendService.Builder
clearSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
BackendService.Builder
clearTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer.BackendService.Builder
clone()
boolean
containsMetadatas(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHint
getAffinityCookieTtlSec()
Lifetime of cookies in seconds.Backend
getBackends(int index)
The list of backends that serve this BackendService.Backend.Builder
getBackendsBuilder(int index)
The list of backends that serve this BackendService.List<Backend.Builder>
getBackendsBuilderList()
The list of backends that serve this BackendService.int
getBackendsCount()
The list of backends that serve this BackendService.List<Backend>
getBackendsList()
The list of backends that serve this BackendService.BackendOrBuilder
getBackendsOrBuilder(int index)
The list of backends that serve this BackendService.List<? extends BackendOrBuilder>
getBackendsOrBuilderList()
The list of backends that serve this BackendService.BackendServiceCdnPolicy
getCdnPolicy()
Cloud CDN configuration for this BackendService.BackendServiceCdnPolicy.Builder
getCdnPolicyBuilder()
Cloud CDN configuration for this BackendService.BackendServiceCdnPolicyOrBuilder
getCdnPolicyOrBuilder()
Cloud CDN configuration for this BackendService.CircuitBreakers
getCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
CircuitBreakers.Builder
getCircuitBreakersBuilder()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
CircuitBreakersOrBuilder
getCircuitBreakersOrBuilder()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
String
getCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.com.google.protobuf.ByteString
getCompressionModeBytes()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.ConnectionDraining
getConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
ConnectionDraining.Builder
getConnectionDrainingBuilder()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
ConnectionDrainingOrBuilder
getConnectionDrainingOrBuilder()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
BackendServiceConnectionTrackingPolicy
getConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService.BackendServiceConnectionTrackingPolicy.Builder
getConnectionTrackingPolicyBuilder()
Connection Tracking configuration for this BackendService.BackendServiceConnectionTrackingPolicyOrBuilder
getConnectionTrackingPolicyOrBuilder()
Connection Tracking configuration for this BackendService.ConsistentHashLoadBalancerSettings
getConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.ConsistentHashLoadBalancerSettings.Builder
getConsistentHashBuilder()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.ConsistentHashLoadBalancerSettingsOrBuilder
getConsistentHashOrBuilder()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.String
getCustomRequestHeaders(int index)
Headers that the load balancer adds to proxied requests.com.google.protobuf.ByteString
getCustomRequestHeadersBytes(int index)
Headers that the load balancer adds to proxied requests.int
getCustomRequestHeadersCount()
Headers that the load balancer adds to proxied requests.com.google.protobuf.ProtocolStringList
getCustomRequestHeadersList()
Headers that the load balancer adds to proxied requests.String
getCustomResponseHeaders(int index)
Headers that the load balancer adds to proxied responses.com.google.protobuf.ByteString
getCustomResponseHeadersBytes(int index)
Headers that the load balancer adds to proxied responses.int
getCustomResponseHeadersCount()
Headers that the load balancer adds to proxied responses.com.google.protobuf.ProtocolStringList
getCustomResponseHeadersList()
Headers that the load balancer adds to proxied responses.BackendService
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.com.google.protobuf.ByteString
getEdgeSecurityPolicyBytes()
[Output Only] The resource URL for the edge security policy associated with this backend service.boolean
getEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.BackendServiceFailoverPolicy
getFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendServiceFailoverPolicy.Builder
getFailoverPolicyBuilder()
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendServiceFailoverPolicyOrBuilder
getFailoverPolicyOrBuilder()
Requires at least one backend instance group to be defined as a backup (failover) backend.String
getFingerprint()
Fingerprint of this resource.com.google.protobuf.ByteString
getFingerprintBytes()
Fingerprint of this resource.String
getHealthChecks(int index)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.com.google.protobuf.ByteString
getHealthChecksBytes(int index)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.int
getHealthChecksCount()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.com.google.protobuf.ProtocolStringList
getHealthChecksList()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendServiceIAP
getIap()
The configurations for Identity-Aware Proxy on this resource.BackendServiceIAP.Builder
getIapBuilder()
The configurations for Identity-Aware Proxy on this resource.BackendServiceIAPOrBuilder
getIapOrBuilder()
The configurations for Identity-Aware Proxy on this resource.long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] Type of resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of resource.String
getLoadBalancingScheme()
Specifies the load balancer type.com.google.protobuf.ByteString
getLoadBalancingSchemeBytes()
Specifies the load balancer type.BackendServiceLocalityLoadBalancingPolicyConfig
getLocalityLbPolicies(int index)
A list of locality load-balancing policies to be used in order of preference.BackendServiceLocalityLoadBalancingPolicyConfig.Builder
getLocalityLbPoliciesBuilder(int index)
A list of locality load-balancing policies to be used in order of preference.List<BackendServiceLocalityLoadBalancingPolicyConfig.Builder>
getLocalityLbPoliciesBuilderList()
A list of locality load-balancing policies to be used in order of preference.int
getLocalityLbPoliciesCount()
A list of locality load-balancing policies to be used in order of preference.List<BackendServiceLocalityLoadBalancingPolicyConfig>
getLocalityLbPoliciesList()
A list of locality load-balancing policies to be used in order of preference.BackendServiceLocalityLoadBalancingPolicyConfigOrBuilder
getLocalityLbPoliciesOrBuilder(int index)
A list of locality load-balancing policies to be used in order of preference.List<? extends BackendServiceLocalityLoadBalancingPolicyConfigOrBuilder>
getLocalityLbPoliciesOrBuilderList()
A list of locality load-balancing policies to be used in order of preference.String
getLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality.com.google.protobuf.ByteString
getLocalityLbPolicyBytes()
The load balancing algorithm used within the scope of the locality.BackendServiceLogConfig
getLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service.BackendServiceLogConfig.Builder
getLogConfigBuilder()
This field denotes the logging options for the load balancer traffic served by this backend service.BackendServiceLogConfigOrBuilder
getLogConfigOrBuilder()
This field denotes the logging options for the load balancer traffic served by this backend service.Duration
getMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service.Duration.Builder
getMaxStreamDurationBuilder()
Specifies the default maximum duration (timeout) for streams to this service.DurationOrBuilder
getMaxStreamDurationOrBuilder()
Specifies the default maximum duration (timeout) for streams to this service.Map<String,String>
getMetadatas()
Deprecated.int
getMetadatasCount()
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHMap<String,String>
getMetadatasMap()
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHString
getMetadatasOrDefault(String key, String defaultValue)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHString
getMetadatasOrThrow(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHMap<String,String>
getMutableMetadatas()
Deprecated.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getNetwork()
The URL of the network to which this backend service belongs.com.google.protobuf.ByteString
getNetworkBytes()
The URL of the network to which this backend service belongs.OutlierDetection
getOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.OutlierDetection.Builder
getOutlierDetectionBuilder()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.OutlierDetectionOrBuilder
getOutlierDetectionOrBuilder()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.int
getPort()
Deprecated in favor of portName.String
getPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group.com.google.protobuf.ByteString
getPortNameBytes()
A named port on a backend instance group representing the port for communication to the backend VMs in that group.String
getProtocol()
The protocol this BackendService uses to communicate with backends.com.google.protobuf.ByteString
getProtocolBytes()
The protocol this BackendService uses to communicate with backends.String
getRegion()
[Output Only] URL of the region where the regional backend service resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URL of the region where the regional backend service resides.String
getSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.com.google.protobuf.ByteString
getSecurityPolicyBytes()
[Output Only] The resource URL for the security policy associated with this backend service.SecuritySettings
getSecuritySettings()
This field specifies the security settings that apply to this backend service.SecuritySettings.Builder
getSecuritySettingsBuilder()
This field specifies the security settings that apply to this backend service.SecuritySettingsOrBuilder
getSecuritySettingsOrBuilder()
This field specifies the security settings that apply to this backend service.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.String
getServiceBindings(int index)
URLs of networkservices.ServiceBinding resources.com.google.protobuf.ByteString
getServiceBindingsBytes(int index)
URLs of networkservices.ServiceBinding resources.int
getServiceBindingsCount()
URLs of networkservices.ServiceBinding resources.com.google.protobuf.ProtocolStringList
getServiceBindingsList()
URLs of networkservices.ServiceBinding resources.String
getSessionAffinity()
Type of session affinity to use.com.google.protobuf.ByteString
getSessionAffinityBytes()
Type of session affinity to use.Subsetting
getSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
Subsetting.Builder
getSubsettingBuilder()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
SubsettingOrBuilder
getSubsettingOrBuilder()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
int
getTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer.boolean
hasAffinityCookieTtlSec()
Lifetime of cookies in seconds.boolean
hasCdnPolicy()
Cloud CDN configuration for this BackendService.boolean
hasCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
boolean
hasCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.boolean
hasConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
boolean
hasConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService.boolean
hasConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.boolean
hasEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.boolean
hasFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend.boolean
hasFingerprint()
Fingerprint of this resource.boolean
hasIap()
The configurations for Identity-Aware Proxy on this resource.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of resource.boolean
hasLoadBalancingScheme()
Specifies the load balancer type.boolean
hasLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality.boolean
hasLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service.boolean
hasMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service.boolean
hasName()
Name of the resource.boolean
hasNetwork()
The URL of the network to which this backend service belongs.boolean
hasOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.boolean
hasPort()
Deprecated in favor of portName.boolean
hasPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group.boolean
hasProtocol()
The protocol this BackendService uses to communicate with backends.boolean
hasRegion()
[Output Only] URL of the region where the regional backend service resides.boolean
hasSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.boolean
hasSecuritySettings()
This field specifies the security settings that apply to this backend service.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasSessionAffinity()
Type of session affinity to use.boolean
hasSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
boolean
hasTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
BackendService.Builder
mergeCdnPolicy(BackendServiceCdnPolicy value)
Cloud CDN configuration for this BackendService.BackendService.Builder
mergeCircuitBreakers(CircuitBreakers value)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
BackendService.Builder
mergeConnectionDraining(ConnectionDraining value)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
BackendService.Builder
mergeConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy value)
Connection Tracking configuration for this BackendService.BackendService.Builder
mergeConsistentHash(ConsistentHashLoadBalancerSettings value)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.BackendService.Builder
mergeFailoverPolicy(BackendServiceFailoverPolicy value)
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendService.Builder
mergeFrom(BackendService other)
BackendService.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BackendService.Builder
mergeFrom(com.google.protobuf.Message other)
BackendService.Builder
mergeIap(BackendServiceIAP value)
The configurations for Identity-Aware Proxy on this resource.BackendService.Builder
mergeLogConfig(BackendServiceLogConfig value)
This field denotes the logging options for the load balancer traffic served by this backend service.BackendService.Builder
mergeMaxStreamDuration(Duration value)
Specifies the default maximum duration (timeout) for streams to this service.BackendService.Builder
mergeOutlierDetection(OutlierDetection value)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.BackendService.Builder
mergeSecuritySettings(SecuritySettings value)
This field specifies the security settings that apply to this backend service.BackendService.Builder
mergeSubsetting(Subsetting value)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
BackendService.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BackendService.Builder
putAllMetadatas(Map<String,String> values)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHBackendService.Builder
putMetadatas(String key, String value)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHBackendService.Builder
removeBackends(int index)
The list of backends that serve this BackendService.BackendService.Builder
removeLocalityLbPolicies(int index)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
removeMetadatas(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTHBackendService.Builder
setAffinityCookieTtlSec(int value)
Lifetime of cookies in seconds.BackendService.Builder
setBackends(int index, Backend value)
The list of backends that serve this BackendService.BackendService.Builder
setBackends(int index, Backend.Builder builderForValue)
The list of backends that serve this BackendService.BackendService.Builder
setCdnPolicy(BackendServiceCdnPolicy value)
Cloud CDN configuration for this BackendService.BackendService.Builder
setCdnPolicy(BackendServiceCdnPolicy.Builder builderForValue)
Cloud CDN configuration for this BackendService.BackendService.Builder
setCircuitBreakers(CircuitBreakers value)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
BackendService.Builder
setCircuitBreakers(CircuitBreakers.Builder builderForValue)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
BackendService.Builder
setCompressionMode(String value)
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.BackendService.Builder
setCompressionModeBytes(com.google.protobuf.ByteString value)
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.BackendService.Builder
setConnectionDraining(ConnectionDraining value)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
BackendService.Builder
setConnectionDraining(ConnectionDraining.Builder builderForValue)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
BackendService.Builder
setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy value)
Connection Tracking configuration for this BackendService.BackendService.Builder
setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy.Builder builderForValue)
Connection Tracking configuration for this BackendService.BackendService.Builder
setConsistentHash(ConsistentHashLoadBalancerSettings value)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.BackendService.Builder
setConsistentHash(ConsistentHashLoadBalancerSettings.Builder builderForValue)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties.BackendService.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.BackendService.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.BackendService.Builder
setCustomRequestHeaders(int index, String value)
Headers that the load balancer adds to proxied requests.BackendService.Builder
setCustomResponseHeaders(int index, String value)
Headers that the load balancer adds to proxied responses.BackendService.Builder
setDescription(String value)
An optional description of this resource.BackendService.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.BackendService.Builder
setEdgeSecurityPolicy(String value)
[Output Only] The resource URL for the edge security policy associated with this backend service.BackendService.Builder
setEdgeSecurityPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] The resource URL for the edge security policy associated with this backend service.BackendService.Builder
setEnableCDN(boolean value)
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.BackendService.Builder
setFailoverPolicy(BackendServiceFailoverPolicy value)
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendService.Builder
setFailoverPolicy(BackendServiceFailoverPolicy.Builder builderForValue)
Requires at least one backend instance group to be defined as a backup (failover) backend.BackendService.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendService.Builder
setFingerprint(String value)
Fingerprint of this resource.BackendService.Builder
setFingerprintBytes(com.google.protobuf.ByteString value)
Fingerprint of this resource.BackendService.Builder
setHealthChecks(int index, String value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service.BackendService.Builder
setIap(BackendServiceIAP value)
The configurations for Identity-Aware Proxy on this resource.BackendService.Builder
setIap(BackendServiceIAP.Builder builderForValue)
The configurations for Identity-Aware Proxy on this resource.BackendService.Builder
setId(long value)
[Output Only] The unique identifier for the resource.BackendService.Builder
setKind(String value)
[Output Only] Type of resource.BackendService.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource.BackendService.Builder
setLoadBalancingScheme(String value)
Specifies the load balancer type.BackendService.Builder
setLoadBalancingSchemeBytes(com.google.protobuf.ByteString value)
Specifies the load balancer type.BackendService.Builder
setLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
setLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference.BackendService.Builder
setLocalityLbPolicy(String value)
The load balancing algorithm used within the scope of the locality.BackendService.Builder
setLocalityLbPolicyBytes(com.google.protobuf.ByteString value)
The load balancing algorithm used within the scope of the locality.BackendService.Builder
setLogConfig(BackendServiceLogConfig value)
This field denotes the logging options for the load balancer traffic served by this backend service.BackendService.Builder
setLogConfig(BackendServiceLogConfig.Builder builderForValue)
This field denotes the logging options for the load balancer traffic served by this backend service.BackendService.Builder
setMaxStreamDuration(Duration value)
Specifies the default maximum duration (timeout) for streams to this service.BackendService.Builder
setMaxStreamDuration(Duration.Builder builderForValue)
Specifies the default maximum duration (timeout) for streams to this service.BackendService.Builder
setName(String value)
Name of the resource.BackendService.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.BackendService.Builder
setNetwork(String value)
The URL of the network to which this backend service belongs.BackendService.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
The URL of the network to which this backend service belongs.BackendService.Builder
setOutlierDetection(OutlierDetection value)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.BackendService.Builder
setOutlierDetection(OutlierDetection.Builder builderForValue)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service.BackendService.Builder
setPort(int value)
Deprecated in favor of portName.BackendService.Builder
setPortName(String value)
A named port on a backend instance group representing the port for communication to the backend VMs in that group.BackendService.Builder
setPortNameBytes(com.google.protobuf.ByteString value)
A named port on a backend instance group representing the port for communication to the backend VMs in that group.BackendService.Builder
setProtocol(String value)
The protocol this BackendService uses to communicate with backends.BackendService.Builder
setProtocolBytes(com.google.protobuf.ByteString value)
The protocol this BackendService uses to communicate with backends.BackendService.Builder
setRegion(String value)
[Output Only] URL of the region where the regional backend service resides.BackendService.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the regional backend service resides.BackendService.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BackendService.Builder
setSecurityPolicy(String value)
[Output Only] The resource URL for the security policy associated with this backend service.BackendService.Builder
setSecurityPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] The resource URL for the security policy associated with this backend service.BackendService.Builder
setSecuritySettings(SecuritySettings value)
This field specifies the security settings that apply to this backend service.BackendService.Builder
setSecuritySettings(SecuritySettings.Builder builderForValue)
This field specifies the security settings that apply to this backend service.BackendService.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.BackendService.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.BackendService.Builder
setServiceBindings(int index, String value)
URLs of networkservices.ServiceBinding resources.BackendService.Builder
setSessionAffinity(String value)
Type of session affinity to use.BackendService.Builder
setSessionAffinityBytes(com.google.protobuf.ByteString value)
Type of session affinity to use.BackendService.Builder
setSubsetting(Subsetting value)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
BackendService.Builder
setSubsetting(Subsetting.Builder builderForValue)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
BackendService.Builder
setTimeoutSec(int value)
The backend service timeout has a different meaning depending on the type of load balancer.BackendService.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
clear
public BackendService.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
getDefaultInstanceForType
public BackendService getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackendService build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackendService buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BackendService.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
setField
public BackendService.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
clearField
public BackendService.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
clearOneof
public BackendService.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
setRepeatedField
public BackendService.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
addRepeatedField
public BackendService.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
mergeFrom
public BackendService.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendService.Builder>
-
mergeFrom
public BackendService.Builder mergeFrom(BackendService other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
mergeFrom
public BackendService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendService.Builder>
- Throws:
IOException
-
hasAffinityCookieTtlSec
public boolean hasAffinityCookieTtlSec()
Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional int32 affinity_cookie_ttl_sec = 369996954;
- Specified by:
hasAffinityCookieTtlSec
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the affinityCookieTtlSec field is set.
-
getAffinityCookieTtlSec
public int getAffinityCookieTtlSec()
Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional int32 affinity_cookie_ttl_sec = 369996954;
- Specified by:
getAffinityCookieTtlSec
in interfaceBackendServiceOrBuilder
- Returns:
- The affinityCookieTtlSec.
-
setAffinityCookieTtlSec
public BackendService.Builder setAffinityCookieTtlSec(int value)
Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional int32 affinity_cookie_ttl_sec = 369996954;
- Parameters:
value
- The affinityCookieTtlSec to set.- Returns:
- This builder for chaining.
-
clearAffinityCookieTtlSec
public BackendService.Builder clearAffinityCookieTtlSec()
Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional int32 affinity_cookie_ttl_sec = 369996954;
- Returns:
- This builder for chaining.
-
getBackendsList
public List<Backend> getBackendsList()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
- Specified by:
getBackendsList
in interfaceBackendServiceOrBuilder
-
getBackendsCount
public int getBackendsCount()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
- Specified by:
getBackendsCount
in interfaceBackendServiceOrBuilder
-
getBackends
public Backend getBackends(int index)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
- Specified by:
getBackends
in interfaceBackendServiceOrBuilder
-
setBackends
public BackendService.Builder setBackends(int index, Backend value)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
setBackends
public BackendService.Builder setBackends(int index, Backend.Builder builderForValue)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addBackends
public BackendService.Builder addBackends(Backend value)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addBackends
public BackendService.Builder addBackends(int index, Backend value)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addBackends
public BackendService.Builder addBackends(Backend.Builder builderForValue)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addBackends
public BackendService.Builder addBackends(int index, Backend.Builder builderForValue)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addAllBackends
public BackendService.Builder addAllBackends(Iterable<? extends Backend> values)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
clearBackends
public BackendService.Builder clearBackends()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
removeBackends
public BackendService.Builder removeBackends(int index)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
getBackendsBuilder
public Backend.Builder getBackendsBuilder(int index)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
getBackendsOrBuilder
public BackendOrBuilder getBackendsOrBuilder(int index)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
- Specified by:
getBackendsOrBuilder
in interfaceBackendServiceOrBuilder
-
getBackendsOrBuilderList
public List<? extends BackendOrBuilder> getBackendsOrBuilderList()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
- Specified by:
getBackendsOrBuilderList
in interfaceBackendServiceOrBuilder
-
addBackendsBuilder
public Backend.Builder addBackendsBuilder()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
addBackendsBuilder
public Backend.Builder addBackendsBuilder(int index)
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
getBackendsBuilderList
public List<Backend.Builder> getBackendsBuilderList()
The list of backends that serve this BackendService.
repeated .google.cloud.compute.v1.Backend backends = 510839903;
-
hasCdnPolicy
public boolean hasCdnPolicy()
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
- Specified by:
hasCdnPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the cdnPolicy field is set.
-
getCdnPolicy
public BackendServiceCdnPolicy getCdnPolicy()
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
- Specified by:
getCdnPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The cdnPolicy.
-
setCdnPolicy
public BackendService.Builder setCdnPolicy(BackendServiceCdnPolicy value)
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
-
setCdnPolicy
public BackendService.Builder setCdnPolicy(BackendServiceCdnPolicy.Builder builderForValue)
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
-
mergeCdnPolicy
public BackendService.Builder mergeCdnPolicy(BackendServiceCdnPolicy value)
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
-
clearCdnPolicy
public BackendService.Builder clearCdnPolicy()
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
-
getCdnPolicyBuilder
public BackendServiceCdnPolicy.Builder getCdnPolicyBuilder()
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
-
getCdnPolicyOrBuilder
public BackendServiceCdnPolicyOrBuilder getCdnPolicyOrBuilder()
Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
optional .google.cloud.compute.v1.BackendServiceCdnPolicy cdn_policy = 213976452;
- Specified by:
getCdnPolicyOrBuilder
in interfaceBackendServiceOrBuilder
-
hasCircuitBreakers
public boolean hasCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
- Specified by:
hasCircuitBreakers
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the circuitBreakers field is set.
-
getCircuitBreakers
public CircuitBreakers getCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
- Specified by:
getCircuitBreakers
in interfaceBackendServiceOrBuilder
- Returns:
- The circuitBreakers.
-
setCircuitBreakers
public BackendService.Builder setCircuitBreakers(CircuitBreakers value)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
-
setCircuitBreakers
public BackendService.Builder setCircuitBreakers(CircuitBreakers.Builder builderForValue)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
-
mergeCircuitBreakers
public BackendService.Builder mergeCircuitBreakers(CircuitBreakers value)
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
-
clearCircuitBreakers
public BackendService.Builder clearCircuitBreakers()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
-
getCircuitBreakersBuilder
public CircuitBreakers.Builder getCircuitBreakersBuilder()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
-
getCircuitBreakersOrBuilder
public CircuitBreakersOrBuilder getCircuitBreakersOrBuilder()
optional .google.cloud.compute.v1.CircuitBreakers circuit_breakers = 421340061;
- Specified by:
getCircuitBreakersOrBuilder
in interfaceBackendServiceOrBuilder
-
hasCompressionMode
public boolean hasCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Specified by:
hasCompressionMode
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the compressionMode field is set.
-
getCompressionMode
public String getCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Specified by:
getCompressionMode
in interfaceBackendServiceOrBuilder
- Returns:
- The compressionMode.
-
getCompressionModeBytes
public com.google.protobuf.ByteString getCompressionModeBytes()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Specified by:
getCompressionModeBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for compressionMode.
-
setCompressionMode
public BackendService.Builder setCompressionMode(String value)
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Parameters:
value
- The compressionMode to set.- Returns:
- This builder for chaining.
-
clearCompressionMode
public BackendService.Builder clearCompressionMode()
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Returns:
- This builder for chaining.
-
setCompressionModeBytes
public BackendService.Builder setCompressionModeBytes(com.google.protobuf.ByteString value)
Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header. Check the CompressionMode enum for the list of possible values.
optional string compression_mode = 95520988;
- Parameters:
value
- The bytes for compressionMode to set.- Returns:
- This builder for chaining.
-
hasConnectionDraining
public boolean hasConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
- Specified by:
hasConnectionDraining
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the connectionDraining field is set.
-
getConnectionDraining
public ConnectionDraining getConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
- Specified by:
getConnectionDraining
in interfaceBackendServiceOrBuilder
- Returns:
- The connectionDraining.
-
setConnectionDraining
public BackendService.Builder setConnectionDraining(ConnectionDraining value)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
-
setConnectionDraining
public BackendService.Builder setConnectionDraining(ConnectionDraining.Builder builderForValue)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
-
mergeConnectionDraining
public BackendService.Builder mergeConnectionDraining(ConnectionDraining value)
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
-
clearConnectionDraining
public BackendService.Builder clearConnectionDraining()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
-
getConnectionDrainingBuilder
public ConnectionDraining.Builder getConnectionDrainingBuilder()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
-
getConnectionDrainingOrBuilder
public ConnectionDrainingOrBuilder getConnectionDrainingOrBuilder()
optional .google.cloud.compute.v1.ConnectionDraining connection_draining = 461096747;
- Specified by:
getConnectionDrainingOrBuilder
in interfaceBackendServiceOrBuilder
-
hasConnectionTrackingPolicy
public boolean hasConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
- Specified by:
hasConnectionTrackingPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the connectionTrackingPolicy field is set.
-
getConnectionTrackingPolicy
public BackendServiceConnectionTrackingPolicy getConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
- Specified by:
getConnectionTrackingPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The connectionTrackingPolicy.
-
setConnectionTrackingPolicy
public BackendService.Builder setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy value)
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
-
setConnectionTrackingPolicy
public BackendService.Builder setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy.Builder builderForValue)
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
-
mergeConnectionTrackingPolicy
public BackendService.Builder mergeConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy value)
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
-
clearConnectionTrackingPolicy
public BackendService.Builder clearConnectionTrackingPolicy()
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
-
getConnectionTrackingPolicyBuilder
public BackendServiceConnectionTrackingPolicy.Builder getConnectionTrackingPolicyBuilder()
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
-
getConnectionTrackingPolicyOrBuilder
public BackendServiceConnectionTrackingPolicyOrBuilder getConnectionTrackingPolicyOrBuilder()
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing.
optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969;
- Specified by:
getConnectionTrackingPolicyOrBuilder
in interfaceBackendServiceOrBuilder
-
hasConsistentHash
public boolean hasConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
- Specified by:
hasConsistentHash
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the consistentHash field is set.
-
getConsistentHash
public ConsistentHashLoadBalancerSettings getConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
- Specified by:
getConsistentHash
in interfaceBackendServiceOrBuilder
- Returns:
- The consistentHash.
-
setConsistentHash
public BackendService.Builder setConsistentHash(ConsistentHashLoadBalancerSettings value)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
-
setConsistentHash
public BackendService.Builder setConsistentHash(ConsistentHashLoadBalancerSettings.Builder builderForValue)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
-
mergeConsistentHash
public BackendService.Builder mergeConsistentHash(ConsistentHashLoadBalancerSettings value)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
-
clearConsistentHash
public BackendService.Builder clearConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
-
getConsistentHashBuilder
public ConsistentHashLoadBalancerSettings.Builder getConsistentHashBuilder()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
-
getConsistentHashOrBuilder
public ConsistentHashLoadBalancerSettingsOrBuilder getConsistentHashOrBuilder()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettings consistent_hash = 905883;
- Specified by:
getConsistentHashOrBuilder
in interfaceBackendServiceOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceBackendServiceOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public BackendService.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public BackendService.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public BackendService.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
getCustomRequestHeadersList
public com.google.protobuf.ProtocolStringList getCustomRequestHeadersList()
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Specified by:
getCustomRequestHeadersList
in interfaceBackendServiceOrBuilder
- Returns:
- A list containing the customRequestHeaders.
-
getCustomRequestHeadersCount
public int getCustomRequestHeadersCount()
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Specified by:
getCustomRequestHeadersCount
in interfaceBackendServiceOrBuilder
- Returns:
- The count of customRequestHeaders.
-
getCustomRequestHeaders
public String getCustomRequestHeaders(int index)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Specified by:
getCustomRequestHeaders
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The customRequestHeaders at the given index.
-
getCustomRequestHeadersBytes
public com.google.protobuf.ByteString getCustomRequestHeadersBytes(int index)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Specified by:
getCustomRequestHeadersBytes
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the customRequestHeaders at the given index.
-
setCustomRequestHeaders
public BackendService.Builder setCustomRequestHeaders(int index, String value)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Parameters:
index
- The index to set the value at.value
- The customRequestHeaders to set.- Returns:
- This builder for chaining.
-
addCustomRequestHeaders
public BackendService.Builder addCustomRequestHeaders(String value)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Parameters:
value
- The customRequestHeaders to add.- Returns:
- This builder for chaining.
-
addAllCustomRequestHeaders
public BackendService.Builder addAllCustomRequestHeaders(Iterable<String> values)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Parameters:
values
- The customRequestHeaders to add.- Returns:
- This builder for chaining.
-
clearCustomRequestHeaders
public BackendService.Builder clearCustomRequestHeaders()
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Returns:
- This builder for chaining.
-
addCustomRequestHeadersBytes
public BackendService.Builder addCustomRequestHeadersBytes(com.google.protobuf.ByteString value)
Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_request_headers = 27977992;
- Parameters:
value
- The bytes of the customRequestHeaders to add.- Returns:
- This builder for chaining.
-
getCustomResponseHeadersList
public com.google.protobuf.ProtocolStringList getCustomResponseHeadersList()
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Specified by:
getCustomResponseHeadersList
in interfaceBackendServiceOrBuilder
- Returns:
- A list containing the customResponseHeaders.
-
getCustomResponseHeadersCount
public int getCustomResponseHeadersCount()
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Specified by:
getCustomResponseHeadersCount
in interfaceBackendServiceOrBuilder
- Returns:
- The count of customResponseHeaders.
-
getCustomResponseHeaders
public String getCustomResponseHeaders(int index)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Specified by:
getCustomResponseHeaders
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The customResponseHeaders at the given index.
-
getCustomResponseHeadersBytes
public com.google.protobuf.ByteString getCustomResponseHeadersBytes(int index)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Specified by:
getCustomResponseHeadersBytes
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the customResponseHeaders at the given index.
-
setCustomResponseHeaders
public BackendService.Builder setCustomResponseHeaders(int index, String value)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Parameters:
index
- The index to set the value at.value
- The customResponseHeaders to set.- Returns:
- This builder for chaining.
-
addCustomResponseHeaders
public BackendService.Builder addCustomResponseHeaders(String value)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Parameters:
value
- The customResponseHeaders to add.- Returns:
- This builder for chaining.
-
addAllCustomResponseHeaders
public BackendService.Builder addAllCustomResponseHeaders(Iterable<String> values)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Parameters:
values
- The customResponseHeaders to add.- Returns:
- This builder for chaining.
-
clearCustomResponseHeaders
public BackendService.Builder clearCustomResponseHeaders()
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Returns:
- This builder for chaining.
-
addCustomResponseHeadersBytes
public BackendService.Builder addCustomResponseHeadersBytes(com.google.protobuf.ByteString value)
Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).
repeated string custom_response_headers = 387539094;
- Parameters:
value
- The bytes of the customResponseHeaders to add.- 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 interfaceBackendServiceOrBuilder
- 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 interfaceBackendServiceOrBuilder
- 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 interfaceBackendServiceOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public BackendService.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 BackendService.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 BackendService.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.
-
hasEdgeSecurityPolicy
public boolean hasEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Specified by:
hasEdgeSecurityPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the edgeSecurityPolicy field is set.
-
getEdgeSecurityPolicy
public String getEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Specified by:
getEdgeSecurityPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The edgeSecurityPolicy.
-
getEdgeSecurityPolicyBytes
public com.google.protobuf.ByteString getEdgeSecurityPolicyBytes()
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Specified by:
getEdgeSecurityPolicyBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for edgeSecurityPolicy.
-
setEdgeSecurityPolicy
public BackendService.Builder setEdgeSecurityPolicy(String value)
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Parameters:
value
- The edgeSecurityPolicy to set.- Returns:
- This builder for chaining.
-
clearEdgeSecurityPolicy
public BackendService.Builder clearEdgeSecurityPolicy()
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Returns:
- This builder for chaining.
-
setEdgeSecurityPolicyBytes
public BackendService.Builder setEdgeSecurityPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] The resource URL for the edge security policy associated with this backend service.
optional string edge_security_policy = 41036943;
- Parameters:
value
- The bytes for edgeSecurityPolicy to set.- Returns:
- This builder for chaining.
-
hasEnableCDN
public boolean hasEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
optional bool enable_c_d_n = 250733499;
- Specified by:
hasEnableCDN
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the enableCDN field is set.
-
getEnableCDN
public boolean getEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
optional bool enable_c_d_n = 250733499;
- Specified by:
getEnableCDN
in interfaceBackendServiceOrBuilder
- Returns:
- The enableCDN.
-
setEnableCDN
public BackendService.Builder setEnableCDN(boolean value)
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
optional bool enable_c_d_n = 250733499;
- Parameters:
value
- The enableCDN to set.- Returns:
- This builder for chaining.
-
clearEnableCDN
public BackendService.Builder clearEnableCDN()
If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer.
optional bool enable_c_d_n = 250733499;
- Returns:
- This builder for chaining.
-
hasFailoverPolicy
public boolean hasFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
- Specified by:
hasFailoverPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the failoverPolicy field is set.
-
getFailoverPolicy
public BackendServiceFailoverPolicy getFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
- Specified by:
getFailoverPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The failoverPolicy.
-
setFailoverPolicy
public BackendService.Builder setFailoverPolicy(BackendServiceFailoverPolicy value)
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
-
setFailoverPolicy
public BackendService.Builder setFailoverPolicy(BackendServiceFailoverPolicy.Builder builderForValue)
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
-
mergeFailoverPolicy
public BackendService.Builder mergeFailoverPolicy(BackendServiceFailoverPolicy value)
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
-
clearFailoverPolicy
public BackendService.Builder clearFailoverPolicy()
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
-
getFailoverPolicyBuilder
public BackendServiceFailoverPolicy.Builder getFailoverPolicyBuilder()
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
-
getFailoverPolicyOrBuilder
public BackendServiceFailoverPolicyOrBuilder getFailoverPolicyOrBuilder()
Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview).
optional .google.cloud.compute.v1.BackendServiceFailoverPolicy failover_policy = 105658655;
- Specified by:
getFailoverPolicyOrBuilder
in interfaceBackendServiceOrBuilder
-
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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Specified by:
hasFingerprint
in interfaceBackendServiceOrBuilder
- 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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Specified by:
getFingerprint
in interfaceBackendServiceOrBuilder
- 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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Specified by:
getFingerprintBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for fingerprint.
-
setFingerprint
public BackendService.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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Parameters:
value
- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
public BackendService.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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Returns:
- This builder for chaining.
-
setFingerprintBytes
public BackendService.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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService.
optional string fingerprint = 234678500;
- Parameters:
value
- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
getHealthChecksList
public com.google.protobuf.ProtocolStringList getHealthChecksList()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksList
in interfaceBackendServiceOrBuilder
- Returns:
- A list containing the healthChecks.
-
getHealthChecksCount
public int getHealthChecksCount()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksCount
in interfaceBackendServiceOrBuilder
- Returns:
- The count of healthChecks.
-
getHealthChecks
public String getHealthChecks(int index)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecks
in interfaceBackendServiceOrBuilder
- 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)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Specified by:
getHealthChecksBytes
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the healthChecks at the given index.
-
setHealthChecks
public BackendService.Builder setHealthChecks(int index, String value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
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 BackendService.Builder addHealthChecks(String value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Parameters:
value
- The healthChecks to add.- Returns:
- This builder for chaining.
-
addAllHealthChecks
public BackendService.Builder addAllHealthChecks(Iterable<String> values)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Parameters:
values
- The healthChecks to add.- Returns:
- This builder for chaining.
-
clearHealthChecks
public BackendService.Builder clearHealthChecks()
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Returns:
- This builder for chaining.
-
addHealthChecksBytes
public BackendService.Builder addHealthChecksBytes(com.google.protobuf.ByteString value)
The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check.
repeated string health_checks = 448370606;
- Parameters:
value
- The bytes of the healthChecks to add.- Returns:
- This builder for chaining.
-
hasIap
public boolean hasIap()
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
- Specified by:
hasIap
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the iap field is set.
-
getIap
public BackendServiceIAP getIap()
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
- Specified by:
getIap
in interfaceBackendServiceOrBuilder
- Returns:
- The iap.
-
setIap
public BackendService.Builder setIap(BackendServiceIAP value)
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
-
setIap
public BackendService.Builder setIap(BackendServiceIAP.Builder builderForValue)
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
-
mergeIap
public BackendService.Builder mergeIap(BackendServiceIAP value)
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
-
clearIap
public BackendService.Builder clearIap()
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
-
getIapBuilder
public BackendServiceIAP.Builder getIapBuilder()
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
-
getIapOrBuilder
public BackendServiceIAPOrBuilder getIapOrBuilder()
The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing.
optional .google.cloud.compute.v1.BackendServiceIAP iap = 104024;
- Specified by:
getIapOrBuilder
in interfaceBackendServiceOrBuilder
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceBackendServiceOrBuilder
- Returns:
- The id.
-
setId
public BackendService.Builder setId(long value)
[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 BackendService.Builder clearId()
[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] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceBackendServiceOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public BackendService.Builder setKind(String value)
[Output Only] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public BackendService.Builder clearKind()
[Output Only] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public BackendService.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of resource. Always compute#backendService for backend services.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLoadBalancingScheme
public boolean hasLoadBalancingScheme()
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Specified by:
hasLoadBalancingScheme
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the loadBalancingScheme field is set.
-
getLoadBalancingScheme
public String getLoadBalancingScheme()
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Specified by:
getLoadBalancingScheme
in interfaceBackendServiceOrBuilder
- Returns:
- The loadBalancingScheme.
-
getLoadBalancingSchemeBytes
public com.google.protobuf.ByteString getLoadBalancingSchemeBytes()
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Specified by:
getLoadBalancingSchemeBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for loadBalancingScheme.
-
setLoadBalancingScheme
public BackendService.Builder setLoadBalancingScheme(String value)
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Parameters:
value
- The loadBalancingScheme to set.- Returns:
- This builder for chaining.
-
clearLoadBalancingScheme
public BackendService.Builder clearLoadBalancingScheme()
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Returns:
- This builder for chaining.
-
setLoadBalancingSchemeBytes
public BackendService.Builder setLoadBalancingSchemeBytes(com.google.protobuf.ByteString value)
Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. Check the LoadBalancingScheme enum for the list of possible values.
optional string load_balancing_scheme = 363890244;
- Parameters:
value
- The bytes for loadBalancingScheme to set.- Returns:
- This builder for chaining.
-
getLocalityLbPoliciesList
public List<BackendServiceLocalityLoadBalancingPolicyConfig> getLocalityLbPoliciesList()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
- Specified by:
getLocalityLbPoliciesList
in interfaceBackendServiceOrBuilder
-
getLocalityLbPoliciesCount
public int getLocalityLbPoliciesCount()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
- Specified by:
getLocalityLbPoliciesCount
in interfaceBackendServiceOrBuilder
-
getLocalityLbPolicies
public BackendServiceLocalityLoadBalancingPolicyConfig getLocalityLbPolicies(int index)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
- Specified by:
getLocalityLbPolicies
in interfaceBackendServiceOrBuilder
-
setLocalityLbPolicies
public BackendService.Builder setLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
setLocalityLbPolicies
public BackendService.Builder setLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addLocalityLbPolicies
public BackendService.Builder addLocalityLbPolicies(BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addLocalityLbPolicies
public BackendService.Builder addLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig value)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addLocalityLbPolicies
public BackendService.Builder addLocalityLbPolicies(BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addLocalityLbPolicies
public BackendService.Builder addLocalityLbPolicies(int index, BackendServiceLocalityLoadBalancingPolicyConfig.Builder builderForValue)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addAllLocalityLbPolicies
public BackendService.Builder addAllLocalityLbPolicies(Iterable<? extends BackendServiceLocalityLoadBalancingPolicyConfig> values)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
clearLocalityLbPolicies
public BackendService.Builder clearLocalityLbPolicies()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
removeLocalityLbPolicies
public BackendService.Builder removeLocalityLbPolicies(int index)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
getLocalityLbPoliciesBuilder
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder getLocalityLbPoliciesBuilder(int index)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
getLocalityLbPoliciesOrBuilder
public BackendServiceLocalityLoadBalancingPolicyConfigOrBuilder getLocalityLbPoliciesOrBuilder(int index)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
- Specified by:
getLocalityLbPoliciesOrBuilder
in interfaceBackendServiceOrBuilder
-
getLocalityLbPoliciesOrBuilderList
public List<? extends BackendServiceLocalityLoadBalancingPolicyConfigOrBuilder> getLocalityLbPoliciesOrBuilderList()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
- Specified by:
getLocalityLbPoliciesOrBuilderList
in interfaceBackendServiceOrBuilder
-
addLocalityLbPoliciesBuilder
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder addLocalityLbPoliciesBuilder()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
addLocalityLbPoliciesBuilder
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder addLocalityLbPoliciesBuilder(int index)
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
getLocalityLbPoliciesBuilderList
public List<BackendServiceLocalityLoadBalancingPolicyConfig.Builder> getLocalityLbPoliciesBuilderList()
A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't use backend services that have this configuration.
repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557;
-
hasLocalityLbPolicy
public boolean hasLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Specified by:
hasLocalityLbPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the localityLbPolicy field is set.
-
getLocalityLbPolicy
public String getLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Specified by:
getLocalityLbPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The localityLbPolicy.
-
getLocalityLbPolicyBytes
public com.google.protobuf.ByteString getLocalityLbPolicyBytes()
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Specified by:
getLocalityLbPolicyBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for localityLbPolicy.
-
setLocalityLbPolicy
public BackendService.Builder setLocalityLbPolicy(String value)
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Parameters:
value
- The localityLbPolicy to set.- Returns:
- This builder for chaining.
-
clearLocalityLbPolicy
public BackendService.Builder clearLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Returns:
- This builder for chaining.
-
setLocalityLbPolicyBytes
public BackendService.Builder setLocalityLbPolicyBytes(com.google.protobuf.ByteString value)
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Check the LocalityLbPolicy enum for the list of possible values.
optional string locality_lb_policy = 131431487;
- Parameters:
value
- The bytes for localityLbPolicy to set.- Returns:
- This builder for chaining.
-
hasLogConfig
public boolean hasLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
- Specified by:
hasLogConfig
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the logConfig field is set.
-
getLogConfig
public BackendServiceLogConfig getLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
- Specified by:
getLogConfig
in interfaceBackendServiceOrBuilder
- Returns:
- The logConfig.
-
setLogConfig
public BackendService.Builder setLogConfig(BackendServiceLogConfig value)
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
-
setLogConfig
public BackendService.Builder setLogConfig(BackendServiceLogConfig.Builder builderForValue)
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
-
mergeLogConfig
public BackendService.Builder mergeLogConfig(BackendServiceLogConfig value)
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
-
clearLogConfig
public BackendService.Builder clearLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
-
getLogConfigBuilder
public BackendServiceLogConfig.Builder getLogConfigBuilder()
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
-
getLogConfigOrBuilder
public BackendServiceLogConfigOrBuilder getLogConfigOrBuilder()
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver.
optional .google.cloud.compute.v1.BackendServiceLogConfig log_config = 351299741;
- Specified by:
getLogConfigOrBuilder
in interfaceBackendServiceOrBuilder
-
hasMaxStreamDuration
public boolean hasMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
- Specified by:
hasMaxStreamDuration
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the maxStreamDuration field is set.
-
getMaxStreamDuration
public Duration getMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
- Specified by:
getMaxStreamDuration
in interfaceBackendServiceOrBuilder
- Returns:
- The maxStreamDuration.
-
setMaxStreamDuration
public BackendService.Builder setMaxStreamDuration(Duration value)
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
-
setMaxStreamDuration
public BackendService.Builder setMaxStreamDuration(Duration.Builder builderForValue)
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
-
mergeMaxStreamDuration
public BackendService.Builder mergeMaxStreamDuration(Duration value)
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
-
clearMaxStreamDuration
public BackendService.Builder clearMaxStreamDuration()
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
-
getMaxStreamDurationBuilder
public Duration.Builder getMaxStreamDurationBuilder()
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
-
getMaxStreamDurationOrBuilder
public DurationOrBuilder getMaxStreamDurationOrBuilder()
Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.Duration max_stream_duration = 61428376;
- Specified by:
getMaxStreamDurationOrBuilder
in interfaceBackendServiceOrBuilder
-
getMetadatasCount
public int getMetadatasCount()
Description copied from interface:BackendServiceOrBuilder
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
- Specified by:
getMetadatasCount
in interfaceBackendServiceOrBuilder
-
containsMetadatas
public boolean containsMetadatas(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
- Specified by:
containsMetadatas
in interfaceBackendServiceOrBuilder
-
getMetadatas
@Deprecated public Map<String,String> getMetadatas()
Deprecated.UsegetMetadatasMap()
instead.- Specified by:
getMetadatas
in interfaceBackendServiceOrBuilder
-
getMetadatasMap
public Map<String,String> getMetadatasMap()
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
- Specified by:
getMetadatasMap
in interfaceBackendServiceOrBuilder
-
getMetadatasOrDefault
public String getMetadatasOrDefault(String key, String defaultValue)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
- Specified by:
getMetadatasOrDefault
in interfaceBackendServiceOrBuilder
-
getMetadatasOrThrow
public String getMetadatasOrThrow(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
- Specified by:
getMetadatasOrThrow
in interfaceBackendServiceOrBuilder
-
clearMetadatas
public BackendService.Builder clearMetadatas()
-
removeMetadatas
public BackendService.Builder removeMetadatas(String key)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
-
getMutableMetadatas
@Deprecated public Map<String,String> getMutableMetadatas()
Deprecated.Use alternate mutation accessors instead.
-
putMetadatas
public BackendService.Builder putMetadatas(String key, String value)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
-
putAllMetadatas
public BackendService.Builder putAllMetadatas(Map<String,String> values)
Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH
map<string, string> metadatas = 8514340;
-
hasName
public boolean hasName()
Name of the resource. Provided by the client when the resource is created. 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 interfaceBackendServiceOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the resource. Provided by the client when the resource is created. 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 interfaceBackendServiceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. 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 interfaceBackendServiceOrBuilder
- Returns:
- The bytes for name.
-
setName
public BackendService.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. 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 BackendService.Builder clearName()
Name of the resource. Provided by the client when the resource is created. 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 BackendService.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. 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.
-
hasNetwork
public boolean hasNetwork()
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Specified by:
getNetwork
in interfaceBackendServiceOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Specified by:
getNetworkBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public BackendService.Builder setNetwork(String value)
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public BackendService.Builder clearNetwork()
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public BackendService.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL.
optional string network = 232872494;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasOutlierDetection
public boolean hasOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
- Specified by:
hasOutlierDetection
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the outlierDetection field is set.
-
getOutlierDetection
public OutlierDetection getOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
- Specified by:
getOutlierDetection
in interfaceBackendServiceOrBuilder
- Returns:
- The outlierDetection.
-
setOutlierDetection
public BackendService.Builder setOutlierDetection(OutlierDetection value)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
-
setOutlierDetection
public BackendService.Builder setOutlierDetection(OutlierDetection.Builder builderForValue)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
-
mergeOutlierDetection
public BackendService.Builder mergeOutlierDetection(OutlierDetection value)
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
-
clearOutlierDetection
public BackendService.Builder clearOutlierDetection()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
-
getOutlierDetectionBuilder
public OutlierDetection.Builder getOutlierDetectionBuilder()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
-
getOutlierDetectionOrBuilder
public OutlierDetectionOrBuilder getOutlierDetectionOrBuilder()
Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
optional .google.cloud.compute.v1.OutlierDetection outlier_detection = 354625086;
- Specified by:
getOutlierDetectionOrBuilder
in interfaceBackendServiceOrBuilder
-
hasPort
public boolean hasPort()
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
optional int32 port = 3446913;
- Specified by:
hasPort
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
optional int32 port = 3446913;
- Specified by:
getPort
in interfaceBackendServiceOrBuilder
- Returns:
- The port.
-
setPort
public BackendService.Builder setPort(int value)
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
optional int32 port = 3446913;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public BackendService.Builder clearPort()
Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.
optional int32 port = 3446913;
- Returns:
- This builder for chaining.
-
hasPortName
public boolean hasPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Specified by:
hasPortName
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the portName field is set.
-
getPortName
public String getPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Specified by:
getPortName
in interfaceBackendServiceOrBuilder
- Returns:
- The portName.
-
getPortNameBytes
public com.google.protobuf.ByteString getPortNameBytes()
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Specified by:
getPortNameBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for portName.
-
setPortName
public BackendService.Builder setPortName(String value)
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Parameters:
value
- The portName to set.- Returns:
- This builder for chaining.
-
clearPortName
public BackendService.Builder clearPortName()
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Returns:
- This builder for chaining.
-
setPortNameBytes
public BackendService.Builder setPortNameBytes(com.google.protobuf.ByteString value)
A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name.
optional string port_name = 41534345;
- Parameters:
value
- The bytes for portName to set.- Returns:
- This builder for chaining.
-
hasProtocol
public boolean hasProtocol()
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Specified by:
hasProtocol
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the protocol field is set.
-
getProtocol
public String getProtocol()
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Specified by:
getProtocol
in interfaceBackendServiceOrBuilder
- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Specified by:
getProtocolBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for protocol.
-
setProtocol
public BackendService.Builder setProtocol(String value)
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Parameters:
value
- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public BackendService.Builder clearProtocol()
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Returns:
- This builder for chaining.
-
setProtocolBytes
public BackendService.Builder setProtocolBytes(com.google.protobuf.ByteString value)
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. Check the Protocol enum for the list of possible values.
optional string protocol = 84577944;
- Parameters:
value
- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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 interfaceBackendServiceOrBuilder
- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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 interfaceBackendServiceOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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 interfaceBackendServiceOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public BackendService.Builder setRegion(String value)
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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 BackendService.Builder clearRegion()
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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 BackendService.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend 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.
-
hasSecurityPolicy
public boolean hasSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Specified by:
hasSecurityPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the securityPolicy field is set.
-
getSecurityPolicy
public String getSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Specified by:
getSecurityPolicy
in interfaceBackendServiceOrBuilder
- Returns:
- The securityPolicy.
-
getSecurityPolicyBytes
public com.google.protobuf.ByteString getSecurityPolicyBytes()
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Specified by:
getSecurityPolicyBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for securityPolicy.
-
setSecurityPolicy
public BackendService.Builder setSecurityPolicy(String value)
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Parameters:
value
- The securityPolicy to set.- Returns:
- This builder for chaining.
-
clearSecurityPolicy
public BackendService.Builder clearSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Returns:
- This builder for chaining.
-
setSecurityPolicyBytes
public BackendService.Builder setSecurityPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] The resource URL for the security policy associated with this backend service.
optional string security_policy = 171082513;
- Parameters:
value
- The bytes for securityPolicy to set.- Returns:
- This builder for chaining.
-
hasSecuritySettings
public boolean hasSecuritySettings()
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
- Specified by:
hasSecuritySettings
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the securitySettings field is set.
-
getSecuritySettings
public SecuritySettings getSecuritySettings()
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
- Specified by:
getSecuritySettings
in interfaceBackendServiceOrBuilder
- Returns:
- The securitySettings.
-
setSecuritySettings
public BackendService.Builder setSecuritySettings(SecuritySettings value)
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
-
setSecuritySettings
public BackendService.Builder setSecuritySettings(SecuritySettings.Builder builderForValue)
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
-
mergeSecuritySettings
public BackendService.Builder mergeSecuritySettings(SecuritySettings value)
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
-
clearSecuritySettings
public BackendService.Builder clearSecuritySettings()
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
-
getSecuritySettingsBuilder
public SecuritySettings.Builder getSecuritySettingsBuilder()
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
-
getSecuritySettingsOrBuilder
public SecuritySettingsOrBuilder getSecuritySettingsOrBuilder()
This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
optional .google.cloud.compute.v1.SecuritySettings security_settings = 478649922;
- Specified by:
getSecuritySettingsOrBuilder
in interfaceBackendServiceOrBuilder
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceBackendServiceOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public BackendService.Builder setSelfLink(String value)
[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 BackendService.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public BackendService.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[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.
-
getServiceBindingsList
public com.google.protobuf.ProtocolStringList getServiceBindingsList()
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Specified by:
getServiceBindingsList
in interfaceBackendServiceOrBuilder
- Returns:
- A list containing the serviceBindings.
-
getServiceBindingsCount
public int getServiceBindingsCount()
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Specified by:
getServiceBindingsCount
in interfaceBackendServiceOrBuilder
- Returns:
- The count of serviceBindings.
-
getServiceBindings
public String getServiceBindings(int index)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Specified by:
getServiceBindings
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The serviceBindings at the given index.
-
getServiceBindingsBytes
public com.google.protobuf.ByteString getServiceBindingsBytes(int index)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Specified by:
getServiceBindingsBytes
in interfaceBackendServiceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the serviceBindings at the given index.
-
setServiceBindings
public BackendService.Builder setServiceBindings(int index, String value)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Parameters:
index
- The index to set the value at.value
- The serviceBindings to set.- Returns:
- This builder for chaining.
-
addServiceBindings
public BackendService.Builder addServiceBindings(String value)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Parameters:
value
- The serviceBindings to add.- Returns:
- This builder for chaining.
-
addAllServiceBindings
public BackendService.Builder addAllServiceBindings(Iterable<String> values)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Parameters:
values
- The serviceBindings to add.- Returns:
- This builder for chaining.
-
clearServiceBindings
public BackendService.Builder clearServiceBindings()
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Returns:
- This builder for chaining.
-
addServiceBindingsBytes
public BackendService.Builder addServiceBindingsBytes(com.google.protobuf.ByteString value)
URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty.
repeated string service_bindings = 133581016;
- Parameters:
value
- The bytes of the serviceBindings to add.- Returns:
- This builder for chaining.
-
hasSessionAffinity
public boolean hasSessionAffinity()
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
hasSessionAffinity
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the sessionAffinity field is set.
-
getSessionAffinity
public String getSessionAffinity()
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
getSessionAffinity
in interfaceBackendServiceOrBuilder
- Returns:
- The sessionAffinity.
-
getSessionAffinityBytes
public com.google.protobuf.ByteString getSessionAffinityBytes()
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Specified by:
getSessionAffinityBytes
in interfaceBackendServiceOrBuilder
- Returns:
- The bytes for sessionAffinity.
-
setSessionAffinity
public BackendService.Builder setSessionAffinity(String value)
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Parameters:
value
- The sessionAffinity to set.- Returns:
- This builder for chaining.
-
clearSessionAffinity
public BackendService.Builder clearSessionAffinity()
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Returns:
- This builder for chaining.
-
setSessionAffinityBytes
public BackendService.Builder setSessionAffinityBytes(com.google.protobuf.ByteString value)
Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). Check the SessionAffinity enum for the list of possible values.
optional string session_affinity = 463888561;
- Parameters:
value
- The bytes for sessionAffinity to set.- Returns:
- This builder for chaining.
-
hasSubsetting
public boolean hasSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
- Specified by:
hasSubsetting
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the subsetting field is set.
-
getSubsetting
public Subsetting getSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
- Specified by:
getSubsetting
in interfaceBackendServiceOrBuilder
- Returns:
- The subsetting.
-
setSubsetting
public BackendService.Builder setSubsetting(Subsetting value)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
-
setSubsetting
public BackendService.Builder setSubsetting(Subsetting.Builder builderForValue)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
-
mergeSubsetting
public BackendService.Builder mergeSubsetting(Subsetting value)
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
-
clearSubsetting
public BackendService.Builder clearSubsetting()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
-
getSubsettingBuilder
public Subsetting.Builder getSubsettingBuilder()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
-
getSubsettingOrBuilder
public SubsettingOrBuilder getSubsettingOrBuilder()
optional .google.cloud.compute.v1.Subsetting subsetting = 450283536;
- Specified by:
getSubsettingOrBuilder
in interfaceBackendServiceOrBuilder
-
hasTimeoutSec
public boolean hasTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
optional int32 timeout_sec = 79994995;
- Specified by:
hasTimeoutSec
in interfaceBackendServiceOrBuilder
- Returns:
- Whether the timeoutSec field is set.
-
getTimeoutSec
public int getTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
optional int32 timeout_sec = 79994995;
- Specified by:
getTimeoutSec
in interfaceBackendServiceOrBuilder
- Returns:
- The timeoutSec.
-
setTimeoutSec
public BackendService.Builder setTimeoutSec(int value)
The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
optional int32 timeout_sec = 79994995;
- Parameters:
value
- The timeoutSec to set.- Returns:
- This builder for chaining.
-
clearTimeoutSec
public BackendService.Builder clearTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
optional int32 timeout_sec = 79994995;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BackendService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
mergeUnknownFields
public final BackendService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendService.Builder>
-
-