Google Cloud Discovery Engine V1 Client - Class UpdateSessionRequest (1.0.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class UpdateSessionRequest.

Request for UpdateSession method.

Generated from protobuf message google.cloud.discoveryengine.v1.UpdateSessionRequest

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ sessionGoogle\Cloud\DiscoveryEngine\V1\Session

Required. The Session to update.

↳ update_maskGoogle\Protobuf\FieldMask

Indicates which fields in the provided Session to update. The following are NOT supported: * Session.name If not set or empty, all supported fields are updated.

getSession

Required. The Session to update.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1\Session|null

hasSession

clearSession

setSession

Required. The Session to update.

Parameter
NameDescription
varGoogle\Cloud\DiscoveryEngine\V1\Session
Returns
TypeDescription
$this

getUpdateMask

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name If not set or empty, all supported fields are updated.
Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name If not set or empty, all supported fields are updated.
Parameter
NameDescription
varGoogle\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
sessionGoogle\Cloud\DiscoveryEngine\V1\Session

Required. The Session to update.

updateMaskGoogle\Protobuf\FieldMask

Indicates which fields in the provided Session to update. The following are NOT supported:

If not set or empty, all supported fields are updated.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1\UpdateSessionRequest