Reference documentation and code samples for the Google API Common Protos Client class OperationResponseMapping.
An enum to be used to mark the essential (for polling) fields in an
API-specific Operation object. A custom Operation object may contain many
different fields, but only few of them are essential to conduct a successful
polling process.
Protobuf type google.cloud.OperationResponseMapping
Namespace
Google \ Cloud
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNDEFINED
Value: 0
Do not use.
Generated from protobuf enum UNDEFINED = 0;
NAME
Value: 1
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.name.
Generated from protobuf enum NAME = 1;
STATUS
Value: 2
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.done. If the annotated field is of
an enum type, annotated_field_name == EnumType.DONE semantics should be
equivalent to Operation.done == true. If the annotated field is of type
boolean, then it should follow the same semantics as Operation.done.
Otherwise, a non-empty value should be treated as Operation.done == true.
Generated from protobuf enum STATUS = 2;
ERROR_CODE
Value: 3
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.code.
Generated from protobuf enum ERROR_CODE = 3;
ERROR_MESSAGE
Value: 4
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.message.
[[["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-08-28 UTC."],[],[],null,["# Google API Common Protos Client - Class OperationResponseMapping (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Cloud.OperationResponseMapping)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Cloud.OperationResponseMapping)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Cloud.OperationResponseMapping)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Cloud.OperationResponseMapping)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Cloud.OperationResponseMapping)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Cloud.OperationResponseMapping) \nReference documentation and code samples for the Google API Common Protos Client class OperationResponseMapping.\n\nAn enum to be used to mark the essential (for polling) fields in an\nAPI-specific Operation object. A custom Operation object may contain many\ndifferent fields, but only few of them are essential to conduct a successful\npolling process.\n\nProtobuf type `google.cloud.OperationResponseMapping`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNDEFINED\n\n Value: 0\n\nDo not use.\n\nGenerated from protobuf enum `UNDEFINED = 0;`\n\n### NAME\n\n Value: 1\n\nA field in an API-specific (custom) Operation object which carries the same\nmeaning as google.longrunning.Operation.name.\n\nGenerated from protobuf enum `NAME = 1;`\n\n### STATUS\n\n Value: 2\n\nA field in an API-specific (custom) Operation object which carries the same\nmeaning as google.longrunning.Operation.done. If the annotated field is of\nan enum type, `annotated_field_name == EnumType.DONE` semantics should be\nequivalent to `Operation.done == true`. If the annotated field is of type\nboolean, then it should follow the same semantics as Operation.done.\n\nOtherwise, a non-empty value should be treated as `Operation.done == true`.\n\nGenerated from protobuf enum `STATUS = 2;`\n\n### ERROR_CODE\n\n Value: 3\n\nA field in an API-specific (custom) Operation object which carries the same\nmeaning as google.longrunning.Operation.error.code.\n\nGenerated from protobuf enum `ERROR_CODE = 3;`\n\n### ERROR_MESSAGE\n\n Value: 4\n\nA field in an API-specific (custom) Operation object which carries the same\nmeaning as google.longrunning.Operation.error.message.\n\nGenerated from protobuf enum `ERROR_MESSAGE = 4;`"]]