Class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

build()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

buildPartial()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

clear()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clear()
Returns
TypeDescription
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
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

clone()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for data.

getDefaultInstanceForType()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
Parameter
NameDescription
otherBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The data to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for data to set.

Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
Overrides