Debian Codegraph @

channel/apiv1/channelpb/operations.pb.go

raw
1 // Copyright 2025 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
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/channel/v1/operations.proto
20
21 package channelpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // RPCs that return a Long Running Operation.
38 type OperationMetadata_OperationType int32
39
40 const (
41 // Not used.
42 OperationMetadata_OPERATION_TYPE_UNSPECIFIED OperationMetadata_OperationType = 0
43 // Long Running Operation was triggered by CreateEntitlement.
44 OperationMetadata_CREATE_ENTITLEMENT OperationMetadata_OperationType = 1
45 // Long Running Operation was triggered by ChangeRenewalSettings.
46 OperationMetadata_CHANGE_RENEWAL_SETTINGS OperationMetadata_OperationType = 3
47 // Long Running Operation was triggered by StartPaidService.
48 OperationMetadata_START_PAID_SERVICE OperationMetadata_OperationType = 5
49 // Long Running Operation was triggered by ActivateEntitlement.
50 OperationMetadata_ACTIVATE_ENTITLEMENT OperationMetadata_OperationType = 7
51 // Long Running Operation was triggered by SuspendEntitlement.
52 OperationMetadata_SUSPEND_ENTITLEMENT OperationMetadata_OperationType = 8
53 // Long Running Operation was triggered by CancelEntitlement.
54 OperationMetadata_CANCEL_ENTITLEMENT OperationMetadata_OperationType = 9
55 // Long Running Operation was triggered by TransferEntitlements.
56 OperationMetadata_TRANSFER_ENTITLEMENTS OperationMetadata_OperationType = 10
57 // Long Running Operation was triggered by TransferEntitlementsToGoogle.
58 OperationMetadata_TRANSFER_ENTITLEMENTS_TO_GOOGLE OperationMetadata_OperationType = 11
59 // Long Running Operation was triggered by ChangeOffer.
60 OperationMetadata_CHANGE_OFFER OperationMetadata_OperationType = 14
61 // Long Running Operation was triggered by ChangeParameters.
62 OperationMetadata_CHANGE_PARAMETERS OperationMetadata_OperationType = 15
63 // Long Running Operation was triggered by ProvisionCloudIdentity.
64 OperationMetadata_PROVISION_CLOUD_IDENTITY OperationMetadata_OperationType = 16
65 )
66
67 // Enum value maps for OperationMetadata_OperationType.
68 var (
69 OperationMetadata_OperationType_name = map[int32]string{
70 0: "OPERATION_TYPE_UNSPECIFIED",
71 1: "CREATE_ENTITLEMENT",
72 3: "CHANGE_RENEWAL_SETTINGS",
73 5: "START_PAID_SERVICE",
74 7: "ACTIVATE_ENTITLEMENT",
75 8: "SUSPEND_ENTITLEMENT",
76 9: "CANCEL_ENTITLEMENT",
77 10: "TRANSFER_ENTITLEMENTS",
78 11: "TRANSFER_ENTITLEMENTS_TO_GOOGLE",
79 14: "CHANGE_OFFER",
80 15: "CHANGE_PARAMETERS",
81 16: "PROVISION_CLOUD_IDENTITY",
82 }
83 OperationMetadata_OperationType_value = map[string]int32{
84 "OPERATION_TYPE_UNSPECIFIED": 0,
85 "CREATE_ENTITLEMENT": 1,
86 "CHANGE_RENEWAL_SETTINGS": 3,
87 "START_PAID_SERVICE": 5,
88 "ACTIVATE_ENTITLEMENT": 7,
89 "SUSPEND_ENTITLEMENT": 8,
90 "CANCEL_ENTITLEMENT": 9,
91 "TRANSFER_ENTITLEMENTS": 10,
92 "TRANSFER_ENTITLEMENTS_TO_GOOGLE": 11,
93 "CHANGE_OFFER": 14,
94 "CHANGE_PARAMETERS": 15,
95 "PROVISION_CLOUD_IDENTITY": 16,
96 }
97 )
98
99 func (x OperationMetadata_OperationType) Enum() *OperationMetadata_OperationType {
100 p := new(OperationMetadata_OperationType)
101 *p = x
102 return p
103 }
104
105 func (x OperationMetadata_OperationType) String() string {
106 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
107 }
108
109 func (OperationMetadata_OperationType) Descriptor() protoreflect.EnumDescriptor {
110 return file_google_cloud_channel_v1_operations_proto_enumTypes[0].Descriptor()
111 }
112
113 func (OperationMetadata_OperationType) Type() protoreflect.EnumType {
114 return &file_google_cloud_channel_v1_operations_proto_enumTypes[0]
115 }
116
117 func (x OperationMetadata_OperationType) Number() protoreflect.EnumNumber {
118 return protoreflect.EnumNumber(x)
119 }
120
121 // Deprecated: Use OperationMetadata_OperationType.Descriptor instead.
122 func (OperationMetadata_OperationType) EnumDescriptor() ([]byte, []int) {
123 return file_google_cloud_channel_v1_operations_proto_rawDescGZIP(), []int{0, 0}
124 }
125
126 // Provides contextual information about a
127 // [google.longrunning.Operation][google.longrunning.Operation].
128 type OperationMetadata struct {
129 state protoimpl.MessageState
130 sizeCache protoimpl.SizeCache
131 unknownFields protoimpl.UnknownFields
132
133 // The RPC that initiated this Long Running Operation.
134 OperationType OperationMetadata_OperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.channel.v1.OperationMetadata_OperationType" json:"operation_type,omitempty"`
135 }
136
137 func (x *OperationMetadata) Reset() {
138 *x = OperationMetadata{}
139 mi := &file_google_cloud_channel_v1_operations_proto_msgTypes[0]
140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141 ms.StoreMessageInfo(mi)
142 }
143
144 func (x *OperationMetadata) String() string {
145 return protoimpl.X.MessageStringOf(x)
146 }
147
148 func (*OperationMetadata) ProtoMessage() {}
149
150 func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
151 mi := &file_google_cloud_channel_v1_operations_proto_msgTypes[0]
152 if x != nil {
153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154 if ms.LoadMessageInfo() == nil {
155 ms.StoreMessageInfo(mi)
156 }
157 return ms
158 }
159 return mi.MessageOf(x)
160 }
161
162 // Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
163 func (*OperationMetadata) Descriptor() ([]byte, []int) {
164 return file_google_cloud_channel_v1_operations_proto_rawDescGZIP(), []int{0}
165 }
166
167 func (x *OperationMetadata) GetOperationType() OperationMetadata_OperationType {
168 if x != nil {
169 return x.OperationType
170 }
171 return OperationMetadata_OPERATION_TYPE_UNSPECIFIED
172 }
173
174 var File_google_cloud_channel_v1_operations_proto protoreflect.FileDescriptor
175
176 var file_google_cloud_channel_v1_operations_proto_rawDesc = []byte{
177 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
178 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
179 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67,
180 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
181 0x2e, 0x76, 0x31, 0x22, 0xc5, 0x03, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
182 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x0e, 0x6f, 0x70, 0x65,
183 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
184 0x0e, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
185 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72,
186 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x70,
187 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x6f, 0x70, 0x65,
188 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xce, 0x02, 0x0a, 0x0d, 0x4f,
189 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a,
190 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55,
191 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12,
192 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x4d, 0x45,
193 0x4e, 0x54, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x52,
194 0x45, 0x4e, 0x45, 0x57, 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10,
195 0x03, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x41, 0x49, 0x44, 0x5f,
196 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x54,
197 0x49, 0x56, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e,
198 0x54, 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x45,
199 0x4e, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12,
200 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x4d, 0x45,
201 0x4e, 0x54, 0x10, 0x09, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52,
202 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x0a, 0x12,
203 0x23, 0x0a, 0x1f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x45, 0x4e, 0x54, 0x49,
204 0x54, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x47, 0x4f, 0x4f, 0x47,
205 0x4c, 0x45, 0x10, 0x0b, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4f,
206 0x46, 0x46, 0x45, 0x52, 0x10, 0x0e, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45,
207 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x53, 0x10, 0x0f, 0x12, 0x1c, 0x0a,
208 0x18, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44,
209 0x5f, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x10, 0x10, 0x42, 0x67, 0x0a, 0x1b, 0x63,
210 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
211 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x4f, 0x70, 0x65, 0x72,
212 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63,
213 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
214 0x67, 0x6f, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
215 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x70, 0x62, 0x3b, 0x63, 0x68, 0x61, 0x6e, 0x6e,
216 0x65, 0x6c, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
217 }
218
219 var (
220 file_google_cloud_channel_v1_operations_proto_rawDescOnce sync.Once
221 file_google_cloud_channel_v1_operations_proto_rawDescData = file_google_cloud_channel_v1_operations_proto_rawDesc
222 )
223
224 func file_google_cloud_channel_v1_operations_proto_rawDescGZIP() []byte {
225 file_google_cloud_channel_v1_operations_proto_rawDescOnce.Do(func() {
226 file_google_cloud_channel_v1_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_channel_v1_operations_proto_rawDescData)
227 })
228 return file_google_cloud_channel_v1_operations_proto_rawDescData
229 }
230
231 var file_google_cloud_channel_v1_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
232 var file_google_cloud_channel_v1_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
233 var file_google_cloud_channel_v1_operations_proto_goTypes = []any{
234 (OperationMetadata_OperationType)(0), // 0: google.cloud.channel.v1.OperationMetadata.OperationType
235 (*OperationMetadata)(nil), // 1: google.cloud.channel.v1.OperationMetadata
236 }
237 var file_google_cloud_channel_v1_operations_proto_depIdxs = []int32{
238 0, // 0: google.cloud.channel.v1.OperationMetadata.operation_type:type_name -> google.cloud.channel.v1.OperationMetadata.OperationType
239 1, // [1:1] is the sub-list for method output_type
240 1, // [1:1] is the sub-list for method input_type
241 1, // [1:1] is the sub-list for extension type_name
242 1, // [1:1] is the sub-list for extension extendee
243 0, // [0:1] is the sub-list for field type_name
244 }
245
246 func init() { file_google_cloud_channel_v1_operations_proto_init() }
247 func file_google_cloud_channel_v1_operations_proto_init() {
248 if File_google_cloud_channel_v1_operations_proto != nil {
249 return
250 }
251 type x struct{}
252 out := protoimpl.TypeBuilder{
253 File: protoimpl.DescBuilder{
254 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
255 RawDescriptor: file_google_cloud_channel_v1_operations_proto_rawDesc,
256 NumEnums: 1,
257 NumMessages: 1,
258 NumExtensions: 0,
259 NumServices: 0,
260 },
261 GoTypes: file_google_cloud_channel_v1_operations_proto_goTypes,
262 DependencyIndexes: file_google_cloud_channel_v1_operations_proto_depIdxs,
263 EnumInfos: file_google_cloud_channel_v1_operations_proto_enumTypes,
264 MessageInfos: file_google_cloud_channel_v1_operations_proto_msgTypes,
265 }.Build()
266 File_google_cloud_channel_v1_operations_proto = out.File
267 file_google_cloud_channel_v1_operations_proto_rawDesc = nil
268 file_google_cloud_channel_v1_operations_proto_goTypes = nil
269 file_google_cloud_channel_v1_operations_proto_depIdxs = nil
270 }