Class MessageEntry.Builder (4.89.0)

public static final class MessageEntry.Builder extends GeneratedMessage.Builder<MessageEntry.Builder> implements MessageEntryOrBuilder

Represents a message entry of a conversation.

Protobuf type google.cloud.dialogflow.v2beta1.MessageEntry

Static Methods

getDescriptor()

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

Methods

build()

public MessageEntry build()
Returns
Type Description
MessageEntry

buildPartial()

public MessageEntry buildPartial()
Returns
Type Description
MessageEntry

clear()

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

clearCreateTime()

public MessageEntry.Builder clearCreateTime()

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Builder

clearLanguageCode()

public MessageEntry.Builder clearLanguageCode()

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

clearRole()

public MessageEntry.Builder clearRole()

Optional. Participant role of the message.

.google.cloud.dialogflow.v2beta1.MessageEntry.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

clearText()

public MessageEntry.Builder clearText()

Optional. Transcript content of the message.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MessageEntry getDefaultInstanceForType()
Returns
Type Description
MessageEntry

getDescriptorForType()

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

getLanguageCode()

public String getLanguageCode()

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getRole()

public MessageEntry.Role getRole()

Optional. Participant role of the message.

.google.cloud.dialogflow.v2beta1.MessageEntry.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageEntry.Role

The role.

getRoleValue()

public int getRoleValue()

Optional. Participant role of the message.

.google.cloud.dialogflow.v2beta1.MessageEntry.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for role.

getText()

public String getText()

Optional. Transcript content of the message.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Optional. Transcript content of the message.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

hasCreateTime()

public boolean hasCreateTime()

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MessageEntry.Builder mergeCreateTime(Timestamp value)

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
MessageEntry.Builder

mergeFrom(MessageEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCreateTime(Timestamp value)

public MessageEntry.Builder setCreateTime(Timestamp value)

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
MessageEntry.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MessageEntry.Builder setCreateTime(Timestamp.Builder builderForValue)

Optional. Create time of the message entry.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MessageEntry.Builder

setLanguageCode(String value)

public MessageEntry.Builder setLanguageCode(String value)

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public MessageEntry.Builder setLanguageCodeBytes(ByteString value)

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

setRole(MessageEntry.Role value)

public MessageEntry.Builder setRole(MessageEntry.Role value)

Optional. Participant role of the message.

.google.cloud.dialogflow.v2beta1.MessageEntry.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MessageEntry.Role

The role to set.

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

setRoleValue(int value)

public MessageEntry.Builder setRoleValue(int value)

Optional. Participant role of the message.

.google.cloud.dialogflow.v2beta1.MessageEntry.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

setText(String value)

public MessageEntry.Builder setText(String value)

Optional. Transcript content of the message.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
MessageEntry.Builder

This builder for chaining.

setTextBytes(ByteString value)

public MessageEntry.Builder setTextBytes(ByteString value)

Optional. Transcript content of the message.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
MessageEntry.Builder

This builder for chaining.