Class GdataDiffChecksumsResponse

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

    public final class GdataDiffChecksumsResponse
    extends com.google.api.client.json.GenericJson
    Backend response for a Diff get checksums response. 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>
    • Constructor Detail

      • GdataDiffChecksumsResponse

        public GdataDiffChecksumsResponse()
    • Method Detail

      • getChecksumsLocation

        public GdataCompositeMedia getChecksumsLocation()
        Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
        Returns:
        value or null for none
      • setChecksumsLocation

        public GdataDiffChecksumsResponse setChecksumsLocation​(GdataCompositeMedia checksumsLocation)
        Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
        Parameters:
        checksumsLocation - checksumsLocation or null for none
      • getChunkSizeBytes

        public java.lang.Long getChunkSizeBytes()
        The chunk size of checksums. Must be a multiple of 256KB.
        Returns:
        value or null for none
      • setChunkSizeBytes

        public GdataDiffChecksumsResponse setChunkSizeBytes​(java.lang.Long chunkSizeBytes)
        The chunk size of checksums. Must be a multiple of 256KB.
        Parameters:
        chunkSizeBytes - chunkSizeBytes or null for none
      • getObjectLocation

        public GdataCompositeMedia getObjectLocation()
        If set, calculate the checksums based on the contents and return them to the caller.
        Returns:
        value or null for none
      • setObjectLocation

        public GdataDiffChecksumsResponse setObjectLocation​(GdataCompositeMedia objectLocation)
        If set, calculate the checksums based on the contents and return them to the caller.
        Parameters:
        objectLocation - objectLocation or null for none
      • getObjectSizeBytes

        public java.lang.Long getObjectSizeBytes()
        The total size of the server object.
        Returns:
        value or null for none
      • setObjectSizeBytes

        public GdataDiffChecksumsResponse setObjectSizeBytes​(java.lang.Long objectSizeBytes)
        The total size of the server object.
        Parameters:
        objectSizeBytes - objectSizeBytes or null for none
      • getObjectVersion

        public java.lang.String getObjectVersion()
        The object version of the object the checksums are being returned for.
        Returns:
        value or null for none
      • setObjectVersion

        public GdataDiffChecksumsResponse setObjectVersion​(java.lang.String objectVersion)
        The object version of the object the checksums are being returned for.
        Parameters:
        objectVersion - objectVersion or null for none
      • set

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