# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms.

Metadata about the terms of service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #accept_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project agreed to the terms of service.

### #accept_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project agreed to the terms of service.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project agreed to the terms of service.

### #decline_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project declined or revoked the agreement to terms of service.

### #decline_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project declined or revoked the agreement to terms of service.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-Timestamp)) --- The last time when the project declined or revoked the agreement to terms of service.

### #id

    def id() -> ::String

**Returns**

- (::String) --- The unique identifier of this terms of service.
  Available terms:

  - `GA_DATA_USE_TERMS`: [Terms for data
    use](https://cloud.google.com/retail/data-use-terms). When using this as `id`, the acceptable [version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_version_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#version (method)") to provide is `2022-11-23`.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The unique identifier of this terms of service.
  Available terms:
  - `GA_DATA_USE_TERMS`: [Terms for data
    use](https://cloud.google.com/retail/data-use-terms). When using this as `id`, the acceptable [version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_version_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#version (method)") to provide is `2022-11-23`.
**Returns**

- (::String) --- The unique identifier of this terms of service.
  Available terms:

  - `GA_DATA_USE_TERMS`: [Terms for data
    use](https://cloud.google.com/retail/data-use-terms). When using this as `id`, the acceptable [version](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_version_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#version (method)") to provide is `2022-11-23`.

### #state

    def state() -> ::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms-State)) --- Whether the project has accepted/rejected the service terms or it is still pending.

### #state=

    def state=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms-State)) --- Whether the project has accepted/rejected the service terms or it is still pending.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms-State)) --- Whether the project has accepted/rejected the service terms or it is still pending.

### #version

    def version() -> ::String

**Returns**

- (::String) --- The version string of the terms of service. For acceptable values, see the comments for [id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#id (method)") above.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- The version string of the terms of service. For acceptable values, see the comments for [id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#id (method)") above.
**Returns**

- (::String) --- The version string of the terms of service. For acceptable values, see the comments for [id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Project-ServiceTerms#Google__Cloud__DiscoveryEngine__V1__Project__ServiceTerms_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Project::ServiceTerms#id (method)") above.