Documentation ¶
Index ¶
- Variables
- type FieldTag
- func (*FieldTag) Descriptor() ([]byte, []int)deprecated
- func (x *FieldTag) GetStructTag() string
- func (x *FieldTag) GetUpdateStrategy() FieldTag_UpdateStrategy
- func (*FieldTag) ProtoMessage()
- func (x *FieldTag) ProtoReflect() protoreflect.Message
- func (x *FieldTag) Reset()
- func (x *FieldTag) String() string
- type FieldTag_UpdateStrategy
- func (FieldTag_UpdateStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x FieldTag_UpdateStrategy) Enum() *FieldTag_UpdateStrategy
- func (FieldTag_UpdateStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x FieldTag_UpdateStrategy) Number() protoreflect.EnumNumber
- func (x FieldTag_UpdateStrategy) String() string
- func (FieldTag_UpdateStrategy) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FieldTag_UpdateStrategy_name = map[int32]string{ 0: "update", 1: "replace", } FieldTag_UpdateStrategy_value = map[string]int32{ "update": 0, "replace": 1, } )
Enum value maps for FieldTag_UpdateStrategy.
View Source
var (
// optional google.protobuf.FieldTag field_tag = 65000;
E_FieldTag = &file_tag_proto_extTypes[0]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var File_tag_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FieldTag ¶
type FieldTag struct { // struct tag. StructTag string `protobuf:"bytes,1,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` // custom struct tag UpdateStrategy FieldTag_UpdateStrategy `` // update strategy /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FieldTag) Descriptor
deprecated
func (*FieldTag) GetStructTag ¶
func (*FieldTag) GetUpdateStrategy ¶
func (x *FieldTag) GetUpdateStrategy() FieldTag_UpdateStrategy
func (*FieldTag) ProtoMessage ¶
func (*FieldTag) ProtoMessage()
func (*FieldTag) ProtoReflect ¶
func (x *FieldTag) ProtoReflect() protoreflect.Message
type FieldTag_UpdateStrategy ¶
type FieldTag_UpdateStrategy int32
const ( FieldTag_update FieldTag_UpdateStrategy = 0 // use custom struct tag to update struct tag generated by proto FieldTag_replace FieldTag_UpdateStrategy = 1 // use custom struct tag to replace struct tag generated by proto )
func (FieldTag_UpdateStrategy) Descriptor ¶
func (FieldTag_UpdateStrategy) Descriptor() protoreflect.EnumDescriptor
func (FieldTag_UpdateStrategy) Enum ¶
func (x FieldTag_UpdateStrategy) Enum() *FieldTag_UpdateStrategy
func (FieldTag_UpdateStrategy) EnumDescriptor
deprecated
func (FieldTag_UpdateStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use FieldTag_UpdateStrategy.Descriptor instead.
func (FieldTag_UpdateStrategy) Number ¶
func (x FieldTag_UpdateStrategy) Number() protoreflect.EnumNumber
func (FieldTag_UpdateStrategy) String ¶
func (x FieldTag_UpdateStrategy) String() string
func (FieldTag_UpdateStrategy) Type ¶
func (FieldTag_UpdateStrategy) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.