1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/expr/v1beta1/decl.proto 3 4package expr 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11) 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24// A declaration. 25type Decl struct { 26 // The id of the declaration. 27 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 28 // The name of the declaration. 29 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 30 // The documentation string for the declaration. 31 Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` 32 // The kind of declaration. 33 // 34 // Types that are valid to be assigned to Kind: 35 // *Decl_Ident 36 // *Decl_Function 37 Kind isDecl_Kind `protobuf_oneof:"kind"` 38 XXX_NoUnkeyedLiteral struct{} `json:"-"` 39 XXX_unrecognized []byte `json:"-"` 40 XXX_sizecache int32 `json:"-"` 41} 42 43func (m *Decl) Reset() { *m = Decl{} } 44func (m *Decl) String() string { return proto.CompactTextString(m) } 45func (*Decl) ProtoMessage() {} 46func (*Decl) Descriptor() ([]byte, []int) { 47 return fileDescriptor_7b13a6b7649d2726, []int{0} 48} 49 50func (m *Decl) XXX_Unmarshal(b []byte) error { 51 return xxx_messageInfo_Decl.Unmarshal(m, b) 52} 53func (m *Decl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 54 return xxx_messageInfo_Decl.Marshal(b, m, deterministic) 55} 56func (m *Decl) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_Decl.Merge(m, src) 58} 59func (m *Decl) XXX_Size() int { 60 return xxx_messageInfo_Decl.Size(m) 61} 62func (m *Decl) XXX_DiscardUnknown() { 63 xxx_messageInfo_Decl.DiscardUnknown(m) 64} 65 66var xxx_messageInfo_Decl proto.InternalMessageInfo 67 68func (m *Decl) GetId() int32 { 69 if m != nil { 70 return m.Id 71 } 72 return 0 73} 74 75func (m *Decl) GetName() string { 76 if m != nil { 77 return m.Name 78 } 79 return "" 80} 81 82func (m *Decl) GetDoc() string { 83 if m != nil { 84 return m.Doc 85 } 86 return "" 87} 88 89type isDecl_Kind interface { 90 isDecl_Kind() 91} 92 93type Decl_Ident struct { 94 Ident *IdentDecl `protobuf:"bytes,4,opt,name=ident,proto3,oneof"` 95} 96 97type Decl_Function struct { 98 Function *FunctionDecl `protobuf:"bytes,5,opt,name=function,proto3,oneof"` 99} 100 101func (*Decl_Ident) isDecl_Kind() {} 102 103func (*Decl_Function) isDecl_Kind() {} 104 105func (m *Decl) GetKind() isDecl_Kind { 106 if m != nil { 107 return m.Kind 108 } 109 return nil 110} 111 112func (m *Decl) GetIdent() *IdentDecl { 113 if x, ok := m.GetKind().(*Decl_Ident); ok { 114 return x.Ident 115 } 116 return nil 117} 118 119func (m *Decl) GetFunction() *FunctionDecl { 120 if x, ok := m.GetKind().(*Decl_Function); ok { 121 return x.Function 122 } 123 return nil 124} 125 126// XXX_OneofWrappers is for the internal use of the proto package. 127func (*Decl) XXX_OneofWrappers() []interface{} { 128 return []interface{}{ 129 (*Decl_Ident)(nil), 130 (*Decl_Function)(nil), 131 } 132} 133 134// The declared type of a variable. 135// 136// Extends runtime type values with extra information used for type checking 137// and dispatching. 138type DeclType struct { 139 // The expression id of the declared type, if applicable. 140 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 141 // The type name, e.g. 'int', 'my.type.Type' or 'T' 142 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 143 // An ordered list of type parameters, e.g. `<string, int>`. 144 // Only applies to a subset of types, e.g. `map`, `list`. 145 TypeParams []*DeclType `protobuf:"bytes,4,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"` 146 XXX_NoUnkeyedLiteral struct{} `json:"-"` 147 XXX_unrecognized []byte `json:"-"` 148 XXX_sizecache int32 `json:"-"` 149} 150 151func (m *DeclType) Reset() { *m = DeclType{} } 152func (m *DeclType) String() string { return proto.CompactTextString(m) } 153func (*DeclType) ProtoMessage() {} 154func (*DeclType) Descriptor() ([]byte, []int) { 155 return fileDescriptor_7b13a6b7649d2726, []int{1} 156} 157 158func (m *DeclType) XXX_Unmarshal(b []byte) error { 159 return xxx_messageInfo_DeclType.Unmarshal(m, b) 160} 161func (m *DeclType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 162 return xxx_messageInfo_DeclType.Marshal(b, m, deterministic) 163} 164func (m *DeclType) XXX_Merge(src proto.Message) { 165 xxx_messageInfo_DeclType.Merge(m, src) 166} 167func (m *DeclType) XXX_Size() int { 168 return xxx_messageInfo_DeclType.Size(m) 169} 170func (m *DeclType) XXX_DiscardUnknown() { 171 xxx_messageInfo_DeclType.DiscardUnknown(m) 172} 173 174var xxx_messageInfo_DeclType proto.InternalMessageInfo 175 176func (m *DeclType) GetId() int32 { 177 if m != nil { 178 return m.Id 179 } 180 return 0 181} 182 183func (m *DeclType) GetType() string { 184 if m != nil { 185 return m.Type 186 } 187 return "" 188} 189 190func (m *DeclType) GetTypeParams() []*DeclType { 191 if m != nil { 192 return m.TypeParams 193 } 194 return nil 195} 196 197// An identifier declaration. 198type IdentDecl struct { 199 // Optional type of the identifier. 200 Type *DeclType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` 201 // Optional value of the identifier. 202 Value *Expr `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` 203 XXX_NoUnkeyedLiteral struct{} `json:"-"` 204 XXX_unrecognized []byte `json:"-"` 205 XXX_sizecache int32 `json:"-"` 206} 207 208func (m *IdentDecl) Reset() { *m = IdentDecl{} } 209func (m *IdentDecl) String() string { return proto.CompactTextString(m) } 210func (*IdentDecl) ProtoMessage() {} 211func (*IdentDecl) Descriptor() ([]byte, []int) { 212 return fileDescriptor_7b13a6b7649d2726, []int{2} 213} 214 215func (m *IdentDecl) XXX_Unmarshal(b []byte) error { 216 return xxx_messageInfo_IdentDecl.Unmarshal(m, b) 217} 218func (m *IdentDecl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 219 return xxx_messageInfo_IdentDecl.Marshal(b, m, deterministic) 220} 221func (m *IdentDecl) XXX_Merge(src proto.Message) { 222 xxx_messageInfo_IdentDecl.Merge(m, src) 223} 224func (m *IdentDecl) XXX_Size() int { 225 return xxx_messageInfo_IdentDecl.Size(m) 226} 227func (m *IdentDecl) XXX_DiscardUnknown() { 228 xxx_messageInfo_IdentDecl.DiscardUnknown(m) 229} 230 231var xxx_messageInfo_IdentDecl proto.InternalMessageInfo 232 233func (m *IdentDecl) GetType() *DeclType { 234 if m != nil { 235 return m.Type 236 } 237 return nil 238} 239 240func (m *IdentDecl) GetValue() *Expr { 241 if m != nil { 242 return m.Value 243 } 244 return nil 245} 246 247// A function declaration. 248type FunctionDecl struct { 249 // The function arguments. 250 Args []*IdentDecl `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` 251 // Optional declared return type. 252 ReturnType *DeclType `protobuf:"bytes,2,opt,name=return_type,json=returnType,proto3" json:"return_type,omitempty"` 253 // If the first argument of the function is the receiver. 254 ReceiverFunction bool `protobuf:"varint,3,opt,name=receiver_function,json=receiverFunction,proto3" json:"receiver_function,omitempty"` 255 XXX_NoUnkeyedLiteral struct{} `json:"-"` 256 XXX_unrecognized []byte `json:"-"` 257 XXX_sizecache int32 `json:"-"` 258} 259 260func (m *FunctionDecl) Reset() { *m = FunctionDecl{} } 261func (m *FunctionDecl) String() string { return proto.CompactTextString(m) } 262func (*FunctionDecl) ProtoMessage() {} 263func (*FunctionDecl) Descriptor() ([]byte, []int) { 264 return fileDescriptor_7b13a6b7649d2726, []int{3} 265} 266 267func (m *FunctionDecl) XXX_Unmarshal(b []byte) error { 268 return xxx_messageInfo_FunctionDecl.Unmarshal(m, b) 269} 270func (m *FunctionDecl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 271 return xxx_messageInfo_FunctionDecl.Marshal(b, m, deterministic) 272} 273func (m *FunctionDecl) XXX_Merge(src proto.Message) { 274 xxx_messageInfo_FunctionDecl.Merge(m, src) 275} 276func (m *FunctionDecl) XXX_Size() int { 277 return xxx_messageInfo_FunctionDecl.Size(m) 278} 279func (m *FunctionDecl) XXX_DiscardUnknown() { 280 xxx_messageInfo_FunctionDecl.DiscardUnknown(m) 281} 282 283var xxx_messageInfo_FunctionDecl proto.InternalMessageInfo 284 285func (m *FunctionDecl) GetArgs() []*IdentDecl { 286 if m != nil { 287 return m.Args 288 } 289 return nil 290} 291 292func (m *FunctionDecl) GetReturnType() *DeclType { 293 if m != nil { 294 return m.ReturnType 295 } 296 return nil 297} 298 299func (m *FunctionDecl) GetReceiverFunction() bool { 300 if m != nil { 301 return m.ReceiverFunction 302 } 303 return false 304} 305 306func init() { 307 proto.RegisterType((*Decl)(nil), "google.api.expr.v1beta1.Decl") 308 proto.RegisterType((*DeclType)(nil), "google.api.expr.v1beta1.DeclType") 309 proto.RegisterType((*IdentDecl)(nil), "google.api.expr.v1beta1.IdentDecl") 310 proto.RegisterType((*FunctionDecl)(nil), "google.api.expr.v1beta1.FunctionDecl") 311} 312 313func init() { proto.RegisterFile("google/api/expr/v1beta1/decl.proto", fileDescriptor_7b13a6b7649d2726) } 314 315var fileDescriptor_7b13a6b7649d2726 = []byte{ 316 // 398 bytes of a gzipped FileDescriptorProto 317 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcd, 0x4a, 0xeb, 0x40, 318 0x14, 0xc7, 0xef, 0x34, 0x49, 0x69, 0x4f, 0x2f, 0x97, 0xde, 0xd9, 0xdc, 0x70, 0x45, 0x88, 0x01, 319 0x21, 0x20, 0x24, 0xb4, 0x45, 0x17, 0x76, 0x17, 0x3f, 0xd0, 0x5d, 0x09, 0xae, 0xdc, 0x94, 0x69, 320 0x32, 0x86, 0xd1, 0x74, 0x66, 0x98, 0xa6, 0xb5, 0x7d, 0x32, 0x9f, 0xc0, 0x77, 0x72, 0x29, 0x33, 321 0x49, 0x83, 0xa0, 0x81, 0xae, 0x7a, 0x9a, 0xf3, 0xff, 0x9d, 0x8f, 0xff, 0x1c, 0xf0, 0x73, 0x21, 322 0xf2, 0x82, 0x46, 0x44, 0xb2, 0x88, 0x6e, 0xa5, 0x8a, 0x36, 0xa3, 0x05, 0x2d, 0xc9, 0x28, 0xca, 323 0x68, 0x5a, 0x84, 0x52, 0x89, 0x52, 0xe0, 0x7f, 0x95, 0x26, 0x24, 0x92, 0x85, 0x5a, 0x13, 0xd6, 324 0x9a, 0xff, 0xad, 0xb0, 0x51, 0x19, 0xd8, 0x7f, 0x47, 0x60, 0x5f, 0xd3, 0xb4, 0xc0, 0x7f, 0xa0, 325 0xc3, 0x32, 0x17, 0x79, 0x28, 0x70, 0x92, 0x0e, 0xcb, 0x30, 0x06, 0x9b, 0x93, 0x25, 0x75, 0x3b, 326 0x1e, 0x0a, 0xfa, 0x89, 0x89, 0xf1, 0x10, 0xac, 0x4c, 0xa4, 0xae, 0x65, 0x3e, 0xe9, 0x10, 0x5f, 327 0x82, 0xc3, 0x32, 0xca, 0x4b, 0xd7, 0xf6, 0x50, 0x30, 0x18, 0xfb, 0x61, 0xcb, 0x2c, 0xe1, 0xbd, 328 0x56, 0xe9, 0x46, 0x77, 0xbf, 0x92, 0x0a, 0xc1, 0x57, 0xd0, 0x7b, 0x5a, 0xf3, 0xb4, 0x64, 0x82, 329 0xbb, 0x8e, 0xc1, 0x4f, 0x5b, 0xf1, 0xdb, 0x5a, 0x58, 0x57, 0x68, 0xc0, 0xb8, 0x0b, 0xf6, 0x0b, 330 0xe3, 0x99, 0xaf, 0xa0, 0xa7, 0x73, 0x0f, 0x3b, 0x49, 0x7f, 0x5a, 0xa5, 0xdc, 0xc9, 0x66, 0x15, 331 0x1d, 0xe3, 0x18, 0x06, 0xfa, 0x77, 0x2e, 0x89, 0x22, 0xcb, 0x95, 0x6b, 0x7b, 0x56, 0x30, 0x18, 332 0x9f, 0xb4, 0xf6, 0xdf, 0xd7, 0x4e, 0x40, 0x53, 0x33, 0x03, 0xf9, 0xaf, 0xd0, 0x6f, 0xd6, 0xc2, 333 0xe7, 0x75, 0x13, 0xcb, 0x6c, 0x72, 0x40, 0xa5, 0x6a, 0x8e, 0x09, 0x38, 0x1b, 0x52, 0xac, 0x69, 334 0x6d, 0xe0, 0x71, 0x2b, 0x77, 0xb3, 0x95, 0x2a, 0xa9, 0xb4, 0xfe, 0x1b, 0x82, 0xdf, 0x5f, 0x1d, 335 0xc1, 0x17, 0x60, 0x13, 0x95, 0xaf, 0x5c, 0x64, 0xd6, 0x38, 0xe0, 0x15, 0x12, 0xa3, 0xd7, 0x2e, 336 0x28, 0x5a, 0xae, 0x15, 0x9f, 0x37, 0x06, 0x1d, 0xe6, 0x42, 0x45, 0x19, 0xb7, 0xcf, 0xe0, 0xaf, 337 0xa2, 0x29, 0x65, 0x1b, 0xaa, 0xe6, 0xcd, 0x7b, 0x6a, 0x17, 0x7a, 0xc9, 0x70, 0x9f, 0xd8, 0x0f, 338 0x1b, 0x3f, 0xc3, 0x51, 0x2a, 0x96, 0x6d, 0x0d, 0xe2, 0xbe, 0xee, 0x30, 0xd3, 0x87, 0x39, 0x43, 339 0x8f, 0xd3, 0x5a, 0x95, 0x8b, 0x82, 0xf0, 0x3c, 0x14, 0x2a, 0x8f, 0x72, 0xca, 0xcd, 0xd9, 0x46, 340 0x55, 0x8a, 0x48, 0xb6, 0xfa, 0x76, 0xdd, 0x53, 0xfd, 0xe7, 0x03, 0xa1, 0x45, 0xd7, 0x48, 0x27, 341 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x10, 0x20, 0xb6, 0xbc, 0x44, 0x03, 0x00, 0x00, 342} 343