public final class Conversation extends GeneratedMessageV3 implements ConversationOrBuilder
The conversation resource.
Protobuf type google.cloud.contactcenterinsights.v1.Conversation
Static Fields
public static final int AGENT_ID_FIELD_NUMBER
Field Value
public static final int CALL_METADATA_FIELD_NUMBER
Field Value
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
public static final int DIALOGFLOW_INTENTS_FIELD_NUMBER
Field Value
public static final int DURATION_FIELD_NUMBER
Field Value
public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
public static final int LATEST_ANALYSIS_FIELD_NUMBER
Field Value
public static final int MEDIUM_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int OBFUSCATED_USER_ID_FIELD_NUMBER
Field Value
public static final int RUNTIME_ANNOTATIONS_FIELD_NUMBER
Field Value
public static final int START_TIME_FIELD_NUMBER
Field Value
public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
public static final int TTL_FIELD_NUMBER
Field Value
public static final int TURN_COUNT_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
public static Conversation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Conversation.Builder newBuilder()
Returns
public static Conversation.Builder newBuilder(Conversation prototype)
Parameter
Returns
public static Conversation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Conversation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Conversation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Conversation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Conversation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Conversation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Conversation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Conversation> parser()
Returns
Methods
public boolean containsDialogflowIntents(String key)
Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}
map<string, .google.cloud.contactcenterinsights.v1.DialogflowIntent> dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public boolean containsLabels(String key)
A map for the user to specify any custom fields. A maximum of 20 labels per
conversation is allowed, with a maximum of 256 characters per entry.
map<string, string> labels = 6;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public String getAgentId()
An opaque, user-specified string representing the human agent who handled
the conversation.
string agent_id = 5;
Returns
Type | Description |
String | The agentId.
|
public ByteString getAgentIdBytes()
An opaque, user-specified string representing the human agent who handled
the conversation.
string agent_id = 5;
Returns
public Conversation.CallMetadata getCallMetadata()
Call-specific metadata.
.google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7;
Returns
public Conversation.CallMetadataOrBuilder getCallMetadataOrBuilder()
Call-specific metadata.
.google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7;
Returns
public Timestamp getCreateTime()
Output only. The time at which the conversation was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which the conversation was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public ConversationDataSource getDataSource()
The source of the audio and transcription for the conversation.
.google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2;
Returns
public ConversationDataSourceOrBuilder getDataSourceOrBuilder()
The source of the audio and transcription for the conversation.
.google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2;
Returns
public Conversation getDefaultInstanceForType()
Returns
public Map<String,DialogflowIntent> getDialogflowIntents()
Returns
public int getDialogflowIntentsCount()
Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}
map<string, .google.cloud.contactcenterinsights.v1.DialogflowIntent> dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Map<String,DialogflowIntent> getDialogflowIntentsMap()
Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}
map<string, .google.cloud.contactcenterinsights.v1.DialogflowIntent> dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public DialogflowIntent getDialogflowIntentsOrDefault(String key, DialogflowIntent defaultValue)
Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}
map<string, .google.cloud.contactcenterinsights.v1.DialogflowIntent> dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
public DialogflowIntent getDialogflowIntentsOrThrow(String key)
Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}
map<string, .google.cloud.contactcenterinsights.v1.DialogflowIntent> dialogflow_intents = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public Duration getDuration()
Output only. The duration of the conversation.
.google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public DurationOrBuilder getDurationOrBuilder()
Output only. The duration of the conversation.
.google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Conversation.ExpirationCase getExpirationCase()
Returns
public Timestamp getExpireTime()
The time at which this conversation should expire. After this time, the
conversation data and any associated analyses will be deleted.
.google.protobuf.Timestamp expire_time = 15;
Returns
public TimestampOrBuilder getExpireTimeOrBuilder()
The time at which this conversation should expire. After this time, the
conversation data and any associated analyses will be deleted.
.google.protobuf.Timestamp expire_time = 15;
Returns
public Map<String,String> getLabels()
Returns
public int getLabelsCount()
A map for the user to specify any custom fields. A maximum of 20 labels per
conversation is allowed, with a maximum of 256 characters per entry.
map<string, string> labels = 6;
Returns
public Map<String,String> getLabelsMap()
A map for the user to specify any custom fields. A maximum of 20 labels per
conversation is allowed, with a maximum of 256 characters per entry.
map<string, string> labels = 6;
Returns
public String getLabelsOrDefault(String key, String defaultValue)
A map for the user to specify any custom fields. A maximum of 20 labels per
conversation is allowed, with a maximum of 256 characters per entry.
map<string, string> labels = 6;
Parameters
Returns
public String getLabelsOrThrow(String key)
A map for the user to specify any custom fields. A maximum of 20 labels per
conversation is allowed, with a maximum of 256 characters per entry.
map<string, string> labels = 6;
Parameter
Returns
public String getLanguageCode()
A user-specified language code for the conversation.
string language_code = 14;
Returns
Type | Description |
String | The languageCode.
|
public ByteString getLanguageCodeBytes()
A user-specified language code for the conversation.
string language_code = 14;
Returns
Type | Description |
ByteString | The bytes for languageCode.
|
public Analysis getLatestAnalysis()
Output only. The conversation's latest analysis, if one exists.
.google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
Analysis | The latestAnalysis.
|
public AnalysisOrBuilder getLatestAnalysisOrBuilder()
Output only. The conversation's latest analysis, if one exists.
.google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Conversation.Medium getMedium()
Immutable. The conversation medium, if unspecified will default to
PHONE_CALL.
.google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 9 [(.google.api.field_behavior) = IMMUTABLE];
Returns
public int getMediumValue()
Immutable. The conversation medium, if unspecified will default to
PHONE_CALL.
.google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 9 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
int | The enum numeric value on the wire for medium.
|
public Conversation.MetadataCase getMetadataCase()
Returns
Immutable. The resource name of the conversation.
Format:
projects/{project}/locations/{location}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Immutable. The resource name of the conversation.
Format:
projects/{project}/locations/{location}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns
public String getObfuscatedUserId()
Obfuscated user ID which the customer sent to us.
string obfuscated_user_id = 21;
Returns
Type | Description |
String | The obfuscatedUserId.
|
public ByteString getObfuscatedUserIdBytes()
Obfuscated user ID which the customer sent to us.
string obfuscated_user_id = 21;
Returns
Type | Description |
ByteString | The bytes for obfuscatedUserId.
|
public Parser<Conversation> getParserForType()
Returns
Overrides
public RuntimeAnnotation getRuntimeAnnotations(int index)
Output only. The annotations that were generated during the customer and
agent interaction.
repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public int getRuntimeAnnotationsCount()
Output only. The annotations that were generated during the customer and
agent interaction.
repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public List<RuntimeAnnotation> getRuntimeAnnotationsList()
Output only. The annotations that were generated during the customer and
agent interaction.
repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public RuntimeAnnotationOrBuilder getRuntimeAnnotationsOrBuilder(int index)
Output only. The annotations that were generated during the customer and
agent interaction.
repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public List<? extends RuntimeAnnotationOrBuilder> getRuntimeAnnotationsOrBuilderList()
Output only. The annotations that were generated during the customer and
agent interaction.
repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.contactcenterinsights.v1.RuntimeAnnotationOrBuilder> | |
public int getSerializedSize()
Returns
Overrides
public Timestamp getStartTime()
The time at which the conversation started.
.google.protobuf.Timestamp start_time = 17;
Returns
public TimestampOrBuilder getStartTimeOrBuilder()
The time at which the conversation started.
.google.protobuf.Timestamp start_time = 17;
Returns
public Conversation.Transcript getTranscript()
Output only. The conversation transcript.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Conversation.TranscriptOrBuilder getTranscriptOrBuilder()
Output only. The conversation transcript.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Input only. The TTL for this resource. If specified, then this TTL will
be used to calculate the expire time.
.google.protobuf.Duration ttl = 16 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
public DurationOrBuilder getTtlOrBuilder()
Input only. The TTL for this resource. If specified, then this TTL will
be used to calculate the expire time.
.google.protobuf.Duration ttl = 16 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
public int getTurnCount()
Output only. The number of turns in the conversation.
int32 turn_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The turnCount.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
Output only. The most recent time at which the conversation was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The most recent time at which the conversation was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public boolean hasCallMetadata()
Call-specific metadata.
.google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7;
Returns
Type | Description |
boolean | Whether the callMetadata field is set.
|
public boolean hasCreateTime()
Output only. The time at which the conversation was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasDataSource()
The source of the audio and transcription for the conversation.
.google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2;
Returns
Type | Description |
boolean | Whether the dataSource field is set.
|
public boolean hasDuration()
Output only. The duration of the conversation.
.google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the duration field is set.
|
public boolean hasExpireTime()
The time at which this conversation should expire. After this time, the
conversation data and any associated analyses will be deleted.
.google.protobuf.Timestamp expire_time = 15;
Returns
Type | Description |
boolean | Whether the expireTime field is set.
|
public boolean hasLatestAnalysis()
Output only. The conversation's latest analysis, if one exists.
.google.cloud.contactcenterinsights.v1.Analysis latest_analysis = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the latestAnalysis field is set.
|
public boolean hasStartTime()
The time at which the conversation started.
.google.protobuf.Timestamp start_time = 17;
Returns
Type | Description |
boolean | Whether the startTime field is set.
|
public boolean hasTranscript()
Output only. The conversation transcript.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the transcript field is set.
|
Input only. The TTL for this resource. If specified, then this TTL will
be used to calculate the expire time.
.google.protobuf.Duration ttl = 16 [(.google.api.field_behavior) = INPUT_ONLY];
Returns
Type | Description |
boolean | Whether the ttl field is set.
|
public boolean hasUpdateTime()
Output only. The most recent time at which the conversation was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Conversation.Builder newBuilderForType()
Returns
protected Conversation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Conversation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions