Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ServiceTerms.
Metadata about the terms of service.
Generated from protobuf messagegoogle.cloud.discoveryengine.v1.Project.ServiceTerms
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ Project
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ id
string
The unique identifier of this terms of service. Available terms: * *GA_DATA_USE_TERMS:Terms for data use. When using this asid, the acceptableversionto provide is2022-11-23.
↳ version
string
The version string of the terms of service. For acceptable values, see the comments foridabove.
↳ state
int
Whether the project has accepted/rejected the service terms or it is still pending.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class ServiceTerms (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.Project.ServiceTerms)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.Project.ServiceTerms)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.Project.ServiceTerms)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.Project.ServiceTerms)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.Project.ServiceTerms)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.Project.ServiceTerms)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.Project.ServiceTerms)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.Project.ServiceTerms)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.Project.ServiceTerms)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.Project.ServiceTerms)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.Project.ServiceTerms)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.Project.ServiceTerms)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.Project.ServiceTerms)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.Project.ServiceTerms)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.Project.ServiceTerms)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.Project.ServiceTerms)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.Project.ServiceTerms) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ServiceTerms.\n\nMetadata about the terms of service.\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.Project.ServiceTerms`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1 \\\\ Project\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getId\n\nThe unique identifier of this terms of service.\n\nAvailable terms:\n\n- `GA_DATA_USE_TERMS`: [Terms for data\n use](https://cloud.google.com/retail/data-use-terms). When using this as `id`, the acceptable [version](/php/docs/reference/cloud-discoveryengine/latest/V1.Project.ServiceTerms#_Google_Cloud_DiscoveryEngine_V1_Project_ServiceTerms__getVersion__) to provide is `2022-11-23`.\n\n### setId\n\nThe unique identifier of this terms of service.\n\nAvailable terms:\n\n- `GA_DATA_USE_TERMS`: [Terms for data\n use](https://cloud.google.com/retail/data-use-terms). When using this as `id`, the acceptable [version](/php/docs/reference/cloud-discoveryengine/latest/V1.Project.ServiceTerms#_Google_Cloud_DiscoveryEngine_V1_Project_ServiceTerms__getVersion__) to provide is `2022-11-23`.\n\n### getVersion\n\nThe version string of the terms of service.\n\nFor acceptable values, see the comments for\n[id](/php/docs/reference/cloud-discoveryengine/latest/V1.Project.ServiceTerms#_Google_Cloud_DiscoveryEngine_V1_Project_ServiceTerms__getId__) above.\n\n### setVersion\n\nThe version string of the terms of service.\n\nFor acceptable values, see the comments for\n[id](/php/docs/reference/cloud-discoveryengine/latest/V1.Project.ServiceTerms#_Google_Cloud_DiscoveryEngine_V1_Project_ServiceTerms__getId__) above.\n\n### getState\n\nWhether the project has accepted/rejected the service terms or it is\nstill pending.\n\n### setState\n\nWhether the project has accepted/rejected the service terms or it is\nstill pending.\n\n### getAcceptTime\n\nThe last time when the project agreed to the terms of service.\n\n### hasAcceptTime\n\n### clearAcceptTime\n\n### setAcceptTime\n\nThe last time when the project agreed to the terms of service.\n\n### getDeclineTime\n\nThe last time when the project declined or revoked the agreement to terms\nof service.\n\n### hasDeclineTime\n\n### clearDeclineTime\n\n### setDeclineTime\n\nThe last time when the project declined or revoked the agreement to terms\nof service."]]