# Cloud Tasks V2beta3 API - Class Google::Cloud::Tasks::V2beta3::GetTaskRequest (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.1 0.16.0 0.15.1 0.14.0 0.13.1 0.12.3 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.6 Reference documentation and code samples for the Cloud Tasks V2beta3 API class Google::Cloud::Tasks::V2beta3::GetTaskRequest.

Request message for getting a task using
[GetTask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-CloudTasks-Client#Google__Cloud__Tasks__V2beta3__CloudTasks__Client_get_task_instance_ "Google::Cloud::Tasks::V2beta3::CloudTasks::Client#get_task (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
**Returns**

- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

### #response_view

    def response_view() -> ::Google::Cloud::Tasks::V2beta3::Task::View

**Returns**

- ([::Google::Cloud::Tasks::V2beta3::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__BASIC "Google::Cloud::Tasks::V2beta3::Task::View::BASIC (constant)"); not all information is
  retrieved by default because some data, such as payloads, might be
  desirable to return only when needed because of its large size or because
  of the sensitivity of data that it contains.

  Authorization for [FULL](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__FULL "Google::Cloud::Tasks::V2beta3::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") resource.

### #response_view=

    def response_view=(value) -> ::Google::Cloud::Tasks::V2beta3::Task::View

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta3::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__BASIC "Google::Cloud::Tasks::V2beta3::Task::View::BASIC (constant)"); not all information is
  retrieved by default because some data, such as payloads, might be
  desirable to return only when needed because of its large size or because
  of the sensitivity of data that it contains.

  Authorization for [FULL](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__FULL "Google::Cloud::Tasks::V2beta3::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") resource.
**Returns**

- ([::Google::Cloud::Tasks::V2beta3::Task::View](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View)) --- The response_view specifies which subset of the [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") will be returned.


  By default response_view is
  [BASIC](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__BASIC "Google::Cloud::Tasks::V2beta3::Task::View::BASIC (constant)"); not all information is
  retrieved by default because some data, such as payloads, might be
  desirable to return only when needed because of its large size or because
  of the sensitivity of data that it contains.

  Authorization for [FULL](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task-View#Google__Cloud__Tasks__V2beta3__Task__View__FULL "Google::Cloud::Tasks::V2beta3::Task::View::FULL (constant)")
  requires `cloudtasks.tasks.fullView` [Google
  IAM](https://cloud.google.com/iam/) permission on the
  [Task](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-Task "Google::Cloud::Tasks::V2beta3::Task (class)") resource.