Class GdataDiffUploadRequest

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

    public final class GdataDiffUploadRequest
    extends com.google.api.client.json.GenericJson
    A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff- protocol.

    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
      GdataDiffUploadRequest clone()  
      GdataCompositeMedia getChecksumsInfo()
      The location of the checksums for the new object.
      GdataCompositeMedia getObjectInfo()
      The location of the new object.
      java.lang.String getObjectVersion()
      The object version of the object that is the base version the incoming diff script will be applied to.
      GdataDiffUploadRequest set​(java.lang.String fieldName, java.lang.Object value)  
      GdataDiffUploadRequest setChecksumsInfo​(GdataCompositeMedia checksumsInfo)
      The location of the checksums for the new object.
      GdataDiffUploadRequest setObjectInfo​(GdataCompositeMedia objectInfo)
      The location of the new object.
      GdataDiffUploadRequest setObjectVersion​(java.lang.String objectVersion)
      The object version of the object that is the base version the incoming diff script will be applied to.
      • 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

      • GdataDiffUploadRequest

        public GdataDiffUploadRequest()
    • Method Detail

      • getChecksumsInfo

        public GdataCompositeMedia getChecksumsInfo()
        The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
        Returns:
        value or null for none
      • setChecksumsInfo

        public GdataDiffUploadRequest setChecksumsInfo​(GdataCompositeMedia checksumsInfo)
        The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol.
        Parameters:
        checksumsInfo - checksumsInfo or null for none
      • getObjectInfo

        public GdataCompositeMedia getObjectInfo()
        The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
        Returns:
        value or null for none
      • setObjectInfo

        public GdataDiffUploadRequest setObjectInfo​(GdataCompositeMedia objectInfo)
        The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.
        Parameters:
        objectInfo - objectInfo or null for none
      • getObjectVersion

        public java.lang.String getObjectVersion()
        The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
        Returns:
        value or null for none
      • setObjectVersion

        public GdataDiffUploadRequest setObjectVersion​(java.lang.String objectVersion)
        The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.
        Parameters:
        objectVersion - objectVersion or null for none
      • set

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

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