Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
Configuration for Cloud Storage bucket sources.
Instance Attribute Summary collapse
-
#audio_bucket_uri ⇒ String
Optional.
-
#bucket_object_type ⇒ String
Optional.
-
#bucket_uri ⇒ String
Optional.
-
#custom_metadata_keys ⇒ Array<String>
Optional.
-
#metadata_bucket_uri ⇒ String
Optional.
-
#transcript_bucket_uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
constructor
A new instance of GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.
10518 10519 10520 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_bucket_uri ⇒ String
Optional. The Cloud Storage path to the conversation audio file. Note that: [1]
Audio files will be transcribed if not already. [2] Audio files and
transcript files must be in separate buckets / folders. [3] A source file and
its corresponding audio file must share the same name to be properly ingested,
E.g. gs://bucket/transcript/conversation1.json and gs://bucket/audio/
conversation1.mp3.
Corresponds to the JSON property audioBucketUri
10477 10478 10479 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10477 def audio_bucket_uri @audio_bucket_uri end |
#bucket_object_type ⇒ String
Optional. Specifies the type of the objects in bucket_uri. Avoid passing
this. This is inferred from the transcript_bucket_uri, audio_bucket_uri.
Corresponds to the JSON property bucketObjectType
10483 10484 10485 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10483 def bucket_object_type @bucket_object_type end |
#bucket_uri ⇒ String
Optional. The Cloud Storage bucket containing source objects. Avoid passing
this. Pass this through one of transcript_bucket_uri or audio_bucket_uri.
Corresponds to the JSON property bucketUri
10489 10490 10491 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10489 def bucket_uri @bucket_uri end |
#custom_metadata_keys ⇒ Array<String>
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.
Corresponds to the JSON property customMetadataKeys
10496 10497 10498 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10496 def @custom_metadata_keys end |
#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 / folders. [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.
Corresponds to the JSON property metadataBucketUri
10506 10507 10508 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10506 def @metadata_bucket_uri end |
#transcript_bucket_uri ⇒ String
Optional. The Cloud Storage path to the conversation transcripts. Note that: [
1] Transcript files are expected to be in JSON format. [2] Transcript, audio,
metadata files must be in separate buckets / folders. [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.
Corresponds to the JSON property transcriptBucketUri
10516 10517 10518 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10516 def transcript_bucket_uri @transcript_bucket_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10523 10524 10525 10526 10527 10528 10529 10530 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 10523 def update!(**args) @audio_bucket_uri = args[:audio_bucket_uri] if args.key?(:audio_bucket_uri) @bucket_object_type = args[:bucket_object_type] if args.key?(:bucket_object_type) @bucket_uri = args[:bucket_uri] if args.key?(:bucket_uri) @custom_metadata_keys = args[:custom_metadata_keys] if args.key?(:custom_metadata_keys) @metadata_bucket_uri = args[:metadata_bucket_uri] if args.key?(:metadata_bucket_uri) @transcript_bucket_uri = args[:transcript_bucket_uri] if args.key?(:transcript_bucket_uri) end |