Package com.google.cloud.dialogflow.v2
Class Intent.Message.BasicCard.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.Message.BasicCard.Builder>
com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder
- All Implemented Interfaces:
Intent.Message.BasicCardOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent.Message.BasicCard
public static final class Intent.Message.BasicCard.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.BasicCard.Builder>
implements Intent.Message.BasicCardOrBuilder
The basic card message. Useful for displaying information.Protobuf type
google.cloud.dialogflow.v2.Intent.Message.BasicCard-
Method Summary
Modifier and TypeMethodDescriptionaddAllButtons(Iterable<? extends Intent.Message.BasicCard.Button> values) Optional.addButtons(int index, Intent.Message.BasicCard.Button value) Optional.addButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue) Optional.Optional.addButtons(Intent.Message.BasicCard.Button.Builder builderForValue) Optional.Optional.addButtonsBuilder(int index) Optional.build()clear()Optional.Required, unless image is present.Optional.Optional.Optional.getButtons(int index) Optional.getButtonsBuilder(int index) Optional.Optional.intOptional.Optional.getButtonsOrBuilder(int index) Optional.List<? extends Intent.Message.BasicCard.ButtonOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired, unless image is present.com.google.protobuf.ByteStringRequired, unless image is present.getImage()Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getTitle()Optional.com.google.protobuf.ByteStringOptional.booleanhasImage()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeImage(Intent.Message.Image value) Optional.removeButtons(int index) Optional.setButtons(int index, Intent.Message.BasicCard.Button value) Optional.setButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue) Optional.setFormattedText(String value) Required, unless image is present.setFormattedTextBytes(com.google.protobuf.ByteString value) Required, unless image is present.setImage(Intent.Message.Image value) Optional.setImage(Intent.Message.Image.Builder builderForValue) Optional.setSubtitle(String value) Optional.setSubtitleBytes(com.google.protobuf.ByteString value) 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.BasicCard.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.BasicCard.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.BasicCard.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.BasicCard.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.BasicCard.Builder>
-
mergeFrom
public Intent.Message.BasicCard.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.BasicCard.Builder>- Throws:
IOException
-
getTitle
Optional. The title of the card.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTitlein interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Optional. The title of the card.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTitleBytesin interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The bytes for title.
-
setTitle
Optional. The title of the card.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Optional. The title of the card.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setTitleBytes
Optional. The title of the card.
string title = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getSubtitle
Optional. The subtitle of the card.
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubtitlein interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The subtitle.
-
getSubtitleBytes
public com.google.protobuf.ByteString getSubtitleBytes()Optional. The subtitle of the card.
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubtitleBytesin interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The bytes for subtitle.
-
setSubtitle
Optional. The subtitle of the card.
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The subtitle to set.- Returns:
- This builder for chaining.
-
clearSubtitle
Optional. The subtitle of the card.
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSubtitleBytes
Optional. The subtitle of the card.
string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for subtitle to set.- Returns:
- This builder for chaining.
-
getFormattedText
Required, unless image is present. The body text of the card.
string formatted_text = 3;- Specified by:
getFormattedTextin interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The formattedText.
-
getFormattedTextBytes
public com.google.protobuf.ByteString getFormattedTextBytes()Required, unless image is present. The body text of the card.
string formatted_text = 3;- Specified by:
getFormattedTextBytesin interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The bytes for formattedText.
-
setFormattedText
Required, unless image is present. The body text of the card.
string formatted_text = 3;- Parameters:
value- The formattedText to set.- Returns:
- This builder for chaining.
-
clearFormattedText
Required, unless image is present. The body text of the card.
string formatted_text = 3;- Returns:
- This builder for chaining.
-
setFormattedTextBytes
Required, unless image is present. The body text of the card.
string formatted_text = 3;- Parameters:
value- The bytes for formattedText to set.- Returns:
- This builder for chaining.
-
hasImage
public boolean hasImage()Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasImagein interfaceIntent.Message.BasicCardOrBuilder- Returns:
- Whether the image field is set.
-
getImage
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagein interfaceIntent.Message.BasicCardOrBuilder- Returns:
- The image.
-
setImage
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setImage
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeImage
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearImage
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getImageBuilder
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getImageOrBuilder
Optional. The image for the card.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageOrBuilderin interfaceIntent.Message.BasicCardOrBuilder
-
getButtonsList
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getButtonsListin interfaceIntent.Message.BasicCardOrBuilder
-
getButtonsCount
public int getButtonsCount()Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getButtonsCountin interfaceIntent.Message.BasicCardOrBuilder
-
getButtons
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getButtonsin interfaceIntent.Message.BasicCardOrBuilder
-
setButtons
public Intent.Message.BasicCard.Builder setButtons(int index, Intent.Message.BasicCard.Button value) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setButtons
public Intent.Message.BasicCard.Builder setButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addButtons
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addButtons
public Intent.Message.BasicCard.Builder addButtons(int index, Intent.Message.BasicCard.Button value) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addButtons
public Intent.Message.BasicCard.Builder addButtons(Intent.Message.BasicCard.Button.Builder builderForValue) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addButtons
public Intent.Message.BasicCard.Builder addButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addAllButtons
public Intent.Message.BasicCard.Builder addAllButtons(Iterable<? extends Intent.Message.BasicCard.Button> values) Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearButtons
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
removeButtons
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getButtonsBuilder
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getButtonsOrBuilder
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getButtonsOrBuilderin interfaceIntent.Message.BasicCardOrBuilder
-
getButtonsOrBuilderList
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getButtonsOrBuilderListin interfaceIntent.Message.BasicCardOrBuilder
-
addButtonsBuilder
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addButtonsBuilder
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getButtonsBuilderList
Optional. The collection of card buttons.
repeated .google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button buttons = 5 [(.google.api.field_behavior) = OPTIONAL];
-