Class BackendServiceLocalityLoadBalancingPolicyConfig (1.23.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
TypeDescription
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstance()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig

getDescriptor()

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

newBuilder()

public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)

public static BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilder(BackendServiceLocalityLoadBalancingPolicyConfig prototype)
Parameter
NameDescription
prototypeBackendServiceLocalityLoadBalancingPolicyConfig
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

parseDelimitedFrom(InputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceLocalityLoadBalancingPolicyConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BackendServiceLocalityLoadBalancingPolicyConfig> parser()
Returns
TypeDescription
Parser<BackendServiceLocalityLoadBalancingPolicyConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCustomPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy()

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

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

The customPolicy.

getCustomPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder getCustomPolicyOrBuilder()

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

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfig getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig

getParserForType()

public Parser<BackendServiceLocalityLoadBalancingPolicyConfig> getParserForType()
Returns
TypeDescription
Parser<BackendServiceLocalityLoadBalancingPolicyConfig>
Overrides

getPolicy()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy()

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

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicy

The policy.

getPolicyOrBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder getPolicyOrBuilder()

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

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigPolicyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackendServiceLocalityLoadBalancingPolicyConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BackendServiceLocalityLoadBalancingPolicyConfig.Builder toBuilder()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException