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 |
---|
Type | Description |
int | |
public static final int CALL_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DATA_SOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DIALOGFLOW_INTENTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DURATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LATEST_ANALYSIS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MEDIUM_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OBFUSCATED_USER_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RUNTIME_ANNOTATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int START_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TRANSCRIPT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TTL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TURN_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Conversation getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Conversation.Builder newBuilder()
public static Conversation.Builder newBuilder(Conversation prototype)
public static Conversation parseDelimitedFrom(InputStream input)
public static Conversation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Conversation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(ByteString data)
public static Conversation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(CodedInputStream input)
public static Conversation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(InputStream input)
public static Conversation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(ByteBuffer data)
public static Conversation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Conversation> parser()
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 |
---|
Name | Description |
key | String
|
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 |
---|
Name | Description |
key | String
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Type | Description |
ByteString | The bytes for agentId.
|
public Conversation.CallMetadata getCallMetadata()
Call-specific metadata.
.google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7;
public Conversation.CallMetadataOrBuilder getCallMetadataOrBuilder()
Call-specific metadata.
.google.cloud.contactcenterinsights.v1.Conversation.CallMetadata call_metadata = 7;
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 |
---|
Type | Description |
Timestamp | The createTime.
|
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];
public ConversationDataSource getDataSource()
The source of the audio and transcription for the conversation.
.google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2;
public ConversationDataSourceOrBuilder getDataSourceOrBuilder()
The source of the audio and transcription for the conversation.
.google.cloud.contactcenterinsights.v1.ConversationDataSource data_source = 2;
public Conversation getDefaultInstanceForType()
public Map<String,DialogflowIntent> getDialogflowIntents()
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 |
---|
Type | Description |
int | |
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];
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];
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 |
---|
Name | Description |
key | String
|
public Duration getDuration()
Output only. The duration of the conversation.
.google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
Duration | The duration.
|
public DurationOrBuilder getDurationOrBuilder()
Output only. The duration of the conversation.
.google.protobuf.Duration duration = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Conversation.ExpirationCase getExpirationCase()
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 |
---|
Type | Description |
Timestamp | The expireTime.
|
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;
public Map<String,String> getLabels()
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 |
---|
Type | Description |
int | |
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;
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;
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 |
---|
Name | Description |
key | String
|
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];
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];
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()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
Overrides
public Timestamp getStartTime()
The time at which the conversation started.
.google.protobuf.Timestamp start_time = 17;
Returns |
---|
Type | Description |
Timestamp | The startTime.
|
public TimestampOrBuilder getStartTimeOrBuilder()
The time at which the conversation started.
.google.protobuf.Timestamp start_time = 17;
public Conversation.Transcript getTranscript()
Output only. The conversation transcript.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Conversation.TranscriptOrBuilder getTranscriptOrBuilder()
Output only. The conversation transcript.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript transcript = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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()
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 |
---|
Type | Description |
Timestamp | The updateTime.
|
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];
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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public Conversation.Builder newBuilderForType()
protected Conversation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Conversation.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides