Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ServiceTerms.
Metadata about the terms of service.
Generated from protobuf message google.cloud.discoveryengine.v1.Project.ServiceTerms
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ ProjectMethods
__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: * |
↳ version |
string
The version string of the terms of service. For acceptable values, see the comments for id above. |
↳ state |
int
Whether the project has accepted/rejected the service terms or it is still pending. |
↳ accept_time |
Google\Protobuf\Timestamp
The last time when the project agreed to the terms of service. |
↳ decline_time |
Google\Protobuf\Timestamp
The last time when the project declined or revoked the agreement to terms of service. |
getId
The unique identifier of this terms of service.
Available terms:
GA_DATA_USE_TERMS
: Terms for data use. When using this asid
, the acceptable version to provide is2022-11-23
.
Returns | |
---|---|
Type | Description |
string |
setId
The unique identifier of this terms of service.
Available terms:
GA_DATA_USE_TERMS
: Terms for data use. When using this asid
, the acceptable version to provide is2022-11-23
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVersion
The version string of the terms of service.
For acceptable values, see the comments for id above.
Returns | |
---|---|
Type | Description |
string |
setVersion
The version string of the terms of service.
For acceptable values, see the comments for id above.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getState
Whether the project has accepted/rejected the service terms or it is still pending.
Returns | |
---|---|
Type | Description |
int |
setState
Whether the project has accepted/rejected the service terms or it is still pending.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getAcceptTime
The last time when the project agreed to the terms of service.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasAcceptTime
clearAcceptTime
setAcceptTime
The last time when the project agreed to the terms of service.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getDeclineTime
The last time when the project declined or revoked the agreement to terms of service.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasDeclineTime
clearDeclineTime
setDeclineTime
The last time when the project declined or revoked the agreement to terms of service.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |