Package com.google.cloud.compute.v1
Class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
- com.google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
-
- All Implemented Interfaces:
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
public static final class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder> implements BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
The configuration for a custom policy implemented by the user and deployed with the client.
Protobuf typegoogle.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
build()
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
buildPartial()
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clear()
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clearData()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clearName()
Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
clone()
String
getData()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.com.google.protobuf.ByteString
getDataBytes()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Identifies the custom policy.com.google.protobuf.ByteString
getNameBytes()
Identifies the custom policy.boolean
hasData()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.boolean
hasName()
Identifies the custom policy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setData(String value)
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setDataBytes(com.google.protobuf.ByteString value)
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setName(String value)
Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setNameBytes(com.google.protobuf.ByteString value)
Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clear
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
getDefaultInstanceForType
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
setField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clearField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clearOneof
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
setRepeatedField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
addRepeatedField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeFrom
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeFrom
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeFrom
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
- Throws:
IOException
-
hasData
public boolean hasData()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
optional string data = 3076010;
- Specified by:
hasData
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- Whether the data field is set.
-
getData
public String getData()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
optional string data = 3076010;
- Specified by:
getData
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- The data.
-
getDataBytes
public com.google.protobuf.ByteString getDataBytes()
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
optional string data = 3076010;
- Specified by:
getDataBytes
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- The bytes for data.
-
setData
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;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDataBytes
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setDataBytes(com.google.protobuf.ByteString value)
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
optional string data = 3076010;
- Parameters:
value
- The bytes for data to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasName
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- Whether the name field is set.
-
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;
- Specified by:
getName
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceBackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeUnknownFields
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
-