• Home
  • Raw
  • Download

Lines Matching defs:Properties

173 type Properties struct {  struct
174 Name string // name of the field, for error messages
175 OrigName string // original name before protocol compiler (always set)
176 JSONName string // name to use for JSON; determined by protoc
177 Wire string
178 WireType int
179 Tag int
180 Required bool
181 Optional bool
182 Repeated bool
183 Packed bool // relevant for repeated primitives only
184 Enum string // set for enum types only
185 proto3 bool // whether this is known to be a proto3 field; set for []byte only
186 oneof bool // whether this is a oneof field
188 Default string // default value
189 HasDefault bool // whether an explicit default was provided
190 def_uint64 uint64
192 enc encoder
193 valEnc valueEncoder // set for bool and numeric types only
194 field field
195 tagcode []byte // encoding of EncodeVarint((Tag<<3)|WireType)
196 tagbuf [8]byte
197 stype reflect.Type // set for struct types only
198 sprop *StructProperties // set for struct types only
199 isMarshaler bool
200 isUnmarshaler bool
202 mtype reflect.Type // set for map types only
203 mkeyprop *Properties // set for map types only
204 mvalprop *Properties // set for map types only
206 size sizer
207 valSize valueSizer // set for bool and numeric types only
209 dec decoder
210 valDec valueDecoder // set for bool and numeric types only
213 packedDec decoder
217 func (p *Properties) String() string {
253 func (p *Properties) Parse(s string) {
342 func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockGetProp bool) {
616 func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) {
620 …p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) {