mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-09-23 01:27:04 +00:00
https://github.com/XTLS/Xray-core/pull/5414#issuecomment-3796734827 https://github.com/XTLS/Xray-core/pull/5581#issuecomment-3797134147 https://github.com/XTLS/Xray-core/pull/5645#issuecomment-3899873945 https://github.com/XTLS/Xray-core/pull/6745#issuecomment-5627420177 https://github.com/XTLS/Xray-core/pull/6748#issuecomment-5740443122 --------- Co-authored-by: Risaro <62798663+Risaro@users.noreply.github.com>
214 lines
7.2 KiB
Go
214 lines
7.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.5
|
|
// source: transport/internet/xdrive/config.proto
|
|
|
|
package xdrive
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Config struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RemoteFolder string `protobuf:"bytes,1,opt,name=remote_folder,json=remoteFolder,proto3" json:"remote_folder,omitempty"`
|
|
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
|
|
Secrets []string `protobuf:"bytes,3,rep,name=secrets,proto3" json:"secrets,omitempty"`
|
|
SegmentBytes uint32 `protobuf:"varint,4,opt,name=segment_bytes,json=segmentBytes,proto3" json:"segment_bytes,omitempty"`
|
|
FlushIntervalMs uint32 `protobuf:"varint,5,opt,name=flush_interval_ms,json=flushIntervalMs,proto3" json:"flush_interval_ms,omitempty"`
|
|
PollIntervalMs uint32 `protobuf:"varint,6,opt,name=poll_interval_ms,json=pollIntervalMs,proto3" json:"poll_interval_ms,omitempty"`
|
|
MaxPollIntervalMs uint32 `protobuf:"varint,7,opt,name=max_poll_interval_ms,json=maxPollIntervalMs,proto3" json:"max_poll_interval_ms,omitempty"`
|
|
SessionTtlSeconds uint32 `protobuf:"varint,8,opt,name=session_ttl_seconds,json=sessionTtlSeconds,proto3" json:"session_ttl_seconds,omitempty"`
|
|
Concurrency uint32 `protobuf:"varint,9,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
|
|
EagerWindowMs uint32 `protobuf:"varint,10,opt,name=eager_window_ms,json=eagerWindowMs,proto3" json:"eager_window_ms,omitempty"`
|
|
HoleTimeoutMs uint32 `protobuf:"varint,11,opt,name=hole_timeout_ms,json=holeTimeoutMs,proto3" json:"hole_timeout_ms,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Config) Reset() {
|
|
*x = Config{}
|
|
mi := &file_transport_internet_xdrive_config_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Config) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Config) ProtoMessage() {}
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_xdrive_config_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Config.ProtoReflect.Descriptor instead.
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_xdrive_config_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Config) GetRemoteFolder() string {
|
|
if x != nil {
|
|
return x.RemoteFolder
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Config) GetService() string {
|
|
if x != nil {
|
|
return x.Service
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Config) GetSecrets() []string {
|
|
if x != nil {
|
|
return x.Secrets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetSegmentBytes() uint32 {
|
|
if x != nil {
|
|
return x.SegmentBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetFlushIntervalMs() uint32 {
|
|
if x != nil {
|
|
return x.FlushIntervalMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetPollIntervalMs() uint32 {
|
|
if x != nil {
|
|
return x.PollIntervalMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetMaxPollIntervalMs() uint32 {
|
|
if x != nil {
|
|
return x.MaxPollIntervalMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetSessionTtlSeconds() uint32 {
|
|
if x != nil {
|
|
return x.SessionTtlSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetConcurrency() uint32 {
|
|
if x != nil {
|
|
return x.Concurrency
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetEagerWindowMs() uint32 {
|
|
if x != nil {
|
|
return x.EagerWindowMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetHoleTimeoutMs() uint32 {
|
|
if x != nil {
|
|
return x.HoleTimeoutMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_transport_internet_xdrive_config_proto protoreflect.FileDescriptor
|
|
|
|
const file_transport_internet_xdrive_config_proto_rawDesc = "" +
|
|
"\n" +
|
|
"&transport/internet/xdrive/config.proto\x12\x1exray.transport.internet.xdrive\"\xaf\x03\n" +
|
|
"\x06Config\x12#\n" +
|
|
"\rremote_folder\x18\x01 \x01(\tR\fremoteFolder\x12\x18\n" +
|
|
"\aservice\x18\x02 \x01(\tR\aservice\x12\x18\n" +
|
|
"\asecrets\x18\x03 \x03(\tR\asecrets\x12#\n" +
|
|
"\rsegment_bytes\x18\x04 \x01(\rR\fsegmentBytes\x12*\n" +
|
|
"\x11flush_interval_ms\x18\x05 \x01(\rR\x0fflushIntervalMs\x12(\n" +
|
|
"\x10poll_interval_ms\x18\x06 \x01(\rR\x0epollIntervalMs\x12/\n" +
|
|
"\x14max_poll_interval_ms\x18\a \x01(\rR\x11maxPollIntervalMs\x12.\n" +
|
|
"\x13session_ttl_seconds\x18\b \x01(\rR\x11sessionTtlSeconds\x12 \n" +
|
|
"\vconcurrency\x18\t \x01(\rR\vconcurrency\x12&\n" +
|
|
"\x0feager_window_ms\x18\n" +
|
|
" \x01(\rR\reagerWindowMs\x12&\n" +
|
|
"\x0fhole_timeout_ms\x18\v \x01(\rR\rholeTimeoutMsB5Z3github.com/xtls/xray-core/transport/internet/xdriveb\x06proto3"
|
|
|
|
var (
|
|
file_transport_internet_xdrive_config_proto_rawDescOnce sync.Once
|
|
file_transport_internet_xdrive_config_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_transport_internet_xdrive_config_proto_rawDescGZIP() []byte {
|
|
file_transport_internet_xdrive_config_proto_rawDescOnce.Do(func() {
|
|
file_transport_internet_xdrive_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_xdrive_config_proto_rawDesc), len(file_transport_internet_xdrive_config_proto_rawDesc)))
|
|
})
|
|
return file_transport_internet_xdrive_config_proto_rawDescData
|
|
}
|
|
|
|
var file_transport_internet_xdrive_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_transport_internet_xdrive_config_proto_goTypes = []any{
|
|
(*Config)(nil), // 0: xray.transport.internet.xdrive.Config
|
|
}
|
|
var file_transport_internet_xdrive_config_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_transport_internet_xdrive_config_proto_init() }
|
|
func file_transport_internet_xdrive_config_proto_init() {
|
|
if File_transport_internet_xdrive_config_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_xdrive_config_proto_rawDesc), len(file_transport_internet_xdrive_config_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_transport_internet_xdrive_config_proto_goTypes,
|
|
DependencyIndexes: file_transport_internet_xdrive_config_proto_depIdxs,
|
|
MessageInfos: file_transport_internet_xdrive_config_proto_msgTypes,
|
|
}.Build()
|
|
File_transport_internet_xdrive_config_proto = out.File
|
|
file_transport_internet_xdrive_config_proto_goTypes = nil
|
|
file_transport_internet_xdrive_config_proto_depIdxs = nil
|
|
}
|