@sisyphus.js/google
Version:
Precompiled google common protos by sisyphus protobuf compiler
43 lines • 2.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationResponseMapping = void 0;
require("@sisyphus.js/runtime/lib/google/protobuf/descriptor");
/**
* 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.
*/
var OperationResponseMapping;
(function (OperationResponseMapping) {
/** Do not use. */
OperationResponseMapping[OperationResponseMapping["UNDEFINED"] = 0] = "UNDEFINED";
/**
* A field in an API-specific (custom) Operation object which carries the same
* meaning as google.longrunning.Operation.name.
*/
OperationResponseMapping[OperationResponseMapping["NAME"] = 1] = "NAME";
/**
* 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`.
*/
OperationResponseMapping[OperationResponseMapping["STATUS"] = 2] = "STATUS";
/**
* A field in an API-specific (custom) Operation object which carries the same
* meaning as google.longrunning.Operation.error.code.
*/
OperationResponseMapping[OperationResponseMapping["ERROR_CODE"] = 3] = "ERROR_CODE";
/**
* A field in an API-specific (custom) Operation object which carries the same
* meaning as google.longrunning.Operation.error.message.
*/
OperationResponseMapping[OperationResponseMapping["ERROR_MESSAGE"] = 4] = "ERROR_MESSAGE";
})(OperationResponseMapping || (exports.OperationResponseMapping = OperationResponseMapping = {}));
(function (OperationResponseMapping) {
OperationResponseMapping.name = 'google.cloud.OperationResponseMapping';
})(OperationResponseMapping || (exports.OperationResponseMapping = OperationResponseMapping = {}));
//# sourceMappingURL=extended_operations.js.map