Class WriteResult

java.lang.Object
com.google.cloud.firestore.WriteResult

public final class WriteResult extends Object
A WriteResult exposes the update time set by the server.
  • Method Details

    • getUpdateTime

      @Nonnull public com.google.cloud.Timestamp getUpdateTime()
      The update time as exposed by the server. Can be used in Precondition.updatedAt(com.google.cloud.Timestamp).
      Returns:
      The update time of the corresponding write.
    • equals

      public boolean equals(Object obj)
      Returns true if this WriteResult is equal to the provided object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare against.
      Returns:
      Whether this WriteResult is equal to the provided object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object