Debian Codegraph @

googleapis/cloud/functions/v1beta2/operations.pb.go

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