Send feedback
Class BackendServiceLocalityLoadBalancingPolicyConfig.Builder (1.54.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.54.0 keyboard_arrow_down
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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public BackendServiceLocalityLoadBalancingPolicyConfig build ()
buildPartial()
public BackendServiceLocalityLoadBalancingPolicyConfig buildPartial ()
clear()
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clear ()
Overrides
clearCustomPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clearCustomPolicy ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
clearField(Descriptors.FieldDescriptor field)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clearPolicy ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
clone()
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder clone ()
Overrides
getCustomPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
getCustomPolicyBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy . Builder getCustomPolicyBuilder ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
getCustomPolicyOrBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder getCustomPolicyOrBuilder ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
getDefaultInstanceForType()
public BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
getPolicyBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy . Builder getPolicyBuilder ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
getPolicyOrBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder ()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergeCustomPolicy ( BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfig other)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergeFrom ( BackendServiceLocalityLoadBalancingPolicyConfig other )
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergePolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergePolicy ( BackendServiceLocalityLoadBalancingPolicyConfigPolicy value )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setCustomPolicy ( BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy value )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder builderForValue)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setCustomPolicy ( BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy . Builder builderForValue )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setPolicy ( BackendServiceLocalityLoadBalancingPolicyConfigPolicy value )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy.Builder builderForValue)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setPolicy ( BackendServiceLocalityLoadBalancingPolicyConfigPolicy . Builder builderForValue )
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]