...

Source file src/github.com/datawire/ambassador/v2/pkg/api/kat/echo.pb.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/kat

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.21.5
     5  // source: kat/echo.proto
     6  
     7  package kat
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type EchoRequest struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    29  }
    30  
    31  func (x *EchoRequest) Reset() {
    32  	*x = EchoRequest{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_kat_echo_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *EchoRequest) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*EchoRequest) ProtoMessage() {}
    45  
    46  func (x *EchoRequest) ProtoReflect() protoreflect.Message {
    47  	mi := &file_kat_echo_proto_msgTypes[0]
    48  	if protoimpl.UnsafeEnabled && x != nil {
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		if ms.LoadMessageInfo() == nil {
    51  			ms.StoreMessageInfo(mi)
    52  		}
    53  		return ms
    54  	}
    55  	return mi.MessageOf(x)
    56  }
    57  
    58  // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
    59  func (*EchoRequest) Descriptor() ([]byte, []int) {
    60  	return file_kat_echo_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *EchoRequest) GetData() string {
    64  	if x != nil {
    65  		return x.Data
    66  	}
    67  	return ""
    68  }
    69  
    70  type EchoResponse struct {
    71  	state         protoimpl.MessageState
    72  	sizeCache     protoimpl.SizeCache
    73  	unknownFields protoimpl.UnknownFields
    74  
    75  	Backend  string    `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
    76  	Request  *Request  `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
    77  	Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
    78  }
    79  
    80  func (x *EchoResponse) Reset() {
    81  	*x = EchoResponse{}
    82  	if protoimpl.UnsafeEnabled {
    83  		mi := &file_kat_echo_proto_msgTypes[1]
    84  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    85  		ms.StoreMessageInfo(mi)
    86  	}
    87  }
    88  
    89  func (x *EchoResponse) String() string {
    90  	return protoimpl.X.MessageStringOf(x)
    91  }
    92  
    93  func (*EchoResponse) ProtoMessage() {}
    94  
    95  func (x *EchoResponse) ProtoReflect() protoreflect.Message {
    96  	mi := &file_kat_echo_proto_msgTypes[1]
    97  	if protoimpl.UnsafeEnabled && x != nil {
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		if ms.LoadMessageInfo() == nil {
   100  			ms.StoreMessageInfo(mi)
   101  		}
   102  		return ms
   103  	}
   104  	return mi.MessageOf(x)
   105  }
   106  
   107  // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
   108  func (*EchoResponse) Descriptor() ([]byte, []int) {
   109  	return file_kat_echo_proto_rawDescGZIP(), []int{1}
   110  }
   111  
   112  func (x *EchoResponse) GetBackend() string {
   113  	if x != nil {
   114  		return x.Backend
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *EchoResponse) GetRequest() *Request {
   120  	if x != nil {
   121  		return x.Request
   122  	}
   123  	return nil
   124  }
   125  
   126  func (x *EchoResponse) GetResponse() *Response {
   127  	if x != nil {
   128  		return x.Response
   129  	}
   130  	return nil
   131  }
   132  
   133  type Response struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	Headers map[string]string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   139  }
   140  
   141  func (x *Response) Reset() {
   142  	*x = Response{}
   143  	if protoimpl.UnsafeEnabled {
   144  		mi := &file_kat_echo_proto_msgTypes[2]
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		ms.StoreMessageInfo(mi)
   147  	}
   148  }
   149  
   150  func (x *Response) String() string {
   151  	return protoimpl.X.MessageStringOf(x)
   152  }
   153  
   154  func (*Response) ProtoMessage() {}
   155  
   156  func (x *Response) ProtoReflect() protoreflect.Message {
   157  	mi := &file_kat_echo_proto_msgTypes[2]
   158  	if protoimpl.UnsafeEnabled && x != nil {
   159  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   160  		if ms.LoadMessageInfo() == nil {
   161  			ms.StoreMessageInfo(mi)
   162  		}
   163  		return ms
   164  	}
   165  	return mi.MessageOf(x)
   166  }
   167  
   168  // Deprecated: Use Response.ProtoReflect.Descriptor instead.
   169  func (*Response) Descriptor() ([]byte, []int) {
   170  	return file_kat_echo_proto_rawDescGZIP(), []int{2}
   171  }
   172  
   173  func (x *Response) GetHeaders() map[string]string {
   174  	if x != nil {
   175  		return x.Headers
   176  	}
   177  	return nil
   178  }
   179  
   180  type Request struct {
   181  	state         protoimpl.MessageState
   182  	sizeCache     protoimpl.SizeCache
   183  	unknownFields protoimpl.UnknownFields
   184  
   185  	Headers map[string]string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   186  	Tls     *TLS              `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"`
   187  }
   188  
   189  func (x *Request) Reset() {
   190  	*x = Request{}
   191  	if protoimpl.UnsafeEnabled {
   192  		mi := &file_kat_echo_proto_msgTypes[3]
   193  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   194  		ms.StoreMessageInfo(mi)
   195  	}
   196  }
   197  
   198  func (x *Request) String() string {
   199  	return protoimpl.X.MessageStringOf(x)
   200  }
   201  
   202  func (*Request) ProtoMessage() {}
   203  
   204  func (x *Request) ProtoReflect() protoreflect.Message {
   205  	mi := &file_kat_echo_proto_msgTypes[3]
   206  	if protoimpl.UnsafeEnabled && x != nil {
   207  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   208  		if ms.LoadMessageInfo() == nil {
   209  			ms.StoreMessageInfo(mi)
   210  		}
   211  		return ms
   212  	}
   213  	return mi.MessageOf(x)
   214  }
   215  
   216  // Deprecated: Use Request.ProtoReflect.Descriptor instead.
   217  func (*Request) Descriptor() ([]byte, []int) {
   218  	return file_kat_echo_proto_rawDescGZIP(), []int{3}
   219  }
   220  
   221  func (x *Request) GetHeaders() map[string]string {
   222  	if x != nil {
   223  		return x.Headers
   224  	}
   225  	return nil
   226  }
   227  
   228  func (x *Request) GetTls() *TLS {
   229  	if x != nil {
   230  		return x.Tls
   231  	}
   232  	return nil
   233  }
   234  
   235  type TLS struct {
   236  	state         protoimpl.MessageState
   237  	sizeCache     protoimpl.SizeCache
   238  	unknownFields protoimpl.UnknownFields
   239  
   240  	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
   241  }
   242  
   243  func (x *TLS) Reset() {
   244  	*x = TLS{}
   245  	if protoimpl.UnsafeEnabled {
   246  		mi := &file_kat_echo_proto_msgTypes[4]
   247  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   248  		ms.StoreMessageInfo(mi)
   249  	}
   250  }
   251  
   252  func (x *TLS) String() string {
   253  	return protoimpl.X.MessageStringOf(x)
   254  }
   255  
   256  func (*TLS) ProtoMessage() {}
   257  
   258  func (x *TLS) ProtoReflect() protoreflect.Message {
   259  	mi := &file_kat_echo_proto_msgTypes[4]
   260  	if protoimpl.UnsafeEnabled && x != nil {
   261  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   262  		if ms.LoadMessageInfo() == nil {
   263  			ms.StoreMessageInfo(mi)
   264  		}
   265  		return ms
   266  	}
   267  	return mi.MessageOf(x)
   268  }
   269  
   270  // Deprecated: Use TLS.ProtoReflect.Descriptor instead.
   271  func (*TLS) Descriptor() ([]byte, []int) {
   272  	return file_kat_echo_proto_rawDescGZIP(), []int{4}
   273  }
   274  
   275  func (x *TLS) GetEnabled() bool {
   276  	if x != nil {
   277  		return x.Enabled
   278  	}
   279  	return false
   280  }
   281  
   282  var File_kat_echo_proto protoreflect.FileDescriptor
   283  
   284  var file_kat_echo_proto_rawDesc = []byte{
   285  	0x0a, 0x0e, 0x6b, 0x61, 0x74, 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   286  	0x12, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x22, 0x21, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65,
   287  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
   288  	0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x7d, 0x0a, 0x0c, 0x45, 0x63, 0x68,
   289  	0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x63,
   290  	0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b,
   291  	0x65, 0x6e, 0x64, 0x12, 0x27, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02,
   292  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75,
   293  	0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x08,
   294  	0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
   295  	0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08,
   296  	0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7d, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70,
   297  	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18,
   298  	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x52, 0x65, 0x73,
   299  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74,
   300  	0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x48,
   301  	0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
   302  	0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
   303  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
   304  	0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75,
   305  	0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01,
   306  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75,
   307  	0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
   308  	0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x03, 0x74, 0x6c, 0x73,
   309  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x54, 0x4c,
   310  	0x53, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
   311  	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
   312  	0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   313  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
   314  	0x38, 0x01, 0x22, 0x1f, 0x0a, 0x03, 0x54, 0x4c, 0x53, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61,
   315  	0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62,
   316  	0x6c, 0x65, 0x64, 0x32, 0x3e, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69,
   317  	0x63, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x11, 0x2e, 0x65, 0x63, 0x68,
   318  	0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e,
   319  	0x65, 0x63, 0x68, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   320  	0x65, 0x22, 0x00, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x6b, 0x61, 0x74, 0x62, 0x06, 0x70, 0x72,
   321  	0x6f, 0x74, 0x6f, 0x33,
   322  }
   323  
   324  var (
   325  	file_kat_echo_proto_rawDescOnce sync.Once
   326  	file_kat_echo_proto_rawDescData = file_kat_echo_proto_rawDesc
   327  )
   328  
   329  func file_kat_echo_proto_rawDescGZIP() []byte {
   330  	file_kat_echo_proto_rawDescOnce.Do(func() {
   331  		file_kat_echo_proto_rawDescData = protoimpl.X.CompressGZIP(file_kat_echo_proto_rawDescData)
   332  	})
   333  	return file_kat_echo_proto_rawDescData
   334  }
   335  
   336  var file_kat_echo_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
   337  var file_kat_echo_proto_goTypes = []interface{}{
   338  	(*EchoRequest)(nil),  // 0: echo.EchoRequest
   339  	(*EchoResponse)(nil), // 1: echo.EchoResponse
   340  	(*Response)(nil),     // 2: echo.Response
   341  	(*Request)(nil),      // 3: echo.Request
   342  	(*TLS)(nil),          // 4: echo.TLS
   343  	nil,                  // 5: echo.Response.HeadersEntry
   344  	nil,                  // 6: echo.Request.HeadersEntry
   345  }
   346  var file_kat_echo_proto_depIdxs = []int32{
   347  	3, // 0: echo.EchoResponse.request:type_name -> echo.Request
   348  	2, // 1: echo.EchoResponse.response:type_name -> echo.Response
   349  	5, // 2: echo.Response.headers:type_name -> echo.Response.HeadersEntry
   350  	6, // 3: echo.Request.headers:type_name -> echo.Request.HeadersEntry
   351  	4, // 4: echo.Request.tls:type_name -> echo.TLS
   352  	0, // 5: echo.EchoService.Echo:input_type -> echo.EchoRequest
   353  	1, // 6: echo.EchoService.Echo:output_type -> echo.EchoResponse
   354  	6, // [6:7] is the sub-list for method output_type
   355  	5, // [5:6] is the sub-list for method input_type
   356  	5, // [5:5] is the sub-list for extension type_name
   357  	5, // [5:5] is the sub-list for extension extendee
   358  	0, // [0:5] is the sub-list for field type_name
   359  }
   360  
   361  func init() { file_kat_echo_proto_init() }
   362  func file_kat_echo_proto_init() {
   363  	if File_kat_echo_proto != nil {
   364  		return
   365  	}
   366  	if !protoimpl.UnsafeEnabled {
   367  		file_kat_echo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   368  			switch v := v.(*EchoRequest); i {
   369  			case 0:
   370  				return &v.state
   371  			case 1:
   372  				return &v.sizeCache
   373  			case 2:
   374  				return &v.unknownFields
   375  			default:
   376  				return nil
   377  			}
   378  		}
   379  		file_kat_echo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   380  			switch v := v.(*EchoResponse); i {
   381  			case 0:
   382  				return &v.state
   383  			case 1:
   384  				return &v.sizeCache
   385  			case 2:
   386  				return &v.unknownFields
   387  			default:
   388  				return nil
   389  			}
   390  		}
   391  		file_kat_echo_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   392  			switch v := v.(*Response); i {
   393  			case 0:
   394  				return &v.state
   395  			case 1:
   396  				return &v.sizeCache
   397  			case 2:
   398  				return &v.unknownFields
   399  			default:
   400  				return nil
   401  			}
   402  		}
   403  		file_kat_echo_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   404  			switch v := v.(*Request); i {
   405  			case 0:
   406  				return &v.state
   407  			case 1:
   408  				return &v.sizeCache
   409  			case 2:
   410  				return &v.unknownFields
   411  			default:
   412  				return nil
   413  			}
   414  		}
   415  		file_kat_echo_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   416  			switch v := v.(*TLS); i {
   417  			case 0:
   418  				return &v.state
   419  			case 1:
   420  				return &v.sizeCache
   421  			case 2:
   422  				return &v.unknownFields
   423  			default:
   424  				return nil
   425  			}
   426  		}
   427  	}
   428  	type x struct{}
   429  	out := protoimpl.TypeBuilder{
   430  		File: protoimpl.DescBuilder{
   431  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   432  			RawDescriptor: file_kat_echo_proto_rawDesc,
   433  			NumEnums:      0,
   434  			NumMessages:   7,
   435  			NumExtensions: 0,
   436  			NumServices:   1,
   437  		},
   438  		GoTypes:           file_kat_echo_proto_goTypes,
   439  		DependencyIndexes: file_kat_echo_proto_depIdxs,
   440  		MessageInfos:      file_kat_echo_proto_msgTypes,
   441  	}.Build()
   442  	File_kat_echo_proto = out.File
   443  	file_kat_echo_proto_rawDesc = nil
   444  	file_kat_echo_proto_goTypes = nil
   445  	file_kat_echo_proto_depIdxs = nil
   446  }
   447  

View as plain text