1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/functions/v1beta2/operations.proto
3
4package functions
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	any "github.com/golang/protobuf/ptypes/any"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// A type of an operation.
27type OperationType int32
28
29const (
30	// Unknown operation type.
31	OperationType_OPERATION_UNSPECIFIED OperationType = 0
32	// Triggered by CreateFunction call
33	OperationType_CREATE_FUNCTION OperationType = 1
34	// Triggered by UpdateFunction call
35	OperationType_UPDATE_FUNCTION OperationType = 2
36	// Triggered by DeleteFunction call.
37	OperationType_DELETE_FUNCTION OperationType = 3
38)
39
40var OperationType_name = map[int32]string{
41	0: "OPERATION_UNSPECIFIED",
42	1: "CREATE_FUNCTION",
43	2: "UPDATE_FUNCTION",
44	3: "DELETE_FUNCTION",
45}
46
47var OperationType_value = map[string]int32{
48	"OPERATION_UNSPECIFIED": 0,
49	"CREATE_FUNCTION":       1,
50	"UPDATE_FUNCTION":       2,
51	"DELETE_FUNCTION":       3,
52}
53
54func (x OperationType) String() string {
55	return proto.EnumName(OperationType_name, int32(x))
56}
57
58func (OperationType) EnumDescriptor() ([]byte, []int) {
59	return fileDescriptor_25e43fb62395b1f8, []int{0}
60}
61
62// Metadata describing an [Operation][google.longrunning.Operation]
63type OperationMetadataV1Beta2 struct {
64	// Target of the operation - for example
65	// projects/project-1/locations/region-1/functions/function-1
66	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
67	// Type of operation.
68	Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1beta2.OperationType" json:"type,omitempty"`
69	// The original request that started the operation.
70	Request              *any.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
71	XXX_NoUnkeyedLiteral struct{} `json:"-"`
72	XXX_unrecognized     []byte   `json:"-"`
73	XXX_sizecache        int32    `json:"-"`
74}
75
76func (m *OperationMetadataV1Beta2) Reset()         { *m = OperationMetadataV1Beta2{} }
77func (m *OperationMetadataV1Beta2) String() string { return proto.CompactTextString(m) }
78func (*OperationMetadataV1Beta2) ProtoMessage()    {}
79func (*OperationMetadataV1Beta2) Descriptor() ([]byte, []int) {
80	return fileDescriptor_25e43fb62395b1f8, []int{0}
81}
82
83func (m *OperationMetadataV1Beta2) XXX_Unmarshal(b []byte) error {
84	return xxx_messageInfo_OperationMetadataV1Beta2.Unmarshal(m, b)
85}
86func (m *OperationMetadataV1Beta2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
87	return xxx_messageInfo_OperationMetadataV1Beta2.Marshal(b, m, deterministic)
88}
89func (m *OperationMetadataV1Beta2) XXX_Merge(src proto.Message) {
90	xxx_messageInfo_OperationMetadataV1Beta2.Merge(m, src)
91}
92func (m *OperationMetadataV1Beta2) XXX_Size() int {
93	return xxx_messageInfo_OperationMetadataV1Beta2.Size(m)
94}
95func (m *OperationMetadataV1Beta2) XXX_DiscardUnknown() {
96	xxx_messageInfo_OperationMetadataV1Beta2.DiscardUnknown(m)
97}
98
99var xxx_messageInfo_OperationMetadataV1Beta2 proto.InternalMessageInfo
100
101func (m *OperationMetadataV1Beta2) GetTarget() string {
102	if m != nil {
103		return m.Target
104	}
105	return ""
106}
107
108func (m *OperationMetadataV1Beta2) GetType() OperationType {
109	if m != nil {
110		return m.Type
111	}
112	return OperationType_OPERATION_UNSPECIFIED
113}
114
115func (m *OperationMetadataV1Beta2) GetRequest() *any.Any {
116	if m != nil {
117		return m.Request
118	}
119	return nil
120}
121
122func init() {
123	proto.RegisterEnum("google.cloud.functions.v1beta2.OperationType", OperationType_name, OperationType_value)
124	proto.RegisterType((*OperationMetadataV1Beta2)(nil), "google.cloud.functions.v1beta2.OperationMetadataV1Beta2")
125}
126
127func init() {
128	proto.RegisterFile("google/cloud/functions/v1beta2/operations.proto", fileDescriptor_25e43fb62395b1f8)
129}
130
131var fileDescriptor_25e43fb62395b1f8 = []byte{
132	// 333 bytes of a gzipped FileDescriptorProto
133	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x4f, 0x4f, 0xf2, 0x30,
134	0x1c, 0xc7, 0x9f, 0xc2, 0x13, 0x8c, 0x35, 0x2a, 0x99, 0x7f, 0x32, 0x88, 0x31, 0x84, 0x13, 0x31,
135	0xb1, 0x0d, 0x78, 0xf4, 0x34, 0xa0, 0x18, 0x12, 0x85, 0x65, 0x82, 0x07, 0x2f, 0xa4, 0x40, 0x69,
136	0x96, 0xcc, 0xb6, 0x6e, 0x9d, 0xc9, 0x5e, 0x82, 0x2f, 0xc4, 0xf7, 0x69, 0x56, 0xba, 0x05, 0x0e,
137	0xea, 0xb1, 0x9f, 0xf6, 0xf3, 0xed, 0xf7, 0x97, 0x1f, 0xc4, 0x5c, 0x4a, 0x1e, 0x31, 0xbc, 0x8a,
138	0x64, 0xba, 0xc6, 0x9b, 0x54, 0xac, 0x74, 0x28, 0x45, 0x82, 0x3f, 0xba, 0x4b, 0xa6, 0x69, 0x0f,
139	0x4b, 0xc5, 0x62, 0x6a, 0x10, 0x52, 0xb1, 0xd4, 0xd2, 0xb9, 0xde, 0x0a, 0xc8, 0x08, 0xa8, 0x14,
140	0x90, 0x15, 0x9a, 0x57, 0x36, 0x90, 0xaa, 0x10, 0x53, 0x21, 0xa4, 0xde, 0xb5, 0x9b, 0x0d, 0x7b,
141	0x6b, 0x4e, 0xcb, 0x74, 0x83, 0xa9, 0xc8, 0xb6, 0x57, 0xed, 0x2f, 0x00, 0xdd, 0x69, 0xf1, 0xdb,
142	0x13, 0xd3, 0x74, 0x4d, 0x35, 0x7d, 0xe9, 0xf6, 0xf3, 0x54, 0xe7, 0x12, 0xd6, 0x34, 0x8d, 0x39,
143	0xd3, 0x2e, 0x68, 0x81, 0xce, 0x61, 0x60, 0x4f, 0x8e, 0x07, 0xff, 0xeb, 0x4c, 0x31, 0xb7, 0xd2,
144	0x02, 0x9d, 0x93, 0xde, 0x2d, 0xfa, 0xbd, 0x1c, 0x2a, 0xf3, 0x67, 0x99, 0x62, 0x81, 0x51, 0x1d,
145	0x04, 0x0f, 0x62, 0xf6, 0x9e, 0xb2, 0x44, 0xbb, 0xd5, 0x16, 0xe8, 0x1c, 0xf5, 0xce, 0x8b, 0x94,
146	0xa2, 0x24, 0xf2, 0x44, 0x16, 0x14, 0x8f, 0x6e, 0x42, 0x78, 0xbc, 0x17, 0xe3, 0x34, 0xe0, 0xc5,
147	0xd4, 0x27, 0x81, 0x37, 0x1b, 0x4f, 0x27, 0x8b, 0xf9, 0xe4, 0xd9, 0x27, 0x83, 0xf1, 0x68, 0x4c,
148	0x86, 0xf5, 0x7f, 0xce, 0x19, 0x3c, 0x1d, 0x04, 0xc4, 0x9b, 0x91, 0xc5, 0x68, 0x3e, 0x19, 0xe4,
149	0x0f, 0xea, 0x20, 0x87, 0x73, 0x7f, 0xb8, 0x07, 0x2b, 0x39, 0x1c, 0x92, 0x47, 0xb2, 0x0b, 0xab,
150	0xfd, 0x4f, 0x00, 0xdb, 0x2b, 0xf9, 0xf6, 0xc7, 0x54, 0x7d, 0x77, 0x54, 0xa0, 0xb2, 0x58, 0xe2,
151	0xe7, 0xdd, 0x7d, 0xf0, 0xfa, 0x60, 0x5d, 0x2e, 0x23, 0x2a, 0x38, 0x92, 0x31, 0xc7, 0x9c, 0x09,
152	0x33, 0x99, 0x5d, 0x3d, 0x55, 0x61, 0xf2, 0xd3, 0xfa, 0xef, 0x4b, 0xb2, 0xac, 0x19, 0xe7, 0xee,
153	0x3b, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x8a, 0xb1, 0x83, 0x31, 0x02, 0x00, 0x00,
154}
155