config.pb.go 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.18.0
  5. // source: transport/internet/grpc/config.proto
  6. package grpc
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
  24. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
  25. MultiMode bool `protobuf:"varint,3,opt,name=multi_mode,json=multiMode,proto3" json:"multi_mode,omitempty"`
  26. IdleTimeout int32 `protobuf:"varint,4,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
  27. HealthCheckTimeout int32 `protobuf:"varint,5,opt,name=health_check_timeout,json=healthCheckTimeout,proto3" json:"health_check_timeout,omitempty"`
  28. PermitWithoutStream bool `protobuf:"varint,6,opt,name=permit_without_stream,json=permitWithoutStream,proto3" json:"permit_without_stream,omitempty"`
  29. InitialWindowsSize int32 `protobuf:"varint,7,opt,name=initial_windows_size,json=initialWindowsSize,proto3" json:"initial_windows_size,omitempty"`
  30. }
  31. func (x *Config) Reset() {
  32. *x = Config{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *Config) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Config) ProtoMessage() {}
  43. func (x *Config) ProtoReflect() protoreflect.Message {
  44. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  55. func (*Config) Descriptor() ([]byte, []int) {
  56. return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Config) GetHost() string {
  59. if x != nil {
  60. return x.Host
  61. }
  62. return ""
  63. }
  64. func (x *Config) GetServiceName() string {
  65. if x != nil {
  66. return x.ServiceName
  67. }
  68. return ""
  69. }
  70. func (x *Config) GetMultiMode() bool {
  71. if x != nil {
  72. return x.MultiMode
  73. }
  74. return false
  75. }
  76. func (x *Config) GetIdleTimeout() int32 {
  77. if x != nil {
  78. return x.IdleTimeout
  79. }
  80. return 0
  81. }
  82. func (x *Config) GetHealthCheckTimeout() int32 {
  83. if x != nil {
  84. return x.HealthCheckTimeout
  85. }
  86. return 0
  87. }
  88. func (x *Config) GetPermitWithoutStream() bool {
  89. if x != nil {
  90. return x.PermitWithoutStream
  91. }
  92. return false
  93. }
  94. func (x *Config) GetInitialWindowsSize() int32 {
  95. if x != nil {
  96. return x.InitialWindowsSize
  97. }
  98. return 0
  99. }
  100. var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor
  101. var file_transport_internet_grpc_config_proto_rawDesc = []byte{
  102. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  103. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  104. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  105. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  106. 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x99, 0x02,
  107. 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74,
  108. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c,
  109. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  110. 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  111. 0x1d, 0x0a, 0x0a, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20,
  112. 0x01, 0x28, 0x08, 0x52, 0x09, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21,
  113. 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04,
  114. 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
  115. 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63,
  116. 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
  117. 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65,
  118. 0x6f, 0x75, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x5f, 0x77, 0x69,
  119. 0x74, 0x68, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01,
  120. 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75,
  121. 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69,
  122. 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
  123. 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x57, 0x69,
  124. 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74,
  125. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  126. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  127. 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06,
  128. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  129. }
  130. var (
  131. file_transport_internet_grpc_config_proto_rawDescOnce sync.Once
  132. file_transport_internet_grpc_config_proto_rawDescData = file_transport_internet_grpc_config_proto_rawDesc
  133. )
  134. func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte {
  135. file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() {
  136. file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_config_proto_rawDescData)
  137. })
  138. return file_transport_internet_grpc_config_proto_rawDescData
  139. }
  140. var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  141. var file_transport_internet_grpc_config_proto_goTypes = []interface{}{
  142. (*Config)(nil), // 0: xray.transport.internet.grpc.encoding.Config
  143. }
  144. var file_transport_internet_grpc_config_proto_depIdxs = []int32{
  145. 0, // [0:0] is the sub-list for method output_type
  146. 0, // [0:0] is the sub-list for method input_type
  147. 0, // [0:0] is the sub-list for extension type_name
  148. 0, // [0:0] is the sub-list for extension extendee
  149. 0, // [0:0] is the sub-list for field type_name
  150. }
  151. func init() { file_transport_internet_grpc_config_proto_init() }
  152. func file_transport_internet_grpc_config_proto_init() {
  153. if File_transport_internet_grpc_config_proto != nil {
  154. return
  155. }
  156. if !protoimpl.UnsafeEnabled {
  157. file_transport_internet_grpc_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  158. switch v := v.(*Config); i {
  159. case 0:
  160. return &v.state
  161. case 1:
  162. return &v.sizeCache
  163. case 2:
  164. return &v.unknownFields
  165. default:
  166. return nil
  167. }
  168. }
  169. }
  170. type x struct{}
  171. out := protoimpl.TypeBuilder{
  172. File: protoimpl.DescBuilder{
  173. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  174. RawDescriptor: file_transport_internet_grpc_config_proto_rawDesc,
  175. NumEnums: 0,
  176. NumMessages: 1,
  177. NumExtensions: 0,
  178. NumServices: 0,
  179. },
  180. GoTypes: file_transport_internet_grpc_config_proto_goTypes,
  181. DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs,
  182. MessageInfos: file_transport_internet_grpc_config_proto_msgTypes,
  183. }.Build()
  184. File_transport_internet_grpc_config_proto = out.File
  185. file_transport_internet_grpc_config_proto_rawDesc = nil
  186. file_transport_internet_grpc_config_proto_goTypes = nil
  187. file_transport_internet_grpc_config_proto_depIdxs = nil
  188. }