# Cloud Tasks V2 API - Class Google::Cloud::Tasks::V2::CreateQueueRequest (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Tasks V2 API class Google::Cloud::Tasks::V2::CreateQueueRequest.

Request message for
[CreateQueue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-CloudTasks-Client#Google__Cloud__Tasks__V2__CloudTasks__Client_create_queue_instance_ "Google::Cloud::Tasks::V2::CloudTasks::Client#create_queue (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- 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 of
  \[ListLocations\]\[google.cloud.location.Locations.ListLocations\].

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- 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 of
  \[ListLocations\]\[google.cloud.location.Locations.ListLocations\].
**Returns**

- (::String) --- 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 of
  \[ListLocations\]\[google.cloud.location.Locations.ListLocations\].

### #queue

    def queue() -> ::Google::Cloud::Tasks::V2::Queue

**Returns**

- ([::Google::Cloud::Tasks::V2::Queue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue)) --- Required. The queue to create.


  \[Queue's name\]\[google.cloud.tasks.v2.Queue.name\] cannot be the same as an
  existing queue.

### #queue=

    def queue=(value) -> ::Google::Cloud::Tasks::V2::Queue

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2::Queue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue)) --- Required. The queue to create.


  \[Queue's name\]\[google.cloud.tasks.v2.Queue.name\] cannot be the same as an
  existing queue.
**Returns**

- ([::Google::Cloud::Tasks::V2::Queue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue)) --- Required. The queue to create.


  \[Queue's name\]\[google.cloud.tasks.v2.Queue.name\] cannot be the same as an
  existing queue.