Class TransferProto.CreateAgentPoolRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferProto.CreateAgentPoolRequest.Builder>
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferProto.CreateAgentPoolRequestOrBuilder, Cloneable
Enclosing class:
TransferProto.CreateAgentPoolRequest

public static final class TransferProto.CreateAgentPoolRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferProto.CreateAgentPoolRequest.Builder> implements TransferProto.CreateAgentPoolRequestOrBuilder
 Specifies the request passed to CreateAgentPool.
 
Protobuf type google.storagetransfer.v1.CreateAgentPoolRequest
  • 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<TransferProto.CreateAgentPoolRequest.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<TransferProto.CreateAgentPoolRequest.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<TransferProto.CreateAgentPoolRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public TransferProto.CreateAgentPoolRequest.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<TransferProto.CreateAgentPoolRequest.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<TransferProto.CreateAgentPoolRequest.Builder>
    • mergeFrom

      public TransferProto.CreateAgentPoolRequest.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<TransferProto.CreateAgentPoolRequest.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       Required. The ID of the Google Cloud project that owns the
       agent pool.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. The ID of the Google Cloud project that owns the
       agent pool.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

       Required. The ID of the Google Cloud project that owns the
       agent pool.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

       Required. The ID of the Google Cloud project that owns the
       agent pool.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public TransferProto.CreateAgentPoolRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the Google Cloud project that owns the
       agent pool.
       
      string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • hasAgentPool

      public boolean hasAgentPool()
       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAgentPool in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      Whether the agentPool field is set.
    • getAgentPool

      public TransferTypes.AgentPool getAgentPool()
       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentPool in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      The agentPool.
    • setAgentPool

       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
    • setAgentPool

       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeAgentPool

       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearAgentPool

       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAgentPoolBuilder

      public TransferTypes.AgentPool.Builder getAgentPoolBuilder()
       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAgentPoolOrBuilder

      public TransferTypes.AgentPoolOrBuilder getAgentPoolOrBuilder()
       Required. The agent pool to create.
       
      .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentPoolOrBuilder in interface TransferProto.CreateAgentPoolRequestOrBuilder
    • getAgentPoolId

      public String getAgentPoolId()
       Required. The ID of the agent pool to create.
      
       The `agent_pool_id` must meet the following requirements:
      
       *   Length of 128 characters or less.
       *   Not start with the string `goog`.
       *   Start with a lowercase ASCII character, followed by:
       *   Zero or more: lowercase Latin alphabet characters, numerals,
       hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
       *   One or more numerals or lowercase ASCII characters.
      
       As expressed by the regular expression:
       `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
       
      string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentPoolId in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      The agentPoolId.
    • getAgentPoolIdBytes

      public com.google.protobuf.ByteString getAgentPoolIdBytes()
       Required. The ID of the agent pool to create.
      
       The `agent_pool_id` must meet the following requirements:
      
       *   Length of 128 characters or less.
       *   Not start with the string `goog`.
       *   Start with a lowercase ASCII character, followed by:
       *   Zero or more: lowercase Latin alphabet characters, numerals,
       hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
       *   One or more numerals or lowercase ASCII characters.
      
       As expressed by the regular expression:
       `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
       
      string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentPoolIdBytes in interface TransferProto.CreateAgentPoolRequestOrBuilder
      Returns:
      The bytes for agentPoolId.
    • setAgentPoolId

       Required. The ID of the agent pool to create.
      
       The `agent_pool_id` must meet the following requirements:
      
       *   Length of 128 characters or less.
       *   Not start with the string `goog`.
       *   Start with a lowercase ASCII character, followed by:
       *   Zero or more: lowercase Latin alphabet characters, numerals,
       hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
       *   One or more numerals or lowercase ASCII characters.
      
       As expressed by the regular expression:
       `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
       
      string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The agentPoolId to set.
      Returns:
      This builder for chaining.
    • clearAgentPoolId

       Required. The ID of the agent pool to create.
      
       The `agent_pool_id` must meet the following requirements:
      
       *   Length of 128 characters or less.
       *   Not start with the string `goog`.
       *   Start with a lowercase ASCII character, followed by:
       *   Zero or more: lowercase Latin alphabet characters, numerals,
       hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
       *   One or more numerals or lowercase ASCII characters.
      
       As expressed by the regular expression:
       `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
       
      string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAgentPoolIdBytes

      public TransferProto.CreateAgentPoolRequest.Builder setAgentPoolIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the agent pool to create.
      
       The `agent_pool_id` must meet the following requirements:
      
       *   Length of 128 characters or less.
       *   Not start with the string `goog`.
       *   Start with a lowercase ASCII character, followed by:
       *   Zero or more: lowercase Latin alphabet characters, numerals,
       hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
       *   One or more numerals or lowercase ASCII characters.
      
       As expressed by the regular expression:
       `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
       
      string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for agentPoolId to set.
      Returns:
      This builder for chaining.