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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AgentPool.Builder>
    • getDefaultInstanceForType

      public TransferTypes.AgentPool getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransferTypes.AgentPool build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransferTypes.AgentPool buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransferTypes.AgentPool.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.AgentPool.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.AgentPool.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface TransferTypes.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:
      getNameBytes in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TransferTypes.AgentPool.Builder setName(String value)
       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

      public TransferTypes.AgentPool.Builder 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

      public TransferTypes.AgentPool.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getDisplayName()
       Specifies the client-specified AgentPool description.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Specifies the client-specified AgentPool description.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public TransferTypes.AgentPool.Builder setDisplayName(String value)
       Specifies the client-specified AgentPool description.
       
      string display_name = 3;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public TransferTypes.AgentPool.Builder clearDisplayName()
       Specifies the client-specified AgentPool description.
       
      string display_name = 3;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public TransferTypes.AgentPool.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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:
      getStateValue in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public TransferTypes.AgentPool.Builder setStateValue(int value)
       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

      public TransferTypes.AgentPool.State getState()
       Output only. Specifies the state of the AgentPool.
       
      .google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface TransferTypes.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

      public TransferTypes.AgentPool.Builder 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:
      hasBandwidthLimit in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      Whether the bandwidthLimit field is set.
    • getBandwidthLimit

      public TransferTypes.AgentPool.BandwidthLimit 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:
      getBandwidthLimit in interface TransferTypes.AgentPoolOrBuilder
      Returns:
      The bandwidthLimit.
    • setBandwidthLimit

       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

       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

       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

      public TransferTypes.AgentPool.Builder 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

      public TransferTypes.AgentPool.BandwidthLimit.Builder 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

      public TransferTypes.AgentPool.BandwidthLimitOrBuilder 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:
      getBandwidthLimitOrBuilder in interface TransferTypes.AgentPoolOrBuilder