github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/transport/global/config.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: transport/global/config.proto
     6  
     7  package global
     8  
     9  import (
    10  	internet "github.com/xmplusdev/xmcore/transport/internet"
    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  // Global transport settings. This affects all type of connections that go
    25  // through Xray. Deprecated. Use each settings in StreamConfig.
    26  //
    27  // Deprecated: Marked as deprecated in transport/global/config.proto.
    28  type Config struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	TransportSettings []*internet.TransportConfig `protobuf:"bytes,1,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
    34  }
    35  
    36  func (x *Config) Reset() {
    37  	*x = Config{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_transport_global_config_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *Config) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*Config) ProtoMessage() {}
    50  
    51  func (x *Config) ProtoReflect() protoreflect.Message {
    52  	mi := &file_transport_global_config_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    64  func (*Config) Descriptor() ([]byte, []int) {
    65  	return file_transport_global_config_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *Config) GetTransportSettings() []*internet.TransportConfig {
    69  	if x != nil {
    70  		return x.TransportSettings
    71  	}
    72  	return nil
    73  }
    74  
    75  var File_transport_global_config_proto protoreflect.FileDescriptor
    76  
    77  var file_transport_global_config_proto_rawDesc = []byte{
    78  	0x0a, 0x1d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x6c, 0x6f, 0x62,
    79  	0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
    80  	0x0e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x1a,
    81  	0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
    82  	0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    83  	0x22, 0x65, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x57, 0x0a, 0x12, 0x74, 0x72,
    84  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
    85  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
    86  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
    87  	0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    88  	0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69,
    89  	0x6e, 0x67, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x61, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x78,
    90  	0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6c,
    91  	0x6f, 0x62, 0x61, 0x6c, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
    92  	0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
    93  	0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x6c, 0x6f, 0x62,
    94  	0x61, 0x6c, 0xaa, 0x02, 0x15, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
    95  	0x6f, 0x72, 0x74, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
    96  	0x6f, 0x33,
    97  }
    98  
    99  var (
   100  	file_transport_global_config_proto_rawDescOnce sync.Once
   101  	file_transport_global_config_proto_rawDescData = file_transport_global_config_proto_rawDesc
   102  )
   103  
   104  func file_transport_global_config_proto_rawDescGZIP() []byte {
   105  	file_transport_global_config_proto_rawDescOnce.Do(func() {
   106  		file_transport_global_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_global_config_proto_rawDescData)
   107  	})
   108  	return file_transport_global_config_proto_rawDescData
   109  }
   110  
   111  var file_transport_global_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   112  var file_transport_global_config_proto_goTypes = []interface{}{
   113  	(*Config)(nil),                   // 0: xray.transport.Config
   114  	(*internet.TransportConfig)(nil), // 1: xray.transport.internet.TransportConfig
   115  }
   116  var file_transport_global_config_proto_depIdxs = []int32{
   117  	1, // 0: xray.transport.Config.transport_settings:type_name -> xray.transport.internet.TransportConfig
   118  	1, // [1:1] is the sub-list for method output_type
   119  	1, // [1:1] is the sub-list for method input_type
   120  	1, // [1:1] is the sub-list for extension type_name
   121  	1, // [1:1] is the sub-list for extension extendee
   122  	0, // [0:1] is the sub-list for field type_name
   123  }
   124  
   125  func init() { file_transport_global_config_proto_init() }
   126  func file_transport_global_config_proto_init() {
   127  	if File_transport_global_config_proto != nil {
   128  		return
   129  	}
   130  	if !protoimpl.UnsafeEnabled {
   131  		file_transport_global_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   132  			switch v := v.(*Config); i {
   133  			case 0:
   134  				return &v.state
   135  			case 1:
   136  				return &v.sizeCache
   137  			case 2:
   138  				return &v.unknownFields
   139  			default:
   140  				return nil
   141  			}
   142  		}
   143  	}
   144  	type x struct{}
   145  	out := protoimpl.TypeBuilder{
   146  		File: protoimpl.DescBuilder{
   147  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   148  			RawDescriptor: file_transport_global_config_proto_rawDesc,
   149  			NumEnums:      0,
   150  			NumMessages:   1,
   151  			NumExtensions: 0,
   152  			NumServices:   0,
   153  		},
   154  		GoTypes:           file_transport_global_config_proto_goTypes,
   155  		DependencyIndexes: file_transport_global_config_proto_depIdxs,
   156  		MessageInfos:      file_transport_global_config_proto_msgTypes,
   157  	}.Build()
   158  	File_transport_global_config_proto = out.File
   159  	file_transport_global_config_proto_rawDesc = nil
   160  	file_transport_global_config_proto_goTypes = nil
   161  	file_transport_global_config_proto_depIdxs = nil
   162  }