Class BackendServiceLocalityLoadBalancingPolicyConfig.Builder (1.26.0)

public static final class BackendServiceLocalityLoadBalancingPolicyConfig.Builder extends GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfig.Builder> implements BackendServiceLocalityLoadBalancingPolicyConfigOrBuilder

Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.

Protobuf type google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackendServiceLocalityLoadBalancingPolicyConfig build()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig

buildPartial()

public BackendServiceLocalityLoadBalancingPolicyConfig buildPartial()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig

clear()

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

clearCustomPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearCustomPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

clone()

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

getCustomPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

The customPolicy.

getCustomPolicyBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder getCustomPolicyBuilder()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

getCustomPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder getCustomPolicyOrBuilder()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

The policy.

getPolicyBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder getPolicyBuilder()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder

getPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder

hasCustomPolicy()

public boolean hasCustomPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
TypeDescription
boolean

Whether the customPolicy field is set.

hasPolicy()

public boolean hasPolicy()

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Parameter
NameDescription
valueBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfig other)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfig other)
Parameter
NameDescription
otherBackendServiceLocalityLoadBalancingPolicyConfig
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergePolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Parameter
NameDescription
valueBackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Parameter
NameDescription
valueBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder builderForValue)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder builderForValue)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Parameter
NameDescription
builderForValueBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Parameter
NameDescription
valueBackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder builderForValue)

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder builderForValue)

optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Parameter
NameDescription
builderForValueBackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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