Google Cloud Contact Center Insights V1 Client - Class GcsSource (2.2.1)

Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class GcsSource.

Configuration for Cloud Storage bucket sources.

Generated from protobuf message google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ IngestConversationsRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ bucket_uri string

Required. The Cloud Storage bucket containing source objects.

↳ bucket_object_type int

Optional. Specifies the type of the objects in bucket_uri.

↳ metadata_bucket_uri string

Optional. The Cloud Storage path to the conversation metadata. Note that: [1] Metadata files are expected to be in JSON format. [2] Metadata and source files (transcripts or audio) must be in separate buckets. [3] A source file and its corresponding metadata file must share the same name to be properly ingested, E.g. gs://bucket/audio/conversation1.mp3 and gs://bucket/metadata/conversation1.json.

↳ custom_metadata_keys array

Optional. Custom keys to extract as conversation labels from metadata files in metadata_bucket_uri. Keys not included in this field will be ignored. Note that there is a limit of 100 labels per conversation.

getBucketUri

Required. The Cloud Storage bucket containing source objects.

Returns
Type Description
string

setBucketUri

Required. The Cloud Storage bucket containing source objects.

Parameter
Name Description
var string
Returns
Type Description
$this

getBucketObjectType

Optional. Specifies the type of the objects in bucket_uri.

Returns
Type Description
int

setBucketObjectType

Optional. Specifies the type of the objects in bucket_uri.

Parameter
Name Description
var int
Returns
Type Description
$this

getMetadataBucketUri

Optional. The Cloud Storage path to the conversation metadata. Note that: [1] Metadata files are expected to be in JSON format.

[2] Metadata and source files (transcripts or audio) must be in separate buckets. [3] A source file and its corresponding metadata file must share the same name to be properly ingested, E.g. gs://bucket/audio/conversation1.mp3 and gs://bucket/metadata/conversation1.json.

Returns
Type Description
string

hasMetadataBucketUri

clearMetadataBucketUri

setMetadataBucketUri

Optional. The Cloud Storage path to the conversation metadata. Note that: [1] Metadata files are expected to be in JSON format.

[2] Metadata and source files (transcripts or audio) must be in separate buckets. [3] A source file and its corresponding metadata file must share the same name to be properly ingested, E.g. gs://bucket/audio/conversation1.mp3 and gs://bucket/metadata/conversation1.json.

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomMetadataKeys

Optional. Custom keys to extract as conversation labels from metadata files in metadata_bucket_uri. Keys not included in this field will be ignored. Note that there is a limit of 100 labels per conversation.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCustomMetadataKeys

Optional. Custom keys to extract as conversation labels from metadata files in metadata_bucket_uri. Keys not included in this field will be ignored. Note that there is a limit of 100 labels per conversation.

Parameter
Name Description
var string[]
Returns
Type Description
$this