1// Copyright 2020 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}
120
121func (x *OperationMetadataV1) Reset() {
122	*x = OperationMetadataV1{}
123	if protoimpl.UnsafeEnabled {
124		mi := &file_google_cloud_functions_v1_operations_proto_msgTypes[0]
125		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126		ms.StoreMessageInfo(mi)
127	}
128}
129
130func (x *OperationMetadataV1) String() string {
131	return protoimpl.X.MessageStringOf(x)
132}
133
134func (*OperationMetadataV1) ProtoMessage() {}
135
136func (x *OperationMetadataV1) ProtoReflect() protoreflect.Message {
137	mi := &file_google_cloud_functions_v1_operations_proto_msgTypes[0]
138	if protoimpl.UnsafeEnabled && x != nil {
139		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140		if ms.LoadMessageInfo() == nil {
141			ms.StoreMessageInfo(mi)
142		}
143		return ms
144	}
145	return mi.MessageOf(x)
146}
147
148// Deprecated: Use OperationMetadataV1.ProtoReflect.Descriptor instead.
149func (*OperationMetadataV1) Descriptor() ([]byte, []int) {
150	return file_google_cloud_functions_v1_operations_proto_rawDescGZIP(), []int{0}
151}
152
153func (x *OperationMetadataV1) GetTarget() string {
154	if x != nil {
155		return x.Target
156	}
157	return ""
158}
159
160func (x *OperationMetadataV1) GetType() OperationType {
161	if x != nil {
162		return x.Type
163	}
164	return OperationType_OPERATION_UNSPECIFIED
165}
166
167func (x *OperationMetadataV1) GetRequest() *anypb.Any {
168	if x != nil {
169		return x.Request
170	}
171	return nil
172}
173
174func (x *OperationMetadataV1) GetVersionId() int64 {
175	if x != nil {
176		return x.VersionId
177	}
178	return 0
179}
180
181func (x *OperationMetadataV1) GetUpdateTime() *timestamppb.Timestamp {
182	if x != nil {
183		return x.UpdateTime
184	}
185	return nil
186}
187
188func (x *OperationMetadataV1) GetBuildId() string {
189	if x != nil {
190		return x.BuildId
191	}
192	return ""
193}
194
195var File_google_cloud_functions_v1_operations_proto protoreflect.FileDescriptor
196
197var file_google_cloud_functions_v1_operations_proto_rawDesc = []byte{
198	0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x66,
199	0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72,
200	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f,
201	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74,
202	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
203	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f,
204	0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
205	0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
206	0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
207	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
208	0x6f, 0x22, 0x92, 0x02, 0x0a, 0x13, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
209	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x31, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72,
210	0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,
211	0x74, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
212	0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x66,
213	0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72,
214	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
215	0x2e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
216	0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
217	0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
218	0x1d, 0x0a, 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,
219	0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3b,
220	0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20,
221	0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
222	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
223	0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62,
224	0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62,
225	0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x2a, 0x69, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
226	0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x50, 0x45, 0x52, 0x41,
227	0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
228	0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x55, 0x4e,
229	0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x44, 0x41, 0x54,
230	0x45, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f,
231	0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10,
232	0x03, 0x42, 0x7f, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
233	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
234	0x76, 0x31, 0x42, 0x18, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4f, 0x70, 0x65,
235	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42,
236	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
237	0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
238	0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x66, 0x75, 0x6e, 0x63,
239	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
240	0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
241}
242
243var (
244	file_google_cloud_functions_v1_operations_proto_rawDescOnce sync.Once
245	file_google_cloud_functions_v1_operations_proto_rawDescData = file_google_cloud_functions_v1_operations_proto_rawDesc
246)
247
248func file_google_cloud_functions_v1_operations_proto_rawDescGZIP() []byte {
249	file_google_cloud_functions_v1_operations_proto_rawDescOnce.Do(func() {
250		file_google_cloud_functions_v1_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_functions_v1_operations_proto_rawDescData)
251	})
252	return file_google_cloud_functions_v1_operations_proto_rawDescData
253}
254
255var file_google_cloud_functions_v1_operations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
256var file_google_cloud_functions_v1_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
257var file_google_cloud_functions_v1_operations_proto_goTypes = []interface{}{
258	(OperationType)(0),            // 0: google.cloud.functions.v1.OperationType
259	(*OperationMetadataV1)(nil),   // 1: google.cloud.functions.v1.OperationMetadataV1
260	(*anypb.Any)(nil),             // 2: google.protobuf.Any
261	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
262}
263var file_google_cloud_functions_v1_operations_proto_depIdxs = []int32{
264	0, // 0: google.cloud.functions.v1.OperationMetadataV1.type:type_name -> google.cloud.functions.v1.OperationType
265	2, // 1: google.cloud.functions.v1.OperationMetadataV1.request:type_name -> google.protobuf.Any
266	3, // 2: google.cloud.functions.v1.OperationMetadataV1.update_time:type_name -> google.protobuf.Timestamp
267	3, // [3:3] is the sub-list for method output_type
268	3, // [3:3] is the sub-list for method input_type
269	3, // [3:3] is the sub-list for extension type_name
270	3, // [3:3] is the sub-list for extension extendee
271	0, // [0:3] is the sub-list for field type_name
272}
273
274func init() { file_google_cloud_functions_v1_operations_proto_init() }
275func file_google_cloud_functions_v1_operations_proto_init() {
276	if File_google_cloud_functions_v1_operations_proto != nil {
277		return
278	}
279	if !protoimpl.UnsafeEnabled {
280		file_google_cloud_functions_v1_operations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
281			switch v := v.(*OperationMetadataV1); i {
282			case 0:
283				return &v.state
284			case 1:
285				return &v.sizeCache
286			case 2:
287				return &v.unknownFields
288			default:
289				return nil
290			}
291		}
292	}
293	type x struct{}
294	out := protoimpl.TypeBuilder{
295		File: protoimpl.DescBuilder{
296			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
297			RawDescriptor: file_google_cloud_functions_v1_operations_proto_rawDesc,
298			NumEnums:      1,
299			NumMessages:   1,
300			NumExtensions: 0,
301			NumServices:   0,
302		},
303		GoTypes:           file_google_cloud_functions_v1_operations_proto_goTypes,
304		DependencyIndexes: file_google_cloud_functions_v1_operations_proto_depIdxs,
305		EnumInfos:         file_google_cloud_functions_v1_operations_proto_enumTypes,
306		MessageInfos:      file_google_cloud_functions_v1_operations_proto_msgTypes,
307	}.Build()
308	File_google_cloud_functions_v1_operations_proto = out.File
309	file_google_cloud_functions_v1_operations_proto_rawDesc = nil
310	file_google_cloud_functions_v1_operations_proto_goTypes = nil
311	file_google_cloud_functions_v1_operations_proto_depIdxs = nil
312}
313