mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-30 23:16:58 +00:00
https://github.com/XTLS/Xray-core/pull/7231#issuecomment-6488077212
320 lines
10 KiB
Go
320 lines
10 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 (
|
|
splithttp "github.com/xtls/xray-core/transport/internet/splithttp"
|
|
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"`
|
|
Template string `protobuf:"bytes,12,opt,name=template,proto3" json:"template,omitempty"`
|
|
Xmux *splithttp.XmuxConfig `protobuf:"bytes,13,opt,name=xmux,proto3" json:"xmux,omitempty"`
|
|
S3 *S3Config `protobuf:"bytes,14,opt,name=s3,proto3" json:"s3,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
|
|
}
|
|
|
|
func (x *Config) GetTemplate() string {
|
|
if x != nil {
|
|
return x.Template
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Config) GetXmux() *splithttp.XmuxConfig {
|
|
if x != nil {
|
|
return x.Xmux
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetS3() *S3Config {
|
|
if x != nil {
|
|
return x.S3
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type S3Config struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
|
|
Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
PathStyle bool `protobuf:"varint,4,opt,name=path_style,json=pathStyle,proto3" json:"path_style,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *S3Config) Reset() {
|
|
*x = S3Config{}
|
|
mi := &file_transport_internet_xdrive_config_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *S3Config) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*S3Config) ProtoMessage() {}
|
|
|
|
func (x *S3Config) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_xdrive_config_proto_msgTypes[1]
|
|
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 S3Config.ProtoReflect.Descriptor instead.
|
|
func (*S3Config) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_xdrive_config_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *S3Config) GetEndpoint() string {
|
|
if x != nil {
|
|
return x.Endpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Config) GetRegion() string {
|
|
if x != nil {
|
|
return x.Region
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Config) GetBucket() string {
|
|
if x != nil {
|
|
return x.Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Config) GetPathStyle() bool {
|
|
if x != nil {
|
|
return x.PathStyle
|
|
}
|
|
return false
|
|
}
|
|
|
|
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\x1a)transport/internet/splithttp/config.proto\"\xc8\x04\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\rholeTimeoutMs\x12\x1a\n" +
|
|
"\btemplate\x18\f \x01(\tR\btemplate\x12A\n" +
|
|
"\x04xmux\x18\r \x01(\v2-.xray.transport.internet.splithttp.XmuxConfigR\x04xmux\x128\n" +
|
|
"\x02s3\x18\x0e \x01(\v2(.xray.transport.internet.xdrive.S3ConfigR\x02s3\"u\n" +
|
|
"\bS3Config\x12\x1a\n" +
|
|
"\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x16\n" +
|
|
"\x06region\x18\x02 \x01(\tR\x06region\x12\x16\n" +
|
|
"\x06bucket\x18\x03 \x01(\tR\x06bucket\x12\x1d\n" +
|
|
"\n" +
|
|
"path_style\x18\x04 \x01(\bR\tpathStyleB5Z3github.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, 2)
|
|
var file_transport_internet_xdrive_config_proto_goTypes = []any{
|
|
(*Config)(nil), // 0: xray.transport.internet.xdrive.Config
|
|
(*S3Config)(nil), // 1: xray.transport.internet.xdrive.S3Config
|
|
(*splithttp.XmuxConfig)(nil), // 2: xray.transport.internet.splithttp.XmuxConfig
|
|
}
|
|
var file_transport_internet_xdrive_config_proto_depIdxs = []int32{
|
|
2, // 0: xray.transport.internet.xdrive.Config.xmux:type_name -> xray.transport.internet.splithttp.XmuxConfig
|
|
1, // 1: xray.transport.internet.xdrive.Config.s3:type_name -> xray.transport.internet.xdrive.S3Config
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] 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: 2,
|
|
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
|
|
}
|