public static final class BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder extends GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder> implements BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder
The configuration for a built-in load balancing policy.
Protobuf type
google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy build()
Returns
buildPartial()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy buildPartial()
Returns
clear()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clearName()
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Returns
hasName()
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Returns
Type | Description |
boolean | Whether the name field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigPolicy other)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigPolicy other)
Parameter
Returns
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setName(String value)
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setNameBytes(ByteString value)
The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.
Check the Name enum for the list of possible values.
optional string name = 3373707;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides