Class AgentUtterance.Builder (0.64.0)

public static final class AgentUtterance.Builder extends GeneratedMessageV3.Builder<AgentUtterance.Builder> implements AgentUtteranceOrBuilder

AgentUtterance represents one message sent by the agent.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AgentUtterance build()
Returns
Type Description
AgentUtterance

buildPartial()

public AgentUtterance buildPartial()
Returns
Type Description
AgentUtterance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public AgentUtterance.Builder clearText()

Required. Message content in text.

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

Returns
Type Description
AgentUtterance.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AgentUtterance getDefaultInstanceForType()
Returns
Type Description
AgentUtterance

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(AgentUtterance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setText(String value)

public AgentUtterance.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
AgentUtterance.Builder

This builder for chaining.

setTextBytes(ByteString value)

public AgentUtterance.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
AgentUtterance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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