Class Conversation.Builder (0.38.0)

public static final class Conversation.Builder extends GeneratedMessageV3.Builder<Conversation.Builder> implements ConversationOrBuilder

External conversation proto definition.

Protobuf type google.cloud.discoveryengine.v1.Conversation

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends ConversationMessage> values)

public Conversation.Builder addAllMessages(Iterable<? extends ConversationMessage> values)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.ConversationMessage>
Returns
Type Description
Conversation.Builder

addMessages(ConversationMessage value)

public Conversation.Builder addMessages(ConversationMessage value)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
value ConversationMessage
Returns
Type Description
Conversation.Builder

addMessages(ConversationMessage.Builder builderForValue)

public Conversation.Builder addMessages(ConversationMessage.Builder builderForValue)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
builderForValue ConversationMessage.Builder
Returns
Type Description
Conversation.Builder

addMessages(int index, ConversationMessage value)

public Conversation.Builder addMessages(int index, ConversationMessage value)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameters
Name Description
index int
value ConversationMessage
Returns
Type Description
Conversation.Builder

addMessages(int index, ConversationMessage.Builder builderForValue)

public Conversation.Builder addMessages(int index, ConversationMessage.Builder builderForValue)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameters
Name Description
index int
builderForValue ConversationMessage.Builder
Returns
Type Description
Conversation.Builder

addMessagesBuilder()

public ConversationMessage.Builder addMessagesBuilder()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
ConversationMessage.Builder

addMessagesBuilder(int index)

public ConversationMessage.Builder addMessagesBuilder(int index)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
index int
Returns
Type Description
ConversationMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

clearEndTime()

public Conversation.Builder clearEndTime()

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Conversation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public Conversation.Builder clearMessages()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
Conversation.Builder

clearName()

public Conversation.Builder clearName()

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/* or project/*/locations/global/collections/{collection}/engines/*/conversations/*.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Conversation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public Conversation.Builder clearStartTime()

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Conversation.Builder

clearState()

public Conversation.Builder clearState()

The state of the Conversation.

.google.cloud.discoveryengine.v1.Conversation.State state = 2;

Returns
Type Description
Conversation.Builder

This builder for chaining.

clearUserPseudoId()

public Conversation.Builder clearUserPseudoId()

A unique identifier for tracking users.

string user_pseudo_id = 3;

Returns
Type Description
Conversation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Conversation getDefaultInstanceForType()
Returns
Type Description
Conversation

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getMessages(int index)

public ConversationMessage getMessages(int index)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
index int
Returns
Type Description
ConversationMessage

getMessagesBuilder(int index)

public ConversationMessage.Builder getMessagesBuilder(int index)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
index int
Returns
Type Description
ConversationMessage.Builder

getMessagesBuilderList()

public List<ConversationMessage.Builder> getMessagesBuilderList()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
int

getMessagesList()

public List<ConversationMessage> getMessagesList()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
List<ConversationMessage>

getMessagesOrBuilder(int index)

public ConversationMessageOrBuilder getMessagesOrBuilder(int index)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
index int
Returns
Type Description
ConversationMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends ConversationMessageOrBuilder> getMessagesOrBuilderList()

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.ConversationMessageOrBuilder>

getName()

public String getName()

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/* or project/*/locations/global/collections/{collection}/engines/*/conversations/*.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/* or project/*/locations/global/collections/{collection}/engines/*/conversations/*.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getStartTime()

public Timestamp getStartTime()

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public Conversation.State getState()

The state of the Conversation.

.google.cloud.discoveryengine.v1.Conversation.State state = 2;

Returns
Type Description
Conversation.State

The state.

getStateValue()

public int getStateValue()

The state of the Conversation.

.google.cloud.discoveryengine.v1.Conversation.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUserPseudoId()

public String getUserPseudoId()

A unique identifier for tracking users.

string user_pseudo_id = 3;

Returns
Type Description
String

The userPseudoId.

getUserPseudoIdBytes()

public ByteString getUserPseudoIdBytes()

A unique identifier for tracking users.

string user_pseudo_id = 3;

Returns
Type Description
ByteString

The bytes for userPseudoId.

hasEndTime()

public boolean hasEndTime()

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Conversation.Builder mergeEndTime(Timestamp value)

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public Conversation.Builder mergeStartTime(Timestamp value)

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Conversation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public Conversation.Builder removeMessages(int index)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameter
Name Description
index int
Returns
Type Description
Conversation.Builder

setEndTime(Timestamp value)

public Conversation.Builder setEndTime(Timestamp value)

Output only. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.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. The time the conversation finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessages(int index, ConversationMessage value)

public Conversation.Builder setMessages(int index, ConversationMessage value)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameters
Name Description
index int
value ConversationMessage
Returns
Type Description
Conversation.Builder

setMessages(int index, ConversationMessage.Builder builderForValue)

public Conversation.Builder setMessages(int index, ConversationMessage.Builder builderForValue)

Conversation messages.

repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4;

Parameters
Name Description
index int
builderForValue ConversationMessage.Builder
Returns
Type Description
Conversation.Builder

setName(String value)

public Conversation.Builder setName(String value)

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/* or project/*/locations/global/collections/{collection}/engines/*/conversations/*.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Conversation.Builder setNameBytes(ByteString value)

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/* or project/*/locations/global/collections/{collection}/engines/*/conversations/*.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public Conversation.Builder setStartTime(Timestamp value)

Output only. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.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. The time the conversation started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Builder

setState(Conversation.State value)

public Conversation.Builder setState(Conversation.State value)

The state of the Conversation.

.google.cloud.discoveryengine.v1.Conversation.State state = 2;

Parameter
Name Description
value Conversation.State

The state to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.

setStateValue(int value)

public Conversation.Builder setStateValue(int value)

The state of the Conversation.

.google.cloud.discoveryengine.v1.Conversation.State state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserPseudoId(String value)

public Conversation.Builder setUserPseudoId(String value)

A unique identifier for tracking users.

string user_pseudo_id = 3;

Parameter
Name Description
value String

The userPseudoId to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.

setUserPseudoIdBytes(ByteString value)

public Conversation.Builder setUserPseudoIdBytes(ByteString value)

A unique identifier for tracking users.

string user_pseudo_id = 3;

Parameter
Name Description
value ByteString

The bytes for userPseudoId to set.

Returns
Type Description
Conversation.Builder

This builder for chaining.