1
2
3
4
5
6
7 package envoy_config_ratelimit_v4alpha
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 v4alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v4alpha"
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
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27
28
29 const _ = proto.ProtoPackageIsVersion4
30
31
32
33 type RateLimitServiceConfig struct {
34 state protoimpl.MessageState
35 sizeCache protoimpl.SizeCache
36 unknownFields protoimpl.UnknownFields
37
38
39
40
41 GrpcService *v4alpha.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
42
43
44
45 TransportApiVersion v4alpha.ApiVersion `protobuf:"varint,4,opt,name=transport_api_version,json=transportApiVersion,proto3,enum=envoy.config.core.v4alpha.ApiVersion" json:"transport_api_version,omitempty"`
46
47
48
49
50 UseAlpha bool `protobuf:"varint,5,opt,name=use_alpha,json=useAlpha,proto3" json:"use_alpha,omitempty"`
51 }
52
53 func (x *RateLimitServiceConfig) Reset() {
54 *x = RateLimitServiceConfig{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_envoy_config_ratelimit_v4alpha_rls_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *RateLimitServiceConfig) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*RateLimitServiceConfig) ProtoMessage() {}
67
68 func (x *RateLimitServiceConfig) ProtoReflect() protoreflect.Message {
69 mi := &file_envoy_config_ratelimit_v4alpha_rls_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80
81 func (*RateLimitServiceConfig) Descriptor() ([]byte, []int) {
82 return file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *RateLimitServiceConfig) GetGrpcService() *v4alpha.GrpcService {
86 if x != nil {
87 return x.GrpcService
88 }
89 return nil
90 }
91
92 func (x *RateLimitServiceConfig) GetTransportApiVersion() v4alpha.ApiVersion {
93 if x != nil {
94 return x.TransportApiVersion
95 }
96 return v4alpha.ApiVersion_hidden_envoy_deprecated_AUTO
97 }
98
99 func (x *RateLimitServiceConfig) GetUseAlpha() bool {
100 if x != nil {
101 return x.UseAlpha
102 }
103 return false
104 }
105
106 var File_envoy_config_ratelimit_v4alpha_rls_proto protoreflect.FileDescriptor
107
108 var file_envoy_config_ratelimit_v4alpha_rls_proto_rawDesc = []byte{
109 0x0a, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x72,
110 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61,
111 0x2f, 0x72, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x65, 0x6e, 0x76, 0x6f,
112 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d,
113 0x69, 0x74, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x2d, 0x65, 0x6e, 0x76, 0x6f,
114 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34,
115 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75,
116 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79,
117 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61,
118 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
119 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
120 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
121 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e,
122 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
123 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64,
124 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f,
125 0x74, 0x6f, 0x22, 0xb4, 0x02, 0x0a, 0x16, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
126 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a,
127 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20,
128 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
129 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
130 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05,
131 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69,
132 0x63, 0x65, 0x12, 0x63, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f,
133 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
134 0x0e, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
135 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x70,
136 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02,
137 0x10, 0x01, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x70, 0x69,
138 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x5f, 0x61,
139 0x6c, 0x70, 0x68, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x73, 0x65, 0x41,
140 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x37, 0x9a, 0xc5, 0x88, 0x1e, 0x32, 0x0a, 0x30, 0x65, 0x6e, 0x76,
141 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69,
142 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
143 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x04, 0x08,
144 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x42, 0x42, 0x0a, 0x2c, 0x69, 0x6f, 0x2e,
145 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
146 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69,
147 0x74, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x08, 0x52, 0x6c, 0x73, 0x50, 0x72,
148 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70,
149 0x72, 0x6f, 0x74, 0x6f, 0x33,
150 }
151
152 var (
153 file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescOnce sync.Once
154 file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescData = file_envoy_config_ratelimit_v4alpha_rls_proto_rawDesc
155 )
156
157 func file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescGZIP() []byte {
158 file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescOnce.Do(func() {
159 file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescData)
160 })
161 return file_envoy_config_ratelimit_v4alpha_rls_proto_rawDescData
162 }
163
164 var file_envoy_config_ratelimit_v4alpha_rls_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
165 var file_envoy_config_ratelimit_v4alpha_rls_proto_goTypes = []interface{}{
166 (*RateLimitServiceConfig)(nil),
167 (*v4alpha.GrpcService)(nil),
168 (v4alpha.ApiVersion)(0),
169 }
170 var file_envoy_config_ratelimit_v4alpha_rls_proto_depIdxs = []int32{
171 1,
172 2,
173 2,
174 2,
175 2,
176 2,
177 0,
178 }
179
180 func init() { file_envoy_config_ratelimit_v4alpha_rls_proto_init() }
181 func file_envoy_config_ratelimit_v4alpha_rls_proto_init() {
182 if File_envoy_config_ratelimit_v4alpha_rls_proto != nil {
183 return
184 }
185 if !protoimpl.UnsafeEnabled {
186 file_envoy_config_ratelimit_v4alpha_rls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
187 switch v := v.(*RateLimitServiceConfig); i {
188 case 0:
189 return &v.state
190 case 1:
191 return &v.sizeCache
192 case 2:
193 return &v.unknownFields
194 default:
195 return nil
196 }
197 }
198 }
199 type x struct{}
200 out := protoimpl.TypeBuilder{
201 File: protoimpl.DescBuilder{
202 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
203 RawDescriptor: file_envoy_config_ratelimit_v4alpha_rls_proto_rawDesc,
204 NumEnums: 0,
205 NumMessages: 1,
206 NumExtensions: 0,
207 NumServices: 0,
208 },
209 GoTypes: file_envoy_config_ratelimit_v4alpha_rls_proto_goTypes,
210 DependencyIndexes: file_envoy_config_ratelimit_v4alpha_rls_proto_depIdxs,
211 MessageInfos: file_envoy_config_ratelimit_v4alpha_rls_proto_msgTypes,
212 }.Build()
213 File_envoy_config_ratelimit_v4alpha_rls_proto = out.File
214 file_envoy_config_ratelimit_v4alpha_rls_proto_rawDesc = nil
215 file_envoy_config_ratelimit_v4alpha_rls_proto_goTypes = nil
216 file_envoy_config_ratelimit_v4alpha_rls_proto_depIdxs = nil
217 }
218
View as plain text