Operation<T extends ProtoMessage, S extends ProtoMessage> class

This resource represents a long-running operation that is the result of a network API call.

Inheritance
  • Object
  • ProtoMessage
  • Operation

Constructors

Operation({String? name, Any? metadata, bool? done, Status? error, Any? response, OperationHelper<T, S>? operationHelper})
Operation.fromJson(Object? j, [OperationHelper<T, S>? helper])
factory

Properties

done bool?
If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
final
error → Status?
The error result of the operation in case of failure or cancellation.
final
hashCode int
The hash code for this object.
no setterinherited
metadata → Any?
Service-specific metadata associated with the operation. See also metadataAsMessage for the typed version of this property.
final
metadataAsMessage → S?
Service-specific metadata associated with the operation.
no setter
name String?
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
final
operationHelper OperationHelper<T, S>?
Internal plumbing used to implement responseAsMessage and metadataAsMessage.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
response → Any?
The normal, successful response of the operation. See also responseAsMessage for the typed version of this property.
final
responseAsMessage → T?
The normal, successful response of the operation.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String