config.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Config struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
  23. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
  24. MultiMode bool `protobuf:"varint,3,opt,name=multi_mode,json=multiMode,proto3" json:"multi_mode,omitempty"`
  25. IdleTimeout int32 `protobuf:"varint,4,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
  26. HealthCheckTimeout int32 `protobuf:"varint,5,opt,name=health_check_timeout,json=healthCheckTimeout,proto3" json:"health_check_timeout,omitempty"`
  27. PermitWithoutStream bool `protobuf:"varint,6,opt,name=permit_without_stream,json=permitWithoutStream,proto3" json:"permit_without_stream,omitempty"`
  28. InitialWindowsSize int32 `protobuf:"varint,7,opt,name=initial_windows_size,json=initialWindowsSize,proto3" json:"initial_windows_size,omitempty"`
  29. UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *Config) Reset() {
  34. *x = Config{}
  35. mi := &file_transport_internet_grpc_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  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 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) GetAuthority() string {
  59. if x != nil {
  60. return x.Authority
  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. func (x *Config) GetUserAgent() string {
  101. if x != nil {
  102. return x.UserAgent
  103. }
  104. return ""
  105. }
  106. var File_transport_internet_grpc_config_proto protoreflect.FileDescriptor
  107. const file_transport_internet_grpc_config_proto_rawDesc = "" +
  108. "\n" +
  109. "$transport/internet/grpc/config.proto\x12%xray.transport.internet.grpc.encoding\"\xc2\x02\n" +
  110. "\x06Config\x12\x1c\n" +
  111. "\tauthority\x18\x01 \x01(\tR\tauthority\x12!\n" +
  112. "\fservice_name\x18\x02 \x01(\tR\vserviceName\x12\x1d\n" +
  113. "\n" +
  114. "multi_mode\x18\x03 \x01(\bR\tmultiMode\x12!\n" +
  115. "\fidle_timeout\x18\x04 \x01(\x05R\vidleTimeout\x120\n" +
  116. "\x14health_check_timeout\x18\x05 \x01(\x05R\x12healthCheckTimeout\x122\n" +
  117. "\x15permit_without_stream\x18\x06 \x01(\bR\x13permitWithoutStream\x120\n" +
  118. "\x14initial_windows_size\x18\a \x01(\x05R\x12initialWindowsSize\x12\x1d\n" +
  119. "\n" +
  120. "user_agent\x18\b \x01(\tR\tuserAgentB3Z1github.com/xtls/xray-core/transport/internet/grpcb\x06proto3"
  121. var (
  122. file_transport_internet_grpc_config_proto_rawDescOnce sync.Once
  123. file_transport_internet_grpc_config_proto_rawDescData []byte
  124. )
  125. func file_transport_internet_grpc_config_proto_rawDescGZIP() []byte {
  126. file_transport_internet_grpc_config_proto_rawDescOnce.Do(func() {
  127. 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)))
  128. })
  129. return file_transport_internet_grpc_config_proto_rawDescData
  130. }
  131. var file_transport_internet_grpc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  132. var file_transport_internet_grpc_config_proto_goTypes = []any{
  133. (*Config)(nil), // 0: xray.transport.internet.grpc.encoding.Config
  134. }
  135. var file_transport_internet_grpc_config_proto_depIdxs = []int32{
  136. 0, // [0:0] is the sub-list for method output_type
  137. 0, // [0:0] is the sub-list for method input_type
  138. 0, // [0:0] is the sub-list for extension type_name
  139. 0, // [0:0] is the sub-list for extension extendee
  140. 0, // [0:0] is the sub-list for field type_name
  141. }
  142. func init() { file_transport_internet_grpc_config_proto_init() }
  143. func file_transport_internet_grpc_config_proto_init() {
  144. if File_transport_internet_grpc_config_proto != nil {
  145. return
  146. }
  147. type x struct{}
  148. out := protoimpl.TypeBuilder{
  149. File: protoimpl.DescBuilder{
  150. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  151. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_grpc_config_proto_rawDesc), len(file_transport_internet_grpc_config_proto_rawDesc)),
  152. NumEnums: 0,
  153. NumMessages: 1,
  154. NumExtensions: 0,
  155. NumServices: 0,
  156. },
  157. GoTypes: file_transport_internet_grpc_config_proto_goTypes,
  158. DependencyIndexes: file_transport_internet_grpc_config_proto_depIdxs,
  159. MessageInfos: file_transport_internet_grpc_config_proto_msgTypes,
  160. }.Build()
  161. File_transport_internet_grpc_config_proto = out.File
  162. file_transport_internet_grpc_config_proto_goTypes = nil
  163. file_transport_internet_grpc_config_proto_depIdxs = nil
  164. }