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/webm
 
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia
  • 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.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
    • 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
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Intent.Message.RbmCardContent.RbmMedia.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 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.
    • 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

      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.
    • 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:
      getHeightValue in interface Intent.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

       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.
    • setHeight

       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.