operations.proto 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.channel.v1;
  16. option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "OperationsProto";
  19. option java_package = "com.google.cloud.channel.v1";
  20. // Provides contextual information about a [google.longrunning.Operation][google.longrunning.Operation].
  21. message OperationMetadata {
  22. // RPCs that return a Long Running Operation.
  23. enum OperationType {
  24. // Not used.
  25. OPERATION_TYPE_UNSPECIFIED = 0;
  26. // Long Running Operation was triggered by CreateEntitlement.
  27. CREATE_ENTITLEMENT = 1;
  28. // Long Running Operation was triggered by ChangeRenewalSettings.
  29. CHANGE_RENEWAL_SETTINGS = 3;
  30. // Long Running Operation was triggered by StartPaidService.
  31. START_PAID_SERVICE = 5;
  32. // Long Running Operation was triggered by ActivateEntitlement.
  33. ACTIVATE_ENTITLEMENT = 7;
  34. // Long Running Operation was triggered by SuspendEntitlement.
  35. SUSPEND_ENTITLEMENT = 8;
  36. // Long Running Operation was triggered by CancelEntitlement.
  37. CANCEL_ENTITLEMENT = 9;
  38. // Long Running Operation was triggered by TransferEntitlements.
  39. TRANSFER_ENTITLEMENTS = 10;
  40. // Long Running Operation was triggered by TransferEntitlementsToGoogle.
  41. TRANSFER_ENTITLEMENTS_TO_GOOGLE = 11;
  42. // Long Running Operation was triggered by ChangeOffer.
  43. CHANGE_OFFER = 14;
  44. // Long Running Operation was triggered by ChangeParameters.
  45. CHANGE_PARAMETERS = 15;
  46. // Long Running Operation was triggered by ProvisionCloudIdentity.
  47. PROVISION_CLOUD_IDENTITY = 16;
  48. }
  49. // The RPC that initiated this Long Running Operation.
  50. OperationType operation_type = 1;
  51. }