| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
v3 "github.com/cncf/xds/go/xds/type/v3" |
| 11 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type CelMatcher struct { |
| 27 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 28 |
ExprMatch *v3.CelExpression `protobuf:"bytes,1,opt,name=expr_match,json=exprMatch,proto3" json:"expr_match,omitempty"` |
| 29 |
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
sizeCache protoimpl.SizeCache |
| 32 |
} |
| 33 |
|
| 34 |
func (x *CelMatcher) Reset() { |
| 35 |
*x = CelMatcher{} |
| 36 |
mi := &file_xds_type_matcher_v3_cel_proto_msgTypes[0] |
| 37 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 38 |
ms.StoreMessageInfo(mi) |
| 39 |
} |
| 40 |
|
| 41 |
func (x *CelMatcher) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*CelMatcher) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *CelMatcher) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_xds_type_matcher_v3_cel_proto_msgTypes[0] |
| 49 |
if x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
func (*CelMatcher) Descriptor() ([]byte, []int) { |
| 61 |
return file_xds_type_matcher_v3_cel_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *CelMatcher) GetExprMatch() *v3.CelExpression { |
| 65 |
if x != nil { |
| 66 |
return x.ExprMatch |
| 67 |
} |
| 68 |
return nil |
| 69 |
} |
| 70 |
|
| 71 |
func (x *CelMatcher) GetDescription() string { |
| 72 |
if x != nil { |
| 73 |
return x.Description |
| 74 |
} |
| 75 |
return "" |
| 76 |
} |
| 77 |
|
| 78 |
var File_xds_type_matcher_v3_cel_proto protoreflect.FileDescriptor |
| 79 |
|
| 80 |
const file_xds_type_matcher_v3_cel_proto_rawDesc = "" + |
| 81 |
"\n" + |
| 82 |
"\x1dxds/type/matcher/v3/cel.proto\x12\x13xds.type.matcher.v3\x1a\x15xds/type/v3/cel.proto\x1a\x17validate/validate.proto\"s\n" + |
| 83 |
"\n" + |
| 84 |
"CelMatcher\x12C\n" + |
| 85 |
"\n" + |
| 86 |
"expr_match\x18\x01 \x01(\v2\x1a.xds.type.v3.CelExpressionB\b\xfaB\x05\x8a\x01\x02\x10\x01R\texprMatch\x12 \n" + |
| 87 |
"\vdescription\x18\x02 \x01(\tR\vdescriptionBX\n" + |
| 88 |
"\x1ecom.github.xds.type.matcher.v3B\bCelProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3" |
| 89 |
|
| 90 |
var ( |
| 91 |
file_xds_type_matcher_v3_cel_proto_rawDescOnce sync.Once |
| 92 |
file_xds_type_matcher_v3_cel_proto_rawDescData []byte |
| 93 |
) |
| 94 |
|
| 95 |
func file_xds_type_matcher_v3_cel_proto_rawDescGZIP() []byte { |
| 96 |
file_xds_type_matcher_v3_cel_proto_rawDescOnce.Do(func() { |
| 97 |
file_xds_type_matcher_v3_cel_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_cel_proto_rawDesc), len(file_xds_type_matcher_v3_cel_proto_rawDesc))) |
| 98 |
}) |
| 99 |
return file_xds_type_matcher_v3_cel_proto_rawDescData |
| 100 |
} |
| 101 |
|
| 102 |
var file_xds_type_matcher_v3_cel_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 103 |
var file_xds_type_matcher_v3_cel_proto_goTypes = []any{ |
| 104 |
(*CelMatcher)(nil), |
| 105 |
(*v3.CelExpression)(nil), |
| 106 |
} |
| 107 |
var file_xds_type_matcher_v3_cel_proto_depIdxs = []int32{ |
| 108 |
1, |
| 109 |
1, |
| 110 |
1, |
| 111 |
1, |
| 112 |
1, |
| 113 |
0, |
| 114 |
} |
| 115 |
|
| 116 |
func init() { file_xds_type_matcher_v3_cel_proto_init() } |
| 117 |
func file_xds_type_matcher_v3_cel_proto_init() { |
| 118 |
if File_xds_type_matcher_v3_cel_proto != nil { |
| 119 |
return |
| 120 |
} |
| 121 |
type x struct{} |
| 122 |
out := protoimpl.TypeBuilder{ |
| 123 |
File: protoimpl.DescBuilder{ |
| 124 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 125 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_cel_proto_rawDesc), len(file_xds_type_matcher_v3_cel_proto_rawDesc)), |
| 126 |
NumEnums: 0, |
| 127 |
NumMessages: 1, |
| 128 |
NumExtensions: 0, |
| 129 |
NumServices: 0, |
| 130 |
}, |
| 131 |
GoTypes: file_xds_type_matcher_v3_cel_proto_goTypes, |
| 132 |
DependencyIndexes: file_xds_type_matcher_v3_cel_proto_depIdxs, |
| 133 |
MessageInfos: file_xds_type_matcher_v3_cel_proto_msgTypes, |
| 134 |
}.Build() |
| 135 |
File_xds_type_matcher_v3_cel_proto = out.File |
| 136 |
file_xds_type_matcher_v3_cel_proto_goTypes = nil |
| 137 |
file_xds_type_matcher_v3_cel_proto_depIdxs = nil |
| 138 |
} |