Class TransferTypes.AgentPool.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransferTypes.AgentPoolOrBuilder,Cloneable
- Enclosing class:
- TransferTypes.AgentPool
public static final class TransferTypes.AgentPool.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
implements TransferTypes.AgentPoolOrBuilder
Represents an agent pool.Protobuf type
google.storagetransfer.v1.AgentPool-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the bandwidth limit details.Specifies the client-specified AgentPool description.Required.Output only.Specifies the bandwidth limit details.Specifies the bandwidth limit details.Specifies the bandwidth limit details.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the client-specified AgentPool description.com.google.protobuf.ByteStringSpecifies the client-specified AgentPool description.getName()Required.com.google.protobuf.ByteStringRequired.getState()Output only.intOutput only.booleanSpecifies the bandwidth limit details.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanSpecifies the bandwidth limit details.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransferTypes.AgentPool other) Specifies the bandwidth limit details.setBandwidthLimit(TransferTypes.AgentPool.BandwidthLimit.Builder builderForValue) Specifies the bandwidth limit details.setDisplayName(String value) Specifies the client-specified AgentPool description.setDisplayNameBytes(com.google.protobuf.ByteString value) Specifies the client-specified AgentPool description.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.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.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransferTypes.AgentPool.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
-
mergeFrom
public TransferTypes.AgentPool.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<TransferTypes.AgentPool.Builder>- Throws:
IOException
-
getName
Required. Specifies a unique string that identifies the agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`string name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Specifies a unique string that identifies the agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`string name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Specifies a unique string that identifies the agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`string name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Specifies a unique string that identifies the agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`string name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. Specifies a unique string that identifies the agent pool. Format: `projects/{project_id}/agentPools/{agent_pool_id}`string name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Specifies the client-specified AgentPool description.
string display_name = 3;- Specified by:
getDisplayNamein interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Specifies the client-specified AgentPool description.
string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Specifies the client-specified AgentPool description.
string display_name = 3;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Specifies the client-specified AgentPool description.
string display_name = 3;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Specifies the client-specified AgentPool description.
string display_name = 3;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Output only. Specifies the state of the AgentPool.
.google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. Specifies the state of the AgentPool.
.google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. Specifies the state of the AgentPool.
.google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The state.
-
setState
Output only. Specifies the state of the AgentPool.
.google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. Specifies the state of the AgentPool.
.google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasBandwidthLimit
public boolean hasBandwidthLimit()Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5;- Specified by:
hasBandwidthLimitin interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- Whether the bandwidthLimit field is set.
-
getBandwidthLimit
Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5;- Specified by:
getBandwidthLimitin interfaceTransferTypes.AgentPoolOrBuilder- Returns:
- The bandwidthLimit.
-
setBandwidthLimit
public TransferTypes.AgentPool.Builder setBandwidthLimit(TransferTypes.AgentPool.BandwidthLimit value) Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; -
setBandwidthLimit
public TransferTypes.AgentPool.Builder setBandwidthLimit(TransferTypes.AgentPool.BandwidthLimit.Builder builderForValue) Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; -
mergeBandwidthLimit
public TransferTypes.AgentPool.Builder mergeBandwidthLimit(TransferTypes.AgentPool.BandwidthLimit value) Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; -
clearBandwidthLimit
Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; -
getBandwidthLimitBuilder
Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; -
getBandwidthLimitOrBuilder
Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
.google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5;- Specified by:
getBandwidthLimitOrBuilderin interfaceTransferTypes.AgentPoolOrBuilder
-