Class Intent.Message.RbmText.Builder (4.50.0)

public static final class Intent.Message.RbmText.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmText.Builder> implements Intent.Message.RbmTextOrBuilder

Rich Business Messaging (RBM) text response with suggestions.

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

Static Methods

getDescriptor()

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

Methods

addAllRbmSuggestion(Iterable<? extends Intent.Message.RbmSuggestion> values)

public Intent.Message.RbmText.Builder addAllRbmSuggestion(Iterable<? extends Intent.Message.RbmSuggestion> values)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
Returns
Type Description
Intent.Message.RbmText.Builder

addRbmSuggestion(Intent.Message.RbmSuggestion value)

public Intent.Message.RbmText.Builder addRbmSuggestion(Intent.Message.RbmSuggestion value)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
value Intent.Message.RbmSuggestion
Returns
Type Description
Intent.Message.RbmText.Builder

addRbmSuggestion(Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmText.Builder addRbmSuggestion(Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
builderForValue Intent.Message.RbmSuggestion.Builder
Returns
Type Description
Intent.Message.RbmText.Builder

addRbmSuggestion(int index, Intent.Message.RbmSuggestion value)

public Intent.Message.RbmText.Builder addRbmSuggestion(int index, Intent.Message.RbmSuggestion value)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameters
Name Description
index int
value Intent.Message.RbmSuggestion
Returns
Type Description
Intent.Message.RbmText.Builder

addRbmSuggestion(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmText.Builder addRbmSuggestion(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameters
Name Description
index int
builderForValue Intent.Message.RbmSuggestion.Builder
Returns
Type Description
Intent.Message.RbmText.Builder

addRbmSuggestionBuilder()

public Intent.Message.RbmSuggestion.Builder addRbmSuggestionBuilder()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
Intent.Message.RbmSuggestion.Builder

addRbmSuggestionBuilder(int index)

public Intent.Message.RbmSuggestion.Builder addRbmSuggestionBuilder(int index)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRbmSuggestion()

public Intent.Message.RbmText.Builder clearRbmSuggestion()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
Intent.Message.RbmText.Builder

clearText()

public Intent.Message.RbmText.Builder clearText()

Required. Text sent and displayed to the user.

string text = 1;

Returns
Type Description
Intent.Message.RbmText.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getRbmSuggestion(int index)

public Intent.Message.RbmSuggestion getRbmSuggestion(int index)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion

getRbmSuggestionBuilder(int index)

public Intent.Message.RbmSuggestion.Builder getRbmSuggestionBuilder(int index)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion.Builder

getRbmSuggestionBuilderList()

public List<Intent.Message.RbmSuggestion.Builder> getRbmSuggestionBuilderList()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
List<Builder>

getRbmSuggestionCount()

public int getRbmSuggestionCount()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
int

getRbmSuggestionList()

public List<Intent.Message.RbmSuggestion> getRbmSuggestionList()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
List<RbmSuggestion>

getRbmSuggestionOrBuilder(int index)

public Intent.Message.RbmSuggestionOrBuilder getRbmSuggestionOrBuilder(int index)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestionOrBuilder

getRbmSuggestionOrBuilderList()

public List<? extends Intent.Message.RbmSuggestionOrBuilder> getRbmSuggestionOrBuilderList()

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>

getText()

public String getText()

Required. Text sent and displayed to the user.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. Text sent and displayed to the user.

string text = 1;

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(Intent.Message.RbmText other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRbmSuggestion(int index)

public Intent.Message.RbmText.Builder removeRbmSuggestion(int index)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmText.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRbmSuggestion(int index, Intent.Message.RbmSuggestion value)

public Intent.Message.RbmText.Builder setRbmSuggestion(int index, Intent.Message.RbmSuggestion value)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameters
Name Description
index int
value Intent.Message.RbmSuggestion
Returns
Type Description
Intent.Message.RbmText.Builder

setRbmSuggestion(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmText.Builder setRbmSuggestion(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. One or more suggestions to show to the user.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion rbm_suggestion = 2;

Parameters
Name Description
index int
builderForValue Intent.Message.RbmSuggestion.Builder
Returns
Type Description
Intent.Message.RbmText.Builder

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

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

setText(String value)

public Intent.Message.RbmText.Builder setText(String value)

Required. Text sent and displayed to the user.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Intent.Message.RbmText.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Intent.Message.RbmText.Builder setTextBytes(ByteString value)

Required. Text sent and displayed to the user.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Intent.Message.RbmText.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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