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
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 BackendServiceLocalityLoadBalancingPolicyConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BackendServiceLocalityLoadBalancingPolicyConfig build()
Returns
buildPartial()
public BackendServiceLocalityLoadBalancingPolicyConfig buildPartial()
Returns
clear()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clear()
Returns
Overrides
clearCustomPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearCustomPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Returns
clearField(Descriptors.FieldDescriptor field)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clearPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
clone()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder clone()
Returns
Overrides
getCustomPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Returns
getCustomPolicyBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder getCustomPolicyBuilder()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Returns
getCustomPolicyOrBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder getCustomPolicyOrBuilder()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Returns
getDefaultInstanceForType()
public BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
getPolicyBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder getPolicyBuilder()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
getPolicyOrBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
hasCustomPolicy()
public boolean hasCustomPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Returns
Type | Description |
boolean | Whether the customPolicy field is set.
|
hasPolicy()
public boolean hasPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
Type | Description |
boolean | Whether the policy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Parameter
Returns
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfig other)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfig other)
Parameter
Returns
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergePolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergePolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Parameter
Returns
setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder builderForValue)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder builderForValue)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Parameter
Returns
setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder builderForValue)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder builderForValue)
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides