Class FirestoreV1.WriteFailure

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    FirestoreV1

    @Immutable
    public static final class FirestoreV1.WriteFailure
    extends java.lang.Object
    implements java.io.Serializable
    Failure details for an attempted Write. When a Write is unable to be applied an instance of this class will be created with the details of the failure.

    Included data:

    • The original Write
    • The WriteResult returned by the Cloud Firestore API
    • The Status returned by the Cloud Firestore API (often Status.getMessage() will provide details of why the write was unsuccessful
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteFailure​(com.google.firestore.v1.Write write, com.google.firestore.v1.WriteResult writeResult, com.google.rpc.Status status)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object o)  
      com.google.rpc.Status getStatus()  
      com.google.firestore.v1.Write getWrite()  
      com.google.firestore.v1.WriteResult getWriteResult()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WriteFailure

        public WriteFailure​(com.google.firestore.v1.Write write,
                            com.google.firestore.v1.WriteResult writeResult,
                            com.google.rpc.Status status)
    • Method Detail

      • getWrite

        public com.google.firestore.v1.Write getWrite()
      • getWriteResult

        public com.google.firestore.v1.WriteResult getWriteResult()
      • getStatus

        public com.google.rpc.Status getStatus()
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object