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