Class Intent.Message.Suggestion.Builder (4.21.0)

public static final class Intent.Message.Suggestion.Builder extends GeneratedMessageV3.Builder<Intent.Message.Suggestion.Builder> implements Intent.Message.SuggestionOrBuilder

The suggestion chip message that the user can tap to quickly post a reply to the conversation.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.Suggestion build()
Returns
Type Description
Intent.Message.Suggestion

buildPartial()

public Intent.Message.Suggestion buildPartial()
Returns
Type Description
Intent.Message.Suggestion

clear()

public Intent.Message.Suggestion.Builder clear()
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.Suggestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.Suggestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides

clearTitle()

public Intent.Message.Suggestion.Builder clearTitle()

Required. The text shown the in the suggestion chip.

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

Returns
Type Description
Intent.Message.Suggestion.Builder

This builder for chaining.

clone()

public Intent.Message.Suggestion.Builder clone()
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.Suggestion getDefaultInstanceForType()
Returns
Type Description
Intent.Message.Suggestion

getDescriptorForType()

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

getTitle()

public String getTitle()

Required. The text shown the in the suggestion chip.

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

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The text shown the in the suggestion chip.

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

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.Suggestion other)

public Intent.Message.Suggestion.Builder mergeFrom(Intent.Message.Suggestion other)
Parameter
Name Description
other Intent.Message.Suggestion
Returns
Type Description
Intent.Message.Suggestion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Suggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTitle(String value)

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

Required. The text shown the in the suggestion chip.

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

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Intent.Message.Suggestion.Builder

This builder for chaining.

setTitleBytes(ByteString value)

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

Required. The text shown the in the suggestion chip.

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

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Intent.Message.Suggestion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.Suggestion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.Suggestion.Builder
Overrides