public final class BackendServiceLocalityLoadBalancingPolicyConfig extends GeneratedMessageV3 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
Static Fields
CUSTOM_POLICY_FIELD_NUMBER
public static final int CUSTOM_POLICY_FIELD_NUMBER
Field Value
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder()
Returns
newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)
public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)
Parameter
Returns
public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BackendServiceLocalityLoadBalancingPolicyConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCustomPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy()
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
getParserForType()
public Parser<BackendServiceLocalityLoadBalancingPolicyConfig> getParserForType()
Returns
Overrides
getPolicy()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
getPolicyOrBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder()
optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public BackendServiceLocalityLoadBalancingPolicyConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions