config.pb.go 8.1 KB

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