Google Cloud Retail V2 Client - Class ImportMetadata (2.1.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class ImportMetadata.

Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.

Generated from protobuf message google.cloud.retail.v2.ImportMetadata

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ create_time Google\Protobuf\Timestamp

Operation create time.

↳ update_time Google\Protobuf\Timestamp

Operation last update time. If the operation is done, this is also the finish time.

↳ success_count int|string

Count of entries that were processed successfully.

↳ failure_count int|string

Count of entries that encountered errors while processing.

↳ request_id string

Deprecated. This field is never set.

↳ notification_pubsub_topic string

Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is projects/{project}/topics/{topic}.

getCreateTime

Operation create time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Operation create time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Operation last update time. If the operation is done, this is also the finish time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Operation last update time. If the operation is done, this is also the finish time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getSuccessCount

Count of entries that were processed successfully.

Returns
Type Description
int|string

setSuccessCount

Count of entries that were processed successfully.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getFailureCount

Count of entries that encountered errors while processing.

Returns
Type Description
int|string

setFailureCount

Count of entries that encountered errors while processing.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getRequestId

Deprecated. This field is never set.

Returns
Type Description
string

setRequestId

Deprecated. This field is never set.

Parameter
Name Description
var string
Returns
Type Description
$this

getNotificationPubsubTopic

Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}.

Returns
Type Description
string

setNotificationPubsubTopic

Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation.

Format of the Pub/Sub topic is projects/{project}/topics/{topic}.

Parameter
Name Description
var string
Returns
Type Description
$this