config.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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: transport/config.proto
  6. package transport
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. internet "v2ray.com/core/transport/internet"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. // Global transport settings. This affects all type of connections that go
  25. // through V2Ray. Deprecated. Use each settings in StreamConfig.
  26. //
  27. // Deprecated: Do not use.
  28. type Config struct {
  29. state protoimpl.MessageState
  30. sizeCache protoimpl.SizeCache
  31. unknownFields protoimpl.UnknownFields
  32. TransportSettings []*internet.TransportConfig `protobuf:"bytes,1,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  33. }
  34. func (x *Config) Reset() {
  35. *x = Config{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_transport_config_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Config) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Config) ProtoMessage() {}
  46. func (x *Config) ProtoReflect() protoreflect.Message {
  47. mi := &file_transport_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. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  58. func (*Config) Descriptor() ([]byte, []int) {
  59. return file_transport_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Config) GetTransportSettings() []*internet.TransportConfig {
  62. if x != nil {
  63. return x.TransportSettings
  64. }
  65. return nil
  66. }
  67. var File_transport_config_proto protoreflect.FileDescriptor
  68. var file_transport_config_proto_rawDesc = []byte{
  69. 0x0a, 0x16, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
  70. 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  71. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1f,
  72. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  73. 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  74. 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61,
  75. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  76. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  77. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  78. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43,
  79. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  80. 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x4d, 0x0a, 0x18,
  81. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  82. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x01, 0x5a, 0x18, 0x76, 0x32, 0x72, 0x61,
  83. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
  84. 0x70, 0x6f, 0x72, 0x74, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  85. 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
  86. 0x74, 0x6f, 0x33,
  87. }
  88. var (
  89. file_transport_config_proto_rawDescOnce sync.Once
  90. file_transport_config_proto_rawDescData = file_transport_config_proto_rawDesc
  91. )
  92. func file_transport_config_proto_rawDescGZIP() []byte {
  93. file_transport_config_proto_rawDescOnce.Do(func() {
  94. file_transport_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_config_proto_rawDescData)
  95. })
  96. return file_transport_config_proto_rawDescData
  97. }
  98. var file_transport_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  99. var file_transport_config_proto_goTypes = []interface{}{
  100. (*Config)(nil), // 0: v2ray.core.transport.Config
  101. (*internet.TransportConfig)(nil), // 1: v2ray.core.transport.internet.TransportConfig
  102. }
  103. var file_transport_config_proto_depIdxs = []int32{
  104. 1, // 0: v2ray.core.transport.Config.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  105. 1, // [1:1] is the sub-list for method output_type
  106. 1, // [1:1] is the sub-list for method input_type
  107. 1, // [1:1] is the sub-list for extension type_name
  108. 1, // [1:1] is the sub-list for extension extendee
  109. 0, // [0:1] is the sub-list for field type_name
  110. }
  111. func init() { file_transport_config_proto_init() }
  112. func file_transport_config_proto_init() {
  113. if File_transport_config_proto != nil {
  114. return
  115. }
  116. if !protoimpl.UnsafeEnabled {
  117. file_transport_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  118. switch v := v.(*Config); i {
  119. case 0:
  120. return &v.state
  121. case 1:
  122. return &v.sizeCache
  123. case 2:
  124. return &v.unknownFields
  125. default:
  126. return nil
  127. }
  128. }
  129. }
  130. type x struct{}
  131. out := protoimpl.TypeBuilder{
  132. File: protoimpl.DescBuilder{
  133. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  134. RawDescriptor: file_transport_config_proto_rawDesc,
  135. NumEnums: 0,
  136. NumMessages: 1,
  137. NumExtensions: 0,
  138. NumServices: 0,
  139. },
  140. GoTypes: file_transport_config_proto_goTypes,
  141. DependencyIndexes: file_transport_config_proto_depIdxs,
  142. MessageInfos: file_transport_config_proto_msgTypes,
  143. }.Build()
  144. File_transport_config_proto = out.File
  145. file_transport_config_proto_rawDesc = nil
  146. file_transport_config_proto_goTypes = nil
  147. file_transport_config_proto_depIdxs = nil
  148. }