Class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder (1.59.0)

public static final class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder extends GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder> implements BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder

The configuration for a custom policy implemented by the user and deployed with the client.

Protobuf type google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

build()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

buildPartial()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

clear()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clear()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

clearData()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearData()

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

clearName()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearName()

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

clone()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

getData()

public String getData()

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Returns
Type Description
String

The data.

getDataBytes()

public ByteString getDataBytes()

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Returns
Type Description
ByteString

The bytes for data.

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

hasData()

public boolean hasData()

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Returns
Type Description
boolean

Whether the data field is set.

hasName()

public boolean hasName()

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
Parameter
Name Description
other BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

setData(String value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setData(String value)

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Parameter
Name Description
value String

The data to set.

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

setDataBytes(ByteString value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setDataBytes(ByteString value)

An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.

optional string data = 3076010;

Parameter
Name Description
value ByteString

The bytes for data to set.

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

setName(String value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setName(String value)

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setNameBytes(ByteString value)

Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides