Class BackendServiceLocalityLoadBalancingPolicyConfig (1.56.0)

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

Inheritance

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

Static Fields

CUSTOM_POLICY_FIELD_NUMBER

public static final int CUSTOM_POLICY_FIELD_NUMBER
Field Value
Type Description
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstance()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)

public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)
Parameter
Name Description
prototype BackendServiceLocalityLoadBalancingPolicyConfig
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

parseDelimitedFrom(InputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackendServiceLocalityLoadBalancingPolicyConfig> parser()
Returns
Type Description
Parser<BackendServiceLocalityLoadBalancingPolicyConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCustomPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy()

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

The customPolicy.

getCustomPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder getCustomPolicyOrBuilder()

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstanceForType()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig

getParserForType()

public Parser<BackendServiceLocalityLoadBalancingPolicyConfig> getParserForType()
Returns
Type Description
Parser<BackendServiceLocalityLoadBalancingPolicyConfig>
Overrides

getPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy()

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

The policy.

getPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder()

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder toBuilder()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException