Debian Codegraph @

functions/apiv1/functionspb/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/functions/v1/operations.proto
20
21 package functionspb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 anypb "google.golang.org/protobuf/types/known/anypb"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A type of an operation.
40 type OperationType int32
41
42 const (
43 // Unknown operation type.
44 OperationType_OPERATION_UNSPECIFIED OperationType = 0
45 // Triggered by CreateFunction call
46 OperationType_CREATE_FUNCTION OperationType = 1
47 // Triggered by UpdateFunction call
48 OperationType_UPDATE_FUNCTION OperationType = 2
49 // Triggered by DeleteFunction call.
50 OperationType_DELETE_FUNCTION OperationType = 3
51 )
52
53 // Enum value maps for OperationType.
54 var (
55 OperationType_name = map[int32]string{
56 0: "OPERATION_UNSPECIFIED",
57 1: "CREATE_FUNCTION",
58 2: "UPDATE_FUNCTION",
59 3: "DELETE_FUNCTION",
60 }
61 OperationType_value = map[string]int32{
62 "OPERATION_UNSPECIFIED": 0,
63 "CREATE_FUNCTION": 1,
64 "UPDATE_FUNCTION": 2,
65 "DELETE_FUNCTION": 3,
66 }
67 )
68
69 func (x OperationType) Enum() *OperationType {
70 p := new(OperationType)
71 *p = x
72 return p
73 }
74
75 func (x OperationType) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (OperationType) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_cloud_functions_v1_operations_proto_enumTypes[0].Descriptor()
81 }
82
83 func (OperationType) Type() protoreflect.EnumType {
84 return &file_google_cloud_functions_v1_operations_proto_enumTypes[0]
85 }
86
87 func (x OperationType) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91 // Deprecated: Use OperationType.Descriptor instead.
92 func (OperationType) EnumDescriptor() ([]byte, []int) {
93 return file_google_cloud_functions_v1_operations_proto_rawDescGZIP(), []int{0}
94 }
95
96 // Metadata describing an [Operation][google.longrunning.Operation]
97 type OperationMetadataV1 struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // Target of the operation - for example
103 // `projects/project-1/locations/region-1/functions/function-1`
104 Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
105 // Type of operation.
106 Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1.OperationType" json:"type,omitempty"`
107 // The original request that started the operation.
108 Request *anypb.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
109 // Version id of the function created or updated by an API call.
110 // This field is only populated for Create and Update operations.
111 VersionId int64 `protobuf:"varint,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
112 // The last update timestamp of the operation.
113 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
114 // The Cloud Build ID of the function created or updated by an API call.
115 // This field is only populated for Create and Update operations.
116 BuildId string `protobuf:"bytes,6,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
117 // An identifier for Firebase function sources. Disclaimer: This field is only
118 // supported for Firebase function deployments.
119 SourceToken string `protobuf:"bytes,7,opt,name=source_token,json=sourceToken,proto3" json:"source_token,omitempty"`
120 // The Cloud Build Name of the function deployment.
121 // This field is only populated for Create and Update operations.
122 // `projects/<project-number>/locations/<region>/builds/<build-id>`.
123 BuildName string `protobuf:"bytes,8,opt,name=build_name,json=buildName,proto3" json:"build_name,omitempty"`
124 }
125
126 func (x *OperationMetadataV1) Reset() {
127 *x = OperationMetadataV1{}
128 mi := &file_google_cloud_functions_v1_operations_proto_msgTypes[0]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132
133 func (x *OperationMetadataV1) String() string {
134 return protoimpl.X.MessageStringOf(x)
135 }
136
137 func (*OperationMetadataV1) ProtoMessage() {}
138
139 func (x *OperationMetadataV1) ProtoReflect() protoreflect.Message {
140 mi := &file_google_cloud_functions_v1_operations_proto_msgTypes[0]
141 if x != nil {
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 if ms.LoadMessageInfo() == nil {
144 ms.StoreMessageInfo(mi)
145 }
146 return ms
147 }
148 return mi.MessageOf(x)
149 }
150
151 // Deprecated: Use OperationMetadataV1.ProtoReflect.Descriptor instead.
152 func (*OperationMetadataV1) Descriptor() ([]byte, []int) {
153 return file_google_cloud_functions_v1_operations_proto_rawDescGZIP(), []int{0}
154 }
155
156 func (x *OperationMetadataV1) GetTarget() string {
157 if x != nil {
158 return x.Target
159 }
160 return ""
161 }
162
163 func (x *OperationMetadataV1) GetType() OperationType {
164 if x != nil {
165 return x.Type
166 }
167 return OperationType_OPERATION_UNSPECIFIED
168 }
169
170 func (x *OperationMetadataV1) GetRequest() *anypb.Any {
171 if x != nil {
172 return x.Request
173 }
174 return nil
175 }
176
177 func (x *OperationMetadataV1) GetVersionId() int64 {
178 if x != nil {
179 return x.VersionId
180 }
181 return 0
182 }
183
184 func (x *OperationMetadataV1) GetUpdateTime() *timestamppb.Timestamp {
185 if x != nil {
186 return x.UpdateTime
187 }
188 return nil
189 }
190
191 func (x *OperationMetadataV1) GetBuildId() string {
192 if x != nil {
193 return x.BuildId
194 }
195 return ""
196 }
197
198 func (x *OperationMetadataV1) GetSourceToken() string {
199 if x != nil {
200 return x.SourceToken
201 }
202 return ""
203 }
204
205 func (x *OperationMetadataV1) GetBuildName() string {
206 if x != nil {
207 return x.BuildName
208 }
209 return ""
210 }
211
212 var File_google_cloud_functions_v1_operations_proto protoreflect.FileDescriptor
213
214 var file_google_cloud_functions_v1_operations_proto_rawDesc = []byte{
215 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x66,
216 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72,
217 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f,
218 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74,
219 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
220 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f,
221 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
222 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
223 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x13, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
224 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x31, 0x12, 0x16, 0x0a, 0x06, 0x74,
225 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72,
226 0x67, 0x65, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
227 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
228 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70,
229 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
230 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01,
231 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
232 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
233 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
234 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64,
235 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
236 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
237 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
238 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a,
239 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
240 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72,
241 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
242 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x62,
243 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
244 0x09, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x69, 0x0a, 0x0d, 0x4f, 0x70,
245 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4f,
246 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
247 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45,
248 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55,
249 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02,
250 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54,
251 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0x78, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
252 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
253 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x18, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
254 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
255 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
256 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
257 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
258 0x73, 0x70, 0x62, 0x3b, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0x62, 0x62,
259 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
260 }
261
262 var (
263 file_google_cloud_functions_v1_operations_proto_rawDescOnce sync.Once
264 file_google_cloud_functions_v1_operations_proto_rawDescData = file_google_cloud_functions_v1_operations_proto_rawDesc
265 )
266
267 func file_google_cloud_functions_v1_operations_proto_rawDescGZIP() []byte {
268 file_google_cloud_functions_v1_operations_proto_rawDescOnce.Do(func() {
269 file_google_cloud_functions_v1_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_functions_v1_operations_proto_rawDescData)
270 })
271 return file_google_cloud_functions_v1_operations_proto_rawDescData
272 }
273
274 var file_google_cloud_functions_v1_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
275 var file_google_cloud_functions_v1_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
276 var file_google_cloud_functions_v1_operations_proto_goTypes = []any{
277 (OperationType)(0), // 0: google.cloud.functions.v1.OperationType
278 (*OperationMetadataV1)(nil), // 1: google.cloud.functions.v1.OperationMetadataV1
279 (*anypb.Any)(nil), // 2: google.protobuf.Any
280 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
281 }
282 var file_google_cloud_functions_v1_operations_proto_depIdxs = []int32{
283 0, // 0: google.cloud.functions.v1.OperationMetadataV1.type:type_name -> google.cloud.functions.v1.OperationType
284 2, // 1: google.cloud.functions.v1.OperationMetadataV1.request:type_name -> google.protobuf.Any
285 3, // 2: google.cloud.functions.v1.OperationMetadataV1.update_time:type_name -> google.protobuf.Timestamp
286 3, // [3:3] is the sub-list for method output_type
287 3, // [3:3] is the sub-list for method input_type
288 3, // [3:3] is the sub-list for extension type_name
289 3, // [3:3] is the sub-list for extension extendee
290 0, // [0:3] is the sub-list for field type_name
291 }
292
293 func init() { file_google_cloud_functions_v1_operations_proto_init() }
294 func file_google_cloud_functions_v1_operations_proto_init() {
295 if File_google_cloud_functions_v1_operations_proto != nil {
296 return
297 }
298 type x struct{}
299 out := protoimpl.TypeBuilder{
300 File: protoimpl.DescBuilder{
301 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
302 RawDescriptor: file_google_cloud_functions_v1_operations_proto_rawDesc,
303 NumEnums: 1,
304 NumMessages: 1,
305 NumExtensions: 0,
306 NumServices: 0,
307 },
308 GoTypes: file_google_cloud_functions_v1_operations_proto_goTypes,
309 DependencyIndexes: file_google_cloud_functions_v1_operations_proto_depIdxs,
310 EnumInfos: file_google_cloud_functions_v1_operations_proto_enumTypes,
311 MessageInfos: file_google_cloud_functions_v1_operations_proto_msgTypes,
312 }.Build()
313 File_google_cloud_functions_v1_operations_proto = out.File
314 file_google_cloud_functions_v1_operations_proto_rawDesc = nil
315 file_google_cloud_functions_v1_operations_proto_goTypes = nil
316 file_google_cloud_functions_v1_operations_proto_depIdxs = nil
317 }