• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// 	protoc-gen-go v1.25.0
4// 	protoc        v3.18.0
5// source: xds/type/v3/cel.proto
6
7package v3
8
9import (
10	_ "github.com/cncf/xds/go/xds/annotations/v3"
11	_ "github.com/envoyproxy/protoc-gen-validate/validate"
12	proto "github.com/golang/protobuf/proto"
13	wrappers "github.com/golang/protobuf/ptypes/wrappers"
14	v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
15	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17	reflect "reflect"
18	sync "sync"
19)
20
21const (
22	// Verify that this generated code is sufficiently up-to-date.
23	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24	// Verify that runtime/protoimpl is sufficiently up-to-date.
25	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26)
27
28// This is a compile-time assertion that a sufficiently up-to-date version
29// of the legacy proto package is being used.
30const _ = proto.ProtoPackageIsVersion4
31
32type CelExpression struct {
33	state         protoimpl.MessageState
34	sizeCache     protoimpl.SizeCache
35	unknownFields protoimpl.UnknownFields
36
37	// Types that are assignable to ExprSpecifier:
38	//	*CelExpression_ParsedExpr
39	//	*CelExpression_CheckedExpr
40	ExprSpecifier isCelExpression_ExprSpecifier `protobuf_oneof:"expr_specifier"`
41}
42
43func (x *CelExpression) Reset() {
44	*x = CelExpression{}
45	if protoimpl.UnsafeEnabled {
46		mi := &file_xds_type_v3_cel_proto_msgTypes[0]
47		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
48		ms.StoreMessageInfo(mi)
49	}
50}
51
52func (x *CelExpression) String() string {
53	return protoimpl.X.MessageStringOf(x)
54}
55
56func (*CelExpression) ProtoMessage() {}
57
58func (x *CelExpression) ProtoReflect() protoreflect.Message {
59	mi := &file_xds_type_v3_cel_proto_msgTypes[0]
60	if protoimpl.UnsafeEnabled && x != nil {
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		if ms.LoadMessageInfo() == nil {
63			ms.StoreMessageInfo(mi)
64		}
65		return ms
66	}
67	return mi.MessageOf(x)
68}
69
70// Deprecated: Use CelExpression.ProtoReflect.Descriptor instead.
71func (*CelExpression) Descriptor() ([]byte, []int) {
72	return file_xds_type_v3_cel_proto_rawDescGZIP(), []int{0}
73}
74
75func (m *CelExpression) GetExprSpecifier() isCelExpression_ExprSpecifier {
76	if m != nil {
77		return m.ExprSpecifier
78	}
79	return nil
80}
81
82func (x *CelExpression) GetParsedExpr() *v1alpha1.ParsedExpr {
83	if x, ok := x.GetExprSpecifier().(*CelExpression_ParsedExpr); ok {
84		return x.ParsedExpr
85	}
86	return nil
87}
88
89func (x *CelExpression) GetCheckedExpr() *v1alpha1.CheckedExpr {
90	if x, ok := x.GetExprSpecifier().(*CelExpression_CheckedExpr); ok {
91		return x.CheckedExpr
92	}
93	return nil
94}
95
96type isCelExpression_ExprSpecifier interface {
97	isCelExpression_ExprSpecifier()
98}
99
100type CelExpression_ParsedExpr struct {
101	ParsedExpr *v1alpha1.ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3,oneof"`
102}
103
104type CelExpression_CheckedExpr struct {
105	CheckedExpr *v1alpha1.CheckedExpr `protobuf:"bytes,2,opt,name=checked_expr,json=checkedExpr,proto3,oneof"`
106}
107
108func (*CelExpression_ParsedExpr) isCelExpression_ExprSpecifier() {}
109
110func (*CelExpression_CheckedExpr) isCelExpression_ExprSpecifier() {}
111
112type CelExtractString struct {
113	state         protoimpl.MessageState
114	sizeCache     protoimpl.SizeCache
115	unknownFields protoimpl.UnknownFields
116
117	ExprExtract  *CelExpression        `protobuf:"bytes,1,opt,name=expr_extract,json=exprExtract,proto3" json:"expr_extract,omitempty"`
118	DefaultValue *wrappers.StringValue `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
119}
120
121func (x *CelExtractString) Reset() {
122	*x = CelExtractString{}
123	if protoimpl.UnsafeEnabled {
124		mi := &file_xds_type_v3_cel_proto_msgTypes[1]
125		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126		ms.StoreMessageInfo(mi)
127	}
128}
129
130func (x *CelExtractString) String() string {
131	return protoimpl.X.MessageStringOf(x)
132}
133
134func (*CelExtractString) ProtoMessage() {}
135
136func (x *CelExtractString) ProtoReflect() protoreflect.Message {
137	mi := &file_xds_type_v3_cel_proto_msgTypes[1]
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 CelExtractString.ProtoReflect.Descriptor instead.
149func (*CelExtractString) Descriptor() ([]byte, []int) {
150	return file_xds_type_v3_cel_proto_rawDescGZIP(), []int{1}
151}
152
153func (x *CelExtractString) GetExprExtract() *CelExpression {
154	if x != nil {
155		return x.ExprExtract
156	}
157	return nil
158}
159
160func (x *CelExtractString) GetDefaultValue() *wrappers.StringValue {
161	if x != nil {
162		return x.DefaultValue
163	}
164	return nil
165}
166
167var File_xds_type_v3_cel_proto protoreflect.FileDescriptor
168
169var file_xds_type_v3_cel_proto_rawDesc = []byte{
170	0x0a, 0x15, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x65,
171	0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70,
172	0x65, 0x2e, 0x76, 0x33, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
173	0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63,
174	0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67, 0x6f,
175	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31,
176	0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70, 0x72,
177	0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
178	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
179	0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
180	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70,
181	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76,
182	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x01,
183	0x0a, 0x0d, 0x43, 0x65, 0x6c, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
184	0x47, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x01,
185	0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
186	0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
187	0x50, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61,
188	0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x12, 0x4a, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63,
189	0x6b, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25,
190	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
191	0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65,
192	0x64, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64,
193	0x45, 0x78, 0x70, 0x72, 0x42, 0x15, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x73, 0x70, 0x65,
194	0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x9e, 0x01, 0x0a, 0x10,
195	0x43, 0x65, 0x6c, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
196	0x12, 0x47, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74,
197	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70,
198	0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x65, 0x6c, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,
199	0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x65, 0x78,
200	0x70, 0x72, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x64, 0x65, 0x66,
201	0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
202	0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
203	0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c,
204	0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x50, 0x0a, 0x16,
205	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x74,
206	0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x08, 0x43, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f,
207	0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
208	0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x74,
209	0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 0x62, 0x06,
210	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
211}
212
213var (
214	file_xds_type_v3_cel_proto_rawDescOnce sync.Once
215	file_xds_type_v3_cel_proto_rawDescData = file_xds_type_v3_cel_proto_rawDesc
216)
217
218func file_xds_type_v3_cel_proto_rawDescGZIP() []byte {
219	file_xds_type_v3_cel_proto_rawDescOnce.Do(func() {
220		file_xds_type_v3_cel_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_type_v3_cel_proto_rawDescData)
221	})
222	return file_xds_type_v3_cel_proto_rawDescData
223}
224
225var file_xds_type_v3_cel_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
226var file_xds_type_v3_cel_proto_goTypes = []interface{}{
227	(*CelExpression)(nil),        // 0: xds.type.v3.CelExpression
228	(*CelExtractString)(nil),     // 1: xds.type.v3.CelExtractString
229	(*v1alpha1.ParsedExpr)(nil),  // 2: google.api.expr.v1alpha1.ParsedExpr
230	(*v1alpha1.CheckedExpr)(nil), // 3: google.api.expr.v1alpha1.CheckedExpr
231	(*wrappers.StringValue)(nil), // 4: google.protobuf.StringValue
232}
233var file_xds_type_v3_cel_proto_depIdxs = []int32{
234	2, // 0: xds.type.v3.CelExpression.parsed_expr:type_name -> google.api.expr.v1alpha1.ParsedExpr
235	3, // 1: xds.type.v3.CelExpression.checked_expr:type_name -> google.api.expr.v1alpha1.CheckedExpr
236	0, // 2: xds.type.v3.CelExtractString.expr_extract:type_name -> xds.type.v3.CelExpression
237	4, // 3: xds.type.v3.CelExtractString.default_value:type_name -> google.protobuf.StringValue
238	4, // [4:4] is the sub-list for method output_type
239	4, // [4:4] is the sub-list for method input_type
240	4, // [4:4] is the sub-list for extension type_name
241	4, // [4:4] is the sub-list for extension extendee
242	0, // [0:4] is the sub-list for field type_name
243}
244
245func init() { file_xds_type_v3_cel_proto_init() }
246func file_xds_type_v3_cel_proto_init() {
247	if File_xds_type_v3_cel_proto != nil {
248		return
249	}
250	if !protoimpl.UnsafeEnabled {
251		file_xds_type_v3_cel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
252			switch v := v.(*CelExpression); i {
253			case 0:
254				return &v.state
255			case 1:
256				return &v.sizeCache
257			case 2:
258				return &v.unknownFields
259			default:
260				return nil
261			}
262		}
263		file_xds_type_v3_cel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
264			switch v := v.(*CelExtractString); i {
265			case 0:
266				return &v.state
267			case 1:
268				return &v.sizeCache
269			case 2:
270				return &v.unknownFields
271			default:
272				return nil
273			}
274		}
275	}
276	file_xds_type_v3_cel_proto_msgTypes[0].OneofWrappers = []interface{}{
277		(*CelExpression_ParsedExpr)(nil),
278		(*CelExpression_CheckedExpr)(nil),
279	}
280	type x struct{}
281	out := protoimpl.TypeBuilder{
282		File: protoimpl.DescBuilder{
283			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
284			RawDescriptor: file_xds_type_v3_cel_proto_rawDesc,
285			NumEnums:      0,
286			NumMessages:   2,
287			NumExtensions: 0,
288			NumServices:   0,
289		},
290		GoTypes:           file_xds_type_v3_cel_proto_goTypes,
291		DependencyIndexes: file_xds_type_v3_cel_proto_depIdxs,
292		MessageInfos:      file_xds_type_v3_cel_proto_msgTypes,
293	}.Build()
294	File_xds_type_v3_cel_proto = out.File
295	file_xds_type_v3_cel_proto_rawDesc = nil
296	file_xds_type_v3_cel_proto_goTypes = nil
297	file_xds_type_v3_cel_proto_depIdxs = nil
298}
299