Class FirestoreV1.WriteFailure
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.firestore.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 attemptedWrite
. When aWrite
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 (oftenStatus.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()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-