public final class Conversation extends GeneratedMessage implements ConversationOrBuilder
A conversation represents an interaction between an end user and the CES app.
Protobuf type google.cloud.ces.v1.Conversation
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
APP_VERSION_FIELD_NUMBER
public static final int APP_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CHANNEL_TYPE_FIELD_NUMBER
public static final int CHANNEL_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DEPLOYMENT_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENTRY_AGENT_FIELD_NUMBER
public static final int ENTRY_AGENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int INPUT_TYPES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TURNS_FIELD_NUMBER
public static final int TURNS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TURN_COUNT_FIELD_NUMBER
public static final int TURN_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Conversation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Conversation.Builder newBuilder()
newBuilder(Conversation prototype)
public static Conversation.Builder newBuilder(Conversation prototype)
public static Conversation parseDelimitedFrom(InputStream input)
public static Conversation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Conversation parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Conversation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
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)
parseFrom(ByteBuffer data)
public static Conversation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Conversation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Conversation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAppVersion()
public String getAppVersion()
Output only. The version of the app used for processing the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/versions/{version}
string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The appVersion.
|
getAppVersionBytes()
public ByteString getAppVersionBytes()
Output only. The version of the app used for processing the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/versions/{version}
string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for appVersion.
|
getChannelType() (deprecated)
public Conversation.ChannelType getChannelType()
Deprecated. google.cloud.ces.v1.Conversation.channel_type is deprecated. See
google/cloud/ces/v1/conversation.proto;l=126
DEPRECATED. Please use
input_types instead.
.google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true];
getChannelTypeValue() (deprecated)
public int getChannelTypeValue()
Deprecated. google.cloud.ces.v1.Conversation.channel_type is deprecated. See
google/cloud/ces/v1/conversation.proto;l=126
DEPRECATED. Please use
input_types instead.
.google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for channelType.
|
getDefaultInstanceForType()
public Conversation getDefaultInstanceForType()
getDeployment()
public String getDeployment()
Output only. The deployment of the app used for processing the
conversation. Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The deployment.
|
getDeploymentBytes()
public ByteString getDeploymentBytes()
Output only. The deployment of the app used for processing the
conversation. Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for deployment.
|
getEndTime()
public Timestamp getEndTime()
Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The endTime.
|
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEntryAgent()
public String getEntryAgent()
Output only. The agent that initially handles the conversation. If not
specified, the conversation is handled by the root agent. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The entryAgent.
|
getEntryAgentBytes()
public ByteString getEntryAgentBytes()
Output only. The agent that initially handles the conversation. If not
specified, the conversation is handled by the root agent. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for entryAgent.
|
public Conversation.InputType getInputTypes(int index)
Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
public int getInputTypesCount()
Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The count of inputTypes.
|
public List<Conversation.InputType> getInputTypesList()
Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<InputType> |
A list containing the inputTypes.
|
public int getInputTypesValue(int index)
Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire of inputTypes at the given index.
|
public List<Integer> getInputTypesValueList()
Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for inputTypes.
|
getLanguageCode()
public String getLanguageCode()
Output only. The language code of the conversation.
string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Output only. The language code of the conversation.
string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
getMessages(int index) (deprecated)
public Message getMessages(int index)
Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter |
| Name |
Description |
index |
int
|
getMessagesCount() (deprecated)
public int getMessagesCount()
Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Returns |
| Type |
Description |
int |
|
getMessagesList() (deprecated)
public List<Message> getMessagesList()
Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
getMessagesOrBuilder(int index) (deprecated)
public MessageOrBuilder getMessagesOrBuilder(int index)
Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter |
| Name |
Description |
index |
int
|
getMessagesOrBuilderList() (deprecated)
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1.MessageOrBuilder> |
|
getName()
Identifier. The unique identifier of the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The unique identifier of the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Conversation> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSource()
public Conversation.Source getSource()
Output only. Indicate the source of the conversation.
.google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSourceValue()
public int getSourceValue()
Output only. Indicate the source of the conversation.
.google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for source.
|
getStartTime()
public Timestamp getStartTime()
Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The startTime.
|
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTurnCount()
public int getTurnCount()
Output only. The number of turns in the conversation.
int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The turnCount.
|
getTurns(int index)
public Conversation.Turn getTurns(int index)
Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getTurnsCount()
public int getTurnsCount()
Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getTurnsList()
public List<Conversation.Turn> getTurnsList()
Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
getTurnsOrBuilder(int index)
public Conversation.TurnOrBuilder getTurnsOrBuilder(int index)
Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getTurnsOrBuilderList()
public List<? extends Conversation.TurnOrBuilder> getTurnsOrBuilderList()
Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1.Conversation.TurnOrBuilder> |
|
hasEndTime()
public boolean hasEndTime()
Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the endTime field is set.
|
hasStartTime()
public boolean hasStartTime()
Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the startTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Conversation.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Conversation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Conversation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides