Lines Matching defs:Properties
130 type Properties struct { struct
131 Name string // name of the field, for error messages
132 OrigName string // original name before protocol compiler (always set)
133 JSONName string // name to use for JSON; determined by protoc
134 Wire string
135 WireType int
136 Tag int
137 Required bool
138 Optional bool
139 Repeated bool
140 Packed bool // relevant for repeated primitives only
141 Enum string // set for enum types only
142 proto3 bool // whether this is known to be a proto3 field
143 oneof bool // whether this is a oneof field
145 Default string // default value
146 HasDefault bool // whether an explicit default was provided
148 stype reflect.Type // set for struct types only
149 sprop *StructProperties // set for struct types only
151 mtype reflect.Type // set for map types only
152 MapKeyProp *Properties // set for map types only
153 MapValProp *Properties // set for map types only
157 func (p *Properties) String() string {
193 func (p *Properties) Parse(s string) {
264 func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) {
304 func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) {
308 …p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) {