Class ConversationMessage.Builder (0.43.0)

public static final class ConversationMessage.Builder extends GeneratedMessageV3.Builder<ConversationMessage.Builder> implements ConversationMessageOrBuilder

Defines a conversation message.

Protobuf type google.cloud.discoveryengine.v1alpha.ConversationMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationMessage build()
Returns
Type Description
ConversationMessage

buildPartial()

public ConversationMessage buildPartial()
Returns
Type Description
ConversationMessage

clear()

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

clearCreateTime()

public ConversationMessage.Builder clearCreateTime()

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationMessage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public ConversationMessage.Builder clearMessage()
Returns
Type Description
ConversationMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReply()

public ConversationMessage.Builder clearReply()

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Returns
Type Description
ConversationMessage.Builder

clearUserInput()

public ConversationMessage.Builder clearUserInput()

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Returns
Type Description
ConversationMessage.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ConversationMessage getDefaultInstanceForType()
Returns
Type Description
ConversationMessage

getDescriptorForType()

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

getMessageCase()

public ConversationMessage.MessageCase getMessageCase()
Returns
Type Description
ConversationMessage.MessageCase

getReply()

public Reply getReply()

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Returns
Type Description
Reply

The reply.

getReplyBuilder()

public Reply.Builder getReplyBuilder()

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Returns
Type Description
Reply.Builder

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Returns
Type Description
ReplyOrBuilder

getUserInput()

public TextInput getUserInput()

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Returns
Type Description
TextInput

The userInput.

getUserInputBuilder()

public TextInput.Builder getUserInputBuilder()

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Returns
Type Description
TextInput.Builder

getUserInputOrBuilder()

public TextInputOrBuilder getUserInputOrBuilder()

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Returns
Type Description
TextInputOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasReply()

public boolean hasReply()

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Returns
Type Description
boolean

Whether the reply field is set.

hasUserInput()

public boolean hasUserInput()

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Returns
Type Description
boolean

Whether the userInput field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ConversationMessage.Builder mergeCreateTime(Timestamp value)

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversationMessage.Builder

mergeFrom(ConversationMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReply(Reply value)

public ConversationMessage.Builder mergeReply(Reply value)

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Parameter
Name Description
value Reply
Returns
Type Description
ConversationMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserInput(TextInput value)

public ConversationMessage.Builder mergeUserInput(TextInput value)

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Parameter
Name Description
value TextInput
Returns
Type Description
ConversationMessage.Builder

setCreateTime(Timestamp value)

public ConversationMessage.Builder setCreateTime(Timestamp value)

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ConversationMessage.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ConversationMessage.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Message creation timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConversationMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReply(Reply value)

public ConversationMessage.Builder setReply(Reply value)

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

Parameter
Name Description
value Reply
Returns
Type Description
ConversationMessage.Builder

setReply(Reply.Builder builderForValue)

public ConversationMessage.Builder setReply(Reply.Builder builderForValue)

Search reply.

.google.cloud.discoveryengine.v1alpha.Reply reply = 2;

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserInput(TextInput value)

public ConversationMessage.Builder setUserInput(TextInput value)

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

Parameter
Name Description
value TextInput
Returns
Type Description
ConversationMessage.Builder

setUserInput(TextInput.Builder builderForValue)

public ConversationMessage.Builder setUserInput(TextInput.Builder builderForValue)

User text input.

.google.cloud.discoveryengine.v1alpha.TextInput user_input = 1;

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