Class GdataObjectId

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

    public final class GdataObjectId
    extends com.google.api.client.json.GenericJson
    This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.

    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 Summary

      Constructors 
      Constructor Description
      GdataObjectId()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GdataObjectId clone()  
      java.lang.String getBucketName()
      The name of the bucket to which this object belongs.
      java.lang.Long getGeneration()
      Generation of the object.
      java.lang.String getObjectName()
      The name of the object.
      GdataObjectId set​(java.lang.String fieldName, java.lang.Object value)  
      GdataObjectId setBucketName​(java.lang.String bucketName)
      The name of the bucket to which this object belongs.
      GdataObjectId setGeneration​(java.lang.Long generation)
      Generation of the object.
      GdataObjectId setObjectName​(java.lang.String objectName)
      The name of the object.
      • 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

      • GdataObjectId

        public GdataObjectId()
    • Method Detail

      • getBucketName

        public java.lang.String getBucketName()
        The name of the bucket to which this object belongs.
        Returns:
        value or null for none
      • setBucketName

        public GdataObjectId setBucketName​(java.lang.String bucketName)
        The name of the bucket to which this object belongs.
        Parameters:
        bucketName - bucketName or null for none
      • getGeneration

        public java.lang.Long getGeneration()
        Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
        Returns:
        value or null for none
      • setGeneration

        public GdataObjectId setGeneration​(java.lang.Long generation)
        Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions
        Parameters:
        generation - generation or null for none
      • getObjectName

        public java.lang.String getObjectName()
        The name of the object.
        Returns:
        value or null for none
      • setObjectName

        public GdataObjectId setObjectName​(java.lang.String objectName)
        The name of the object.
        Parameters:
        objectName - objectName or null for none
      • set

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

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