github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/protocol/headers.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.13.0
     5  // source: common/protocol/headers.proto
     6  
     7  package protocol
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type SecurityType int32
    29  
    30  const (
    31  	SecurityType_UNKNOWN           SecurityType = 0
    32  	SecurityType_LEGACY            SecurityType = 1
    33  	SecurityType_AUTO              SecurityType = 2
    34  	SecurityType_AES128_GCM        SecurityType = 3
    35  	SecurityType_CHACHA20_POLY1305 SecurityType = 4
    36  	SecurityType_NONE              SecurityType = 5
    37  )
    38  
    39  // Enum value maps for SecurityType.
    40  var (
    41  	SecurityType_name = map[int32]string{
    42  		0: "UNKNOWN",
    43  		1: "LEGACY",
    44  		2: "AUTO",
    45  		3: "AES128_GCM",
    46  		4: "CHACHA20_POLY1305",
    47  		5: "NONE",
    48  	}
    49  	SecurityType_value = map[string]int32{
    50  		"UNKNOWN":           0,
    51  		"LEGACY":            1,
    52  		"AUTO":              2,
    53  		"AES128_GCM":        3,
    54  		"CHACHA20_POLY1305": 4,
    55  		"NONE":              5,
    56  	}
    57  )
    58  
    59  func (x SecurityType) Enum() *SecurityType {
    60  	p := new(SecurityType)
    61  	*p = x
    62  	return p
    63  }
    64  
    65  func (x SecurityType) String() string {
    66  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    67  }
    68  
    69  func (SecurityType) Descriptor() protoreflect.EnumDescriptor {
    70  	return file_common_protocol_headers_proto_enumTypes[0].Descriptor()
    71  }
    72  
    73  func (SecurityType) Type() protoreflect.EnumType {
    74  	return &file_common_protocol_headers_proto_enumTypes[0]
    75  }
    76  
    77  func (x SecurityType) Number() protoreflect.EnumNumber {
    78  	return protoreflect.EnumNumber(x)
    79  }
    80  
    81  // Deprecated: Use SecurityType.Descriptor instead.
    82  func (SecurityType) EnumDescriptor() ([]byte, []int) {
    83  	return file_common_protocol_headers_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  type SecurityConfig struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Type SecurityType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"`
    92  }
    93  
    94  func (x *SecurityConfig) Reset() {
    95  	*x = SecurityConfig{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_common_protocol_headers_proto_msgTypes[0]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *SecurityConfig) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*SecurityConfig) ProtoMessage() {}
   108  
   109  func (x *SecurityConfig) ProtoReflect() protoreflect.Message {
   110  	mi := &file_common_protocol_headers_proto_msgTypes[0]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead.
   122  func (*SecurityConfig) Descriptor() ([]byte, []int) {
   123  	return file_common_protocol_headers_proto_rawDescGZIP(), []int{0}
   124  }
   125  
   126  func (x *SecurityConfig) GetType() SecurityType {
   127  	if x != nil {
   128  		return x.Type
   129  	}
   130  	return SecurityType_UNKNOWN
   131  }
   132  
   133  var File_common_protocol_headers_proto protoreflect.FileDescriptor
   134  
   135  var file_common_protocol_headers_proto_rawDesc = []byte{
   136  	0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   137  	0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   138  	0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
   139  	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x4e, 0x0a, 0x0e, 0x53,
   140  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a,
   141  	0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32,
   142  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   143  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
   144  	0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x2a, 0x62, 0x0a, 0x0c, 0x53,
   145  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55,
   146  	0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x47, 0x41,
   147  	0x43, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x0e,
   148  	0x0a, 0x0a, 0x41, 0x45, 0x53, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x03, 0x12, 0x15,
   149  	0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31,
   150  	0x33, 0x30, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x42,
   151  	0x5f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   152  	0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   153  	0x6c, 0x50, 0x01, 0x5a, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
   154  	0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   155  	0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
   156  	0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   157  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   158  }
   159  
   160  var (
   161  	file_common_protocol_headers_proto_rawDescOnce sync.Once
   162  	file_common_protocol_headers_proto_rawDescData = file_common_protocol_headers_proto_rawDesc
   163  )
   164  
   165  func file_common_protocol_headers_proto_rawDescGZIP() []byte {
   166  	file_common_protocol_headers_proto_rawDescOnce.Do(func() {
   167  		file_common_protocol_headers_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_headers_proto_rawDescData)
   168  	})
   169  	return file_common_protocol_headers_proto_rawDescData
   170  }
   171  
   172  var file_common_protocol_headers_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   173  var file_common_protocol_headers_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   174  var file_common_protocol_headers_proto_goTypes = []interface{}{
   175  	(SecurityType)(0),      // 0: v2ray.core.common.protocol.SecurityType
   176  	(*SecurityConfig)(nil), // 1: v2ray.core.common.protocol.SecurityConfig
   177  }
   178  var file_common_protocol_headers_proto_depIdxs = []int32{
   179  	0, // 0: v2ray.core.common.protocol.SecurityConfig.type:type_name -> v2ray.core.common.protocol.SecurityType
   180  	1, // [1:1] is the sub-list for method output_type
   181  	1, // [1:1] is the sub-list for method input_type
   182  	1, // [1:1] is the sub-list for extension type_name
   183  	1, // [1:1] is the sub-list for extension extendee
   184  	0, // [0:1] is the sub-list for field type_name
   185  }
   186  
   187  func init() { file_common_protocol_headers_proto_init() }
   188  func file_common_protocol_headers_proto_init() {
   189  	if File_common_protocol_headers_proto != nil {
   190  		return
   191  	}
   192  	if !protoimpl.UnsafeEnabled {
   193  		file_common_protocol_headers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   194  			switch v := v.(*SecurityConfig); i {
   195  			case 0:
   196  				return &v.state
   197  			case 1:
   198  				return &v.sizeCache
   199  			case 2:
   200  				return &v.unknownFields
   201  			default:
   202  				return nil
   203  			}
   204  		}
   205  	}
   206  	type x struct{}
   207  	out := protoimpl.TypeBuilder{
   208  		File: protoimpl.DescBuilder{
   209  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   210  			RawDescriptor: file_common_protocol_headers_proto_rawDesc,
   211  			NumEnums:      1,
   212  			NumMessages:   1,
   213  			NumExtensions: 0,
   214  			NumServices:   0,
   215  		},
   216  		GoTypes:           file_common_protocol_headers_proto_goTypes,
   217  		DependencyIndexes: file_common_protocol_headers_proto_depIdxs,
   218  		EnumInfos:         file_common_protocol_headers_proto_enumTypes,
   219  		MessageInfos:      file_common_protocol_headers_proto_msgTypes,
   220  	}.Build()
   221  	File_common_protocol_headers_proto = out.File
   222  	file_common_protocol_headers_proto_rawDesc = nil
   223  	file_common_protocol_headers_proto_goTypes = nil
   224  	file_common_protocol_headers_proto_depIdxs = nil
   225  }