protoext

package
v5.0.0-...-470bbe4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 7 Imported by: 0

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 */
	// 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) 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