Class MessageEntry.Builder (4.55.0)

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

Represents a message entry of a conversation.

Protobuf type google.cloud.dialogflow.v2.MessageEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRole()

public MessageEntry.Builder clearRole()

Optional. Participant role of the message.

.google.cloud.dialogflow.v2.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.

clone()

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

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.v2.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.v2.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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MessageEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setRole(MessageEntry.Role value)

public MessageEntry.Builder setRole(MessageEntry.Role value)

Optional. Participant role of the message.

.google.cloud.dialogflow.v2.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.v2.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.

setUnknownFields(UnknownFieldSet unknownFields)

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