Class GdataContentTypeInfo

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public final class GdataContentTypeInfo
    extends com.google.api.client.json.GenericJson
    Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.api.client.util.GenericData

        com.google.api.client.util.GenericData.Flags
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GdataContentTypeInfo clone()  
      java.lang.String getBestGuess()
      Scotty's best guess of what the content type of the file is.
      java.lang.String getFromBytes()
      The content type of the file derived by looking at specific bytes (i.e.
      java.lang.String getFromFileName()
      The content type of the file derived from the file extension of the original file name used by the client.
      java.lang.String getFromHeader()
      The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
      java.lang.String getFromUrlPath()
      The content type of the file derived from the file extension of the URL path.
      GdataContentTypeInfo set​(java.lang.String fieldName, java.lang.Object value)  
      GdataContentTypeInfo setBestGuess​(java.lang.String bestGuess)
      Scotty's best guess of what the content type of the file is.
      GdataContentTypeInfo setFromBytes​(java.lang.String fromBytes)
      The content type of the file derived by looking at specific bytes (i.e.
      GdataContentTypeInfo setFromFileName​(java.lang.String fromFileName)
      The content type of the file derived from the file extension of the original file name used by the client.
      GdataContentTypeInfo setFromHeader​(java.lang.String fromHeader)
      The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
      GdataContentTypeInfo setFromUrlPath​(java.lang.String fromUrlPath)
      The content type of the file derived from the file extension of the URL path.
      • Methods inherited from class com.google.api.client.json.GenericJson

        getFactory, setFactory, toPrettyString, toString
      • Methods inherited from class com.google.api.client.util.GenericData

        entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
      • Methods inherited from class java.util.AbstractMap

        clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • GdataContentTypeInfo

        public GdataContentTypeInfo()
    • Method Detail

      • getBestGuess

        public java.lang.String getBestGuess()
        Scotty's best guess of what the content type of the file is.
        Returns:
        value or null for none
      • setBestGuess

        public GdataContentTypeInfo setBestGuess​(java.lang.String bestGuess)
        Scotty's best guess of what the content type of the file is.
        Parameters:
        bestGuess - bestGuess or null for none
      • getFromBytes

        public java.lang.String getFromBytes()
        The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.
        Returns:
        value or null for none
      • setFromBytes

        public GdataContentTypeInfo setFromBytes​(java.lang.String fromBytes)
        The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.
        Parameters:
        fromBytes - fromBytes or null for none
      • getFromFileName

        public java.lang.String getFromFileName()
        The content type of the file derived from the file extension of the original file name used by the client.
        Returns:
        value or null for none
      • setFromFileName

        public GdataContentTypeInfo setFromFileName​(java.lang.String fromFileName)
        The content type of the file derived from the file extension of the original file name used by the client.
        Parameters:
        fromFileName - fromFileName or null for none
      • getFromHeader

        public java.lang.String getFromHeader()
        The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
        Returns:
        value or null for none
      • setFromHeader

        public GdataContentTypeInfo setFromHeader​(java.lang.String fromHeader)
        The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.
        Parameters:
        fromHeader - fromHeader or null for none
      • getFromUrlPath

        public java.lang.String getFromUrlPath()
        The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
        Returns:
        value or null for none
      • setFromUrlPath

        public GdataContentTypeInfo setFromUrlPath​(java.lang.String fromUrlPath)
        The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).
        Parameters:
        fromUrlPath - fromUrlPath or null for none
      • set

        public GdataContentTypeInfo set​(java.lang.String fieldName,
                                        java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public GdataContentTypeInfo clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson