github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/type/matcher/number.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/type/matcher/number.proto 6 7 package envoy_type_matcher 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _type "github.com/hxx258456/ccgo/go-control-plane/envoy/type" 12 _ "github.com/envoyproxy/protoc-gen-validate/validate" 13 proto "github.com/golang/protobuf/proto" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Specifies the way to match a double value. 32 type DoubleMatcher struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // Types that are assignable to MatchPattern: 38 // *DoubleMatcher_Range 39 // *DoubleMatcher_Exact 40 MatchPattern isDoubleMatcher_MatchPattern `protobuf_oneof:"match_pattern"` 41 } 42 43 func (x *DoubleMatcher) Reset() { 44 *x = DoubleMatcher{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_type_matcher_number_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *DoubleMatcher) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*DoubleMatcher) ProtoMessage() {} 57 58 func (x *DoubleMatcher) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_type_matcher_number_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 DoubleMatcher.ProtoReflect.Descriptor instead. 71 func (*DoubleMatcher) Descriptor() ([]byte, []int) { 72 return file_envoy_type_matcher_number_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (m *DoubleMatcher) GetMatchPattern() isDoubleMatcher_MatchPattern { 76 if m != nil { 77 return m.MatchPattern 78 } 79 return nil 80 } 81 82 func (x *DoubleMatcher) GetRange() *_type.DoubleRange { 83 if x, ok := x.GetMatchPattern().(*DoubleMatcher_Range); ok { 84 return x.Range 85 } 86 return nil 87 } 88 89 func (x *DoubleMatcher) GetExact() float64 { 90 if x, ok := x.GetMatchPattern().(*DoubleMatcher_Exact); ok { 91 return x.Exact 92 } 93 return 0 94 } 95 96 type isDoubleMatcher_MatchPattern interface { 97 isDoubleMatcher_MatchPattern() 98 } 99 100 type DoubleMatcher_Range struct { 101 // If specified, the input double value must be in the range specified here. 102 // Note: The range is using half-open interval semantics [start, end). 103 Range *_type.DoubleRange `protobuf:"bytes,1,opt,name=range,proto3,oneof"` 104 } 105 106 type DoubleMatcher_Exact struct { 107 // If specified, the input double value must be equal to the value specified here. 108 Exact float64 `protobuf:"fixed64,2,opt,name=exact,proto3,oneof"` 109 } 110 111 func (*DoubleMatcher_Range) isDoubleMatcher_MatchPattern() {} 112 113 func (*DoubleMatcher_Exact) isDoubleMatcher_MatchPattern() {} 114 115 var File_envoy_type_matcher_number_proto protoreflect.FileDescriptor 116 117 var file_envoy_type_matcher_number_proto_rawDesc = []byte{ 118 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 119 0x63, 0x68, 0x65, 0x72, 0x2f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 120 0x6f, 0x12, 0x12, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 121 0x74, 0x63, 0x68, 0x65, 0x72, 0x1a, 0x16, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 122 0x65, 0x2f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 123 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 124 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 125 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 126 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0d, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x4d, 127 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 128 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 129 0x70, 0x65, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 130 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x65, 0x78, 0x61, 0x63, 0x74, 131 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x05, 0x65, 0x78, 0x61, 0x63, 0x74, 0x42, 132 0x14, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 133 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x39, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 134 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 135 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x0b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 136 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 137 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 138 } 139 140 var ( 141 file_envoy_type_matcher_number_proto_rawDescOnce sync.Once 142 file_envoy_type_matcher_number_proto_rawDescData = file_envoy_type_matcher_number_proto_rawDesc 143 ) 144 145 func file_envoy_type_matcher_number_proto_rawDescGZIP() []byte { 146 file_envoy_type_matcher_number_proto_rawDescOnce.Do(func() { 147 file_envoy_type_matcher_number_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_type_matcher_number_proto_rawDescData) 148 }) 149 return file_envoy_type_matcher_number_proto_rawDescData 150 } 151 152 var file_envoy_type_matcher_number_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 153 var file_envoy_type_matcher_number_proto_goTypes = []interface{}{ 154 (*DoubleMatcher)(nil), // 0: envoy.type.matcher.DoubleMatcher 155 (*_type.DoubleRange)(nil), // 1: envoy.type.DoubleRange 156 } 157 var file_envoy_type_matcher_number_proto_depIdxs = []int32{ 158 1, // 0: envoy.type.matcher.DoubleMatcher.range:type_name -> envoy.type.DoubleRange 159 1, // [1:1] is the sub-list for method output_type 160 1, // [1:1] is the sub-list for method input_type 161 1, // [1:1] is the sub-list for extension type_name 162 1, // [1:1] is the sub-list for extension extendee 163 0, // [0:1] is the sub-list for field type_name 164 } 165 166 func init() { file_envoy_type_matcher_number_proto_init() } 167 func file_envoy_type_matcher_number_proto_init() { 168 if File_envoy_type_matcher_number_proto != nil { 169 return 170 } 171 if !protoimpl.UnsafeEnabled { 172 file_envoy_type_matcher_number_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 173 switch v := v.(*DoubleMatcher); i { 174 case 0: 175 return &v.state 176 case 1: 177 return &v.sizeCache 178 case 2: 179 return &v.unknownFields 180 default: 181 return nil 182 } 183 } 184 } 185 file_envoy_type_matcher_number_proto_msgTypes[0].OneofWrappers = []interface{}{ 186 (*DoubleMatcher_Range)(nil), 187 (*DoubleMatcher_Exact)(nil), 188 } 189 type x struct{} 190 out := protoimpl.TypeBuilder{ 191 File: protoimpl.DescBuilder{ 192 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 193 RawDescriptor: file_envoy_type_matcher_number_proto_rawDesc, 194 NumEnums: 0, 195 NumMessages: 1, 196 NumExtensions: 0, 197 NumServices: 0, 198 }, 199 GoTypes: file_envoy_type_matcher_number_proto_goTypes, 200 DependencyIndexes: file_envoy_type_matcher_number_proto_depIdxs, 201 MessageInfos: file_envoy_type_matcher_number_proto_msgTypes, 202 }.Build() 203 File_envoy_type_matcher_number_proto = out.File 204 file_envoy_type_matcher_number_proto_rawDesc = nil 205 file_envoy_type_matcher_number_proto_goTypes = nil 206 file_envoy_type_matcher_number_proto_depIdxs = nil 207 }