Class Intent.Message.RbmCardContent.RbmMedia

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
All Implemented Interfaces:
Intent.Message.RbmCardContent.RbmMediaOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Intent.Message.RbmCardContent

public static final class Intent.Message.RbmCardContent.RbmMedia extends com.google.protobuf.GeneratedMessage 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 type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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 interface Intent.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 interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
      Returns:
      The bytes for fileUri.
    • 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 interface Intent.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 interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
      Returns:
      The bytes for thumbnailUri.
    • 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 interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
      Returns:
      The enum numeric value on the wire for 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 interface Intent.Message.RbmCardContent.RbmMediaOrBuilder
      Returns:
      The height.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Intent.Message.RbmCardContent.RbmMedia parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Intent.Message.RbmCardContent.RbmMedia.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Intent.Message.RbmCardContent.RbmMedia getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Intent.Message.RbmCardContent.RbmMedia> parser()
    • getParserForType

      public com.google.protobuf.Parser<Intent.Message.RbmCardContent.RbmMedia> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Intent.Message.RbmCardContent.RbmMedia getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder