github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/core/v3/proxy_protocol.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/config/core/v3/proxy_protocol.proto
     6  
     7  package envoy_config_core_v3
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	proto "github.com/golang/protobuf/proto"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // This is a compile-time assertion that a sufficiently up-to-date version
    26  // of the legacy proto package is being used.
    27  const _ = proto.ProtoPackageIsVersion4
    28  
    29  type ProxyProtocolConfig_Version int32
    30  
    31  const (
    32  	// PROXY protocol version 1. Human readable format.
    33  	ProxyProtocolConfig_V1 ProxyProtocolConfig_Version = 0
    34  	// PROXY protocol version 2. Binary format.
    35  	ProxyProtocolConfig_V2 ProxyProtocolConfig_Version = 1
    36  )
    37  
    38  // Enum value maps for ProxyProtocolConfig_Version.
    39  var (
    40  	ProxyProtocolConfig_Version_name = map[int32]string{
    41  		0: "V1",
    42  		1: "V2",
    43  	}
    44  	ProxyProtocolConfig_Version_value = map[string]int32{
    45  		"V1": 0,
    46  		"V2": 1,
    47  	}
    48  )
    49  
    50  func (x ProxyProtocolConfig_Version) Enum() *ProxyProtocolConfig_Version {
    51  	p := new(ProxyProtocolConfig_Version)
    52  	*p = x
    53  	return p
    54  }
    55  
    56  func (x ProxyProtocolConfig_Version) String() string {
    57  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    58  }
    59  
    60  func (ProxyProtocolConfig_Version) Descriptor() protoreflect.EnumDescriptor {
    61  	return file_envoy_config_core_v3_proxy_protocol_proto_enumTypes[0].Descriptor()
    62  }
    63  
    64  func (ProxyProtocolConfig_Version) Type() protoreflect.EnumType {
    65  	return &file_envoy_config_core_v3_proxy_protocol_proto_enumTypes[0]
    66  }
    67  
    68  func (x ProxyProtocolConfig_Version) Number() protoreflect.EnumNumber {
    69  	return protoreflect.EnumNumber(x)
    70  }
    71  
    72  // Deprecated: Use ProxyProtocolConfig_Version.Descriptor instead.
    73  func (ProxyProtocolConfig_Version) EnumDescriptor() ([]byte, []int) {
    74  	return file_envoy_config_core_v3_proxy_protocol_proto_rawDescGZIP(), []int{0, 0}
    75  }
    76  
    77  type ProxyProtocolConfig struct {
    78  	state         protoimpl.MessageState
    79  	sizeCache     protoimpl.SizeCache
    80  	unknownFields protoimpl.UnknownFields
    81  
    82  	// The PROXY protocol version to use. See https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt for details
    83  	Version ProxyProtocolConfig_Version `protobuf:"varint,1,opt,name=version,proto3,enum=envoy.config.core.v3.ProxyProtocolConfig_Version" json:"version,omitempty"`
    84  }
    85  
    86  func (x *ProxyProtocolConfig) Reset() {
    87  	*x = ProxyProtocolConfig{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_envoy_config_core_v3_proxy_protocol_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *ProxyProtocolConfig) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*ProxyProtocolConfig) ProtoMessage() {}
   100  
   101  func (x *ProxyProtocolConfig) ProtoReflect() protoreflect.Message {
   102  	mi := &file_envoy_config_core_v3_proxy_protocol_proto_msgTypes[0]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use ProxyProtocolConfig.ProtoReflect.Descriptor instead.
   114  func (*ProxyProtocolConfig) Descriptor() ([]byte, []int) {
   115  	return file_envoy_config_core_v3_proxy_protocol_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *ProxyProtocolConfig) GetVersion() ProxyProtocolConfig_Version {
   119  	if x != nil {
   120  		return x.Version
   121  	}
   122  	return ProxyProtocolConfig_V1
   123  }
   124  
   125  var File_envoy_config_core_v3_proxy_protocol_proto protoreflect.FileDescriptor
   126  
   127  var file_envoy_config_core_v3_proxy_protocol_proto_rawDesc = []byte{
   128  	0x0a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
   129  	0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f,
   130  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76,
   131  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
   132  	0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
   133  	0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   134  	0x22, 0x7d, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   135  	0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
   136  	0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   137  	0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e,
   138  	0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x43, 0x6f, 0x6e,
   139  	0x66, 0x69, 0x67, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72,
   140  	0x73, 0x69, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
   141  	0x06, 0x0a, 0x02, 0x56, 0x31, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x32, 0x10, 0x01, 0x42,
   142  	0x42, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79,
   143  	0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f,
   144  	0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x12, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74,
   145  	0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
   146  	0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   147  }
   148  
   149  var (
   150  	file_envoy_config_core_v3_proxy_protocol_proto_rawDescOnce sync.Once
   151  	file_envoy_config_core_v3_proxy_protocol_proto_rawDescData = file_envoy_config_core_v3_proxy_protocol_proto_rawDesc
   152  )
   153  
   154  func file_envoy_config_core_v3_proxy_protocol_proto_rawDescGZIP() []byte {
   155  	file_envoy_config_core_v3_proxy_protocol_proto_rawDescOnce.Do(func() {
   156  		file_envoy_config_core_v3_proxy_protocol_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_proxy_protocol_proto_rawDescData)
   157  	})
   158  	return file_envoy_config_core_v3_proxy_protocol_proto_rawDescData
   159  }
   160  
   161  var file_envoy_config_core_v3_proxy_protocol_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   162  var file_envoy_config_core_v3_proxy_protocol_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   163  var file_envoy_config_core_v3_proxy_protocol_proto_goTypes = []interface{}{
   164  	(ProxyProtocolConfig_Version)(0), // 0: envoy.config.core.v3.ProxyProtocolConfig.Version
   165  	(*ProxyProtocolConfig)(nil),      // 1: envoy.config.core.v3.ProxyProtocolConfig
   166  }
   167  var file_envoy_config_core_v3_proxy_protocol_proto_depIdxs = []int32{
   168  	0, // 0: envoy.config.core.v3.ProxyProtocolConfig.version:type_name -> envoy.config.core.v3.ProxyProtocolConfig.Version
   169  	1, // [1:1] is the sub-list for method output_type
   170  	1, // [1:1] is the sub-list for method input_type
   171  	1, // [1:1] is the sub-list for extension type_name
   172  	1, // [1:1] is the sub-list for extension extendee
   173  	0, // [0:1] is the sub-list for field type_name
   174  }
   175  
   176  func init() { file_envoy_config_core_v3_proxy_protocol_proto_init() }
   177  func file_envoy_config_core_v3_proxy_protocol_proto_init() {
   178  	if File_envoy_config_core_v3_proxy_protocol_proto != nil {
   179  		return
   180  	}
   181  	if !protoimpl.UnsafeEnabled {
   182  		file_envoy_config_core_v3_proxy_protocol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   183  			switch v := v.(*ProxyProtocolConfig); i {
   184  			case 0:
   185  				return &v.state
   186  			case 1:
   187  				return &v.sizeCache
   188  			case 2:
   189  				return &v.unknownFields
   190  			default:
   191  				return nil
   192  			}
   193  		}
   194  	}
   195  	type x struct{}
   196  	out := protoimpl.TypeBuilder{
   197  		File: protoimpl.DescBuilder{
   198  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   199  			RawDescriptor: file_envoy_config_core_v3_proxy_protocol_proto_rawDesc,
   200  			NumEnums:      1,
   201  			NumMessages:   1,
   202  			NumExtensions: 0,
   203  			NumServices:   0,
   204  		},
   205  		GoTypes:           file_envoy_config_core_v3_proxy_protocol_proto_goTypes,
   206  		DependencyIndexes: file_envoy_config_core_v3_proxy_protocol_proto_depIdxs,
   207  		EnumInfos:         file_envoy_config_core_v3_proxy_protocol_proto_enumTypes,
   208  		MessageInfos:      file_envoy_config_core_v3_proxy_protocol_proto_msgTypes,
   209  	}.Build()
   210  	File_envoy_config_core_v3_proxy_protocol_proto = out.File
   211  	file_envoy_config_core_v3_proxy_protocol_proto_rawDesc = nil
   212  	file_envoy_config_core_v3_proxy_protocol_proto_goTypes = nil
   213  	file_envoy_config_core_v3_proxy_protocol_proto_depIdxs = nil
   214  }