1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.channel.v1;
18
19option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb";
20option java_multiple_files = true;
21option java_outer_classname = "OperationsProto";
22option java_package = "com.google.cloud.channel.v1";
23
24// Provides contextual information about a
25// [google.longrunning.Operation][google.longrunning.Operation].
26message OperationMetadata {
27  // RPCs that return a Long Running Operation.
28  enum OperationType {
29    // Not used.
30    OPERATION_TYPE_UNSPECIFIED = 0;
31
32    // Long Running Operation was triggered by CreateEntitlement.
33    CREATE_ENTITLEMENT = 1;
34
35    // Long Running Operation was triggered by ChangeRenewalSettings.
36    CHANGE_RENEWAL_SETTINGS = 3;
37
38    // Long Running Operation was triggered by StartPaidService.
39    START_PAID_SERVICE = 5;
40
41    // Long Running Operation was triggered by ActivateEntitlement.
42    ACTIVATE_ENTITLEMENT = 7;
43
44    // Long Running Operation was triggered by SuspendEntitlement.
45    SUSPEND_ENTITLEMENT = 8;
46
47    // Long Running Operation was triggered by CancelEntitlement.
48    CANCEL_ENTITLEMENT = 9;
49
50    // Long Running Operation was triggered by TransferEntitlements.
51    TRANSFER_ENTITLEMENTS = 10;
52
53    // Long Running Operation was triggered by TransferEntitlementsToGoogle.
54    TRANSFER_ENTITLEMENTS_TO_GOOGLE = 11;
55
56    // Long Running Operation was triggered by ChangeOffer.
57    CHANGE_OFFER = 14;
58
59    // Long Running Operation was triggered by ChangeParameters.
60    CHANGE_PARAMETERS = 15;
61
62    // Long Running Operation was triggered by ProvisionCloudIdentity.
63    PROVISION_CLOUD_IDENTITY = 16;
64  }
65
66  // The RPC that initiated this Long Running Operation.
67  OperationType operation_type = 1;
68}
69