Class ConversationMessage.Builder (0.32.0)

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

Defines a conversation message.

Protobuf type google.cloud.discoveryengine.v1beta.ConversationMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationMessage build()
Returns
TypeDescription
ConversationMessage

buildPartial()

public ConversationMessage buildPartial()
Returns
TypeDescription
ConversationMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public ConversationMessage.Builder clearMessage()
Returns
TypeDescription
ConversationMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationMessage.Builder
Overrides

clearReply()

public ConversationMessage.Builder clearReply()

Search reply.

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

Returns
TypeDescription
ConversationMessage.Builder

clearUserInput()

public ConversationMessage.Builder clearUserInput()

User text input.

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

Returns
TypeDescription
ConversationMessage.Builder

clone()

public ConversationMessage.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Message creation timestamp.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ConversationMessage getDefaultInstanceForType()
Returns
TypeDescription
ConversationMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessageCase()

public ConversationMessage.MessageCase getMessageCase()
Returns
TypeDescription
ConversationMessage.MessageCase

getReply()

public Reply getReply()

Search reply.

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

Returns
TypeDescription
Reply

The reply.

getReplyBuilder()

public Reply.Builder getReplyBuilder()

Search reply.

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

Returns
TypeDescription
Reply.Builder

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Search reply.

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

Returns
TypeDescription
ReplyOrBuilder

getUserInput()

public TextInput getUserInput()

User text input.

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

Returns
TypeDescription
TextInput

The userInput.

getUserInputBuilder()

public TextInput.Builder getUserInputBuilder()

User text input.

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

Returns
TypeDescription
TextInput.Builder

getUserInputOrBuilder()

public TextInputOrBuilder getUserInputOrBuilder()

User text input.

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

Returns
TypeDescription
TextInputOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Message creation timestamp.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasReply()

public boolean hasReply()

Search reply.

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

Returns
TypeDescription
boolean

Whether the reply field is set.

hasUserInput()

public boolean hasUserInput()

User text input.

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

Returns
TypeDescription
boolean

Whether the userInput field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(ConversationMessage other)

public ConversationMessage.Builder mergeFrom(ConversationMessage other)
Parameter
NameDescription
otherConversationMessage
Returns
TypeDescription
ConversationMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConversationMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConversationMessage.Builder
Overrides

mergeReply(Reply value)

public ConversationMessage.Builder mergeReply(Reply value)

Search reply.

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

Parameter
NameDescription
valueReply
Returns
TypeDescription
ConversationMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserInput(TextInput value)

public ConversationMessage.Builder mergeUserInput(TextInput value)

User text input.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ConversationMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationMessage.Builder
Overrides

setReply(Reply value)

public ConversationMessage.Builder setReply(Reply value)

Search reply.

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

Parameter
NameDescription
valueReply
Returns
TypeDescription
ConversationMessage.Builder

setReply(Reply.Builder builderForValue)

public ConversationMessage.Builder setReply(Reply.Builder builderForValue)

Search reply.

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

Parameter
NameDescription
builderForValueReply.Builder
Returns
TypeDescription
ConversationMessage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserInput(TextInput value)

public ConversationMessage.Builder setUserInput(TextInput value)

User text input.

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

Parameter
NameDescription
valueTextInput
Returns
TypeDescription
ConversationMessage.Builder

setUserInput(TextInput.Builder builderForValue)

public ConversationMessage.Builder setUserInput(TextInput.Builder builderForValue)

User text input.

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

Parameter
NameDescription
builderForValueTextInput.Builder
Returns
TypeDescription
ConversationMessage.Builder