config.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package grpc
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type Config struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
  19. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
  20. unknownFields protoimpl.UnknownFields
  21. sizeCache protoimpl.SizeCache
  22. }
  23. func (x *Config) Reset() {
  24. *x = Config{}
  25. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  26. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  27. ms.StoreMessageInfo(mi)
  28. }
  29. func (x *Config) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*Config) ProtoMessage() {}
  33. func (x *Config) ProtoReflect() protoreflect.Message {
  34. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  35. if x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  45. func (*Config) Descriptor() ([]byte, []int) {
  46. return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. func (x *Config) GetHost() string {
  49. if x != nil {
  50. return x.Host
  51. }
  52. return ""
  53. }
  54. func (x *Config) GetServiceName() string {
  55. if x != nil {
  56. return x.ServiceName
  57. }
  58. return ""
  59. }
  60. var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor
  61. var file_transport_internet_grpc_config_proto_rawDesc = string([]byte{
  62. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  63. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  64. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  65. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  66. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64,
  67. 0x69, 0x6e, 0x67, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  68. 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
  69. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  70. 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
  71. 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e,
  72. 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69,
  73. 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x82, 0xb5, 0x18, 0x1c, 0x0a, 0x09, 0x74, 0x72,
  74. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x04, 0x67, 0x72, 0x70, 0x63, 0x8a, 0xff, 0x29,
  75. 0x03, 0x67, 0x75, 0x6e, 0x90, 0xff, 0x29, 0x01, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d,
  76. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  77. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67,
  78. 0x72, 0x70, 0x63, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  79. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  80. 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e,
  81. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x22, 0x56, 0x32,
  82. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  83. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x47, 0x72, 0x70, 0x63,
  84. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  85. })
  86. var (
  87. file_transport_internet_grpc_config_proto_rawDescOnce sync.Once
  88. file_transport_internet_grpc_config_proto_rawDescData []byte
  89. )
  90. func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte {
  91. file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() {
  92. file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_grpc_config_proto_rawDesc), len(file_transport_internet_grpc_config_proto_rawDesc)))
  93. })
  94. return file_transport_internet_grpc_config_proto_rawDescData
  95. }
  96. var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  97. var file_transport_internet_grpc_config_proto_goTypes = []any{
  98. (*Config)(nil), // 0: v2ray.core.transport.internet.grpc.encoding.Config
  99. }
  100. var file_transport_internet_grpc_config_proto_depIdxs = []int32{
  101. 0, // [0:0] is the sub-list for method output_type
  102. 0, // [0:0] is the sub-list for method input_type
  103. 0, // [0:0] is the sub-list for extension type_name
  104. 0, // [0:0] is the sub-list for extension extendee
  105. 0, // [0:0] is the sub-list for field type_name
  106. }
  107. func init() { file_transport_internet_grpc_config_proto_init() }
  108. func file_transport_internet_grpc_config_proto_init() {
  109. if File_transport_internet_grpc_config_proto != nil {
  110. return
  111. }
  112. type x struct{}
  113. out := protoimpl.TypeBuilder{
  114. File: protoimpl.DescBuilder{
  115. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  116. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_grpc_config_proto_rawDesc), len(file_transport_internet_grpc_config_proto_rawDesc)),
  117. NumEnums: 0,
  118. NumMessages: 1,
  119. NumExtensions: 0,
  120. NumServices: 0,
  121. },
  122. GoTypes: file_transport_internet_grpc_config_proto_goTypes,
  123. DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs,
  124. MessageInfos: file_transport_internet_grpc_config_proto_msgTypes,
  125. }.Build()
  126. File_transport_internet_grpc_config_proto = out.File
  127. file_transport_internet_grpc_config_proto_goTypes = nil
  128. file_transport_internet_grpc_config_proto_depIdxs = nil
  129. }