Class TransferProto.CreateAgentPoolRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransferProto.CreateAgentPoolRequest.Builder>
      • 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

        public TransferProto.CreateAgentPoolRequest.Builder setProjectId​(String 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 projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

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

        public TransferTypes.AgentPool.Builder getAgentPoolBuilder()
         Required. The agent pool to create.
         
        .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
      • 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

        public TransferProto.CreateAgentPoolRequest.Builder setAgentPoolId​(String 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 agentPoolId to set.
        Returns:
        This builder for chaining.
      • clearAgentPoolId

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