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.SerializableFailure details for an attemptedWrite. When aWriteis unable to be applied an instance of this class will be created with the details of the failure.Included data:
- The original
Write - The
WriteResultreturned by the Cloud Firestore API - The
Statusreturned 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 booleanequals(@Nullable java.lang.Object o)com.google.rpc.StatusgetStatus()com.google.firestore.v1.WritegetWrite()com.google.firestore.v1.WriteResultgetWriteResult()inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-