Class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder (1.15.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
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.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 Overrides

build()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
Returns

buildPartial()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
Returns

clear()

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

clearField(Descriptors.FieldDescriptor field)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearName()

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearName()

Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

optional string name = 3373707;

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

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 type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

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 Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setName(String value)

Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns

setNameBytes(ByteString value)

public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setNameBytes(ByteString value)

Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns

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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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