# Cloud Tasks V2 API - Class Google::Cloud::Tasks::V2::UpdateQueueRequest (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::UpdateQueueRequest.

Request message for
[UpdateQueue](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_update_queue_instance_ "Google::Cloud::Tasks::V2::CloudTasks::Client#update_queue (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #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 or update.


  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") must be specified.

  Output only fields cannot be modified using UpdateQueue.
  Any value specified for an output only field will be ignored.
  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") cannot be changed.

### #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 or update.


  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") must be specified.

  Output only fields cannot be modified using UpdateQueue.
  Any value specified for an output only field will be ignored.
  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") cannot be changed.
**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 or update.


  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") must be specified.

  Output only fields cannot be modified using UpdateQueue.
  Any value specified for an output only field will be ignored.
  The queue's [name](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Queue#Google__Cloud__Tasks__V2__Queue_name_instance_ "Google::Cloud::Tasks::V2::Queue#name (method)") cannot be changed.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-FieldMask)) --- A mask used to specify which fields of the queue are being updated.


  If empty, then all fields will be updated.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-FieldMask)) --- A mask used to specify which fields of the queue are being updated.


  If empty, then all fields will be updated.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-FieldMask)) --- A mask used to specify which fields of the queue are being updated.


  If empty, then all fields will be updated.