Class GdataDiffChecksumsResponse
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.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.GenericJsonBackend 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
-
-
Constructor Summary
Constructors Constructor Description GdataDiffChecksumsResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdataDiffChecksumsResponseclone()GdataCompositeMediagetChecksumsLocation()Exactly one of these fields must be populated.java.lang.LonggetChunkSizeBytes()The chunk size of checksums.GdataCompositeMediagetObjectLocation()If set, calculate the checksums based on the contents and return them to the caller.java.lang.LonggetObjectSizeBytes()The total size of the server object.java.lang.StringgetObjectVersion()The object version of the object the checksums are being returned for.GdataDiffChecksumsResponseset(java.lang.String fieldName, java.lang.Object value)GdataDiffChecksumsResponsesetChecksumsLocation(GdataCompositeMedia checksumsLocation)Exactly one of these fields must be populated.GdataDiffChecksumsResponsesetChunkSizeBytes(java.lang.Long chunkSizeBytes)The chunk size of checksums.GdataDiffChecksumsResponsesetObjectLocation(GdataCompositeMedia objectLocation)If set, calculate the checksums based on the contents and return them to the caller.GdataDiffChecksumsResponsesetObjectSizeBytes(java.lang.Long objectSizeBytes)The total size of the server object.GdataDiffChecksumsResponsesetObjectVersion(java.lang.String objectVersion)The object version of the object the checksums are being returned for.-
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
-
-
-
-
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
nullfor 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 ornullfor none
-
getChunkSizeBytes
public java.lang.Long getChunkSizeBytes()
The chunk size of checksums. Must be a multiple of 256KB.- Returns:
- value or
nullfor none
-
setChunkSizeBytes
public GdataDiffChecksumsResponse setChunkSizeBytes(java.lang.Long chunkSizeBytes)
The chunk size of checksums. Must be a multiple of 256KB.- Parameters:
chunkSizeBytes- chunkSizeBytes ornullfor none
-
getObjectLocation
public GdataCompositeMedia getObjectLocation()
If set, calculate the checksums based on the contents and return them to the caller.- Returns:
- value or
nullfor 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 ornullfor none
-
getObjectSizeBytes
public java.lang.Long getObjectSizeBytes()
The total size of the server object.- Returns:
- value or
nullfor none
-
setObjectSizeBytes
public GdataDiffChecksumsResponse setObjectSizeBytes(java.lang.Long objectSizeBytes)
The total size of the server object.- Parameters:
objectSizeBytes- objectSizeBytes ornullfor none
-
getObjectVersion
public java.lang.String getObjectVersion()
The object version of the object the checksums are being returned for.- Returns:
- value or
nullfor none
-
setObjectVersion
public GdataDiffChecksumsResponse setObjectVersion(java.lang.String objectVersion)
The object version of the object the checksums are being returned for.- Parameters:
objectVersion- objectVersion ornullfor none
-
set
public GdataDiffChecksumsResponse set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public GdataDiffChecksumsResponse clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-