Class ConversationContext.Builder (4.57.0)

public static final class ConversationContext.Builder extends GeneratedMessageV3.Builder<ConversationContext.Builder> implements ConversationContextOrBuilder

Context of the conversation, including transcripts.

Protobuf type google.cloud.dialogflow.v2.ConversationContext

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMessageEntries(Iterable<? extends MessageEntry> values)

public ConversationContext.Builder addAllMessageEntries(Iterable<? extends MessageEntry> values)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.MessageEntry>
Returns
Type Description
ConversationContext.Builder

addMessageEntries(MessageEntry value)

public ConversationContext.Builder addMessageEntries(MessageEntry value)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MessageEntry
Returns
Type Description
ConversationContext.Builder

addMessageEntries(MessageEntry.Builder builderForValue)

public ConversationContext.Builder addMessageEntries(MessageEntry.Builder builderForValue)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MessageEntry.Builder
Returns
Type Description
ConversationContext.Builder

addMessageEntries(int index, MessageEntry value)

public ConversationContext.Builder addMessageEntries(int index, MessageEntry value)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value MessageEntry
Returns
Type Description
ConversationContext.Builder

addMessageEntries(int index, MessageEntry.Builder builderForValue)

public ConversationContext.Builder addMessageEntries(int index, MessageEntry.Builder builderForValue)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue MessageEntry.Builder
Returns
Type Description
ConversationContext.Builder

addMessageEntriesBuilder()

public MessageEntry.Builder addMessageEntriesBuilder()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Builder

addMessageEntriesBuilder(int index)

public MessageEntry.Builder addMessageEntriesBuilder(int index)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MessageEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationContext.Builder
Overrides

build()

public ConversationContext build()
Returns
Type Description
ConversationContext

buildPartial()

public ConversationContext buildPartial()
Returns
Type Description
ConversationContext

clear()

public ConversationContext.Builder clear()
Returns
Type Description
ConversationContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConversationContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConversationContext.Builder
Overrides

clearMessageEntries()

public ConversationContext.Builder clearMessageEntries()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConversationContext.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversationContext.Builder
Overrides

clone()

public ConversationContext.Builder clone()
Returns
Type Description
ConversationContext.Builder
Overrides

getDefaultInstanceForType()

public ConversationContext getDefaultInstanceForType()
Returns
Type Description
ConversationContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessageEntries(int index)

public MessageEntry getMessageEntries(int index)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MessageEntry

getMessageEntriesBuilder(int index)

public MessageEntry.Builder getMessageEntriesBuilder(int index)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MessageEntry.Builder

getMessageEntriesBuilderList()

public List<MessageEntry.Builder> getMessageEntriesBuilderList()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getMessageEntriesCount()

public int getMessageEntriesCount()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMessageEntriesList()

public List<MessageEntry> getMessageEntriesList()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<MessageEntry>

getMessageEntriesOrBuilder(int index)

public MessageEntryOrBuilder getMessageEntriesOrBuilder(int index)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MessageEntryOrBuilder

getMessageEntriesOrBuilderList()

public List<? extends MessageEntryOrBuilder> getMessageEntriesOrBuilderList()

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.MessageEntryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversationContext other)

public ConversationContext.Builder mergeFrom(ConversationContext other)
Parameter
Name Description
other ConversationContext
Returns
Type Description
ConversationContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConversationContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConversationContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConversationContext.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationContext.Builder
Overrides

removeMessageEntries(int index)

public ConversationContext.Builder removeMessageEntries(int index)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConversationContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationContext.Builder
Overrides

setMessageEntries(int index, MessageEntry value)

public ConversationContext.Builder setMessageEntries(int index, MessageEntry value)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value MessageEntry
Returns
Type Description
ConversationContext.Builder

setMessageEntries(int index, MessageEntry.Builder builderForValue)

public ConversationContext.Builder setMessageEntries(int index, MessageEntry.Builder builderForValue)

Optional. List of message transcripts in the conversation.

repeated .google.cloud.dialogflow.v2.MessageEntry message_entries = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue MessageEntry.Builder
Returns
Type Description
ConversationContext.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConversationContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversationContext.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationContext.Builder
Overrides