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
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmText.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Intent.Message.RbmText build()
Returns
buildPartial()
public Intent.Message.RbmText buildPartial()
Returns
clear()
public Intent.Message.RbmText.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.RbmText.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.RbmText.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearText()
public Intent.Message.RbmText.Builder clearText()
Required. Text sent and displayed to the user.
string text = 1;
Returns
clone()
public Intent.Message.RbmText.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Intent.Message.RbmText getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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()
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Intent.Message.RbmText other)
public Intent.Message.RbmText.Builder mergeFrom(Intent.Message.RbmText other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Intent.Message.RbmText.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Intent.Message.RbmText.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmText.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmText.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.RbmText.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmText.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides