Required. The ID of the agent pool to create. Theagent_pool_idmust meet the following requirements: * * Length of 128 characters or less. * * Not start with the stringgoog. * * 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])?$.
getProjectId
Required. The ID of the Google Cloud project that owns the
agent pool.
Returns
Type
Description
string
setProjectId
Required. The ID of the Google Cloud project that owns the
agent pool.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class CreateAgentPoolRequest (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.CreateAgentPoolRequest)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.CreateAgentPoolRequest)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.CreateAgentPoolRequest)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.CreateAgentPoolRequest)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.CreateAgentPoolRequest)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.CreateAgentPoolRequest)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.CreateAgentPoolRequest)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.CreateAgentPoolRequest)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.CreateAgentPoolRequest)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.CreateAgentPoolRequest) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class CreateAgentPoolRequest.\n\nSpecifies the request passed to CreateAgentPool.\n\nGenerated from protobuf message `google.storagetransfer.v1.CreateAgentPoolRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProjectId\n\nRequired. The ID of the Google Cloud project that owns the\nagent pool.\n\n### setProjectId\n\nRequired. The ID of the Google Cloud project that owns the\nagent pool.\n\n### getAgentPool\n\nRequired. The agent pool to create.\n\n### hasAgentPool\n\n### clearAgentPool\n\n### setAgentPool\n\nRequired. The agent pool to create.\n\n### getAgentPoolId\n\nRequired. The ID of the agent pool to create.\n\nThe `agent_pool_id` must meet the following requirements:\n\n- Length of 128 characters or less.\n- Not start with the string `goog`.\n- Start with a lowercase ASCII character, followed by:\n - Zero or more: lowercase Latin alphabet characters, numerals, hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).\n - One or more numerals or lowercase ASCII characters. As expressed by the regular expression: `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.\n\n### setAgentPoolId\n\nRequired. The ID of the agent pool to create.\n\nThe `agent_pool_id` must meet the following requirements:\n\n- Length of 128 characters or less.\n- Not start with the string `goog`.\n- Start with a lowercase ASCII character, followed by:\n - Zero or more: lowercase Latin alphabet characters, numerals, hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).\n - One or more numerals or lowercase ASCII characters. As expressed by the regular expression: `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.\n\n### static::build"]]