public static final class Conversation.Builder extends GeneratedMessage.Builder<Conversation.Builder> implements ConversationOrBuilderA conversation represents an interaction between an end user and the CES app.
Protobuf type google.cloud.ces.v1.Conversation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Conversation.BuilderImplements
ConversationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllInputTypes(Iterable<? extends Conversation.InputType> values)
public Conversation.Builder addAllInputTypes(Iterable<? extends Conversation.InputType> values)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 |
values |
Iterable<? extends com.google.cloud.ces.v1.Conversation.InputType>The inputTypes to add. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
addAllInputTypesValue(Iterable<Integer> values)
public Conversation.Builder addAllInputTypesValue(Iterable<Integer> values)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 |
values |
Iterable<Integer>The enum numeric values on the wire for inputTypes to add. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
addAllMessages(Iterable<? extends Message> values) (deprecated)
public Conversation.Builder addAllMessages(Iterable<? extends Message> values)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.ces.v1.Message> |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addAllTurns(Iterable<? extends Conversation.Turn> values)
public Conversation.Builder addAllTurns(Iterable<? extends Conversation.Turn> values)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.ces.v1.Conversation.Turn> |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addInputTypes(Conversation.InputType value)
public Conversation.Builder addInputTypes(Conversation.InputType value)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 |
value |
Conversation.InputTypeThe inputTypes to add. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
addInputTypesValue(int value)
public Conversation.Builder addInputTypesValue(int value)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 |
value |
intThe enum numeric value on the wire for inputTypes to add. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
addMessages(Message value) (deprecated)
public Conversation.Builder addMessages(Message value)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
Message |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addMessages(Message.Builder builderForValue) (deprecated)
public Conversation.Builder addMessages(Message.Builder builderForValue)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Message.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addMessages(int index, Message value) (deprecated)
public Conversation.Builder addMessages(int index, Message value)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Message |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addMessages(int index, Message.Builder builderForValue) (deprecated)
public Conversation.Builder addMessages(int index, Message.Builder builderForValue)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Message.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addMessagesBuilder() (deprecated)
public Message.Builder addMessagesBuilder()Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Message.Builder |
|
addMessagesBuilder(int index) (deprecated)
public Message.Builder addMessagesBuilder(int index)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Message.Builder |
|
addTurns(Conversation.Turn value)
public Conversation.Builder addTurns(Conversation.Turn value)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Conversation.Turn |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addTurns(Conversation.Turn.Builder builderForValue)
public Conversation.Builder addTurns(Conversation.Turn.Builder builderForValue)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Conversation.Turn.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addTurns(int index, Conversation.Turn value)
public Conversation.Builder addTurns(int index, Conversation.Turn value)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Conversation.Turn |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addTurns(int index, Conversation.Turn.Builder builderForValue)
public Conversation.Builder addTurns(int index, Conversation.Turn.Builder builderForValue)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Conversation.Turn.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
addTurnsBuilder()
public Conversation.Turn.Builder addTurnsBuilder()Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Conversation.Turn.Builder |
|
addTurnsBuilder(int index)
public Conversation.Turn.Builder addTurnsBuilder(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 |
| Returns | |
|---|---|
| Type | Description |
Conversation.Turn.Builder |
|
build()
public Conversation build()| Returns | |
|---|---|
| Type | Description |
Conversation |
|
buildPartial()
public Conversation buildPartial()| Returns | |
|---|---|
| Type | Description |
Conversation |
|
clear()
public Conversation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
clearAppVersion()
public Conversation.Builder clearAppVersion() 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 |
Conversation.Builder |
This builder for chaining. |
clearChannelType() (deprecated)
public Conversation.Builder clearChannelType()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 |
Conversation.Builder |
This builder for chaining. |
clearDeployment()
public Conversation.Builder clearDeployment() 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 |
Conversation.Builder |
This builder for chaining. |
clearEndTime()
public Conversation.Builder clearEndTime()Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
clearEntryAgent()
public Conversation.Builder clearEntryAgent() 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 |
Conversation.Builder |
This builder for chaining. |
clearInputTypes()
public Conversation.Builder clearInputTypes()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 |
Conversation.Builder |
This builder for chaining. |
clearLanguageCode()
public Conversation.Builder clearLanguageCode()Output only. The language code of the conversation.
string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
clearMessages() (deprecated)
public Conversation.Builder clearMessages()Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
clearName()
public Conversation.Builder clearName() 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 |
Conversation.Builder |
This builder for chaining. |
clearSource()
public Conversation.Builder clearSource()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 |
Conversation.Builder |
This builder for chaining. |
clearStartTime()
public Conversation.Builder clearStartTime()Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
clearTurnCount()
public Conversation.Builder clearTurnCount()Output only. The number of turns in the conversation.
int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
clearTurns()
public Conversation.Builder clearTurns()Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
Conversation.ChannelType |
The channelType. |
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()| Returns | |
|---|---|
| Type | Description |
Conversation |
|
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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. |
getInputTypes(int index)
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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Conversation.InputType |
The inputTypes at the given index. |
getInputTypesCount()
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. |
getInputTypesList()
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. |
getInputTypesValue(int index)
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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of inputTypes at the given index. |
getInputTypesValueList()
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 |
| Returns | |
|---|---|
| Type | Description |
Message |
|
getMessagesBuilder(int index) (deprecated)
public Message.Builder getMessagesBuilder(int index)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Message.Builder |
|
getMessagesBuilderList() (deprecated)
public List<Message.Builder> getMessagesBuilderList()Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Message> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
MessageOrBuilder |
|
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()
public String 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. |
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];
| Returns | |
|---|---|
| Type | Description |
Conversation.Source |
The source. |
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. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
Conversation.Turn |
|
getTurnsBuilder(int index)
public Conversation.Turn.Builder getTurnsBuilder(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 |
| Returns | |
|---|---|
| Type | Description |
Conversation.Turn.Builder |
|
getTurnsBuilderList()
public List<Conversation.Turn.Builder> getTurnsBuilderList()Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Turn> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
Conversation.TurnOrBuilder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndTime(Timestamp value)
public Conversation.Builder mergeEndTime(Timestamp value)Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
mergeFrom(Conversation other)
public Conversation.Builder mergeFrom(Conversation other)| Parameter | |
|---|---|
| Name | Description |
other |
Conversation |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Conversation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Conversation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
mergeStartTime(Timestamp value)
public Conversation.Builder mergeStartTime(Timestamp value)Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
removeMessages(int index) (deprecated)
public Conversation.Builder removeMessages(int index)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
removeTurns(int index)
public Conversation.Builder removeTurns(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 |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setAppVersion(String value)
public Conversation.Builder setAppVersion(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe appVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setAppVersionBytes(ByteString value)
public Conversation.Builder setAppVersionBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for appVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setChannelType(Conversation.ChannelType value) (deprecated)
public Conversation.Builder setChannelType(Conversation.ChannelType value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Conversation.ChannelTypeThe channelType to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setChannelTypeValue(int value) (deprecated)
public Conversation.Builder setChannelTypeValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for channelType to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setDeployment(String value)
public Conversation.Builder setDeployment(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deployment to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setDeploymentBytes(ByteString value)
public Conversation.Builder setDeploymentBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deployment to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setEndTime(Timestamp value)
public Conversation.Builder setEndTime(Timestamp value)Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setEndTime(Timestamp.Builder builderForValue)
public Conversation.Builder setEndTime(Timestamp.Builder builderForValue)Output only. Timestamp when the conversation was completed.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setEntryAgent(String value)
public Conversation.Builder setEntryAgent(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe entryAgent to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setEntryAgentBytes(ByteString value)
public Conversation.Builder setEntryAgentBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for entryAgent to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setInputTypes(int index, Conversation.InputType value)
public Conversation.Builder setInputTypes(int index, Conversation.InputType value)Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
Conversation.InputTypeThe inputTypes to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setInputTypesValue(int index, int value)
public Conversation.Builder setInputTypesValue(int index, int value)Output only. The input types of the conversation.
repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for inputTypes to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setLanguageCode(String value)
public Conversation.Builder setLanguageCode(String value)Output only. The language code of the conversation.
string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public Conversation.Builder setLanguageCodeBytes(ByteString value)Output only. The language code of the conversation.
string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setMessages(int index, Message value) (deprecated)
public Conversation.Builder setMessages(int index, Message value)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Message |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setMessages(int index, Message.Builder builderForValue) (deprecated)
public Conversation.Builder setMessages(int index, Message.Builder builderForValue)Deprecated. Use turns instead.
repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Message.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setName(String value)
public Conversation.Builder setName(String value) Identifier. The unique identifier of the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Conversation.Builder setNameBytes(ByteString value) Identifier. The unique identifier of the conversation.
Format:
projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setSource(Conversation.Source value)
public Conversation.Builder setSource(Conversation.Source value)Output only. Indicate the source of the conversation.
.google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Conversation.SourceThe source to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setSourceValue(int value)
public Conversation.Builder setSourceValue(int value)Output only. Indicate the source of the conversation.
.google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for source to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setStartTime(Timestamp value)
public Conversation.Builder setStartTime(Timestamp value)Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setStartTime(Timestamp.Builder builderForValue)
public Conversation.Builder setStartTime(Timestamp.Builder builderForValue)Output only. Timestamp when the conversation was created.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setTurnCount(int value)
public Conversation.Builder setTurnCount(int value)Output only. The number of turns in the conversation.
int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe turnCount to set. |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
This builder for chaining. |
setTurns(int index, Conversation.Turn value)
public Conversation.Builder setTurns(int index, Conversation.Turn value)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Conversation.Turn |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|
setTurns(int index, Conversation.Turn.Builder builderForValue)
public Conversation.Builder setTurns(int index, Conversation.Turn.Builder builderForValue)Required. The turns in the conversation.
repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Conversation.Turn.Builder |
| Returns | |
|---|---|
| Type | Description |
Conversation.Builder |
|