Represents the result of an API operation in the Discovery API.
Holds either successful data or an error with optional data.
The result data, if available.
The error, if an error occurred.
Represents a failed API operation.
Represents a successful API operation.
Checks if the resource represents an error.
Checks if the resource represents a successful operation.