Class Intent.Message.Text.Builder (4.5.11)

public static final class Intent.Message.Text.Builder extends GeneratedMessageV3.Builder<Intent.Message.Text.Builder> implements Intent.Message.TextOrBuilder

The text response message.

Protobuf type google.cloud.dialogflow.v2.Intent.Message.Text

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllText(Iterable<String> values)

public Intent.Message.Text.Builder addAllText(Iterable<String> values)

Optional. The collection of the agent's responses.

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

Parameter
NameDescription
valuesIterable<String>

The text to add.

Returns
TypeDescription
Intent.Message.Text.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.Text.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

addText(String value)

public Intent.Message.Text.Builder addText(String value)

Optional. The collection of the agent's responses.

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

Parameter
NameDescription
valueString

The text to add.

Returns
TypeDescription
Intent.Message.Text.Builder

This builder for chaining.

addTextBytes(ByteString value)

public Intent.Message.Text.Builder addTextBytes(ByteString value)

Optional. The collection of the agent's responses.

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

Parameter
NameDescription
valueByteString

The bytes of the text to add.

Returns
TypeDescription
Intent.Message.Text.Builder

This builder for chaining.

build()

public Intent.Message.Text build()
Returns
TypeDescription
Intent.Message.Text

buildPartial()

public Intent.Message.Text buildPartial()
Returns
TypeDescription
Intent.Message.Text

clear()

public Intent.Message.Text.Builder clear()
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.Text.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.Text.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

clearText()

public Intent.Message.Text.Builder clearText()

Optional. The collection of the agent's responses.

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

Returns
TypeDescription
Intent.Message.Text.Builder

This builder for chaining.

clone()

public Intent.Message.Text.Builder clone()
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.Text getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.Text

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getText(int index)

public String getText(int index)

Optional. The collection of the agent's responses.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The text at the given index.

getTextBytes(int index)

public ByteString getTextBytes(int index)

Optional. The collection of the agent's responses.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the text at the given index.

getTextCount()

public int getTextCount()

Optional. The collection of the agent's responses.

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

Returns
TypeDescription
int

The count of text.

getTextList()

public ProtocolStringList getTextList()

Optional. The collection of the agent's responses.

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

Returns
TypeDescription
ProtocolStringList

A list containing the text.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.Text other)

public Intent.Message.Text.Builder mergeFrom(Intent.Message.Text other)
Parameter
NameDescription
otherIntent.Message.Text
Returns
TypeDescription
Intent.Message.Text.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.Text.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.Text.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Text.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.Text.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

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

public Intent.Message.Text.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides

setText(int index, String value)

public Intent.Message.Text.Builder setText(int index, String value)

Optional. The collection of the agent's responses.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The text to set.

Returns
TypeDescription
Intent.Message.Text.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Text.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.Text.Builder
Overrides