[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/dataconnect/OperationResult [Back]  [Original]

OperationResult  |  Firebase SDKs for Android Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

OperationResult

interface OperationResult<Data : Any?, Variables : Any?>

Known direct subclasses
MutationResult

A specialization of OperationResult for MutationRef.

QueryResult

A specialization of OperationResult for QueryRef.


The result of a successful execution of an OperationRef.

Typically, one of the inheritors of OperationResult is used, namely QueryResult for queries and MutationResult for mutations.

Safe for concurrent use

All methods and properties of OperationResult are thread-safe and may be safely called and/or accessed concurrently from multiple threads and/or coroutines.

Not stable for inheritance

The OperationResult interface is not stable for inheritance in third-party libraries, as new methods might be added to this interface or contracts of the existing methods can be changed.

See also
execute

Summary

Public functions

operator Boolean
equals(other: Any?)

Compares this object with another object for equality.

Int

Calculates and returns the hash code for this object.

String

Returns a string representation of this object, useful for debugging.

Public properties

Data

The response data for the operation.

OperationRef<Data, Variables>

The operation that produced this result.

Public functions

equals

operator fun equals(other: Any?): Boolean

Compares this object with another object for equality.

Parameters
other: Any?

The object to compare to this for equality.

Returns
Boolean

true if, and only if, the other object is an instance of the same implementation of OperationResult whose public properties compare equal using the == operator to the corresponding properties of this object.

hashCode

fun hashCode(): Int

Calculates and returns the hash code for this object.

The hash code is not guaranteed to be stable across application restarts.

Returns
Int

the hash code for this object, that incorporates the values of this object's public properties.

toString

fun toString(): String

Returns a string representation of this object, useful for debugging.

The string representation is not guaranteed to be stable and may change without notice at any time. Therefore, the only recommended usage of the returned string is debugging and/or logging. Namely, parsing the returned string or storing the returned string in non-volatile storage should generally be avoided in order to be robust in case that the string representation changes.

Returns
String

a string representation of this object, which includes the class name and the values of all public properties.

Public properties

data

val data: Data

The response data for the operation.

ref

val refOperationRef<Data, Variables>

The operation that produced this result.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-09 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-09 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page