Generated from protobuf message google.longrunning.OperationInfo
Namespace
Google \ LongRunning
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ response_type
string
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.
↳ metadata_type
string
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.
getResponseType
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.
Returns
Type
Description
string
setResponseType
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMetadataType
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.
Returns
Type
Description
string
setMetadataType
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google LongRunning Client - Class OperationInfo (0.4.7)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.7 (latest)](/php/docs/reference/longrunning/latest/LongRunning.OperationInfo)\n- [0.4.6](/php/docs/reference/longrunning/0.4.6/LongRunning.OperationInfo)\n- [0.3.0](/php/docs/reference/longrunning/0.3.0/LongRunning.OperationInfo)\n- [0.2.6](/php/docs/reference/longrunning/0.2.6/LongRunning.OperationInfo) \nReference documentation and code samples for the Google LongRunning Client class OperationInfo.\n\nA message representing the message types used by a long-running operation.\n\nExample:\nrpc Export(ExportRequest) returns (google.longrunning.Operation) {\noption (google.longrunning.operation_info) = {\nresponse_type: \"ExportResponse\"\nmetadata_type: \"ExportMetadata\"\n};\n}\n\nGenerated from protobuf message `google.longrunning.OperationInfo`\n\nNamespace\n---------\n\nGoogle \\\\ LongRunning\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResponseType\n\nRequired. The message name of the primary return type for this\nlong-running operation.\n\nThis type will be used to deserialize the LRO's response.\nIf the response is in a different package from the rpc, a fully-qualified\nmessage name must be used (e.g. `google.protobuf.Struct`).\nNote: Altering this value constitutes a breaking change.\n\n### setResponseType\n\nRequired. The message name of the primary return type for this\nlong-running operation.\n\nThis type will be used to deserialize the LRO's response.\nIf the response is in a different package from the rpc, a fully-qualified\nmessage name must be used (e.g. `google.protobuf.Struct`).\nNote: Altering this value constitutes a breaking change.\n\n### getMetadataType\n\nRequired. The message name of the metadata type for this long-running\noperation.\n\nIf the response is in a different package from the rpc, a fully-qualified\nmessage name must be used (e.g. `google.protobuf.Struct`).\nNote: Altering this value constitutes a breaking change.\n\n### setMetadataType\n\nRequired. The message name of the metadata type for this long-running\noperation.\n\nIf the response is in a different package from the rpc, a fully-qualified\nmessage name must be used (e.g. `google.protobuf.Struct`).\nNote: Altering this value constitutes a breaking change."]]