github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/quic/config.pb.go (about)

     1  package quic
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	protocol "github.com/imannamdari/v2ray-core/v5/common/protocol"
     8  	_ "github.com/imannamdari/v2ray-core/v5/common/protoext"
     9  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    10  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    11  	anypb "google.golang.org/protobuf/types/known/anypb"
    12  )
    13  
    14  const (
    15  	// Verify that this generated code is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    17  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    19  )
    20  
    21  type Config struct {
    22  	state         protoimpl.MessageState
    23  	sizeCache     protoimpl.SizeCache
    24  	unknownFields protoimpl.UnknownFields
    25  
    26  	Key      string                   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    27  	Security *protocol.SecurityConfig `protobuf:"bytes,2,opt,name=security,proto3" json:"security,omitempty"`
    28  	Header   *anypb.Any               `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
    29  }
    30  
    31  func (x *Config) Reset() {
    32  	*x = Config{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_transport_internet_quic_config_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *Config) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*Config) ProtoMessage() {}
    45  
    46  func (x *Config) ProtoReflect() protoreflect.Message {
    47  	mi := &file_transport_internet_quic_config_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 Config.ProtoReflect.Descriptor instead.
    59  func (*Config) Descriptor() ([]byte, []int) {
    60  	return file_transport_internet_quic_config_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *Config) GetKey() string {
    64  	if x != nil {
    65  		return x.Key
    66  	}
    67  	return ""
    68  }
    69  
    70  func (x *Config) GetSecurity() *protocol.SecurityConfig {
    71  	if x != nil {
    72  		return x.Security
    73  	}
    74  	return nil
    75  }
    76  
    77  func (x *Config) GetHeader() *anypb.Any {
    78  	if x != nil {
    79  		return x.Header
    80  	}
    81  	return nil
    82  }
    83  
    84  var File_transport_internet_quic_config_proto protoreflect.FileDescriptor
    85  
    86  var file_transport_internet_quic_config_proto_rawDesc = []byte{
    87  	0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
    88  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x71, 0x75, 0x69, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    89  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
    90  	0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
    91  	0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x71, 0x75, 0x69, 0x63, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
    92  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e,
    93  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
    94  	0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70,
    95  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
    96  	0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
    97  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
    98  	0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
    99  	0x6b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x08, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x18,
   100  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
   101  	0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   102  	0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   103  	0x67, 0x52, 0x08, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x06, 0x68,
   104  	0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f,
   105  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e,
   106  	0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x0b, 0x0a,
   107  	0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x82, 0xb5, 0x18, 0x06, 0x12, 0x04,
   108  	0x71, 0x75, 0x69, 0x63, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
   109  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
   110  	0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x71, 0x75, 0x69, 0x63, 0x50,
   111  	0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
   112  	0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
   113  	0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   114  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x71, 0x75, 0x69, 0x63, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61,
   115  	0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
   116  	0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x62, 0x06,
   117  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   118  }
   119  
   120  var (
   121  	file_transport_internet_quic_config_proto_rawDescOnce sync.Once
   122  	file_transport_internet_quic_config_proto_rawDescData = file_transport_internet_quic_config_proto_rawDesc
   123  )
   124  
   125  func file_transport_internet_quic_config_proto_rawDescGZIP() []byte {
   126  	file_transport_internet_quic_config_proto_rawDescOnce.Do(func() {
   127  		file_transport_internet_quic_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_quic_config_proto_rawDescData)
   128  	})
   129  	return file_transport_internet_quic_config_proto_rawDescData
   130  }
   131  
   132  var file_transport_internet_quic_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   133  var file_transport_internet_quic_config_proto_goTypes = []interface{}{
   134  	(*Config)(nil),                  // 0: v2ray.core.transport.internet.quic.Config
   135  	(*protocol.SecurityConfig)(nil), // 1: v2ray.core.common.protocol.SecurityConfig
   136  	(*anypb.Any)(nil),               // 2: google.protobuf.Any
   137  }
   138  var file_transport_internet_quic_config_proto_depIdxs = []int32{
   139  	1, // 0: v2ray.core.transport.internet.quic.Config.security:type_name -> v2ray.core.common.protocol.SecurityConfig
   140  	2, // 1: v2ray.core.transport.internet.quic.Config.header:type_name -> google.protobuf.Any
   141  	2, // [2:2] is the sub-list for method output_type
   142  	2, // [2:2] is the sub-list for method input_type
   143  	2, // [2:2] is the sub-list for extension type_name
   144  	2, // [2:2] is the sub-list for extension extendee
   145  	0, // [0:2] is the sub-list for field type_name
   146  }
   147  
   148  func init() { file_transport_internet_quic_config_proto_init() }
   149  func file_transport_internet_quic_config_proto_init() {
   150  	if File_transport_internet_quic_config_proto != nil {
   151  		return
   152  	}
   153  	if !protoimpl.UnsafeEnabled {
   154  		file_transport_internet_quic_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   155  			switch v := v.(*Config); i {
   156  			case 0:
   157  				return &v.state
   158  			case 1:
   159  				return &v.sizeCache
   160  			case 2:
   161  				return &v.unknownFields
   162  			default:
   163  				return nil
   164  			}
   165  		}
   166  	}
   167  	type x struct{}
   168  	out := protoimpl.TypeBuilder{
   169  		File: protoimpl.DescBuilder{
   170  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   171  			RawDescriptor: file_transport_internet_quic_config_proto_rawDesc,
   172  			NumEnums:      0,
   173  			NumMessages:   1,
   174  			NumExtensions: 0,
   175  			NumServices:   0,
   176  		},
   177  		GoTypes:           file_transport_internet_quic_config_proto_goTypes,
   178  		DependencyIndexes: file_transport_internet_quic_config_proto_depIdxs,
   179  		MessageInfos:      file_transport_internet_quic_config_proto_msgTypes,
   180  	}.Build()
   181  	File_transport_internet_quic_config_proto = out.File
   182  	file_transport_internet_quic_config_proto_rawDesc = nil
   183  	file_transport_internet_quic_config_proto_goTypes = nil
   184  	file_transport_internet_quic_config_proto_depIdxs = nil
   185  }