Class UserUtterance.Builder (0.54.0)

public static final class UserUtterance.Builder extends GeneratedMessageV3.Builder<UserUtterance.Builder> implements UserUtteranceOrBuilder

UserUtterance represents one message sent by the customer.

Protobuf type google.cloud.dialogflow.cx.v3beta1.UserUtterance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserUtterance build()
Returns
Type Description
UserUtterance

buildPartial()

public UserUtterance buildPartial()
Returns
Type Description
UserUtterance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public UserUtterance.Builder clearText()

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserUtterance.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UserUtterance getDefaultInstanceForType()
Returns
Type Description
UserUtterance

getDescriptorForType()

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

getText()

public String getText()

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserUtterance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setText(String value)

public UserUtterance.Builder setText(String value)

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
UserUtterance.Builder

This builder for chaining.

setTextBytes(ByteString value)

public UserUtterance.Builder setTextBytes(ByteString value)

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
UserUtterance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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