Generated from protobuf messagegoogle.cloud.tasks.v2.CreateQueueRequest
Namespace
Google \ Cloud \ Tasks \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The location name in which the queue will be created. For example:projects/PROJECT_ID/locations/LOCATION_IDThe list of allowed locations can be obtained by calling Cloud Tasks' implementation ofListLocations.
Required. The queue to create.Queue's namecannot be the same as an existing queue.
getParent
Required. The location name in which the queue will be created.
For example:projects/PROJECT_ID/locations/LOCATION_IDThe list of allowed locations can be obtained by calling Cloud
Tasks' implementation ofListLocations.
Returns
Type
Description
string
setParent
Required. The location name in which the queue will be created.
For example:projects/PROJECT_ID/locations/LOCATION_IDThe list of allowed locations can be obtained by calling Cloud
Tasks' implementation ofListLocations.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getQueue
Required. The queue to create.
Queue's namecannot be the same as an
existing queue.
Required. The location name in which the queue will be created.
For example:projects/PROJECT_ID/locations/LOCATION_ID
The list of allowed locations can be obtained by calling Cloud
Tasks' implementation ofListLocations. Please seeCloudTasksClient::locationName()for help formatting this field.
[[["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 Tasks V2 Client - Class CreateQueueRequest (2.0.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.2 (latest)](/php/docs/reference/cloud-tasks/latest/V2.CreateQueueRequest)\n- [2.0.1](/php/docs/reference/cloud-tasks/2.0.1/V2.CreateQueueRequest)\n- [1.15.2](/php/docs/reference/cloud-tasks/1.15.2/V2.CreateQueueRequest)\n- [1.14.6](/php/docs/reference/cloud-tasks/1.14.6/V2.CreateQueueRequest)\n- [1.13.2](/php/docs/reference/cloud-tasks/1.13.2/V2.CreateQueueRequest)\n- [1.12.2](/php/docs/reference/cloud-tasks/1.12.2/V2.CreateQueueRequest)\n- [1.11.11](/php/docs/reference/cloud-tasks/1.11.11/V2.CreateQueueRequest) \nReference documentation and code samples for the Google Cloud Tasks V2 Client class CreateQueueRequest.\n\nRequest message for\n[CreateQueue](/php/docs/reference/cloud-tasks/latest/V2.Client.CloudTasksClient#_Google_Cloud_Tasks_V2_Client_CloudTasksClient__createQueue__).\n\nGenerated from protobuf message `google.cloud.tasks.v2.CreateQueueRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Tasks \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The location name in which the queue will be created.\n\nFor example: `projects/PROJECT_ID/locations/LOCATION_ID`\nThe list of allowed locations can be obtained by calling Cloud\nTasks' implementation of\nListLocations.\n\n### setParent\n\nRequired. The location name in which the queue will be created.\n\nFor example: `projects/PROJECT_ID/locations/LOCATION_ID`\nThe list of allowed locations can be obtained by calling Cloud\nTasks' implementation of\nListLocations.\n\n### getQueue\n\nRequired. The queue to create.\n\n[Queue's name](/php/docs/reference/cloud-tasks/latest/V2.Queue#_Google_Cloud_Tasks_V2_Queue__getName__) cannot be the same as an\nexisting queue.\n\n### hasQueue\n\n### clearQueue\n\n### setQueue\n\nRequired. The queue to create.\n\n[Queue's name](/php/docs/reference/cloud-tasks/latest/V2.Queue#_Google_Cloud_Tasks_V2_Queue__getName__) cannot be the same as an\nexisting queue.\n\n### static::build"]]