1
// Copyright Istio Authors
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
7
// http://www.apache.org/licenses/LICENSE-2.0
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
15
// Code generated by protoc-gen-go. DO NOT EDIT.
17
// protoc-gen-go v1.33.0
19
// source: test/echo/proto/echo.proto
21
// Generate with protoc --go_out=. echo.proto -I /work/common-protos/ -I.
26
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
34
// Verify that this generated code is sufficiently up-to-date.
35
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36
// Verify that runtime/protoimpl is sufficiently up-to-date.
37
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40
type ProxyProtoVersion int32
43
ProxyProtoVersion_NONE ProxyProtoVersion = 0
44
ProxyProtoVersion_V1 ProxyProtoVersion = 1
45
ProxyProtoVersion_V2 ProxyProtoVersion = 2
48
// Enum value maps for ProxyProtoVersion.
50
ProxyProtoVersion_name = map[int32]string{
55
ProxyProtoVersion_value = map[string]int32{
62
func (x ProxyProtoVersion) Enum() *ProxyProtoVersion {
63
p := new(ProxyProtoVersion)
68
func (x ProxyProtoVersion) String() string {
69
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
72
func (ProxyProtoVersion) Descriptor() protoreflect.EnumDescriptor {
73
return file_test_echo_proto_echo_proto_enumTypes[0].Descriptor()
76
func (ProxyProtoVersion) Type() protoreflect.EnumType {
77
return &file_test_echo_proto_echo_proto_enumTypes[0]
80
func (x ProxyProtoVersion) Number() protoreflect.EnumNumber {
81
return protoreflect.EnumNumber(x)
84
// Deprecated: Use ProxyProtoVersion.Descriptor instead.
85
func (ProxyProtoVersion) EnumDescriptor() ([]byte, []int) {
86
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{0}
89
type EchoRequest struct {
90
state protoimpl.MessageState
91
sizeCache protoimpl.SizeCache
92
unknownFields protoimpl.UnknownFields
94
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
97
func (x *EchoRequest) Reset() {
99
if protoimpl.UnsafeEnabled {
100
mi := &file_test_echo_proto_echo_proto_msgTypes[0]
101
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
102
ms.StoreMessageInfo(mi)
106
func (x *EchoRequest) String() string {
107
return protoimpl.X.MessageStringOf(x)
110
func (*EchoRequest) ProtoMessage() {}
112
func (x *EchoRequest) ProtoReflect() protoreflect.Message {
113
mi := &file_test_echo_proto_echo_proto_msgTypes[0]
114
if protoimpl.UnsafeEnabled && x != nil {
115
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
116
if ms.LoadMessageInfo() == nil {
117
ms.StoreMessageInfo(mi)
121
return mi.MessageOf(x)
124
// Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
125
func (*EchoRequest) Descriptor() ([]byte, []int) {
126
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{0}
129
func (x *EchoRequest) GetMessage() string {
136
type EchoResponse struct {
137
state protoimpl.MessageState
138
sizeCache protoimpl.SizeCache
139
unknownFields protoimpl.UnknownFields
141
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
144
func (x *EchoResponse) Reset() {
146
if protoimpl.UnsafeEnabled {
147
mi := &file_test_echo_proto_echo_proto_msgTypes[1]
148
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
149
ms.StoreMessageInfo(mi)
153
func (x *EchoResponse) String() string {
154
return protoimpl.X.MessageStringOf(x)
157
func (*EchoResponse) ProtoMessage() {}
159
func (x *EchoResponse) ProtoReflect() protoreflect.Message {
160
mi := &file_test_echo_proto_echo_proto_msgTypes[1]
161
if protoimpl.UnsafeEnabled && x != nil {
162
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
163
if ms.LoadMessageInfo() == nil {
164
ms.StoreMessageInfo(mi)
168
return mi.MessageOf(x)
171
// Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
172
func (*EchoResponse) Descriptor() ([]byte, []int) {
173
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{1}
176
func (x *EchoResponse) GetMessage() string {
184
state protoimpl.MessageState
185
sizeCache protoimpl.SizeCache
186
unknownFields protoimpl.UnknownFields
188
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
189
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
192
func (x *Header) Reset() {
194
if protoimpl.UnsafeEnabled {
195
mi := &file_test_echo_proto_echo_proto_msgTypes[2]
196
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197
ms.StoreMessageInfo(mi)
201
func (x *Header) String() string {
202
return protoimpl.X.MessageStringOf(x)
205
func (*Header) ProtoMessage() {}
207
func (x *Header) ProtoReflect() protoreflect.Message {
208
mi := &file_test_echo_proto_echo_proto_msgTypes[2]
209
if protoimpl.UnsafeEnabled && x != nil {
210
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
211
if ms.LoadMessageInfo() == nil {
212
ms.StoreMessageInfo(mi)
216
return mi.MessageOf(x)
219
// Deprecated: Use Header.ProtoReflect.Descriptor instead.
220
func (*Header) Descriptor() ([]byte, []int) {
221
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{2}
224
func (x *Header) GetKey() string {
231
func (x *Header) GetValue() string {
238
type ForwardEchoRequest struct {
239
state protoimpl.MessageState
240
sizeCache protoimpl.SizeCache
241
unknownFields protoimpl.UnknownFields
243
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
244
Qps int32 `protobuf:"varint,2,opt,name=qps,proto3" json:"qps,omitempty"`
245
TimeoutMicros int64 `protobuf:"varint,3,opt,name=timeout_micros,json=timeoutMicros,proto3" json:"timeout_micros,omitempty"`
246
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
247
Headers []*Header `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
248
Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
249
// Method for the request. Valid only for HTTP
250
Method string `protobuf:"bytes,9,opt,name=method,proto3" json:"method,omitempty"`
251
// If true, requests will be sent using h2c prior knowledge
252
Http2 bool `protobuf:"varint,7,opt,name=http2,proto3" json:"http2,omitempty"`
253
// If true, requests will be sent using http3
254
Http3 bool `protobuf:"varint,15,opt,name=http3,proto3" json:"http3,omitempty"`
255
// If true, requests will not be sent until magic string is received
256
ServerFirst bool `protobuf:"varint,8,opt,name=serverFirst,proto3" json:"serverFirst,omitempty"`
257
// If true, 301 redirects will be followed
258
FollowRedirects bool `protobuf:"varint,14,opt,name=followRedirects,proto3" json:"followRedirects,omitempty"`
259
// If non-empty, make the request with the corresponding cert and key.
260
Cert string `protobuf:"bytes,10,opt,name=cert,proto3" json:"cert,omitempty"`
261
Key string `protobuf:"bytes,11,opt,name=key,proto3" json:"key,omitempty"`
262
// If non-empty, verify the server CA
263
CaCert string `protobuf:"bytes,12,opt,name=caCert,proto3" json:"caCert,omitempty"`
264
// If non-empty, make the request with the corresponding cert and key file.
265
CertFile string `protobuf:"bytes,16,opt,name=certFile,proto3" json:"certFile,omitempty"`
266
KeyFile string `protobuf:"bytes,17,opt,name=keyFile,proto3" json:"keyFile,omitempty"`
267
// If non-empty, verify the server CA with the ca cert file.
268
CaCertFile string `protobuf:"bytes,18,opt,name=caCertFile,proto3" json:"caCertFile,omitempty"`
269
// Skip verifying peer's certificate.
270
InsecureSkipVerify bool `protobuf:"varint,19,opt,name=insecureSkipVerify,proto3" json:"insecureSkipVerify,omitempty"`
271
// List of ALPNs to present. If not set, this will be automatically be set based on the protocol
272
Alpn *Alpn `protobuf:"bytes,13,opt,name=alpn,proto3" json:"alpn,omitempty"`
273
// Server name (SNI) to present in TLS connections. If not set, Host will be used for http requests.
274
ServerName string `protobuf:"bytes,20,opt,name=serverName,proto3" json:"serverName,omitempty"`
275
// Expected response determines what string to look for in the response to validate TCP requests succeeded.
276
// If not set, defaults to "StatusCode=200"
277
ExpectedResponse *wrapperspb.StringValue `protobuf:"bytes,21,opt,name=expectedResponse,proto3" json:"expectedResponse,omitempty"`
278
// If set, a new connection will be made to the server for each individual request. If false, an attempt
279
// will be made to re-use the connection for the life of the forward request. This is automatically
280
// set for DNS, TCP, TLS, and WebSocket protocols.
281
NewConnectionPerRequest bool `protobuf:"varint,22,opt,name=newConnectionPerRequest,proto3" json:"newConnectionPerRequest,omitempty"`
282
// If set, each request will force a DNS lookup. Only applies if newConnectionPerRequest is set.
283
ForceDNSLookup bool `protobuf:"varint,23,opt,name=forceDNSLookup,proto3" json:"forceDNSLookup,omitempty"`
284
// HBONE communication settings. If provided, requests will be tunnelled.
285
Hbone *HBONE `protobuf:"bytes,24,opt,name=hbone,proto3" json:"hbone,omitempty"`
286
ProxyProtocolVersion ProxyProtoVersion `protobuf:"varint,25,opt,name=proxyProtocolVersion,proto3,enum=proto.ProxyProtoVersion" json:"proxyProtocolVersion,omitempty"`
289
func (x *ForwardEchoRequest) Reset() {
290
*x = ForwardEchoRequest{}
291
if protoimpl.UnsafeEnabled {
292
mi := &file_test_echo_proto_echo_proto_msgTypes[3]
293
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
294
ms.StoreMessageInfo(mi)
298
func (x *ForwardEchoRequest) String() string {
299
return protoimpl.X.MessageStringOf(x)
302
func (*ForwardEchoRequest) ProtoMessage() {}
304
func (x *ForwardEchoRequest) ProtoReflect() protoreflect.Message {
305
mi := &file_test_echo_proto_echo_proto_msgTypes[3]
306
if protoimpl.UnsafeEnabled && x != nil {
307
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
308
if ms.LoadMessageInfo() == nil {
309
ms.StoreMessageInfo(mi)
313
return mi.MessageOf(x)
316
// Deprecated: Use ForwardEchoRequest.ProtoReflect.Descriptor instead.
317
func (*ForwardEchoRequest) Descriptor() ([]byte, []int) {
318
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{3}
321
func (x *ForwardEchoRequest) GetCount() int32 {
328
func (x *ForwardEchoRequest) GetQps() int32 {
335
func (x *ForwardEchoRequest) GetTimeoutMicros() int64 {
337
return x.TimeoutMicros
342
func (x *ForwardEchoRequest) GetUrl() string {
349
func (x *ForwardEchoRequest) GetHeaders() []*Header {
356
func (x *ForwardEchoRequest) GetMessage() string {
363
func (x *ForwardEchoRequest) GetMethod() string {
370
func (x *ForwardEchoRequest) GetHttp2() bool {
377
func (x *ForwardEchoRequest) GetHttp3() bool {
384
func (x *ForwardEchoRequest) GetServerFirst() bool {
391
func (x *ForwardEchoRequest) GetFollowRedirects() bool {
393
return x.FollowRedirects
398
func (x *ForwardEchoRequest) GetCert() string {
405
func (x *ForwardEchoRequest) GetKey() string {
412
func (x *ForwardEchoRequest) GetCaCert() string {
419
func (x *ForwardEchoRequest) GetCertFile() string {
426
func (x *ForwardEchoRequest) GetKeyFile() string {
433
func (x *ForwardEchoRequest) GetCaCertFile() string {
440
func (x *ForwardEchoRequest) GetInsecureSkipVerify() bool {
442
return x.InsecureSkipVerify
447
func (x *ForwardEchoRequest) GetAlpn() *Alpn {
454
func (x *ForwardEchoRequest) GetServerName() string {
461
func (x *ForwardEchoRequest) GetExpectedResponse() *wrapperspb.StringValue {
463
return x.ExpectedResponse
468
func (x *ForwardEchoRequest) GetNewConnectionPerRequest() bool {
470
return x.NewConnectionPerRequest
475
func (x *ForwardEchoRequest) GetForceDNSLookup() bool {
477
return x.ForceDNSLookup
482
func (x *ForwardEchoRequest) GetHbone() *HBONE {
489
func (x *ForwardEchoRequest) GetProxyProtocolVersion() ProxyProtoVersion {
491
return x.ProxyProtocolVersion
493
return ProxyProtoVersion_NONE
497
state protoimpl.MessageState
498
sizeCache protoimpl.SizeCache
499
unknownFields protoimpl.UnknownFields
501
Address string `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"`
502
Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
503
// If non-empty, make the request with the corresponding cert and key.
504
Cert string `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
505
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
506
// If non-empty, verify the server CA
507
CaCert string `protobuf:"bytes,4,opt,name=caCert,proto3" json:"caCert,omitempty"`
508
// If non-empty, make the request with the corresponding cert and key file.
509
CertFile string `protobuf:"bytes,5,opt,name=certFile,proto3" json:"certFile,omitempty"`
510
KeyFile string `protobuf:"bytes,6,opt,name=keyFile,proto3" json:"keyFile,omitempty"`
511
// If non-empty, verify the server CA with the ca cert file.
512
CaCertFile string `protobuf:"bytes,7,opt,name=caCertFile,proto3" json:"caCertFile,omitempty"`
513
// Skip verifying peer's certificate.
514
InsecureSkipVerify bool `protobuf:"varint,8,opt,name=insecureSkipVerify,proto3" json:"insecureSkipVerify,omitempty"`
517
func (x *HBONE) Reset() {
519
if protoimpl.UnsafeEnabled {
520
mi := &file_test_echo_proto_echo_proto_msgTypes[4]
521
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
522
ms.StoreMessageInfo(mi)
526
func (x *HBONE) String() string {
527
return protoimpl.X.MessageStringOf(x)
530
func (*HBONE) ProtoMessage() {}
532
func (x *HBONE) ProtoReflect() protoreflect.Message {
533
mi := &file_test_echo_proto_echo_proto_msgTypes[4]
534
if protoimpl.UnsafeEnabled && x != nil {
535
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
536
if ms.LoadMessageInfo() == nil {
537
ms.StoreMessageInfo(mi)
541
return mi.MessageOf(x)
544
// Deprecated: Use HBONE.ProtoReflect.Descriptor instead.
545
func (*HBONE) Descriptor() ([]byte, []int) {
546
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{4}
549
func (x *HBONE) GetAddress() string {
556
func (x *HBONE) GetHeaders() []*Header {
563
func (x *HBONE) GetCert() string {
570
func (x *HBONE) GetKey() string {
577
func (x *HBONE) GetCaCert() string {
584
func (x *HBONE) GetCertFile() string {
591
func (x *HBONE) GetKeyFile() string {
598
func (x *HBONE) GetCaCertFile() string {
605
func (x *HBONE) GetInsecureSkipVerify() bool {
607
return x.InsecureSkipVerify
613
state protoimpl.MessageState
614
sizeCache protoimpl.SizeCache
615
unknownFields protoimpl.UnknownFields
617
Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
620
func (x *Alpn) Reset() {
622
if protoimpl.UnsafeEnabled {
623
mi := &file_test_echo_proto_echo_proto_msgTypes[5]
624
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
625
ms.StoreMessageInfo(mi)
629
func (x *Alpn) String() string {
630
return protoimpl.X.MessageStringOf(x)
633
func (*Alpn) ProtoMessage() {}
635
func (x *Alpn) ProtoReflect() protoreflect.Message {
636
mi := &file_test_echo_proto_echo_proto_msgTypes[5]
637
if protoimpl.UnsafeEnabled && x != nil {
638
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
639
if ms.LoadMessageInfo() == nil {
640
ms.StoreMessageInfo(mi)
644
return mi.MessageOf(x)
647
// Deprecated: Use Alpn.ProtoReflect.Descriptor instead.
648
func (*Alpn) Descriptor() ([]byte, []int) {
649
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{5}
652
func (x *Alpn) GetValue() []string {
659
type ForwardEchoResponse struct {
660
state protoimpl.MessageState
661
sizeCache protoimpl.SizeCache
662
unknownFields protoimpl.UnknownFields
664
Output []string `protobuf:"bytes,1,rep,name=output,proto3" json:"output,omitempty"`
667
func (x *ForwardEchoResponse) Reset() {
668
*x = ForwardEchoResponse{}
669
if protoimpl.UnsafeEnabled {
670
mi := &file_test_echo_proto_echo_proto_msgTypes[6]
671
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
672
ms.StoreMessageInfo(mi)
676
func (x *ForwardEchoResponse) String() string {
677
return protoimpl.X.MessageStringOf(x)
680
func (*ForwardEchoResponse) ProtoMessage() {}
682
func (x *ForwardEchoResponse) ProtoReflect() protoreflect.Message {
683
mi := &file_test_echo_proto_echo_proto_msgTypes[6]
684
if protoimpl.UnsafeEnabled && x != nil {
685
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
686
if ms.LoadMessageInfo() == nil {
687
ms.StoreMessageInfo(mi)
691
return mi.MessageOf(x)
694
// Deprecated: Use ForwardEchoResponse.ProtoReflect.Descriptor instead.
695
func (*ForwardEchoResponse) Descriptor() ([]byte, []int) {
696
return file_test_echo_proto_echo_proto_rawDescGZIP(), []int{6}
699
func (x *ForwardEchoResponse) GetOutput() []string {
706
var File_test_echo_proto_echo_proto protoreflect.FileDescriptor
708
var file_test_echo_proto_echo_proto_rawDesc = []byte{
709
0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74,
710
0x6f, 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
711
0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
712
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
713
0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
714
0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20,
715
0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x0c,
716
0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07,
717
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
718
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
719
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
720
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
721
0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xeb, 0x06, 0x0a, 0x12, 0x46, 0x6f, 0x72,
722
0x77, 0x61, 0x72, 0x64, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
723
0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
724
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x71, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01,
725
0x28, 0x05, 0x52, 0x03, 0x71, 0x70, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f,
726
0x75, 0x74, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
727
0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x12, 0x10,
728
0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
729
0x12, 0x27, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
730
0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
731
0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
732
0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
733
0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20,
734
0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68,
735
0x74, 0x74, 0x70, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x68, 0x74, 0x74, 0x70,
736
0x32, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x74, 0x74, 0x70, 0x33, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08,
737
0x52, 0x05, 0x68, 0x74, 0x74, 0x70, 0x33, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65,
738
0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x65,
739
0x72, 0x76, 0x65, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x6f, 0x6c,
740
0x6c, 0x6f, 0x77, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x01,
741
0x28, 0x08, 0x52, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
742
0x63, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28,
743
0x09, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x0b,
744
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x43,
745
0x65, 0x72, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72,
746
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x10, 0x20,
747
0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x18, 0x0a,
748
0x07, 0x6b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
749
0x6b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x43, 0x65, 0x72,
750
0x74, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x43,
751
0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63,
752
0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x13, 0x20,
753
0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69,
754
0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1f, 0x0a, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x18,
755
0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x6c,
756
0x70, 0x6e, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76,
757
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65,
758
0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x65,
759
0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x15, 0x20, 0x01,
760
0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
761
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65,
762
0x52, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
763
0x73, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
764
0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x16, 0x20,
765
0x01, 0x28, 0x08, 0x52, 0x17, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
766
0x6f, 0x6e, 0x50, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e,
767
0x66, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x4e, 0x53, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x18, 0x17,
768
0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x4e, 0x53, 0x4c, 0x6f,
769
0x6f, 0x6b, 0x75, 0x70, 0x12, 0x22, 0x0a, 0x05, 0x68, 0x62, 0x6f, 0x6e, 0x65, 0x18, 0x18, 0x20,
770
0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x42, 0x4f, 0x4e,
771
0x45, 0x52, 0x05, 0x68, 0x62, 0x6f, 0x6e, 0x65, 0x12, 0x4c, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x78,
772
0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
773
0x18, 0x19, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50,
774
0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
775
0x52, 0x14, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56,
776
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x8e, 0x02, 0x0a, 0x05, 0x48, 0x42, 0x4f, 0x4e, 0x45,
777
0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
778
0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x07, 0x68, 0x65,
779
0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72,
780
0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64,
781
0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
782
0x09, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03,
783
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x43,
784
0x65, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72,
785
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20,
786
0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x18, 0x0a,
787
0x07, 0x6b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
788
0x6b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x43, 0x65, 0x72,
789
0x74, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x43,
790
0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63,
791
0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20,
792
0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69,
793
0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0x1c, 0x0a, 0x04, 0x41, 0x6c, 0x70, 0x6e, 0x12,
794
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
795
0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2d, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
796
0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
797
0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75,
798
0x74, 0x70, 0x75, 0x74, 0x2a, 0x2d, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f,
799
0x74, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e,
800
0x45, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x31, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x56,
801
0x32, 0x10, 0x02, 0x32, 0x88, 0x01, 0x0a, 0x0f, 0x45, 0x63, 0x68, 0x6f, 0x54, 0x65, 0x73, 0x74,
802
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12,
803
0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75,
804
0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f,
805
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x77,
806
0x61, 0x72, 0x64, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
807
0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
808
0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61,
809
0x72, 0x64, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1f,
810
0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x42,
811
0x04, 0x45, 0x63, 0x68, 0x6f, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
812
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
816
file_test_echo_proto_echo_proto_rawDescOnce sync.Once
817
file_test_echo_proto_echo_proto_rawDescData = file_test_echo_proto_echo_proto_rawDesc
820
func file_test_echo_proto_echo_proto_rawDescGZIP() []byte {
821
file_test_echo_proto_echo_proto_rawDescOnce.Do(func() {
822
file_test_echo_proto_echo_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_echo_proto_echo_proto_rawDescData)
824
return file_test_echo_proto_echo_proto_rawDescData
827
var file_test_echo_proto_echo_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
828
var file_test_echo_proto_echo_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
829
var file_test_echo_proto_echo_proto_goTypes = []interface{}{
830
(ProxyProtoVersion)(0), // 0: proto.ProxyProtoVersion
831
(*EchoRequest)(nil), // 1: proto.EchoRequest
832
(*EchoResponse)(nil), // 2: proto.EchoResponse
833
(*Header)(nil), // 3: proto.Header
834
(*ForwardEchoRequest)(nil), // 4: proto.ForwardEchoRequest
835
(*HBONE)(nil), // 5: proto.HBONE
836
(*Alpn)(nil), // 6: proto.Alpn
837
(*ForwardEchoResponse)(nil), // 7: proto.ForwardEchoResponse
838
(*wrapperspb.StringValue)(nil), // 8: google.protobuf.StringValue
840
var file_test_echo_proto_echo_proto_depIdxs = []int32{
841
3, // 0: proto.ForwardEchoRequest.headers:type_name -> proto.Header
842
6, // 1: proto.ForwardEchoRequest.alpn:type_name -> proto.Alpn
843
8, // 2: proto.ForwardEchoRequest.expectedResponse:type_name -> google.protobuf.StringValue
844
5, // 3: proto.ForwardEchoRequest.hbone:type_name -> proto.HBONE
845
0, // 4: proto.ForwardEchoRequest.proxyProtocolVersion:type_name -> proto.ProxyProtoVersion
846
3, // 5: proto.HBONE.headers:type_name -> proto.Header
847
1, // 6: proto.EchoTestService.Echo:input_type -> proto.EchoRequest
848
4, // 7: proto.EchoTestService.ForwardEcho:input_type -> proto.ForwardEchoRequest
849
2, // 8: proto.EchoTestService.Echo:output_type -> proto.EchoResponse
850
7, // 9: proto.EchoTestService.ForwardEcho:output_type -> proto.ForwardEchoResponse
851
8, // [8:10] is the sub-list for method output_type
852
6, // [6:8] is the sub-list for method input_type
853
6, // [6:6] is the sub-list for extension type_name
854
6, // [6:6] is the sub-list for extension extendee
855
0, // [0:6] is the sub-list for field type_name
858
func init() { file_test_echo_proto_echo_proto_init() }
859
func file_test_echo_proto_echo_proto_init() {
860
if File_test_echo_proto_echo_proto != nil {
863
if !protoimpl.UnsafeEnabled {
864
file_test_echo_proto_echo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
865
switch v := v.(*EchoRequest); i {
871
return &v.unknownFields
876
file_test_echo_proto_echo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
877
switch v := v.(*EchoResponse); i {
883
return &v.unknownFields
888
file_test_echo_proto_echo_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
889
switch v := v.(*Header); i {
895
return &v.unknownFields
900
file_test_echo_proto_echo_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
901
switch v := v.(*ForwardEchoRequest); i {
907
return &v.unknownFields
912
file_test_echo_proto_echo_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
913
switch v := v.(*HBONE); i {
919
return &v.unknownFields
924
file_test_echo_proto_echo_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
925
switch v := v.(*Alpn); i {
931
return &v.unknownFields
936
file_test_echo_proto_echo_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
937
switch v := v.(*ForwardEchoResponse); i {
943
return &v.unknownFields
950
out := protoimpl.TypeBuilder{
951
File: protoimpl.DescBuilder{
952
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
953
RawDescriptor: file_test_echo_proto_echo_proto_rawDesc,
959
GoTypes: file_test_echo_proto_echo_proto_goTypes,
960
DependencyIndexes: file_test_echo_proto_echo_proto_depIdxs,
961
EnumInfos: file_test_echo_proto_echo_proto_enumTypes,
962
MessageInfos: file_test_echo_proto_echo_proto_msgTypes,
964
File_test_echo_proto_echo_proto = out.File
965
file_test_echo_proto_echo_proto_rawDesc = nil
966
file_test_echo_proto_echo_proto_goTypes = nil
967
file_test_echo_proto_echo_proto_depIdxs = nil