protoext

package
v5.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 3 modules, 51 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional v2ray.core.common.protoext.FieldOpt field_opt = 50000;
	E_FieldOpt = &file_common_protoext_extensions_proto_extTypes[1]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional v2ray.core.common.protoext.MessageOpt message_opt = 50000;
	E_MessageOpt = &file_common_protoext_extensions_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_common_protoext_extensions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldOpt

type FieldOpt struct {
	AnyWants          []string `protobuf:"bytes,1,rep,name=any_wants,json=anyWants,proto3" json:"any_wants,omitempty"`
	AllowedValues     []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
	AllowedValueTypes []string `protobuf:"bytes,3,rep,name=allowed_value_types,json=allowedValueTypes,proto3" json:"allowed_value_types,omitempty"`
	// convert_time_read_file_into read a file into another field, and clear this field during input parsing
	ConvertTimeReadFileInto string `` /* 136-byte string literal not displayed */
	// forbidden marks a boolean to be inaccessible to user
	Forbidden bool `protobuf:"varint,5,opt,name=forbidden,proto3" json:"forbidden,omitempty"`
	// convert_time_resource_loading read a file, and place its resource hash into another field
	ConvertTimeResourceLoading string `` /* 143-byte string literal not displayed */
	// convert_time_parse_ip parse a string ip address, and put its binary representation into another field
	ConvertTimeParseIp string `protobuf:"bytes,7,opt,name=convert_time_parse_ip,json=convertTimeParseIp,proto3" json:"convert_time_parse_ip,omitempty"`
	// contains filtered or unexported fields
}

func GetFieldOptions

func GetFieldOptions(fieldDesc protoreflect.FieldDescriptor) (*FieldOpt, error)

func (*FieldOpt) Descriptor deprecated

func (*FieldOpt) Descriptor() ([]byte, []int)

Deprecated: Use FieldOpt.ProtoReflect.Descriptor instead.

func (*FieldOpt) GetAllowedValueTypes

func (x *FieldOpt) GetAllowedValueTypes() []string

func (*FieldOpt) GetAllowedValues

func (x *FieldOpt) GetAllowedValues() []string

func (*FieldOpt) GetAnyWants

func (x *FieldOpt) GetAnyWants() []string

func (*FieldOpt) GetConvertTimeParseIp

func (x *FieldOpt) GetConvertTimeParseIp() string

func (*FieldOpt) GetConvertTimeReadFileInto

func (x *FieldOpt) GetConvertTimeReadFileInto() string

func (*FieldOpt) GetConvertTimeResourceLoading

func (x *FieldOpt) GetConvertTimeResourceLoading() string

func (*FieldOpt) GetForbidden

func (x *FieldOpt) GetForbidden() bool

func (*FieldOpt) ProtoMessage

func (*FieldOpt) ProtoMessage()

func (*FieldOpt) ProtoReflect

func (x *FieldOpt) ProtoReflect() protoreflect.Message

func (*FieldOpt) Reset

func (x *FieldOpt) Reset()

func (*FieldOpt) String

func (x *FieldOpt) String() string

type MessageOpt

type MessageOpt struct {
	Type                  []string `protobuf:"bytes,1,rep,name=type,proto3" json:"type,omitempty"`
	ShortName             []string `protobuf:"bytes,2,rep,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	TransportOriginalName string   `` /* 130-byte string literal not displayed */
	// allow_restricted_mode_load allow this config to be loaded in restricted mode
	// this is typically used when a an attacker can control the content
	AllowRestrictedModeLoad bool `` /* 139-byte string literal not displayed */
	// allow_restricted_mode_load_if_set names a singular bool field on this
	// message. Restricted loading is allowed when that field is true.
	AllowRestrictedModeLoadIfSet string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func GetMessageOptions

func GetMessageOptions(msgDesc protoreflect.MessageDescriptor) (*MessageOpt, error)

func (*MessageOpt) Descriptor deprecated

func (*MessageOpt) Descriptor() ([]byte, []int)

Deprecated: Use MessageOpt.ProtoReflect.Descriptor instead.

func (*MessageOpt) GetAllowRestrictedModeLoad added in v5.13.0

func (x *MessageOpt) GetAllowRestrictedModeLoad() bool

func (*MessageOpt) GetAllowRestrictedModeLoadIfSet added in v5.54.0

func (x *MessageOpt) GetAllowRestrictedModeLoadIfSet() string

func (*MessageOpt) GetShortName

func (x *MessageOpt) GetShortName() []string

func (*MessageOpt) GetTransportOriginalName

func (x *MessageOpt) GetTransportOriginalName() string

func (*MessageOpt) GetType

func (x *MessageOpt) GetType() []string

func (*MessageOpt) ProtoMessage

func (*MessageOpt) ProtoMessage()

func (*MessageOpt) ProtoReflect

func (x *MessageOpt) ProtoReflect() protoreflect.Message

func (*MessageOpt) Reset

func (x *MessageOpt) Reset()

func (*MessageOpt) String

func (x *MessageOpt) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL