Class Intent.Message.RbmCardContent.RbmMedia.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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/webm
Protobuf typegoogle.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
clear
public Intent.Message.RbmCardContent.RbmMedia.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
getDefaultInstanceForType
public Intent.Message.RbmCardContent.RbmMedia getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Intent.Message.RbmCardContent.RbmMedia build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Intent.Message.RbmCardContent.RbmMedia buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Intent.Message.RbmCardContent.RbmMedia.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
setField
public Intent.Message.RbmCardContent.RbmMedia.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
clearField
public Intent.Message.RbmCardContent.RbmMedia.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
clearOneof
public Intent.Message.RbmCardContent.RbmMedia.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
setRepeatedField
public Intent.Message.RbmCardContent.RbmMedia.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
addRepeatedField
public Intent.Message.RbmCardContent.RbmMedia.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
mergeFrom
public Intent.Message.RbmCardContent.RbmMedia.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
- Throws:
IOException
-
getFileUri
public String 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:
getFileUri
in 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:
getFileUriBytes
in interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder
- Returns:
- The bytes for fileUri.
-
setFileUri
public Intent.Message.RbmCardContent.RbmMedia.Builder setFileUri(String 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 fileUri to set.- Returns:
- This builder for chaining.
-
clearFileUri
public Intent.Message.RbmCardContent.RbmMedia.Builder 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
public String 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:
getThumbnailUri
in 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:
getThumbnailUriBytes
in interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder
- Returns:
- The bytes for thumbnailUri.
-
setThumbnailUri
public Intent.Message.RbmCardContent.RbmMedia.Builder setThumbnailUri(String 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 thumbnailUri to set.- Returns:
- This builder for chaining.
-
clearThumbnailUri
public Intent.Message.RbmCardContent.RbmMedia.Builder 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:
getHeightValue
in interfaceIntent.Message.RbmCardContent.RbmMediaOrBuilder
- Returns:
- The enum numeric value on the wire for height.
-
setHeightValue
public Intent.Message.RbmCardContent.RbmMedia.Builder setHeightValue(int 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 enum numeric value on the wire for height to set.- Returns:
- This builder for chaining.
-
getHeight
public Intent.Message.RbmCardContent.RbmMedia.Height 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:
getHeight
in 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
public Intent.Message.RbmCardContent.RbmMedia.Builder 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.
-
setUnknownFields
public final Intent.Message.RbmCardContent.RbmMedia.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
mergeUnknownFields
public final Intent.Message.RbmCardContent.RbmMedia.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
-
-