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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
buildPartial()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
clear()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
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 |
Type |
Description |
ByteString |
The bytes for data.
|
getDefaultInstanceForType()
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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 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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides