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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicybuild()BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicybuildPartial()BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builderclear()BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuilderclearData()An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuilderclearName()Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builderclone()StringgetData()An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.com.google.protobuf.ByteStringgetDataBytes()An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Identifies the custom policy.com.google.protobuf.ByteStringgetNameBytes()Identifies the custom policy.booleanhasData()An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.booleanhasName()Identifies the custom policy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildermergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildermergeFrom(com.google.protobuf.Message other)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetData(String value)An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetDataBytes(com.google.protobuf.ByteString value)An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetName(String value)Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetNameBytes(com.google.protobuf.ByteString value)Identifies the custom policy.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clear
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
getDefaultInstanceForType
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
setField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clearField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
clearOneof
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
setRepeatedField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
addRepeatedField
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeFrom
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeFrom
public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeFrom(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasDatain 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:
getDatain 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:
getDataBytesin 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:
hasNamein 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:
getNamein 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:
getNameBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
mergeUnknownFields
public final BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
-
-