Class Conversation.Builder (0.35.0)

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

External conversation proto definition.

Protobuf type google.cloud.discoveryengine.v1beta.Conversation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMessages(Iterable<? extends ConversationMessage> values)

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

Conversation messages.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1beta.ConversationMessage>
Returns
TypeDescription
Conversation.Builder

addMessages(ConversationMessage value)

public Conversation.Builder addMessages(ConversationMessage value)

Conversation messages.

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

Parameter
NameDescription
valueConversationMessage
Returns
TypeDescription
Conversation.Builder

addMessages(ConversationMessage.Builder builderForValue)

public Conversation.Builder addMessages(ConversationMessage.Builder builderForValue)

Conversation messages.

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

Parameter
NameDescription
builderForValueConversationMessage.Builder
Returns
TypeDescription
Conversation.Builder

addMessages(int index, ConversationMessage value)

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

Conversation messages.

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

Parameters
NameDescription
indexint
valueConversationMessage
Returns
TypeDescription
Conversation.Builder

addMessages(int index, ConversationMessage.Builder builderForValue)

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

Conversation messages.

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

Parameters
NameDescription
indexint
builderForValueConversationMessage.Builder
Returns
TypeDescription
Conversation.Builder

addMessagesBuilder()

public ConversationMessage.Builder addMessagesBuilder()

Conversation messages.

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

Returns
TypeDescription
ConversationMessage.Builder

addMessagesBuilder(int index)

public ConversationMessage.Builder addMessagesBuilder(int index)

Conversation messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConversationMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Conversation.Builder
Overrides

build()

public Conversation build()
Returns
TypeDescription
Conversation

buildPartial()

public Conversation buildPartial()
Returns
TypeDescription
Conversation

clear()

public Conversation.Builder clear()
Returns
TypeDescription
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
TypeDescription
Conversation.Builder

clearField(Descriptors.FieldDescriptor field)

public Conversation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Conversation.Builder
Overrides

clearMessages()

public Conversation.Builder clearMessages()

Conversation messages.

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

Returns
TypeDescription
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
TypeDescription
Conversation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Conversation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Conversation.Builder

clearState()

public Conversation.Builder clearState()

The state of the Conversation.

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

Returns
TypeDescription
Conversation.Builder

This builder for chaining.

clearUserPseudoId()

public Conversation.Builder clearUserPseudoId()

A unique identifier for tracking users.

string user_pseudo_id = 3;

Returns
TypeDescription
Conversation.Builder

This builder for chaining.

clone()

public Conversation.Builder clone()
Returns
TypeDescription
Conversation.Builder
Overrides

getDefaultInstanceForType()

public Conversation getDefaultInstanceForType()
Returns
TypeDescription
Conversation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getMessages(int index)

public ConversationMessage getMessages(int index)

Conversation messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConversationMessage

getMessagesBuilder(int index)

public ConversationMessage.Builder getMessagesBuilder(int index)

Conversation messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConversationMessage.Builder

getMessagesBuilderList()

public List<ConversationMessage.Builder> getMessagesBuilderList()

Conversation messages.

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

Returns
TypeDescription
List<Builder>

getMessagesCount()

public int getMessagesCount()

Conversation messages.

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

Returns
TypeDescription
int

getMessagesList()

public List<ConversationMessage> getMessagesList()

Conversation messages.

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

Returns
TypeDescription
List<ConversationMessage>

getMessagesOrBuilder(int index)

public ConversationMessageOrBuilder getMessagesOrBuilder(int index)

Conversation messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConversationMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends ConversationMessageOrBuilder> getMessagesOrBuilderList()

Conversation messages.

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

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1beta.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getState()

public Conversation.State getState()

The state of the Conversation.

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

Returns
TypeDescription
Conversation.State

The state.

getStateValue()

public int getStateValue()

The state of the Conversation.

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

Returns
TypeDescription
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
TypeDescription
String

The userPseudoId.

getUserPseudoIdBytes()

public ByteString getUserPseudoIdBytes()

A unique identifier for tracking users.

string user_pseudo_id = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Conversation.Builder

mergeFrom(Conversation other)

public Conversation.Builder mergeFrom(Conversation other)
Parameter
NameDescription
otherConversation
Returns
TypeDescription
Conversation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Conversation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Conversation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Conversation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Conversation.Builder
Overrides

removeMessages(int index)

public Conversation.Builder removeMessages(int index)

Conversation messages.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Conversation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Conversation.Builder
Overrides

setMessages(int index, ConversationMessage value)

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

Conversation messages.

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

Parameters
NameDescription
indexint
valueConversationMessage
Returns
TypeDescription
Conversation.Builder

setMessages(int index, ConversationMessage.Builder builderForValue)

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

Conversation messages.

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

Parameters
NameDescription
indexint
builderForValueConversationMessage.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Conversation.Builder

setState(Conversation.State value)

public Conversation.Builder setState(Conversation.State value)

The state of the Conversation.

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

Parameter
NameDescription
valueConversation.State

The state to set.

Returns
TypeDescription
Conversation.Builder

This builder for chaining.

setStateValue(int value)

public Conversation.Builder setStateValue(int value)

The state of the Conversation.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Conversation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Conversation.Builder
Overrides

setUserPseudoId(String value)

public Conversation.Builder setUserPseudoId(String value)

A unique identifier for tracking users.

string user_pseudo_id = 3;

Parameter
NameDescription
valueString

The userPseudoId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for userPseudoId to set.

Returns
TypeDescription
Conversation.Builder

This builder for chaining.