Class Intent.Message.RbmCardContent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.Builder
- All Implemented Interfaces:
Intent.Message.RbmCardContentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent.Message.RbmCardContent
public static final class Intent.Message.RbmCardContent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
implements Intent.Message.RbmCardContentOrBuilder
Rich Business Messaging (RBM) Card contentProtobuf type
google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent-
Method Summary
Modifier and TypeMethodDescriptionaddAllSuggestions(Iterable<? extends Intent.Message.RbmSuggestion> values) Optional.addSuggestions(int index, Intent.Message.RbmSuggestion value) Optional.addSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue) Optional.Optional.addSuggestions(Intent.Message.RbmSuggestion.Builder builderForValue) Optional.Optional.addSuggestionsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMedia()Optional.Optional.Optional.getSuggestions(int index) Optional.getSuggestionsBuilder(int index) Optional.Optional.intOptional.Optional.getSuggestionsOrBuilder(int index) Optional.List<? extends Intent.Message.RbmSuggestionOrBuilder>Optional.getTitle()Optional.com.google.protobuf.ByteStringOptional.booleanhasMedia()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.removeSuggestions(int index) Optional.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.Optional.setMedia(Intent.Message.RbmCardContent.RbmMedia.Builder builderForValue) Optional.setSuggestions(int index, Intent.Message.RbmSuggestion value) Optional.setSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue) Optional.Optional.setTitleBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.Message.RbmCardContent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.Builder>
-
mergeFrom
public Intent.Message.RbmCardContent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.Message.RbmCardContent.Builder>- Throws:
IOException
-
getTitle
Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
string title = 1;- Specified by:
getTitlein interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
string title = 1;- Specified by:
getTitleBytesin interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- The bytes for title.
-
setTitle
Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
string title = 1;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
string title = 1;- Returns:
- This builder for chaining.
-
setTitleBytes
Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
string title = 1;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
string description = 2;- Specified by:
getDescriptionin interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
string description = 2;- Specified by:
getDescriptionBytesin interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Intent.Message.RbmCardContent.Builder setDescriptionBytes(com.google.protobuf.ByteString value) Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasMedia
public boolean hasMedia()Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;- Specified by:
hasMediain interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- Whether the media field is set.
-
getMedia
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;- Specified by:
getMediain interfaceIntent.Message.RbmCardContentOrBuilder- Returns:
- The media.
-
setMedia
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3; -
setMedia
public Intent.Message.RbmCardContent.Builder setMedia(Intent.Message.RbmCardContent.RbmMedia.Builder builderForValue) Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3; -
mergeMedia
public Intent.Message.RbmCardContent.Builder mergeMedia(Intent.Message.RbmCardContent.RbmMedia value) Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3; -
clearMedia
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3; -
getMediaBuilder
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3; -
getMediaOrBuilder
Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia media = 3;- Specified by:
getMediaOrBuilderin interfaceIntent.Message.RbmCardContentOrBuilder
-
getSuggestionsList
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;- Specified by:
getSuggestionsListin interfaceIntent.Message.RbmCardContentOrBuilder
-
getSuggestionsCount
public int getSuggestionsCount()Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;- Specified by:
getSuggestionsCountin interfaceIntent.Message.RbmCardContentOrBuilder
-
getSuggestions
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;- Specified by:
getSuggestionsin interfaceIntent.Message.RbmCardContentOrBuilder
-
setSuggestions
public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion value) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
setSuggestions
public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addSuggestions
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addSuggestions
public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion value) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addSuggestions
public Intent.Message.RbmCardContent.Builder addSuggestions(Intent.Message.RbmSuggestion.Builder builderForValue) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addSuggestions
public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addAllSuggestions
public Intent.Message.RbmCardContent.Builder addAllSuggestions(Iterable<? extends Intent.Message.RbmSuggestion> values) Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
clearSuggestions
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
removeSuggestions
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
getSuggestionsBuilder
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
getSuggestionsOrBuilder
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;- Specified by:
getSuggestionsOrBuilderin interfaceIntent.Message.RbmCardContentOrBuilder
-
getSuggestionsOrBuilderList
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;- Specified by:
getSuggestionsOrBuilderListin interfaceIntent.Message.RbmCardContentOrBuilder
-
addSuggestionsBuilder
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
addSuggestionsBuilder
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4; -
getSuggestionsBuilderList
Optional. List of suggestions to include in the card.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;
-