Documentation ¶
Index ¶
- Variables
- type FieldOpt
- func (*FieldOpt) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOpt) GetAllowedValueTypes() []string
- func (x *FieldOpt) GetAllowedValues() []string
- func (x *FieldOpt) GetAnyWants() []string
- func (x *FieldOpt) GetConvertTimeParseIp() string
- func (x *FieldOpt) GetConvertTimeReadFileInto() string
- func (x *FieldOpt) GetConvertTimeResourceLoading() string
- func (x *FieldOpt) GetForbidden() bool
- func (*FieldOpt) ProtoMessage()
- func (x *FieldOpt) ProtoReflect() protoreflect.Message
- func (x *FieldOpt) Reset()
- func (x *FieldOpt) String() string
- type MessageOpt
- func (*MessageOpt) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOpt) GetShortName() []string
- func (x *MessageOpt) GetTransportOriginalName() string
- func (x *MessageOpt) GetType() []string
- func (*MessageOpt) ProtoMessage()
- func (x *MessageOpt) ProtoReflect() protoreflect.Message
- func (x *MessageOpt) Reset()
- func (x *MessageOpt) String() string
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) GetAllowedValueTypes ¶
func (*FieldOpt) GetAllowedValues ¶
func (*FieldOpt) GetAnyWants ¶
func (*FieldOpt) GetConvertTimeParseIp ¶
func (*FieldOpt) GetConvertTimeReadFileInto ¶
func (*FieldOpt) GetConvertTimeResourceLoading ¶
func (*FieldOpt) GetForbidden ¶
func (*FieldOpt) ProtoMessage ¶
func (*FieldOpt) ProtoMessage()
func (*FieldOpt) ProtoReflect ¶
func (x *FieldOpt) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.