public static final class ServiceLbPolicy.Builder extends GeneratedMessageV3.Builder<ServiceLbPolicy.Builder> implements ServiceLbPolicyOrBuilderServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.
Protobuf type google.cloud.networkservices.v1.ServiceLbPolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceLbPolicy.BuilderImplements
ServiceLbPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceLbPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
build()
public ServiceLbPolicy build()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy |
|
buildPartial()
public ServiceLbPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy |
|
clear()
public ServiceLbPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearAutoCapacityDrain()
public ServiceLbPolicy.Builder clearAutoCapacityDrain()Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearCreateTime()
public ServiceLbPolicy.Builder clearCreateTime()Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearDescription()
public ServiceLbPolicy.Builder clearDescription()Optional. A free-text description of the resource. Max length 1024 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
clearFailoverConfig()
public ServiceLbPolicy.Builder clearFailoverConfig()Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ServiceLbPolicy.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearIsolationConfig()
public ServiceLbPolicy.Builder clearIsolationConfig()Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearLabels()
public ServiceLbPolicy.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearLoadBalancingAlgorithm()
public ServiceLbPolicy.Builder clearLoadBalancingAlgorithm()Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
clearName()
public ServiceLbPolicy.Builder clearName() Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceLbPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clearUpdateTime()
public ServiceLbPolicy.Builder clearUpdateTime()Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
clone()
public ServiceLbPolicy.Builder clone()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAutoCapacityDrain()
public ServiceLbPolicy.AutoCapacityDrain getAutoCapacityDrain()Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain |
The autoCapacityDrain. |
getAutoCapacityDrainBuilder()
public ServiceLbPolicy.AutoCapacityDrain.Builder getAutoCapacityDrainBuilder()Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrain.Builder |
|
getAutoCapacityDrainOrBuilder()
public ServiceLbPolicy.AutoCapacityDrainOrBuilder getAutoCapacityDrainOrBuilder()Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.AutoCapacityDrainOrBuilder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public ServiceLbPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy |
|
getDescription()
public String getDescription()Optional. A free-text description of the resource. Max length 1024 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. A free-text description of the resource. Max length 1024 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFailoverConfig()
public ServiceLbPolicy.FailoverConfig getFailoverConfig()Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.FailoverConfig |
The failoverConfig. |
getFailoverConfigBuilder()
public ServiceLbPolicy.FailoverConfig.Builder getFailoverConfigBuilder()Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.FailoverConfig.Builder |
|
getFailoverConfigOrBuilder()
public ServiceLbPolicy.FailoverConfigOrBuilder getFailoverConfigOrBuilder()Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.FailoverConfigOrBuilder |
|
getIsolationConfig()
public ServiceLbPolicy.IsolationConfig getIsolationConfig()Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.IsolationConfig |
The isolationConfig. |
getIsolationConfigBuilder()
public ServiceLbPolicy.IsolationConfig.Builder getIsolationConfigBuilder()Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.IsolationConfig.Builder |
|
getIsolationConfigOrBuilder()
public ServiceLbPolicy.IsolationConfigOrBuilder getIsolationConfigOrBuilder()Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.IsolationConfigOrBuilder |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLoadBalancingAlgorithm()
public ServiceLbPolicy.LoadBalancingAlgorithm getLoadBalancingAlgorithm()Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.LoadBalancingAlgorithm |
The loadBalancingAlgorithm. |
getLoadBalancingAlgorithmValue()
public int getLoadBalancingAlgorithmValue()Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for loadBalancingAlgorithm. |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasAutoCapacityDrain()
public boolean hasAutoCapacityDrain()Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoCapacityDrain field is set. |
hasCreateTime()
public boolean hasCreateTime()Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasFailoverConfig()
public boolean hasFailoverConfig()Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the failoverConfig field is set. |
hasIsolationConfig()
public boolean hasIsolationConfig()Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the isolationConfig field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain value)
public ServiceLbPolicy.Builder mergeAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain value)Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.AutoCapacityDrain |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeCreateTime(Timestamp value)
public ServiceLbPolicy.Builder mergeCreateTime(Timestamp value)Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeFailoverConfig(ServiceLbPolicy.FailoverConfig value)
public ServiceLbPolicy.Builder mergeFailoverConfig(ServiceLbPolicy.FailoverConfig value)Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.FailoverConfig |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeFrom(ServiceLbPolicy other)
public ServiceLbPolicy.Builder mergeFrom(ServiceLbPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
ServiceLbPolicy |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceLbPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ServiceLbPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeIsolationConfig(ServiceLbPolicy.IsolationConfig value)
public ServiceLbPolicy.Builder mergeIsolationConfig(ServiceLbPolicy.IsolationConfig value)Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.IsolationConfig |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLbPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
mergeUpdateTime(Timestamp value)
public ServiceLbPolicy.Builder mergeUpdateTime(Timestamp value)Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
putAllLabels(Map<String,String> values)
public ServiceLbPolicy.Builder putAllLabels(Map<String,String> values)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
putLabels(String key, String value)
public ServiceLbPolicy.Builder putLabels(String key, String value)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
removeLabels(String key)
public ServiceLbPolicy.Builder removeLabels(String key)Optional. Set of label tags associated with the ServiceLbPolicy resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain value)
public ServiceLbPolicy.Builder setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain value)Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.AutoCapacityDrain |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.Builder builderForValue)
public ServiceLbPolicy.Builder setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.Builder builderForValue)Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain auto_capacity_drain = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceLbPolicy.AutoCapacityDrain.Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setCreateTime(Timestamp value)
public ServiceLbPolicy.Builder setCreateTime(Timestamp value)Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public ServiceLbPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The timestamp when this resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setDescription(String value)
public ServiceLbPolicy.Builder setDescription(String value)Optional. A free-text description of the resource. Max length 1024 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public ServiceLbPolicy.Builder setDescriptionBytes(ByteString value)Optional. A free-text description of the resource. Max length 1024 characters.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setFailoverConfig(ServiceLbPolicy.FailoverConfig value)
public ServiceLbPolicy.Builder setFailoverConfig(ServiceLbPolicy.FailoverConfig value)Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.FailoverConfig |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setFailoverConfig(ServiceLbPolicy.FailoverConfig.Builder builderForValue)
public ServiceLbPolicy.Builder setFailoverConfig(ServiceLbPolicy.FailoverConfig.Builder builderForValue)Optional. Configuration related to health based failover.
.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig failover_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceLbPolicy.FailoverConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceLbPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setIsolationConfig(ServiceLbPolicy.IsolationConfig value)
public ServiceLbPolicy.Builder setIsolationConfig(ServiceLbPolicy.IsolationConfig value)Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.IsolationConfig |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setIsolationConfig(ServiceLbPolicy.IsolationConfig.Builder builderForValue)
public ServiceLbPolicy.Builder setIsolationConfig(ServiceLbPolicy.IsolationConfig.Builder builderForValue)Optional. Configuration to provide isolation support for the associated Backend Service.
.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceLbPolicy.IsolationConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setLoadBalancingAlgorithm(ServiceLbPolicy.LoadBalancingAlgorithm value)
public ServiceLbPolicy.Builder setLoadBalancingAlgorithm(ServiceLbPolicy.LoadBalancingAlgorithm value)Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceLbPolicy.LoadBalancingAlgorithmThe loadBalancingAlgorithm to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setLoadBalancingAlgorithmValue(int value)
public ServiceLbPolicy.Builder setLoadBalancingAlgorithmValue(int value)Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm load_balancing_algorithm = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for loadBalancingAlgorithm to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setName(String value)
public ServiceLbPolicy.Builder setName(String value) Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ServiceLbPolicy.Builder setNameBytes(ByteString value) Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceLbPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceLbPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setUpdateTime(Timestamp value)
public ServiceLbPolicy.Builder setUpdateTime(Timestamp value)Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public ServiceLbPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The timestamp when this resource was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy.Builder |
|