config.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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/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. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,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. UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
  31. }
  32. func (x *Config) Reset() {
  33. *x = Config{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *Config) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*Config) ProtoMessage() {}
  44. func (x *Config) ProtoReflect() protoreflect.Message {
  45. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  56. func (*Config) Descriptor() ([]byte, []int) {
  57. return file_transport_internet_grpc_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *Config) GetAuthority() string {
  60. if x != nil {
  61. return x.Authority
  62. }
  63. return ""
  64. }
  65. func (x *Config) GetServiceName() string {
  66. if x != nil {
  67. return x.ServiceName
  68. }
  69. return ""
  70. }
  71. func (x *Config) GetMultiMode() bool {
  72. if x != nil {
  73. return x.MultiMode
  74. }
  75. return false
  76. }
  77. func (x *Config) GetIdleTimeout() int32 {
  78. if x != nil {
  79. return x.IdleTimeout
  80. }
  81. return 0
  82. }
  83. func (x *Config) GetHealthCheckTimeout() int32 {
  84. if x != nil {
  85. return x.HealthCheckTimeout
  86. }
  87. return 0
  88. }
  89. func (x *Config) GetPermitWithoutStream() bool {
  90. if x != nil {
  91. return x.PermitWithoutStream
  92. }
  93. return false
  94. }
  95. func (x *Config) GetInitialWindowsSize() int32 {
  96. if x != nil {
  97. return x.InitialWindowsSize
  98. }
  99. return 0
  100. }
  101. func (x *Config) GetUserAgent() string {
  102. if x != nil {
  103. return x.UserAgent
  104. }
  105. return ""
  106. }
  107. var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor
  108. var file_transport_internet_grpc_config_proto_rawDesc = []byte{
  109. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  110. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  111. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  112. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  113. 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xc2, 0x02,
  114. 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68,
  115. 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74,
  116. 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  117. 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65,
  118. 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x75, 0x6c,
  119. 0x74, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6d,
  120. 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65,
  121. 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b,
  122. 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68,
  123. 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65,
  124. 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74,
  125. 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x32, 0x0a,
  126. 0x15, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x5f,
  127. 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x65,
  128. 0x72, 0x6d, 0x69, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61,
  129. 0x6d, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x6e,
  130. 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52,
  131. 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x53,
  132. 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e,
  133. 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65,
  134. 0x6e, 0x74, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  135. 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  136. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  137. 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  138. }
  139. var (
  140. file_transport_internet_grpc_config_proto_rawDescOnce sync.Once
  141. file_transport_internet_grpc_config_proto_rawDescData = file_transport_internet_grpc_config_proto_rawDesc
  142. )
  143. func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte {
  144. file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() {
  145. file_transport_internet_grpc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_config_proto_rawDescData)
  146. })
  147. return file_transport_internet_grpc_config_proto_rawDescData
  148. }
  149. var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  150. var file_transport_internet_grpc_config_proto_goTypes = []interface{}{
  151. (*Config)(nil), // 0: xray.transport.internet.grpc.encoding.Config
  152. }
  153. var file_transport_internet_grpc_config_proto_depIdxs = []int32{
  154. 0, // [0:0] is the sub-list for method output_type
  155. 0, // [0:0] is the sub-list for method input_type
  156. 0, // [0:0] is the sub-list for extension type_name
  157. 0, // [0:0] is the sub-list for extension extendee
  158. 0, // [0:0] is the sub-list for field type_name
  159. }
  160. func init() { file_transport_internet_grpc_config_proto_init() }
  161. func file_transport_internet_grpc_config_proto_init() {
  162. if File_transport_internet_grpc_config_proto != nil {
  163. return
  164. }
  165. if !protoimpl.UnsafeEnabled {
  166. file_transport_internet_grpc_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  167. switch v := v.(*Config); i {
  168. case 0:
  169. return &v.state
  170. case 1:
  171. return &v.sizeCache
  172. case 2:
  173. return &v.unknownFields
  174. default:
  175. return nil
  176. }
  177. }
  178. }
  179. type x struct{}
  180. out := protoimpl.TypeBuilder{
  181. File: protoimpl.DescBuilder{
  182. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  183. RawDescriptor: file_transport_internet_grpc_config_proto_rawDesc,
  184. NumEnums: 0,
  185. NumMessages: 1,
  186. NumExtensions: 0,
  187. NumServices: 0,
  188. },
  189. GoTypes: file_transport_internet_grpc_config_proto_goTypes,
  190. DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs,
  191. MessageInfos: file_transport_internet_grpc_config_proto_msgTypes,
  192. }.Build()
  193. File_transport_internet_grpc_config_proto = out.File
  194. file_transport_internet_grpc_config_proto_rawDesc = nil
  195. file_transport_internet_grpc_config_proto_goTypes = nil
  196. file_transport_internet_grpc_config_proto_depIdxs = nil
  197. }