Class Intent.Message.RbmCardContent.RbmMedia.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Builder
- All Implemented Interfaces:
Intent.Message.RbmCardContent.RbmMediaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent.Message.RbmCardContent.RbmMedia
public static final class Intent.Message.RbmCardContent.RbmMedia.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
implements Intent.Message.RbmCardContent.RbmMediaOrBuilder
Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg' * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webmProtobuf type
google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required for cards with vertical orientation.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required for cards with vertical orientation.intRequired for cards with vertical orientation.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFileUri(String value) Required.setFileUriBytes(com.google.protobuf.ByteString value) Required.Required for cards with vertical orientation.setHeightValue(int value) Required for cards with vertical orientation.setThumbnailUri(String value) Optional.setThumbnailUriBytes(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.RbmMedia.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.RbmMedia.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.RbmMedia.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.RbmMedia.Builder>
-
mergeFrom
public Intent.Message.RbmCardContent.RbmMedia.Builder mergeFrom(Intent.Message.RbmCardContent.RbmMedia other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
mergeFrom
public Intent.Message.RbmCardContent.RbmMedia.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.RbmMedia.Builder>- Throws:
IOException
-
getFileUri
Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
string file_uri = 1;- Specified by:
getFileUriin interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The fileUri.
-
getFileUriBytes
public com.google.protobuf.ByteString getFileUriBytes()Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
string file_uri = 1;- Specified by:
getFileUriBytesin interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The bytes for fileUri.
-
setFileUri
Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
string file_uri = 1;- Parameters:
value- The fileUri to set.- Returns:
- This builder for chaining.
-
clearFileUri
Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
string file_uri = 1;- Returns:
- This builder for chaining.
-
setFileUriBytes
public Intent.Message.RbmCardContent.RbmMedia.Builder setFileUriBytes(com.google.protobuf.ByteString value) Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
string file_uri = 1;- Parameters:
value- The bytes for fileUri to set.- Returns:
- This builder for chaining.
-
getThumbnailUri
Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.
string thumbnail_uri = 2;- Specified by:
getThumbnailUriin interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The thumbnailUri.
-
getThumbnailUriBytes
public com.google.protobuf.ByteString getThumbnailUriBytes()Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.
string thumbnail_uri = 2;- Specified by:
getThumbnailUriBytesin interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The bytes for thumbnailUri.
-
setThumbnailUri
Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.
string thumbnail_uri = 2;- Parameters:
value- The thumbnailUri to set.- Returns:
- This builder for chaining.
-
clearThumbnailUri
Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.
string thumbnail_uri = 2;- Returns:
- This builder for chaining.
-
setThumbnailUriBytes
public Intent.Message.RbmCardContent.RbmMedia.Builder setThumbnailUriBytes(com.google.protobuf.ByteString value) Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.
string thumbnail_uri = 2;- Parameters:
value- The bytes for thumbnailUri to set.- Returns:
- This builder for chaining.
-
getHeightValue
public int getHeightValue()Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;- Specified by:
getHeightValuein interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The enum numeric value on the wire for height.
-
setHeightValue
Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;- Parameters:
value- The enum numeric value on the wire for height to set.- Returns:
- This builder for chaining.
-
getHeight
Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;- Specified by:
getHeightin interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder- Returns:
- The height.
-
setHeight
public Intent.Message.RbmCardContent.RbmMedia.Builder setHeight(Intent.Message.RbmCardContent.RbmMedia.Height value) Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;- Returns:
- This builder for chaining.
-