github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/type/matcher/path.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/path.proto 6 7 package envoy_type_matcher 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // Specifies the way to match a path on HTTP request. 31 type PathMatcher struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 // Types that are assignable to Rule: 37 // *PathMatcher_Path 38 Rule isPathMatcher_Rule `protobuf_oneof:"rule"` 39 } 40 41 func (x *PathMatcher) Reset() { 42 *x = PathMatcher{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_envoy_type_matcher_path_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *PathMatcher) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*PathMatcher) ProtoMessage() {} 55 56 func (x *PathMatcher) ProtoReflect() protoreflect.Message { 57 mi := &file_envoy_type_matcher_path_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use PathMatcher.ProtoReflect.Descriptor instead. 69 func (*PathMatcher) Descriptor() ([]byte, []int) { 70 return file_envoy_type_matcher_path_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (m *PathMatcher) GetRule() isPathMatcher_Rule { 74 if m != nil { 75 return m.Rule 76 } 77 return nil 78 } 79 80 func (x *PathMatcher) GetPath() *StringMatcher { 81 if x, ok := x.GetRule().(*PathMatcher_Path); ok { 82 return x.Path 83 } 84 return nil 85 } 86 87 type isPathMatcher_Rule interface { 88 isPathMatcher_Rule() 89 } 90 91 type PathMatcher_Path struct { 92 // The `path` must match the URL path portion of the :path header. The query and fragment 93 // string (if present) are removed in the URL path portion. 94 // For example, the path */data* will match the *:path* header */data#fragment?param=value*. 95 Path *StringMatcher `protobuf:"bytes,1,opt,name=path,proto3,oneof"` 96 } 97 98 func (*PathMatcher_Path) isPathMatcher_Rule() {} 99 100 var File_envoy_type_matcher_path_proto protoreflect.FileDescriptor 101 102 var file_envoy_type_matcher_path_proto_rawDesc = []byte{ 103 0x0a, 0x1d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 104 0x63, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 105 0x12, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 106 0x68, 0x65, 0x72, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 107 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 108 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 109 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 110 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 111 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x0b, 112 0x50, 0x61, 0x74, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x04, 0x70, 113 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 114 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x53, 115 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x08, 0xfa, 0x42, 116 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x42, 0x0b, 117 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x37, 0x0a, 0x20, 0x69, 118 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 119 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 120 0x09, 0x50, 0x61, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 121 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 122 } 123 124 var ( 125 file_envoy_type_matcher_path_proto_rawDescOnce sync.Once 126 file_envoy_type_matcher_path_proto_rawDescData = file_envoy_type_matcher_path_proto_rawDesc 127 ) 128 129 func file_envoy_type_matcher_path_proto_rawDescGZIP() []byte { 130 file_envoy_type_matcher_path_proto_rawDescOnce.Do(func() { 131 file_envoy_type_matcher_path_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_type_matcher_path_proto_rawDescData) 132 }) 133 return file_envoy_type_matcher_path_proto_rawDescData 134 } 135 136 var file_envoy_type_matcher_path_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 137 var file_envoy_type_matcher_path_proto_goTypes = []interface{}{ 138 (*PathMatcher)(nil), // 0: envoy.type.matcher.PathMatcher 139 (*StringMatcher)(nil), // 1: envoy.type.matcher.StringMatcher 140 } 141 var file_envoy_type_matcher_path_proto_depIdxs = []int32{ 142 1, // 0: envoy.type.matcher.PathMatcher.path:type_name -> envoy.type.matcher.StringMatcher 143 1, // [1:1] is the sub-list for method output_type 144 1, // [1:1] is the sub-list for method input_type 145 1, // [1:1] is the sub-list for extension type_name 146 1, // [1:1] is the sub-list for extension extendee 147 0, // [0:1] is the sub-list for field type_name 148 } 149 150 func init() { file_envoy_type_matcher_path_proto_init() } 151 func file_envoy_type_matcher_path_proto_init() { 152 if File_envoy_type_matcher_path_proto != nil { 153 return 154 } 155 file_envoy_type_matcher_string_proto_init() 156 if !protoimpl.UnsafeEnabled { 157 file_envoy_type_matcher_path_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 158 switch v := v.(*PathMatcher); i { 159 case 0: 160 return &v.state 161 case 1: 162 return &v.sizeCache 163 case 2: 164 return &v.unknownFields 165 default: 166 return nil 167 } 168 } 169 } 170 file_envoy_type_matcher_path_proto_msgTypes[0].OneofWrappers = []interface{}{ 171 (*PathMatcher_Path)(nil), 172 } 173 type x struct{} 174 out := protoimpl.TypeBuilder{ 175 File: protoimpl.DescBuilder{ 176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 177 RawDescriptor: file_envoy_type_matcher_path_proto_rawDesc, 178 NumEnums: 0, 179 NumMessages: 1, 180 NumExtensions: 0, 181 NumServices: 0, 182 }, 183 GoTypes: file_envoy_type_matcher_path_proto_goTypes, 184 DependencyIndexes: file_envoy_type_matcher_path_proto_depIdxs, 185 MessageInfos: file_envoy_type_matcher_path_proto_msgTypes, 186 }.Build() 187 File_envoy_type_matcher_path_proto = out.File 188 file_envoy_type_matcher_path_proto_rawDesc = nil 189 file_envoy_type_matcher_path_proto_goTypes = nil 190 file_envoy_type_matcher_path_proto_depIdxs = nil 191 }