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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
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
Returns
Overrides
clone()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
Returns
Overrides
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
getDefaultInstanceForType()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
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
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()
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
Type | Description |
boolean | Whether the name field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
Parameter
Returns
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
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
Name | Description |
value | String
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
Name | Description |
value | ByteString
The bytes for data to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
Name | Description |
value | String
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
Name | Description |
value | ByteString
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
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides