github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/extensions/rate_limit_descriptors/expr/v3/expr.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/extensions/rate_limit_descriptors/expr/v3/expr.proto 6 7 package envoy_extensions_rate_limit_descriptors_expr_v3 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 v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1" 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 // The following descriptor entry is appended with a value computed 32 // from a symbolic Common Expression Language expression. 33 // See :ref:`attributes <arch_overview_attributes>` for the set of 34 // available attributes. 35 // 36 // .. code-block:: cpp 37 // 38 // ("<descriptor_key>", "<expression_value>") 39 type Descriptor struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // The key to use in the descriptor entry. 45 DescriptorKey string `protobuf:"bytes,1,opt,name=descriptor_key,json=descriptorKey,proto3" json:"descriptor_key,omitempty"` 46 // If set to true, Envoy skips the descriptor if the expression evaluates to an error. 47 // By default, the rate limit is not applied when an expression produces an error. 48 SkipIfError bool `protobuf:"varint,2,opt,name=skip_if_error,json=skipIfError,proto3" json:"skip_if_error,omitempty"` 49 // Types that are assignable to ExprSpecifier: 50 // *Descriptor_Text 51 // *Descriptor_Parsed 52 ExprSpecifier isDescriptor_ExprSpecifier `protobuf_oneof:"expr_specifier"` 53 } 54 55 func (x *Descriptor) Reset() { 56 *x = Descriptor{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 } 63 64 func (x *Descriptor) String() string { 65 return protoimpl.X.MessageStringOf(x) 66 } 67 68 func (*Descriptor) ProtoMessage() {} 69 70 func (x *Descriptor) ProtoReflect() protoreflect.Message { 71 mi := &file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80 } 81 82 // Deprecated: Use Descriptor.ProtoReflect.Descriptor instead. 83 func (*Descriptor) Descriptor() ([]byte, []int) { 84 return file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescGZIP(), []int{0} 85 } 86 87 func (x *Descriptor) GetDescriptorKey() string { 88 if x != nil { 89 return x.DescriptorKey 90 } 91 return "" 92 } 93 94 func (x *Descriptor) GetSkipIfError() bool { 95 if x != nil { 96 return x.SkipIfError 97 } 98 return false 99 } 100 101 func (m *Descriptor) GetExprSpecifier() isDescriptor_ExprSpecifier { 102 if m != nil { 103 return m.ExprSpecifier 104 } 105 return nil 106 } 107 108 func (x *Descriptor) GetText() string { 109 if x, ok := x.GetExprSpecifier().(*Descriptor_Text); ok { 110 return x.Text 111 } 112 return "" 113 } 114 115 func (x *Descriptor) GetParsed() *v1alpha1.Expr { 116 if x, ok := x.GetExprSpecifier().(*Descriptor_Parsed); ok { 117 return x.Parsed 118 } 119 return nil 120 } 121 122 type isDescriptor_ExprSpecifier interface { 123 isDescriptor_ExprSpecifier() 124 } 125 126 type Descriptor_Text struct { 127 // Expression in a text form, e.g. "connection.requested_server_name". 128 Text string `protobuf:"bytes,3,opt,name=text,proto3,oneof"` 129 } 130 131 type Descriptor_Parsed struct { 132 // Parsed expression in AST form. 133 Parsed *v1alpha1.Expr `protobuf:"bytes,4,opt,name=parsed,proto3,oneof"` 134 } 135 136 func (*Descriptor_Text) isDescriptor_ExprSpecifier() {} 137 138 func (*Descriptor_Parsed) isDescriptor_ExprSpecifier() {} 139 140 var File_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto protoreflect.FileDescriptor 141 142 var file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDesc = []byte{ 143 0x0a, 0x3a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 144 0x6e, 0x73, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x64, 0x65, 145 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 146 0x33, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2f, 0x65, 0x6e, 147 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x72, 148 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 149 0x70, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x33, 0x1a, 0x25, 0x67, 150 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 151 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70, 152 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 153 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 154 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 155 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x01, 0x0a, 156 0x0a, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x0e, 0x64, 157 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 158 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0d, 0x64, 0x65, 159 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x0d, 0x73, 160 0x6b, 0x69, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 161 0x28, 0x08, 0x52, 0x0b, 0x73, 0x6b, 0x69, 0x70, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 162 0x1d, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 163 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x38, 164 0x0a, 0x06, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 165 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 166 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 167 0x52, 0x06, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x72, 168 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x54, 0x0a, 0x3d, 0x69, 0x6f, 169 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 170 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x72, 0x61, 0x74, 171 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 172 0x6f, 0x72, 0x73, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x45, 0x78, 0x70, 173 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 174 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 175 } 176 177 var ( 178 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescOnce sync.Once 179 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescData = file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDesc 180 ) 181 182 func file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescGZIP() []byte { 183 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescOnce.Do(func() { 184 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescData) 185 }) 186 return file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDescData 187 } 188 189 var file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 190 var file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_goTypes = []interface{}{ 191 (*Descriptor)(nil), // 0: envoy.extensions.rate_limit_descriptors.expr.v3.Descriptor 192 (*v1alpha1.Expr)(nil), // 1: google.api.expr.v1alpha1.Expr 193 } 194 var file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_depIdxs = []int32{ 195 1, // 0: envoy.extensions.rate_limit_descriptors.expr.v3.Descriptor.parsed:type_name -> google.api.expr.v1alpha1.Expr 196 1, // [1:1] is the sub-list for method output_type 197 1, // [1:1] is the sub-list for method input_type 198 1, // [1:1] is the sub-list for extension type_name 199 1, // [1:1] is the sub-list for extension extendee 200 0, // [0:1] is the sub-list for field type_name 201 } 202 203 func init() { file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_init() } 204 func file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_init() { 205 if File_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto != nil { 206 return 207 } 208 if !protoimpl.UnsafeEnabled { 209 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*Descriptor); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes[0].OneofWrappers = []interface{}{ 223 (*Descriptor_Text)(nil), 224 (*Descriptor_Parsed)(nil), 225 } 226 type x struct{} 227 out := protoimpl.TypeBuilder{ 228 File: protoimpl.DescBuilder{ 229 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 230 RawDescriptor: file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDesc, 231 NumEnums: 0, 232 NumMessages: 1, 233 NumExtensions: 0, 234 NumServices: 0, 235 }, 236 GoTypes: file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_goTypes, 237 DependencyIndexes: file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_depIdxs, 238 MessageInfos: file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_msgTypes, 239 }.Build() 240 File_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto = out.File 241 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_rawDesc = nil 242 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_goTypes = nil 243 file_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto_depIdxs = nil 244 }