Class Intent.Message.RbmText.Builder (4.3.1)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.RbmSuggestion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.RbmText.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Intent.Message.RbmText.Builder

clearText()

public Intent.Message.RbmText.Builder clearText()

Required. Text sent and displayed to the user.

string text = 1;

Returns
TypeDescription
Intent.Message.RbmText.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. Text sent and displayed to the user.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.RbmText other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmText.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.RbmText.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmText.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
Intent.Message.RbmText.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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