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

The status of a task attempt.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dispatch_time

    def dispatch_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.


  `dispatch_time` will be truncated to the nearest microsecond.

### #dispatch_time=

    def dispatch_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.


  `dispatch_time` will be truncated to the nearest microsecond.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.


  `dispatch_time` will be truncated to the nearest microsecond.

### #response_status

    def response_status() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.


  If `response_time` is unset, then the task has not been attempted or is
  currently running and the `response_status` field is meaningless.

### #response_status=

    def response_status=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.


  If `response_time` is unset, then the task has not been attempted or is
  currently running and the `response_status` field is meaningless.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.


  If `response_time` is unset, then the task has not been attempted or is
  currently running and the `response_status` field is meaningless.

### #response_time

    def response_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.


  `response_time` will be truncated to the nearest microsecond.

### #response_time=

    def response_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.


  `response_time` will be truncated to the nearest microsecond.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.


  `response_time` will be truncated to the nearest microsecond.

### #schedule_time

    def schedule_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.


  `schedule_time` will be truncated to the nearest microsecond.

### #schedule_time=

    def schedule_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.


  `schedule_time` will be truncated to the nearest microsecond.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.


  `schedule_time` will be truncated to the nearest microsecond.