Class Intent.Message.QuickReplies.Builder (4.3.1)

public static final class Intent.Message.QuickReplies.Builder extends GeneratedMessageV3.Builder<Intent.Message.QuickReplies.Builder> implements Intent.Message.QuickRepliesOrBuilder

The quick replies response message.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies

Methods

addAllQuickReplies(Iterable<String> values)

public Intent.Message.QuickReplies.Builder addAllQuickReplies(Iterable<String> values)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameter
NameDescription
valuesIterable<String>

The quickReplies to add.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

addQuickReplies(String value)

public Intent.Message.QuickReplies.Builder addQuickReplies(String value)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameter
NameDescription
valueString

The quickReplies to add.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

addQuickRepliesBytes(ByteString value)

public Intent.Message.QuickReplies.Builder addQuickRepliesBytes(ByteString value)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameter
NameDescription
valueByteString

The bytes of the quickReplies to add.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuickReplies()

public Intent.Message.QuickReplies.Builder clearQuickReplies()

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

clearTitle()

public Intent.Message.QuickReplies.Builder clearTitle()

Optional. The title of the collection of quick replies.

string title = 1;

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getQuickReplies(int index)

public String getQuickReplies(int index)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The quickReplies at the given index.

getQuickRepliesBytes(int index)

public ByteString getQuickRepliesBytes(int index)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the quickReplies at the given index.

getQuickRepliesCount()

public int getQuickRepliesCount()

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Returns
TypeDescription
int

The count of quickReplies.

getQuickRepliesList()

public ProtocolStringList getQuickRepliesList()

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the quickReplies.

getTitle()

public String getTitle()

Optional. The title of the collection of quick replies.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The title of the collection of quick replies.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.QuickReplies other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuickReplies(int index, String value)

public Intent.Message.QuickReplies.Builder setQuickReplies(int index, String value)

Optional. The collection of quick replies.

repeated string quick_replies = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The quickReplies to set.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

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

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

setTitle(String value)

public Intent.Message.QuickReplies.Builder setTitle(String value)

Optional. The title of the collection of quick replies.

string title = 1;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Intent.Message.QuickReplies.Builder setTitleBytes(ByteString value)

Optional. The title of the collection of quick replies.

string title = 1;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Intent.Message.QuickReplies.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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