Documentation ¶
Index ¶
- Variables
- type EnumOptions
- func (*EnumOptions) Descriptor() ([]byte, []int)deprecated
- func (x *EnumOptions) GetMarshalAsNumber() bool
- func (x *EnumOptions) GetMarshalAsString() bool
- func (x *EnumOptions) GetMarshaler() bool
- func (x *EnumOptions) GetPrefix() string
- func (x *EnumOptions) GetUnmarshaler() bool
- func (*EnumOptions) ProtoMessage()
- func (x *EnumOptions) ProtoReflect() protoreflect.Message
- func (x *EnumOptions) Reset()
- func (x *EnumOptions) String() string
- type EnumValueOptions
- func (*EnumValueOptions) Descriptor() ([]byte, []int)deprecated
- func (x *EnumValueOptions) GetAliases() []string
- func (x *EnumValueOptions) GetValue() string
- func (*EnumValueOptions) ProtoMessage()
- func (x *EnumValueOptions) ProtoReflect() protoreflect.Message
- func (x *EnumValueOptions) Reset()
- func (x *EnumValueOptions) String() string
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOptions) GetMarshalerFunc() string
- func (x *FieldOptions) GetUnmarshalerFunc() string
- func (*FieldOptions) ProtoMessage()
- func (x *FieldOptions) ProtoReflect() protoreflect.Message
- func (x *FieldOptions) Reset()
- func (x *FieldOptions) String() string
- type FileOptions
- func (*FileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FileOptions) GetMarshalerAll() bool
- func (x *FileOptions) GetUnmarshalerAll() bool
- func (*FileOptions) ProtoMessage()
- func (x *FileOptions) ProtoReflect() protoreflect.Message
- func (x *FileOptions) Reset()
- func (x *FileOptions) String() string
- type MessageOptions
- func (*MessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOptions) GetMarshaler() bool
- func (x *MessageOptions) GetUnmarshaler() bool
- func (x *MessageOptions) GetWrapper() bool
- func (*MessageOptions) ProtoMessage()
- func (x *MessageOptions) ProtoReflect() protoreflect.Message
- func (x *MessageOptions) Reset()
- func (x *MessageOptions) String() string
- type MethodOptions
- type OneofOptions
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
var (
// optional thethings.json.EnumOptions enum = 51885;
E_Enum = &file_internal_jsonplugin_annotations_proto_extTypes[4]
)
Extension fields to descriptorpb.EnumOptions.
var (
// optional thethings.json.EnumValueOptions enum_value = 51885;
E_EnumValue = &file_internal_jsonplugin_annotations_proto_extTypes[5]
)
Extension fields to descriptorpb.EnumValueOptions.
var (
// optional thethings.json.FieldOptions field = 51885;
E_Field = &file_internal_jsonplugin_annotations_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional thethings.json.FileOptions file = 51885;
E_File = &file_internal_jsonplugin_annotations_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var (
// optional thethings.json.MessageOptions message = 51885;
E_Message = &file_internal_jsonplugin_annotations_proto_extTypes[1]
)
Extension fields to descriptorpb.MessageOptions.
var (
// optional thethings.json.MethodOptions method = 51885;
E_Method = &file_internal_jsonplugin_annotations_proto_extTypes[7]
)
Extension fields to descriptorpb.MethodOptions.
var (
// optional thethings.json.OneofOptions oneof = 51885;
E_Oneof = &file_internal_jsonplugin_annotations_proto_extTypes[3]
)
Extension fields to descriptorpb.OneofOptions.
var (
// optional thethings.json.ServiceOptions service = 51885;
E_Service = &file_internal_jsonplugin_annotations_proto_extTypes[6]
)
Extension fields to descriptorpb.ServiceOptions.
var File_internal_jsonplugin_annotations_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EnumOptions ¶
type EnumOptions struct { // Generate a marshaler for this enum. Marshaler *bool `protobuf:"varint,1,opt,name=marshaler" json:"marshaler,omitempty"` // Always marshal as a number. MarshalAsNumber *bool `protobuf:"varint,2,opt,name=marshal_as_number,json=marshalAsNumber" json:"marshal_as_number,omitempty"` // Always marshal as a string. MarshalAsString *bool `protobuf:"varint,3,opt,name=marshal_as_string,json=marshalAsString" json:"marshal_as_string,omitempty"` // Generate an unmarshaler for this enum. Unmarshaler *bool `protobuf:"varint,4,opt,name=unmarshaler" json:"unmarshaler,omitempty"` // Consider string values with this prefix when unmarshaling. Prefix *string `protobuf:"bytes,5,opt,name=prefix" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*EnumOptions) Descriptor
deprecated
func (*EnumOptions) Descriptor() ([]byte, []int)
Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.
func (*EnumOptions) GetMarshalAsNumber ¶
func (x *EnumOptions) GetMarshalAsNumber() bool
func (*EnumOptions) GetMarshalAsString ¶
func (x *EnumOptions) GetMarshalAsString() bool
func (*EnumOptions) GetMarshaler ¶
func (x *EnumOptions) GetMarshaler() bool
func (*EnumOptions) GetPrefix ¶
func (x *EnumOptions) GetPrefix() string
func (*EnumOptions) GetUnmarshaler ¶
func (x *EnumOptions) GetUnmarshaler() bool
func (*EnumOptions) ProtoMessage ¶
func (*EnumOptions) ProtoMessage()
func (*EnumOptions) ProtoReflect ¶
func (x *EnumOptions) ProtoReflect() protoreflect.Message
func (*EnumOptions) Reset ¶
func (x *EnumOptions) Reset()
func (*EnumOptions) String ¶
func (x *EnumOptions) String() string
type EnumValueOptions ¶
type EnumValueOptions struct { // The value to emit when marshaling as string. Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` // Aliases to accept when unmarshaling from string. Aliases []string `protobuf:"bytes,2,rep,name=aliases" json:"aliases,omitempty"` // contains filtered or unexported fields }
func (*EnumValueOptions) Descriptor
deprecated
func (*EnumValueOptions) Descriptor() ([]byte, []int)
Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.
func (*EnumValueOptions) GetAliases ¶
func (x *EnumValueOptions) GetAliases() []string
func (*EnumValueOptions) GetValue ¶
func (x *EnumValueOptions) GetValue() string
func (*EnumValueOptions) ProtoMessage ¶
func (*EnumValueOptions) ProtoMessage()
func (*EnumValueOptions) ProtoReflect ¶
func (x *EnumValueOptions) ProtoReflect() protoreflect.Message
func (*EnumValueOptions) Reset ¶
func (x *EnumValueOptions) Reset()
func (*EnumValueOptions) String ¶
func (x *EnumValueOptions) String() string
type FieldOptions ¶
type FieldOptions struct { // Custom marshaler function. Specified as github.com/username/repo/package.FuncName. MarshalerFunc *string `protobuf:"bytes,1,opt,name=marshaler_func,json=marshalerFunc" json:"marshaler_func,omitempty"` // Custom unmarshaler function. Specified as github.com/username/repo/package.FuncName. UnmarshalerFunc *string `protobuf:"bytes,2,opt,name=unmarshaler_func,json=unmarshalerFunc" json:"unmarshaler_func,omitempty"` // contains filtered or unexported fields }
func (*FieldOptions) Descriptor
deprecated
func (*FieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.
func (*FieldOptions) GetMarshalerFunc ¶
func (x *FieldOptions) GetMarshalerFunc() string
func (*FieldOptions) GetUnmarshalerFunc ¶
func (x *FieldOptions) GetUnmarshalerFunc() string
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) ProtoReflect ¶
func (x *FieldOptions) ProtoReflect() protoreflect.Message
func (*FieldOptions) Reset ¶
func (x *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (x *FieldOptions) String() string
type FileOptions ¶
type FileOptions struct { // Generate marshalers for all messages and enums in this file. // Message options can be used to override this. MarshalerAll *bool `protobuf:"varint,1,opt,name=marshaler_all,json=marshalerAll" json:"marshaler_all,omitempty"` // Generate unmarshalers for all messages and enums in this file. // Message options can be used to override this. UnmarshalerAll *bool `protobuf:"varint,2,opt,name=unmarshaler_all,json=unmarshalerAll" json:"unmarshaler_all,omitempty"` // contains filtered or unexported fields }
func (*FileOptions) Descriptor
deprecated
func (*FileOptions) Descriptor() ([]byte, []int)
Deprecated: Use FileOptions.ProtoReflect.Descriptor instead.
func (*FileOptions) GetMarshalerAll ¶
func (x *FileOptions) GetMarshalerAll() bool
func (*FileOptions) GetUnmarshalerAll ¶
func (x *FileOptions) GetUnmarshalerAll() bool
func (*FileOptions) ProtoMessage ¶
func (*FileOptions) ProtoMessage()
func (*FileOptions) ProtoReflect ¶
func (x *FileOptions) ProtoReflect() protoreflect.Message
func (*FileOptions) Reset ¶
func (x *FileOptions) Reset()
func (*FileOptions) String ¶
func (x *FileOptions) String() string
type MessageOptions ¶
type MessageOptions struct { // Generate a marshaler for this message. Marshaler *bool `protobuf:"varint,1,opt,name=marshaler" json:"marshaler,omitempty"` // Generate an unmarshaler for this message. Unmarshaler *bool `protobuf:"varint,2,opt,name=unmarshaler" json:"unmarshaler,omitempty"` // Treat this message as a wrapper for the value field inside it. Wrapper *bool `protobuf:"varint,3,opt,name=wrapper" json:"wrapper,omitempty"` // contains filtered or unexported fields }
func (*MessageOptions) Descriptor
deprecated
func (*MessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.
func (*MessageOptions) GetMarshaler ¶
func (x *MessageOptions) GetMarshaler() bool
func (*MessageOptions) GetUnmarshaler ¶
func (x *MessageOptions) GetUnmarshaler() bool
func (*MessageOptions) GetWrapper ¶
func (x *MessageOptions) GetWrapper() bool
func (*MessageOptions) ProtoMessage ¶
func (*MessageOptions) ProtoMessage()
func (*MessageOptions) ProtoReflect ¶
func (x *MessageOptions) ProtoReflect() protoreflect.Message
func (*MessageOptions) Reset ¶
func (x *MessageOptions) Reset()
func (*MessageOptions) String ¶
func (x *MessageOptions) String() string
type MethodOptions ¶
type MethodOptions struct {
// contains filtered or unexported fields
}
func (*MethodOptions) Descriptor
deprecated
func (*MethodOptions) Descriptor() ([]byte, []int)
Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.
func (*MethodOptions) ProtoMessage ¶
func (*MethodOptions) ProtoMessage()
func (*MethodOptions) ProtoReflect ¶
func (x *MethodOptions) ProtoReflect() protoreflect.Message
func (*MethodOptions) Reset ¶
func (x *MethodOptions) Reset()
func (*MethodOptions) String ¶
func (x *MethodOptions) String() string
type OneofOptions ¶
type OneofOptions struct {
// contains filtered or unexported fields
}
func (*OneofOptions) Descriptor
deprecated
func (*OneofOptions) Descriptor() ([]byte, []int)
Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.
func (*OneofOptions) ProtoMessage ¶
func (*OneofOptions) ProtoMessage()
func (*OneofOptions) ProtoReflect ¶
func (x *OneofOptions) ProtoReflect() protoreflect.Message
func (*OneofOptions) Reset ¶
func (x *OneofOptions) Reset()
func (*OneofOptions) String ¶
func (x *OneofOptions) String() string
type ServiceOptions ¶
type ServiceOptions struct {
// contains filtered or unexported fields
}
func (*ServiceOptions) Descriptor
deprecated
func (*ServiceOptions) Descriptor() ([]byte, []int)
Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead.
func (*ServiceOptions) ProtoMessage ¶
func (*ServiceOptions) ProtoMessage()
func (*ServiceOptions) ProtoReflect ¶
func (x *ServiceOptions) ProtoReflect() protoreflect.Message
func (*ServiceOptions) Reset ¶
func (x *ServiceOptions) Reset()
func (*ServiceOptions) String ¶
func (x *ServiceOptions) String() string