mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
command protobuf
This commit is contained in:
@@ -2,19 +2,6 @@
|
||||
// source: v2ray.com/core/common/protocol/headers.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package protocol is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/common/protocol/headers.proto
|
||||
v2ray.com/core/common/protocol/server_spec.proto
|
||||
v2ray.com/core/common/protocol/user.proto
|
||||
|
||||
It has these top-level messages:
|
||||
SecurityConfig
|
||||
ServerEndpoint
|
||||
User
|
||||
*/
|
||||
package protocol
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
@@ -26,12 +13,6 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type SecurityType int32
|
||||
|
||||
const (
|
||||
@@ -63,7 +44,7 @@ var SecurityType_value = map[string]int32{
|
||||
func (x SecurityType) String() string {
|
||||
return proto.EnumName(SecurityType_name, int32(x))
|
||||
}
|
||||
func (SecurityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (SecurityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
type SecurityConfig struct {
|
||||
Type SecurityType `protobuf:"varint,1,opt,name=type,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"`
|
||||
@@ -72,16 +53,16 @@ type SecurityConfig struct {
|
||||
func (m *SecurityConfig) Reset() { *m = SecurityConfig{} }
|
||||
func (m *SecurityConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*SecurityConfig) ProtoMessage() {}
|
||||
func (*SecurityConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (*SecurityConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SecurityConfig)(nil), "v2ray.core.common.protocol.SecurityConfig")
|
||||
proto.RegisterEnum("v2ray.core.common.protocol.SecurityType", SecurityType_name, SecurityType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("v2ray.com/core/common/protocol/headers.proto", fileDescriptor0) }
|
||||
func init() { proto.RegisterFile("v2ray.com/core/common/protocol/headers.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor1 = []byte{
|
||||
// 241 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xd2, 0x29, 0x33, 0x2a, 0x4a,
|
||||
0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
|
||||
|
||||
Reference in New Issue
Block a user