Interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder (1.37.0)

public interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getData()

public abstract String getData()

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

optional string data = 3076010;

Returns
TypeDescription
String

The data.

getDataBytes()

public abstract ByteString getDataBytes()

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

optional string data = 3076010;

Returns
TypeDescription
ByteString

The bytes for data.

getName()

public abstract 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
TypeDescription
String

The name.

getNameBytes()

public abstract 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
TypeDescription
ByteString

The bytes for name.

hasData()

public abstract boolean hasData()

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

optional string data = 3076010;

Returns
TypeDescription
boolean

Whether the data field is set.

hasName()

public abstract 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
TypeDescription
boolean

Whether the name field is set.