# Developer Connect V1 API - Class Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse.

Message for responding to getting an OAuth access token.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #exchange_error

    def exchange_error() -> ::Google::Cloud::DeveloperConnect::V1::ExchangeError

**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::ExchangeError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ExchangeError)) --- The error resulted from exchanging OAuth tokens from the service provider.

### #exchange_error=

    def exchange_error=(value) -> ::Google::Cloud::DeveloperConnect::V1::ExchangeError

**Parameter**

- **value** ([::Google::Cloud::DeveloperConnect::V1::ExchangeError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ExchangeError)) --- The error resulted from exchanging OAuth tokens from the service provider.
**Returns**

- ([::Google::Cloud::DeveloperConnect::V1::ExchangeError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-ExchangeError)) --- The error resulted from exchanging OAuth tokens from the service provider.

### #expiration_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Protobuf-Timestamp)) --- Expiration timestamp. Can be empty if unknown or non-expiring.

### #expiration_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Protobuf-Timestamp)) --- Expiration timestamp. Can be empty if unknown or non-expiring.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Protobuf-Timestamp)) --- Expiration timestamp. Can be empty if unknown or non-expiring.

### #scopes

    def scopes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The scopes of the access token.

### #scopes=

    def scopes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The scopes of the access token.
**Returns**

- (::Array\<::String\>) --- The scopes of the access token.

### #token

    def token() -> ::String

**Returns**

- (::String) --- The token content.

### #token=

    def token=(value) -> ::String

**Parameter**

- **value** (::String) --- The token content.
**Returns**

- (::String) --- The token content.