Class ConversationMessage (0.30.0)

public final class ConversationMessage extends GeneratedMessageV3 implements ConversationMessageOrBuilder

Defines a conversation message.

Protobuf type google.cloud.discoveryengine.v1beta.ConversationMessage

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

REPLY_FIELD_NUMBER

public static final int REPLY_FIELD_NUMBER
Field Value
TypeDescription
int

USER_INPUT_FIELD_NUMBER

public static final int USER_INPUT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConversationMessage getDefaultInstance()
Returns
TypeDescription
ConversationMessage

getDescriptor()

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

newBuilder()

public static ConversationMessage.Builder newBuilder()
Returns
TypeDescription
ConversationMessage.Builder

newBuilder(ConversationMessage prototype)

public static ConversationMessage.Builder newBuilder(ConversationMessage prototype)
Parameter
NameDescription
prototypeConversationMessage
Returns
TypeDescription
ConversationMessage.Builder

parseDelimitedFrom(InputStream input)

public static ConversationMessage parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConversationMessage parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConversationMessage parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConversationMessage parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConversationMessage parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConversationMessage parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConversationMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationMessage
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConversationMessage> parser()
Returns
TypeDescription
Parser<ConversationMessage>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

getMessageCase()

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

getParserForType()

public Parser<ConversationMessage> getParserForType()
Returns
TypeDescription
Parser<ConversationMessage>
Overrides

getReply()

public Reply getReply()

Search reply.

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

Returns
TypeDescription
Reply

The reply.

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Search reply.

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

Returns
TypeDescription
ReplyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUserInput()

public TextInput getUserInput()

User text input.

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

Returns
TypeDescription
TextInput

The userInput.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConversationMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConversationMessage.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException