github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/common/net/network.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        v4.23.1
     5  // source: common/net/network.proto
     6  
     7  package net
     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 Network int32
    24  
    25  const (
    26  	Network_Unknown Network = 0
    27  	// Deprecated: Marked as deprecated in common/net/network.proto.
    28  	Network_RawTCP Network = 1
    29  	Network_TCP    Network = 2
    30  	Network_UDP    Network = 3
    31  	Network_UNIX   Network = 4
    32  )
    33  
    34  // Enum value maps for Network.
    35  var (
    36  	Network_name = map[int32]string{
    37  		0: "Unknown",
    38  		1: "RawTCP",
    39  		2: "TCP",
    40  		3: "UDP",
    41  		4: "UNIX",
    42  	}
    43  	Network_value = map[string]int32{
    44  		"Unknown": 0,
    45  		"RawTCP":  1,
    46  		"TCP":     2,
    47  		"UDP":     3,
    48  		"UNIX":    4,
    49  	}
    50  )
    51  
    52  func (x Network) Enum() *Network {
    53  	p := new(Network)
    54  	*p = x
    55  	return p
    56  }
    57  
    58  func (x Network) String() string {
    59  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    60  }
    61  
    62  func (Network) Descriptor() protoreflect.EnumDescriptor {
    63  	return file_common_net_network_proto_enumTypes[0].Descriptor()
    64  }
    65  
    66  func (Network) Type() protoreflect.EnumType {
    67  	return &file_common_net_network_proto_enumTypes[0]
    68  }
    69  
    70  func (x Network) Number() protoreflect.EnumNumber {
    71  	return protoreflect.EnumNumber(x)
    72  }
    73  
    74  // Deprecated: Use Network.Descriptor instead.
    75  func (Network) EnumDescriptor() ([]byte, []int) {
    76  	return file_common_net_network_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  // NetworkList is a list of Networks.
    80  type NetworkList struct {
    81  	state         protoimpl.MessageState
    82  	sizeCache     protoimpl.SizeCache
    83  	unknownFields protoimpl.UnknownFields
    84  
    85  	Network []Network `protobuf:"varint,1,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
    86  }
    87  
    88  func (x *NetworkList) Reset() {
    89  	*x = NetworkList{}
    90  	if protoimpl.UnsafeEnabled {
    91  		mi := &file_common_net_network_proto_msgTypes[0]
    92  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    93  		ms.StoreMessageInfo(mi)
    94  	}
    95  }
    96  
    97  func (x *NetworkList) String() string {
    98  	return protoimpl.X.MessageStringOf(x)
    99  }
   100  
   101  func (*NetworkList) ProtoMessage() {}
   102  
   103  func (x *NetworkList) ProtoReflect() protoreflect.Message {
   104  	mi := &file_common_net_network_proto_msgTypes[0]
   105  	if protoimpl.UnsafeEnabled && x != nil {
   106  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  		if ms.LoadMessageInfo() == nil {
   108  			ms.StoreMessageInfo(mi)
   109  		}
   110  		return ms
   111  	}
   112  	return mi.MessageOf(x)
   113  }
   114  
   115  // Deprecated: Use NetworkList.ProtoReflect.Descriptor instead.
   116  func (*NetworkList) Descriptor() ([]byte, []int) {
   117  	return file_common_net_network_proto_rawDescGZIP(), []int{0}
   118  }
   119  
   120  func (x *NetworkList) GetNetwork() []Network {
   121  	if x != nil {
   122  		return x.Network
   123  	}
   124  	return nil
   125  }
   126  
   127  var File_common_net_network_proto protoreflect.FileDescriptor
   128  
   129  var file_common_net_network_proto_rawDesc = []byte{
   130  	0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74,
   131  	0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79,
   132  	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x41, 0x0a, 0x0b, 0x4e,
   133  	0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x6e, 0x65,
   134  	0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72,
   135  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65,
   136  	0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2a, 0x42,
   137  	0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b,
   138  	0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x06, 0x52, 0x61, 0x77, 0x54, 0x43, 0x50,
   139  	0x10, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x02, 0x12,
   140  	0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x4e, 0x49, 0x58,
   141  	0x10, 0x04, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
   142  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74,
   143  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
   144  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65,
   145  	0x74, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   146  	0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   147  }
   148  
   149  var (
   150  	file_common_net_network_proto_rawDescOnce sync.Once
   151  	file_common_net_network_proto_rawDescData = file_common_net_network_proto_rawDesc
   152  )
   153  
   154  func file_common_net_network_proto_rawDescGZIP() []byte {
   155  	file_common_net_network_proto_rawDescOnce.Do(func() {
   156  		file_common_net_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_network_proto_rawDescData)
   157  	})
   158  	return file_common_net_network_proto_rawDescData
   159  }
   160  
   161  var file_common_net_network_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   162  var file_common_net_network_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   163  var file_common_net_network_proto_goTypes = []interface{}{
   164  	(Network)(0),        // 0: xray.common.net.Network
   165  	(*NetworkList)(nil), // 1: xray.common.net.NetworkList
   166  }
   167  var file_common_net_network_proto_depIdxs = []int32{
   168  	0, // 0: xray.common.net.NetworkList.network:type_name -> xray.common.net.Network
   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_common_net_network_proto_init() }
   177  func file_common_net_network_proto_init() {
   178  	if File_common_net_network_proto != nil {
   179  		return
   180  	}
   181  	if !protoimpl.UnsafeEnabled {
   182  		file_common_net_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   183  			switch v := v.(*NetworkList); 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_common_net_network_proto_rawDesc,
   200  			NumEnums:      1,
   201  			NumMessages:   1,
   202  			NumExtensions: 0,
   203  			NumServices:   0,
   204  		},
   205  		GoTypes:           file_common_net_network_proto_goTypes,
   206  		DependencyIndexes: file_common_net_network_proto_depIdxs,
   207  		EnumInfos:         file_common_net_network_proto_enumTypes,
   208  		MessageInfos:      file_common_net_network_proto_msgTypes,
   209  	}.Build()
   210  	File_common_net_network_proto = out.File
   211  	file_common_net_network_proto_rawDesc = nil
   212  	file_common_net_network_proto_goTypes = nil
   213  	file_common_net_network_proto_depIdxs = nil
   214  }