Class BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder (1.18.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

build()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy build()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

buildPartial()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy buildPartial()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

clear()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clear()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
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
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

clone()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder clone()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

hasName()

public boolean 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
TypeDescription
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigPolicy other)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigPolicy other)
Parameter
NameDescription
otherBackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Overrides