NAME
Google::Cloud::Contactcenterinsights::V1::Resources - Compiled Protocol Buffers messages for google/cloud/contactcenterinsights/v1/resources.proto
SYNOPSIS
use Google::Cloud::Contactcenterinsights::V1::Resources;
my $msg = Google::Cloud::Contactcenterinsights::V1::Resources::Conversation->new({
call_metadata => $call_metadata,
expire_time => $expire_time,
ttl => $ttl,
name => $name,
});
# Read or update a field
my $val = $msg->call_metadata();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Contactcenterinsights::V1::Resources::Conversation->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/contactcenterinsights/v1/resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Contactcenterinsights::V1::Resources::Conversation
The conversation resource.
Inherits from Protobuf::Message.
Accessors
$msg->call_metadata()/$msg->call_metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Conversation::CallMetadata)Call-specific metadata.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted.
$msg->ttl()/$msg->ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time.
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}
$msg->data_source()/$msg->data_source($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ConversationDataSource)The source of the audio and transcription for the conversation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the conversation was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the conversation was updated.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the conversation started.
$msg->language_code()/$msg->language_code($value)Type:
StringA user-specified language code for the conversation.
$msg->agent_id()/$msg->agent_id($value)Type:
StringAn opaque, user-specified string representing the human agent who handled the conversation.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Conversation::LabelsEntry)A map for the user to specify any custom fields. A maximum of 100 labels per conversation is allowed, with a maximum of 256 characters per entry.
$msg->quality_metadata()/$msg->quality_metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Conversation::QualityMetadata)Conversation metadata related to quality management.
$msg->metadata_json()/$msg->metadata_json($value)Type:
StringInput only. JSON metadata encoded as a string. This field is primarily used by Insights integrations with various telphony systems and must be in one of Insight's supported formats.
$msg->transcript()/$msg->transcript($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Conversation::Transcript)Output only. The conversation transcript.
$msg->medium()/$msg->medium($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::Conversation::Medium)Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Output only. The duration of the conversation.
$msg->turn_count()/$msg->turn_count($value)Type:
Int32Output only. The number of turns in the conversation.
$msg->latest_analysis()/$msg->latest_analysis($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Analysis)Output only. The conversation's latest analysis, if one exists.
$msg->latest_summary()/$msg->latest_summary($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ConversationSummarizationSuggestionData)Output only. Latest summary of the conversation.
$msg->runtime_annotations()/$msg->runtime_annotations($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::RuntimeAnnotation)Output only. The annotations that were generated during the customer and agent interaction.
$msg->dialogflow_intents()/$msg->dialogflow_intents($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Conversation::DialogflowIntentsEntry)Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent}
$msg->obfuscated_user_id()/$msg->obfuscated_user_id($value)Type:
StringObfuscated user ID which the customer sent to us.
Enum: Conversation::Medium
MEDIUM_UNSPECIFIED=>0PHONE_CALL=>1CHAT=>2
Google::Cloud::Contactcenterinsights::V1::Resources::Analysis
The analysis resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
$msg->request_time()/$msg->request_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the analysis was requested.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the analysis was created, which occurs when the long-running operation completes.
$msg->analysis_result()/$msg->analysis_result($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnalysisResult)Output only. The result of the analysis, which is populated when the analysis finishes.
$msg->annotator_selector()/$msg->annotator_selector($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotatorSelector)To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.
Google::Cloud::Contactcenterinsights::V1::Resources::ConversationDataSource
The conversation source, which is a combination of transcript and audio.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_source()/$msg->gcs_source($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::GcsSource)A Cloud Storage location specification for the audio and transcript.
$msg->dialogflow_source()/$msg->dialogflow_source($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::DialogflowSource)The source when the conversation comes from Dialogflow.
Google::Cloud::Contactcenterinsights::V1::Resources::GcsSource
A Cloud Storage source of conversation data.
Inherits from Protobuf::Message.
Accessors
$msg->audio_uri()/$msg->audio_uri($value)Type:
StringCloud Storage URI that points to a file that contains the conversation audio.
$msg->transcript_uri()/$msg->transcript_uri($value)Type:
StringImmutable. Cloud Storage URI that points to a file that contains the conversation transcript.
Google::Cloud::Contactcenterinsights::V1::Resources::DialogflowSource
A Dialogflow source of conversation data.
Inherits from Protobuf::Message.
Accessors
$msg->dialogflow_conversation()/$msg->dialogflow_conversation($value)Type:
StringOutput only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation}
$msg->audio_uri()/$msg->audio_uri($value)Type:
StringCloud Storage URI that points to a file that contains the conversation audio.
Google::Cloud::Contactcenterinsights::V1::Resources::AnalysisResult
The result of an analysis.
Inherits from Protobuf::Message.
Accessors
$msg->call_analysis_metadata()/$msg->call_analysis_metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnalysisResult::CallAnalysisMetadata)Call-specific metadata created by the analysis.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the analysis ended.
Google::Cloud::Contactcenterinsights::V1::Resources::IssueModelResult
Issue Modeling result on a conversation.
Inherits from Protobuf::Message.
Accessors
$msg->issue_model()/$msg->issue_model($value)Type:
StringIssue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
$msg->issues()/$msg->issues($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueAssignment)All the matched issues.
Google::Cloud::Contactcenterinsights::V1::Resources::FeedbackLabel
Represents a conversation, resource, and label provided by the user.
Inherits from Protobuf::Message.
Accessors
$msg->label()/$msg->label($value)Type:
StringString label.
$msg->qa_answer_label()/$msg->qa_answer_label($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaAnswer::AnswerValue)QaAnswer label.
$msg->name()/$msg->name($value)Type:
StringImmutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
$msg->labeled_resource()/$msg->labeled_resource($value)Type:
StringResource name of the resource to be labeled.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time of the label.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time of the label.
Google::Cloud::Contactcenterinsights::V1::Resources::ConversationLevelSentiment
One channel of conversation-level sentiment data.
Inherits from Protobuf::Message.
Accessors
$msg->channel_tag()/$msg->channel_tag($value)Type:
Int32The channel of the audio that the data applies to.
$msg->sentiment_data()/$msg->sentiment_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SentimentData)Data specifying sentiment.
Google::Cloud::Contactcenterinsights::V1::Resources::ConversationLevelSilence
Conversation-level silence data.
Inherits from Protobuf::Message.
Accessors
$msg->silence_duration()/$msg->silence_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Amount of time calculated to be in silence.
$msg->silence_percentage()/$msg->silence_percentage($value)Type:
FloatPercentage of the total conversation spent in silence.
Google::Cloud::Contactcenterinsights::V1::Resources::IssueAssignment
Information about the issue.
Inherits from Protobuf::Message.
Accessors
$msg->issue()/$msg->issue($value)Type:
StringResource name of the assigned issue.
$msg->score()/$msg->score($value)Type:
DoubleScore indicating the likelihood of the issue assignment. currently bounded on [0,1].
$msg->display_name()/$msg->display_name($value)Type:
StringImmutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then.
Google::Cloud::Contactcenterinsights::V1::Resources::CallAnnotation
A piece of metadata that applies to a window of a call.
Inherits from Protobuf::Message.
Accessors
$msg->interruption_data()/$msg->interruption_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::InterruptionData)Data specifying an interruption.
$msg->sentiment_data()/$msg->sentiment_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SentimentData)Data specifying sentiment.
$msg->silence_data()/$msg->silence_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SilenceData)Data specifying silence.
$msg->hold_data()/$msg->hold_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::HoldData)Data specifying a hold.
$msg->entity_mention_data()/$msg->entity_mention_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::EntityMentionData)Data specifying an entity mention.
$msg->intent_match_data()/$msg->intent_match_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IntentMatchData)Data specifying an intent match.
$msg->phrase_match_data()/$msg->phrase_match_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchData)Data specifying a phrase match.
$msg->issue_match_data()/$msg->issue_match_data($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueMatchData)Data specifying an issue match.
$msg->channel_tag()/$msg->channel_tag($value)Type:
Int32The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated.
$msg->annotation_start_boundary()/$msg->annotation_start_boundary($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotationBoundary)The boundary in the conversation where the annotation starts, inclusive.
$msg->annotation_end_boundary()/$msg->annotation_end_boundary($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotationBoundary)The boundary in the conversation where the annotation ends, inclusive.
Google::Cloud::Contactcenterinsights::V1::Resources::AnnotationBoundary
A point in a conversation that marks the start or the end of an annotation.
Inherits from Protobuf::Message.
Accessors
$msg->word_index()/$msg->word_index($value)Type:
Int32The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.
$msg->transcript_index()/$msg->transcript_index($value)Type:
Int32The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.
Google::Cloud::Contactcenterinsights::V1::Resources::Entity
The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringThe representative name for the entity.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::Entity::Type)The entity type.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Entity::MetadataEntry)Metadata associated with the entity.
For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.
$msg->salience()/$msg->salience($value)Type:
FloatThe salience score associated with the entity in the [0, 1.0] range.
The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
$msg->sentiment()/$msg->sentiment($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SentimentData)The aggregate sentiment expressed for this entity in the conversation.
Enum: Entity::Type
TYPE_UNSPECIFIED=>0PERSON=>1LOCATION=>2ORGANIZATION=>3EVENT=>4WORK_OF_ART=>5CONSUMER_GOOD=>6OTHER=>7PHONE_NUMBER=>9ADDRESS=>10DATE=>11NUMBER=>12PRICE=>13
Google::Cloud::Contactcenterinsights::V1::Resources::Intent
The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringThe unique identifier of the intent.
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable name of the intent.
Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchData
The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.
Inherits from Protobuf::Message.
Accessors
$msg->phrase_matcher()/$msg->phrase_matcher($value)Type:
StringThe unique identifier (the resource name) of the phrase matcher.
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable name of the phrase matcher.
Google::Cloud::Contactcenterinsights::V1::Resources::DialogflowIntent
The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable name of the intent.
Google::Cloud::Contactcenterinsights::V1::Resources::InterruptionData
The data for an interruption annotation.
Inherits from Protobuf::Message.
Google::Cloud::Contactcenterinsights::V1::Resources::SilenceData
The data for a silence annotation.
Inherits from Protobuf::Message.
Google::Cloud::Contactcenterinsights::V1::Resources::HoldData
The data for a hold annotation.
Inherits from Protobuf::Message.
Google::Cloud::Contactcenterinsights::V1::Resources::EntityMentionData
The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->entity_unique_id()/$msg->entity_unique_id($value)Type:
StringThe key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::EntityMentionData::MentionType)The type of the entity mention.
$msg->sentiment()/$msg->sentiment($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SentimentData)Sentiment expressed for this mention of the entity.
Enum: EntityMentionData::MentionType
MENTION_TYPE_UNSPECIFIED=>0PROPER=>1COMMON=>2
Google::Cloud::Contactcenterinsights::V1::Resources::IntentMatchData
The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences.
Inherits from Protobuf::Message.
Accessors
$msg->intent_unique_id()/$msg->intent_unique_id($value)Type:
StringThe id of the matched intent. Can be used to retrieve the corresponding intent information.
Google::Cloud::Contactcenterinsights::V1::Resources::SentimentData
The data for a sentiment annotation.
Inherits from Protobuf::Message.
Accessors
$msg->magnitude()/$msg->magnitude($value)Type:
FloatA non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
$msg->score()/$msg->score($value)Type:
FloatThe sentiment score between -1.0 (negative) and 1.0 (positive).
Google::Cloud::Contactcenterinsights::V1::Resources::IssueMatchData
The data for an issue match annotation.
Inherits from Protobuf::Message.
Accessors
$msg->issue_assignment()/$msg->issue_assignment($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueAssignment)Information about the issue's assignment.
Google::Cloud::Contactcenterinsights::V1::Resources::IssueModel
The issue model resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
$msg->display_name()/$msg->display_name($value)Type:
StringThe representative name for the issue model.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this issue model was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the issue model was updated.
$msg->issue_count()/$msg->issue_count($value)Type:
Int64Output only. Number of issues in this issue model.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::IssueModel::State)Output only. State of the model.
$msg->input_data_config()/$msg->input_data_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueModel::InputDataConfig)Configs for the input data that used to create the issue model.
$msg->training_stats()/$msg->training_stats($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueModelLabelStats)Output only. Immutable. The issue model's label statistics on its training data.
$msg->model_type()/$msg->model_type($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::IssueModel::ModelType)Type of the model.
$msg->language_code()/$msg->language_code($value)Type:
StringLanguage of the model.
Enum: IssueModel::State
STATE_UNSPECIFIED=>0UNDEPLOYED=>1DEPLOYING=>2DEPLOYED=>3UNDEPLOYING=>4DELETING=>5
Enum: IssueModel::ModelType
MODEL_TYPE_UNSPECIFIED=>0TYPE_V1=>1TYPE_V2=>2
Google::Cloud::Contactcenterinsights::V1::Resources::Issue
The issue resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
$msg->display_name()/$msg->display_name($value)Type:
StringThe representative name for the issue.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this issue was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time that this issue was updated.
$msg->sample_utterances()/$msg->sample_utterances($value)Type:
StringOutput only. Resource names of the sample representative utterances that match to this issue.
$msg->display_description()/$msg->display_description($value)Type:
StringRepresentative description of the issue.
Google::Cloud::Contactcenterinsights::V1::Resources::IssueModelLabelStats
Aggregated statistics about an issue model.
Inherits from Protobuf::Message.
Accessors
$msg->analyzed_conversations_count()/$msg->analyzed_conversations_count($value)Type:
Int64Number of conversations the issue model has analyzed at this point in time.
$msg->unclassified_conversations_count()/$msg->unclassified_conversations_count($value)Type:
Int64Number of analyzed conversations for which no issue was applicable at this point in time.
$msg->issue_stats()/$msg->issue_stats($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::IssueModelLabelStats::IssueStatsEntry)Statistics on each issue. Key is the issue's resource name.
Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatcher
The phrase matcher resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
$msg->revision_id()/$msg->revision_id($value)Type:
StringOutput only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567
$msg->version_tag()/$msg->version_tag($value)Type:
StringThe customized version tag to use for the phrase matcher. If not specified, it will default to `revision_id`.
$msg->revision_create_time()/$msg->revision_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable name of the phrase matcher.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::PhraseMatcher::PhraseMatcherType)Required. The type of this phrase matcher.
$msg->active()/$msg->active($value)Type:
BoolApplies the phrase matcher only when it is active.
$msg->phrase_match_rule_groups()/$msg->phrase_match_rule_groups($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRuleGroup)A list of phase match rule groups that are included in this matcher.
$msg->activation_update_time()/$msg->activation_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the activation status was updated.
$msg->role_match()/$msg->role_match($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::ConversationParticipant::Role)The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the phrase matcher was updated.
Enum: PhraseMatcher::PhraseMatcherType
PHRASE_MATCHER_TYPE_UNSPECIFIED=>0ALL_OF=>1ANY_OF=>2
Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRuleGroup
A message representing a rule in the phrase matcher.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::PhraseMatchRuleGroup::PhraseMatchRuleGroupType)Required. The type of this phrase match rule group.
$msg->phrase_match_rules()/$msg->phrase_match_rules($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRule)A list of phrase match rules that are included in this group.
Enum: PhraseMatchRuleGroup::PhraseMatchRuleGroupType
PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED=>0ALL_OF=>1ANY_OF=>2
Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRule
The data for a phrase match rule.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
StringRequired. The phrase to be matched.
$msg->negated()/$msg->negated($value)Type:
BoolSpecifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRuleConfig)Provides additional information about the rule that specifies how to apply the rule.
Google::Cloud::Contactcenterinsights::V1::Resources::PhraseMatchRuleConfig
Configuration information of a phrase match rule.
Inherits from Protobuf::Message.
Accessors
$msg->exact_match_config()/$msg->exact_match_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ExactMatchConfig)The configuration for the exact match rule.
Google::Cloud::Contactcenterinsights::V1::Resources::ExactMatchConfig
Exact match configuration.
Inherits from Protobuf::Message.
Accessors
$msg->case_sensitive()/$msg->case_sensitive($value)Type:
BoolWhether to consider case sensitivity when performing an exact match.
Google::Cloud::Contactcenterinsights::V1::Resources::Settings
The CCAI Insights project wide settings. Use these settings to configure the behavior of Insights. View these settings with [`getsettings`](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) and change the settings with [`updateSettings`](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the settings resource. Format: projects/{project}/locations/{location}/settings
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the settings was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the settings were last updated.
$msg->language_code()/$msg->language_code($value)Type:
StringA language code to be applied to each transcript segment unless the segment already specifies a language code. Language code defaults to "en-US" if it is neither specified on the segment nor here.
$msg->conversation_ttl()/$msg->conversation_ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)The default TTL for newly-created conversations. If a conversation has a specified expiration, that value will be used instead. Changing this value will not change the expiration of existing conversations. Conversations with no expire time persist until they are deleted.
$msg->pubsub_notification_settings()/$msg->pubsub_notification_settings($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Settings::PubsubNotificationSettingsEntry)A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic.
Keys are notification triggers. Supported keys are:
* "all-triggers": Notify each time any of the supported triggers occurs. * "create-analysis": Notify each time an analysis is created. * "create-conversation": Notify each time a conversation is created. * "export-insights-data": Notify each time an export is complete. * "ingest-conversations": Notify each time an IngestConversations LRO is complete. * "update-conversation": Notify each time a conversation is updated via UpdateConversation. * "upload-conversation": Notify when an UploadConversation LRO is complete.
Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}
$msg->analysis_config()/$msg->analysis_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::Settings::AnalysisConfig)Default analysis settings.
$msg->redaction_config()/$msg->redaction_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::RedactionConfig)Default DLP redaction resources to be applied while ingesting conversations. This applies to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversations coming from CCAI Platform.
$msg->speech_config()/$msg->speech_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SpeechConfig)Optional. Default Speech-to-Text resources to use while ingesting audio files. Optional, CCAI Insights will create a default if not provided. This applies to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversations coming from CCAI Platform.
Google::Cloud::Contactcenterinsights::V1::Resources::AnalysisRule
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this analysis rule was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which this analysis rule was updated.
$msg->display_name()/$msg->display_name($value)Type:
StringDisplay Name of the analysis rule.
$msg->conversation_filter()/$msg->conversation_filter($value)Type:
StringFilter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
$msg->annotator_selector()/$msg->annotator_selector($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotatorSelector)Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
$msg->analysis_percentage()/$msg->analysis_percentage($value)Type:
DoublePercentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation.
$msg->active()/$msg->active($value)Type:
BoolIf true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
Google::Cloud::Contactcenterinsights::V1::Resources::EncryptionSpec
A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec
$msg->kms_key()/$msg->kms_key($value)Type:
StringRequired. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by our default encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
Google::Cloud::Contactcenterinsights::V1::Resources::RedactionConfig
DLP resources used for redaction while ingesting conversations. DLP settings are applied to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversation coming from CCAI Platform. They are not applied to conversations ingested from the `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime integrations. When using Dialogflow / Agent Assist runtime integrations, redaction should be performed in Dialogflow / Agent Assist.
Inherits from Protobuf::Message.
Accessors
$msg->deidentify_template()/$msg->deidentify_template($value)Type:
StringThe fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`
$msg->inspect_template()/$msg->inspect_template($value)Type:
StringThe fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`
Google::Cloud::Contactcenterinsights::V1::Resources::SpeechConfig
Speech-to-Text configuration. Speech-to-Text settings are applied to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversation coming from CCAI Platform. They are not applied to conversations ingested from the `CreateConversation` endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->speech_recognizer()/$msg->speech_recognizer($value)Type:
StringThe fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}`
Google::Cloud::Contactcenterinsights::V1::Resources::RuntimeAnnotation
An annotation that was generated during the customer and agent interaction.
Inherits from Protobuf::Message.
Accessors
$msg->article_suggestion()/$msg->article_suggestion($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ArticleSuggestionData)Agent Assist Article Suggestion data.
$msg->faq_answer()/$msg->faq_answer($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::FaqAnswerData)Agent Assist FAQ answer data.
$msg->smart_reply()/$msg->smart_reply($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SmartReplyData)Agent Assist Smart Reply data.
$msg->smart_compose_suggestion()/$msg->smart_compose_suggestion($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SmartComposeSuggestionData)Agent Assist Smart Compose suggestion data.
$msg->dialogflow_interaction()/$msg->dialogflow_interaction($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::DialogflowInteractionData)Dialogflow interaction data.
$msg->conversation_summarization_suggestion()/$msg->conversation_summarization_suggestion($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ConversationSummarizationSuggestionData)Conversation summarization suggestion data.
$msg->annotation_id()/$msg->annotation_id($value)Type:
StringThe unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which this annotation was created.
$msg->start_boundary()/$msg->start_boundary($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotationBoundary)The boundary in the conversation where the annotation starts, inclusive.
$msg->end_boundary()/$msg->end_boundary($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotationBoundary)The boundary in the conversation where the annotation ends, inclusive.
$msg->answer_feedback()/$msg->answer_feedback($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnswerFeedback)The feedback that the customer has about the answer in `data`.
$msg->user_input()/$msg->user_input($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::RuntimeAnnotation::UserInput)Explicit input used for generating the answer
Google::Cloud::Contactcenterinsights::V1::Resources::AnswerFeedback
The feedback that the customer has about a certain answer in the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->correctness_level()/$msg->correctness_level($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::AnswerFeedback::CorrectnessLevel)The correctness level of an answer.
$msg->clicked()/$msg->clicked($value)Type:
BoolIndicates whether an answer or item was clicked by the human agent.
$msg->displayed()/$msg->displayed($value)Type:
BoolIndicates whether an answer or item was displayed to the human agent in the agent desktop UI.
Enum: AnswerFeedback::CorrectnessLevel
CORRECTNESS_LEVEL_UNSPECIFIED=>0NOT_CORRECT=>1PARTIALLY_CORRECT=>2FULLY_CORRECT=>3
Google::Cloud::Contactcenterinsights::V1::Resources::ArticleSuggestionData
Agent Assist Article Suggestion data.
Inherits from Protobuf::Message.
Accessors
$msg->title()/$msg->title($value)Type:
StringArticle title.
$msg->uri()/$msg->uri($value)Type:
StringArticle URI.
$msg->confidence_score()/$msg->confidence_score($value)Type:
FloatThe system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ArticleSuggestionData::MetadataEntry)Map that contains metadata about the Article Suggestion and the document that it originates from.
$msg->query_record()/$msg->query_record($value)Type:
StringThe name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
$msg->source()/$msg->source($value)Type:
StringThe knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}
Google::Cloud::Contactcenterinsights::V1::Resources::FaqAnswerData
Agent Assist frequently-asked-question answer data.
Inherits from Protobuf::Message.
Accessors
$msg->answer()/$msg->answer($value)Type:
StringThe piece of text from the `source` knowledge base document.
$msg->confidence_score()/$msg->confidence_score($value)Type:
FloatThe system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
$msg->question()/$msg->question($value)Type:
StringThe corresponding FAQ question.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::FaqAnswerData::MetadataEntry)Map that contains metadata about the FAQ answer and the document that it originates from.
$msg->query_record()/$msg->query_record($value)Type:
StringThe name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
$msg->source()/$msg->source($value)Type:
StringThe knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.
Google::Cloud::Contactcenterinsights::V1::Resources::SmartReplyData
Agent Assist Smart Reply data.
Inherits from Protobuf::Message.
Accessors
$msg->reply()/$msg->reply($value)Type:
StringThe content of the reply.
$msg->confidence_score()/$msg->confidence_score($value)Type:
DoubleThe system's confidence score that this reply is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SmartReplyData::MetadataEntry)Map that contains metadata about the Smart Reply and the document from which it originates.
$msg->query_record()/$msg->query_record($value)Type:
StringThe name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
Google::Cloud::Contactcenterinsights::V1::Resources::SmartComposeSuggestionData
Agent Assist Smart Compose suggestion data.
Inherits from Protobuf::Message.
Accessors
$msg->suggestion()/$msg->suggestion($value)Type:
StringThe content of the suggestion.
$msg->confidence_score()/$msg->confidence_score($value)Type:
DoubleThe system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::SmartComposeSuggestionData::MetadataEntry)Map that contains metadata about the Smart Compose suggestion and the document from which it originates.
$msg->query_record()/$msg->query_record($value)Type:
StringThe name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
Google::Cloud::Contactcenterinsights::V1::Resources::DialogflowInteractionData
Dialogflow interaction data.
Inherits from Protobuf::Message.
Accessors
$msg->dialogflow_intent_id()/$msg->dialogflow_intent_id($value)Type:
StringThe Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent}
$msg->confidence()/$msg->confidence($value)Type:
FloatThe confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
Google::Cloud::Contactcenterinsights::V1::Resources::ConversationSummarizationSuggestionData
Conversation summarization suggestion data.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringThe summarization content that is concatenated into one string.
$msg->text_sections()/$msg->text_sections($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ConversationSummarizationSuggestionData::TextSectionsEntry)The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.
$msg->confidence()/$msg->confidence($value)Type:
FloatThe confidence score of the summarization.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::ConversationSummarizationSuggestionData::MetadataEntry)A map that contains metadata about the summarization and the document from which it originates.
$msg->answer_record()/$msg->answer_record($value)Type:
StringThe name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}
Google::Cloud::Contactcenterinsights::V1::Resources::ConversationParticipant
The call participant speaking for a given utterance.
Inherits from Protobuf::Message.
Accessors
$msg->dialogflow_participant_name()/$msg->dialogflow_participant_name($value)Type:
StringThe name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
$msg->user_id()/$msg->user_id($value)Type:
StringA user-specified ID representing the participant.
$msg->dialogflow_participant()/$msg->dialogflow_participant($value)Type:
StringDeprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
$msg->obfuscated_external_user_id()/$msg->obfuscated_external_user_id($value)Type:
StringObfuscated user ID from Dialogflow.
$msg->role()/$msg->role($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::ConversationParticipant::Role)The role of the participant.
Enum: ConversationParticipant::Role
ROLE_UNSPECIFIED=>0HUMAN_AGENT=>1AUTOMATED_AGENT=>2END_USER=>3ANY_AGENT=>4
Google::Cloud::Contactcenterinsights::V1::Resources::View
The View resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable display name of the view.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this view was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the view was updated.
$msg->value()/$msg->value($value)Type:
StringString with specific view properties, must be non-empty.
Google::Cloud::Contactcenterinsights::V1::Resources::AnnotatorSelector
Selector of all available annotators and phrase matchers to run.
Inherits from Protobuf::Message.
Accessors
$msg->run_interruption_annotator()/$msg->run_interruption_annotator($value)Type:
BoolWhether to run the interruption annotator.
$msg->run_silence_annotator()/$msg->run_silence_annotator($value)Type:
BoolWhether to run the silence annotator.
$msg->run_phrase_matcher_annotator()/$msg->run_phrase_matcher_annotator($value)Type:
BoolWhether to run the active phrase matcher annotator(s).
$msg->phrase_matchers()/$msg->phrase_matchers($value)Type:
StringThe list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
$msg->run_sentiment_annotator()/$msg->run_sentiment_annotator($value)Type:
BoolWhether to run the sentiment annotator.
$msg->run_entity_annotator()/$msg->run_entity_annotator($value)Type:
BoolWhether to run the entity annotator.
$msg->run_intent_annotator()/$msg->run_intent_annotator($value)Type:
BoolWhether to run the intent annotator.
$msg->run_issue_model_annotator()/$msg->run_issue_model_annotator($value)Type:
BoolWhether to run the issue model annotator. A model should have already been deployed for this to take effect.
$msg->issue_models()/$msg->issue_models($value)Type:
StringThe issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.
$msg->run_summarization_annotator()/$msg->run_summarization_annotator($value)Type:
BoolWhether to run the summarization annotator.
$msg->summarization_config()/$msg->summarization_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotatorSelector::SummarizationConfig)Configuration for the summarization annotator.
$msg->run_qa_annotator()/$msg->run_qa_annotator($value)Type:
BoolWhether to run the QA annotator.
$msg->qa_config()/$msg->qa_config($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::AnnotatorSelector::QaConfig)Configuration for the QA annotator.
Google::Cloud::Contactcenterinsights::V1::Resources::QaQuestion
A single question to be scored by the Insights QA feature.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
$msg->abbreviation()/$msg->abbreviation($value)Type:
StringShort, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this question was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the question was updated.
$msg->question_body()/$msg->question_body($value)Type:
StringQuestion text. E.g., "Did the agent greet the customer?"
$msg->answer_instructions()/$msg->answer_instructions($value)Type:
StringInstructions describing how to determine the answer.
$msg->answer_choices()/$msg->answer_choices($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaQuestion::AnswerChoice)A list of valid answers to the question, which the LLM must choose from.
$msg->tags()/$msg->tags($value)Type:
StringUser-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
$msg->order()/$msg->order($value)Type:
Int32Defines the order of the question within its parent scorecard revision.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaQuestion::Metrics)Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
$msg->tuning_metadata()/$msg->tuning_metadata($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaQuestion::TuningMetadata)Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecard
A QaScorecard represents a collection of questions to be scored during analysis.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The scorecard name. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}
$msg->display_name()/$msg->display_name($value)Type:
StringThe user-specified display name of the scorecard.
$msg->description()/$msg->description($value)Type:
StringA text description explaining the intent of the scorecard.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this scorecard was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time at which the scorecard was updated.
Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecardRevision
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the scorecard revision. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
$msg->snapshot()/$msg->snapshot($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecard)The snapshot of the scorecard at the time of this revision's creation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp that the revision was created.
$msg->alternate_ids()/$msg->alternate_ids($value)Type:
StringOutput only. Alternative IDs for this revision of the scorecard, e.g., `latest`.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Contactcenterinsights::V1::QaScorecardRevision::State)Output only. State of the scorecard revision, indicating whether it's ready to be used in analysis.
Enum: QaScorecardRevision::State
STATE_UNSPECIFIED=>0EDITABLE=>12TRAINING=>2TRAINING_FAILED=>9READY=>11DELETING=>7TRAINING_CANCELLED=>14
Google::Cloud::Contactcenterinsights::V1::Resources::QaAnswer
An answer to a QaQuestion.
Inherits from Protobuf::Message.
Accessors
$msg->qa_question()/$msg->qa_question($value)Type:
StringThe QaQuestion answered by this answer.
$msg->conversation()/$msg->conversation($value)Type:
StringThe conversation the answer applies to.
$msg->question_body()/$msg->question_body($value)Type:
StringQuestion text. E.g., "Did the agent greet the customer?"
$msg->answer_value()/$msg->answer_value($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaAnswer::AnswerValue)The main answer value, incorporating any manual edits if they exist.
$msg->tags()/$msg->tags($value)Type:
StringUser-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
$msg->answer_sources()/$msg->answer_sources($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaAnswer::AnswerSource)List of all individual answers given to the question.
Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecardResult
The results of scoring a single conversation against a QaScorecard. Contains a collection of QaAnswers and aggregate score.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the scorecard result. Format: projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}
$msg->qa_scorecard_revision()/$msg->qa_scorecard_revision($value)Type:
StringThe QaScorecardRevision scored by this result.
$msg->conversation()/$msg->conversation($value)Type:
StringThe conversation scored by this result.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp that the revision was created.
$msg->agent_id()/$msg->agent_id($value)Type:
StringID of the agent that handled the conversation.
$msg->qa_answers()/$msg->qa_answers($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaAnswer)Set of QaAnswers represented in the result.
$msg->score()/$msg->score($value)Type:
DoubleThe overall numerical score of the result, incorporating any manual edits if they exist.
$msg->potential_score()/$msg->potential_score($value)Type:
DoubleThe maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation.
$msg->normalized_score()/$msg->normalized_score($value)Type:
DoubleThe normalized score, which is the score divided by the potential score. Any manual edits are included if they exist.
$msg->qa_tag_results()/$msg->qa_tag_results($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecardResult::QaTagResult)Collection of tags and their scores.
$msg->score_sources()/$msg->score_sources($value)Type:
Message(Google::Cloud::Contactcenterinsights::V1::Resources::QaScorecardResult::ScoreSource)List of all individual score sets.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Contactcenterinsights::V1::Resources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.