Lines Matching refs:fv
262 fv := sv.Field(i)
276 if name == "XXX_unrecognized" && !fv.IsNil() {
277 if err := writeUnknownStruct(w, fv.Interface().([]byte)); err != nil {
283 if fv.Kind() == reflect.Ptr && fv.IsNil() {
289 if fv.Kind() == reflect.Slice && fv.IsNil() {
294 if props.Repeated && fv.Kind() == reflect.Slice {
296 for j := 0; j < fv.Len(); j++ {
305 v := fv.Index(j)
323 if fv.Kind() == reflect.Map {
325 keys := fv.MapKeys()
328 val := fv.MapIndex(key)
391 if props.proto3 && fv.Kind() == reflect.Slice && fv.Len() == 0 {
395 if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice {
397 if isProto3Zero(fv) {
402 if fv.Kind() == reflect.Interface {
408 if fv.IsNil() {
411 inner := fv.Elem().Elem() // interface -> *T -> T
416 fv = inner.Field(0)
421 if fv.Kind() == reflect.Ptr && fv.IsNil() {
424 fv = reflect.ValueOf(&msg).Elem()
439 if err := tm.writeAny(w, fv, props); err != nil {