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 timestamp "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14) 15 16// Reference imports to suppress errors if they are not otherwise used. 17var _ = proto.Marshal 18var _ = fmt.Errorf 19var _ = math.Inf 20 21// This is a compile-time assertion to ensure that this generated file 22// is compatible with the proto package it is being compiled against. 23// A compilation error at this line likely means your copy of the 24// proto package needs to be updated. 25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27// A type of an operation. 28type OperationType int32 29 30const ( 31 // Unknown operation type. 32 OperationType_OPERATION_UNSPECIFIED OperationType = 0 33 // Triggered by CreateFunction call 34 OperationType_CREATE_FUNCTION OperationType = 1 35 // Triggered by UpdateFunction call 36 OperationType_UPDATE_FUNCTION OperationType = 2 37 // Triggered by DeleteFunction call. 38 OperationType_DELETE_FUNCTION OperationType = 3 39) 40 41var OperationType_name = map[int32]string{ 42 0: "OPERATION_UNSPECIFIED", 43 1: "CREATE_FUNCTION", 44 2: "UPDATE_FUNCTION", 45 3: "DELETE_FUNCTION", 46} 47 48var OperationType_value = map[string]int32{ 49 "OPERATION_UNSPECIFIED": 0, 50 "CREATE_FUNCTION": 1, 51 "UPDATE_FUNCTION": 2, 52 "DELETE_FUNCTION": 3, 53} 54 55func (x OperationType) String() string { 56 return proto.EnumName(OperationType_name, int32(x)) 57} 58 59func (OperationType) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_25e43fb62395b1f8, []int{0} 61} 62 63// Metadata describing an [Operation][google.longrunning.Operation] 64type OperationMetadataV1Beta2 struct { 65 // Target of the operation - for example 66 // projects/project-1/locations/region-1/functions/function-1 67 Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` 68 // Type of operation. 69 Type OperationType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.functions.v1beta2.OperationType" json:"type,omitempty"` 70 // The original request that started the operation. 71 Request *any.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` 72 // Version id of the function created or updated by an API call. 73 // This field is only populated for Create and Update operations. 74 VersionId int64 `protobuf:"varint,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` 75 // The last update timestamp of the operation. 76 UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 77 XXX_NoUnkeyedLiteral struct{} `json:"-"` 78 XXX_unrecognized []byte `json:"-"` 79 XXX_sizecache int32 `json:"-"` 80} 81 82func (m *OperationMetadataV1Beta2) Reset() { *m = OperationMetadataV1Beta2{} } 83func (m *OperationMetadataV1Beta2) String() string { return proto.CompactTextString(m) } 84func (*OperationMetadataV1Beta2) ProtoMessage() {} 85func (*OperationMetadataV1Beta2) Descriptor() ([]byte, []int) { 86 return fileDescriptor_25e43fb62395b1f8, []int{0} 87} 88 89func (m *OperationMetadataV1Beta2) XXX_Unmarshal(b []byte) error { 90 return xxx_messageInfo_OperationMetadataV1Beta2.Unmarshal(m, b) 91} 92func (m *OperationMetadataV1Beta2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 93 return xxx_messageInfo_OperationMetadataV1Beta2.Marshal(b, m, deterministic) 94} 95func (m *OperationMetadataV1Beta2) XXX_Merge(src proto.Message) { 96 xxx_messageInfo_OperationMetadataV1Beta2.Merge(m, src) 97} 98func (m *OperationMetadataV1Beta2) XXX_Size() int { 99 return xxx_messageInfo_OperationMetadataV1Beta2.Size(m) 100} 101func (m *OperationMetadataV1Beta2) XXX_DiscardUnknown() { 102 xxx_messageInfo_OperationMetadataV1Beta2.DiscardUnknown(m) 103} 104 105var xxx_messageInfo_OperationMetadataV1Beta2 proto.InternalMessageInfo 106 107func (m *OperationMetadataV1Beta2) GetTarget() string { 108 if m != nil { 109 return m.Target 110 } 111 return "" 112} 113 114func (m *OperationMetadataV1Beta2) GetType() OperationType { 115 if m != nil { 116 return m.Type 117 } 118 return OperationType_OPERATION_UNSPECIFIED 119} 120 121func (m *OperationMetadataV1Beta2) GetRequest() *any.Any { 122 if m != nil { 123 return m.Request 124 } 125 return nil 126} 127 128func (m *OperationMetadataV1Beta2) GetVersionId() int64 { 129 if m != nil { 130 return m.VersionId 131 } 132 return 0 133} 134 135func (m *OperationMetadataV1Beta2) GetUpdateTime() *timestamp.Timestamp { 136 if m != nil { 137 return m.UpdateTime 138 } 139 return nil 140} 141 142func init() { 143 proto.RegisterEnum("google.cloud.functions.v1beta2.OperationType", OperationType_name, OperationType_value) 144 proto.RegisterType((*OperationMetadataV1Beta2)(nil), "google.cloud.functions.v1beta2.OperationMetadataV1Beta2") 145} 146 147func init() { 148 proto.RegisterFile("google/cloud/functions/v1beta2/operations.proto", fileDescriptor_25e43fb62395b1f8) 149} 150 151var fileDescriptor_25e43fb62395b1f8 = []byte{ 152 // 392 bytes of a gzipped FileDescriptorProto 153 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcd, 0xcb, 0xda, 0x30, 154 0x1c, 0xc7, 0x17, 0x75, 0x0e, 0x23, 0xdb, 0x24, 0x7b, 0xa1, 0xca, 0x5e, 0x8a, 0xa7, 0x32, 0x58, 155 0x82, 0xee, 0xe8, 0xa9, 0x6a, 0x1d, 0x85, 0x4d, 0x4b, 0x57, 0x77, 0xd8, 0xa5, 0x44, 0x1b, 0x4b, 156 0x41, 0x93, 0xac, 0x4d, 0x85, 0x1e, 0x77, 0xdc, 0x7f, 0x3d, 0x5a, 0xd3, 0xa2, 0x7b, 0x78, 0x9e, 157 0xe7, 0xd8, 0x4f, 0xbf, 0x9f, 0x6f, 0x7e, 0xbf, 0x10, 0x48, 0x62, 0x21, 0xe2, 0x23, 0x23, 0xfb, 158 0xa3, 0xc8, 0x23, 0x72, 0xc8, 0xf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 0xf8, 0xf0, 0x12, 0x2f, 0xc1, 0xa7, 170 0x04, 0x3e, 0xbf, 0x19, 0x11, 0x0d, 0xe1, 0x9b, 0x8d, 0xe7, 0xf8, 0x76, 0xe0, 0x6e, 0xd6, 0xe1, 171 0x76, 0xfd, 0xc3, 0x73, 0x16, 0xee, 0xca, 0x75, 0x96, 0x83, 0x27, 0xe8, 0x15, 0x7c, 0xb9, 0xf0, 172 0x1d, 0x3b, 0x70, 0xc2, 0xd5, 0x76, 0xbd, 0x28, 0x03, 0x03, 0x50, 0xc2, 0xad, 0xb7, 0xbc, 0x81, 173 0xad, 0x12, 0x2e, 0x9d, 0x6f, 0xce, 0x35, 0x6c, 0xcf, 0xff, 0x02, 0x38, 0xde, 0x8b, 0xd3, 0x23, 174 0x37, 0x36, 0x37, 0x56, 0x35, 0x6a, 0x06, 0xcb, 0xbc, 0x72, 0x09, 0x0f, 0xfc, 0xfa, 0xaa, 0xdd, 175 0x58, 0x1c, 0x29, 0x8f, 0xb1, 0x48, 0x63, 0x12, 0x33, 0x5e, 0xad, 0xa8, 0xdf, 0x1d, 0x95, 0x49, 176 0x76, 0xdf, 0xdb, 0x9b, 0x35, 0x64, 0xd7, 0xad, 0x9c, 0x2f, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 177 0x4b, 0xf7, 0x57, 0x72, 0xae, 0x02, 0x00, 0x00, 178} 179