1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43
44
45 const _ = proto.ProtoPackageIsVersion4
46
47
48 type OperationType int32
49
50 const (
51
52 OperationType_OPERATION_UNSPECIFIED OperationType = 0
53
54 OperationType_CREATE_FUNCTION OperationType = 1
55
56 OperationType_UPDATE_FUNCTION OperationType = 2
57
58 OperationType_DELETE_FUNCTION OperationType = 3
59 )
60
61
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
100 func (OperationType) EnumDescriptor() ([]byte, []int) {
101 return file_google_cloud_functions_v1beta2_operations_proto_rawDescGZIP(), []int{0}
102 }
103
104
105 type OperationMetadataV1Beta2 struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110
111
112 Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
113
114 Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1beta2.OperationType" json:"type,omitempty"`
115
116 Request *any.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
117
118
119 VersionId int64 `protobuf:"varint,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
120
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
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),
255 (*OperationMetadataV1Beta2)(nil),
256 (*any.Any)(nil),
257 (*timestamp.Timestamp)(nil),
258 }
259 var file_google_cloud_functions_v1beta2_operations_proto_depIdxs = []int32{
260 0,
261 2,
262 3,
263 3,
264 3,
265 3,
266 3,
267 0,
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 }
309
View as plain text