Recommender V1 Client - Class MarkInsightAcceptedRequest (1.10.0)

Reference documentation and code samples for the Recommender V1 Client class MarkInsightAcceptedRequest.

Request for the MarkInsightAccepted method.

Generated from protobuf message google.cloud.recommender.v1.MarkInsightAcceptedRequest

Namespace

Google \ Cloud \ Recommender \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of the insight.

↳ state_metadata array|Google\Protobuf\Internal\MapField

Optional. State properties user wish to include with this state. Full replace of the current state_metadata.

↳ etag string

Required. Fingerprint of the Insight. Provides optimistic locking.

getName

Required. Name of the insight.

Returns
TypeDescription
string

setName

Required. Name of the insight.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStateMetadata

Optional. State properties user wish to include with this state. Full replace of the current state_metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setStateMetadata

Optional. State properties user wish to include with this state. Full replace of the current state_metadata.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getEtag

Required. Fingerprint of the Insight. Provides optimistic locking.

Returns
TypeDescription
string

setEtag

Required. Fingerprint of the Insight. Provides optimistic locking.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
name string

Required. Name of the insight. Please see Google\Cloud\Recommender\V1\RecommenderClient::insightName() for help formatting this field.

stateMetadata array

Optional. State properties user wish to include with this state. Full replace of the current state_metadata.

etag string

Required. Fingerprint of the Insight. Provides optimistic locking.

Returns
TypeDescription
Google\Cloud\Recommender\V1\MarkInsightAcceptedRequest