Class Message.Builder (0.1.0)

public static final class Message.Builder extends GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder

A message from an interaction between the user and the system.

Protobuf type google.cloud.geminidataanalytics.v1beta.Message

Implements

MessageOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Message build()
Returns
Type Description
Message

buildPartial()

public Message buildPartial()
Returns
Type Description
Message

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Message.Builder clearKind()
Returns
Type Description
Message.Builder

clearMessageId()

public Message.Builder clearMessageId()

Optional. unique id of the message in the conversation for persistence.

string message_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Message.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSystemMessage()

public Message.Builder clearSystemMessage()

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Returns
Type Description
Message.Builder

clearTimestamp()

public Message.Builder clearTimestamp()

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Message.Builder

clearUserMessage()

public Message.Builder clearUserMessage()

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Returns
Type Description
Message.Builder

clone()

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

getDefaultInstanceForType()

public Message getDefaultInstanceForType()
Returns
Type Description
Message

getDescriptorForType()

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

getKindCase()

public Message.KindCase getKindCase()
Returns
Type Description
Message.KindCase

getMessageId()

public String getMessageId()

Optional. unique id of the message in the conversation for persistence.

string message_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The messageId.

getMessageIdBytes()

public ByteString getMessageIdBytes()

Optional. unique id of the message in the conversation for persistence.

string message_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for messageId.

getSystemMessage()

public SystemMessage getSystemMessage()

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Returns
Type Description
SystemMessage

The systemMessage.

getSystemMessageBuilder()

public SystemMessage.Builder getSystemMessageBuilder()

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Returns
Type Description
SystemMessage.Builder

getSystemMessageOrBuilder()

public SystemMessageOrBuilder getSystemMessageOrBuilder()

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Returns
Type Description
SystemMessageOrBuilder

getTimestamp()

public Timestamp getTimestamp()

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUserMessage()

public UserMessage getUserMessage()

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Returns
Type Description
UserMessage

The userMessage.

getUserMessageBuilder()

public UserMessage.Builder getUserMessageBuilder()

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Returns
Type Description
UserMessage.Builder

getUserMessageOrBuilder()

public UserMessageOrBuilder getUserMessageOrBuilder()

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Returns
Type Description
UserMessageOrBuilder

hasSystemMessage()

public boolean hasSystemMessage()

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Returns
Type Description
boolean

Whether the systemMessage field is set.

hasTimestamp()

public boolean hasTimestamp()

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the timestamp field is set.

hasUserMessage()

public boolean hasUserMessage()

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Returns
Type Description
boolean

Whether the userMessage field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Message other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSystemMessage(SystemMessage value)

public Message.Builder mergeSystemMessage(SystemMessage value)

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Parameter
Name Description
value SystemMessage
Returns
Type Description
Message.Builder

mergeTimestamp(Timestamp value)

public Message.Builder mergeTimestamp(Timestamp value)

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Message.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserMessage(UserMessage value)

public Message.Builder mergeUserMessage(UserMessage value)

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Parameter
Name Description
value UserMessage
Returns
Type Description
Message.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessageId(String value)

public Message.Builder setMessageId(String value)

Optional. unique id of the message in the conversation for persistence.

string message_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The messageId to set.

Returns
Type Description
Message.Builder

This builder for chaining.

setMessageIdBytes(ByteString value)

public Message.Builder setMessageIdBytes(ByteString value)

Optional. unique id of the message in the conversation for persistence.

string message_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for messageId to set.

Returns
Type Description
Message.Builder

This builder for chaining.

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

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

setSystemMessage(SystemMessage value)

public Message.Builder setSystemMessage(SystemMessage value)

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Parameter
Name Description
value SystemMessage
Returns
Type Description
Message.Builder

setSystemMessage(SystemMessage.Builder builderForValue)

public Message.Builder setSystemMessage(SystemMessage.Builder builderForValue)

A message from the system in response to the user.

.google.cloud.geminidataanalytics.v1beta.SystemMessage system_message = 3;

Parameter
Name Description
builderForValue SystemMessage.Builder
Returns
Type Description
Message.Builder

setTimestamp(Timestamp value)

public Message.Builder setTimestamp(Timestamp value)

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Message.Builder

setTimestamp(Timestamp.Builder builderForValue)

public Message.Builder setTimestamp(Timestamp.Builder builderForValue)

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

.google.protobuf.Timestamp timestamp = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Message.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserMessage(UserMessage value)

public Message.Builder setUserMessage(UserMessage value)

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Parameter
Name Description
value UserMessage
Returns
Type Description
Message.Builder

setUserMessage(UserMessage.Builder builderForValue)

public Message.Builder setUserMessage(UserMessage.Builder builderForValue)

A message from the user that is interacting with the system.

.google.cloud.geminidataanalytics.v1beta.UserMessage user_message = 2;

Parameter
Name Description
builderForValue UserMessage.Builder
Returns
Type Description
Message.Builder