Google.LongRunning - Class OperationInfo (3.2.0)

public sealed class OperationInfo : IMessage<OperationInfo>, IEquatable<OperationInfo>, IDeepCloneable<OperationInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Google.LongRunning class OperationInfo.

A message representing the message types used by a long-running operation.

Example:

rpc LongRunningRecognize(LongRunningRecognizeRequest) returns (google.longrunning.Operation) { option (google.longrunning.operation_info) = { response_type: "LongRunningRecognizeResponse" metadata_type: "LongRunningRecognizeMetadata" }; }

Inheritance

object > OperationInfo

Namespace

Google.LongRunning

Assembly

Google.LongRunning.dll

Constructors

OperationInfo()

public OperationInfo()

OperationInfo(OperationInfo)

public OperationInfo(OperationInfo other)
Parameter
Name Description
other OperationInfo

Properties

MetadataType

public string MetadataType { get; set; }

Required. The message name of the metadata type for this long-running operation.

If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. google.protobuf.Struct).

Note: Altering this value constitutes a breaking change.

Property Value
Type Description
string

ResponseType

public string ResponseType { get; set; }

Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response.

If the response is in a different package from the rpc, a fully-qualified message name must be used (e.g. google.protobuf.Struct).

Note: Altering this value constitutes a breaking change.

Property Value
Type Description
string