func (d decoder) unmarshalMessage(m pref.Message, skipTypeURL bool) error {
	if isCustomType(m.Descriptor().FullName()) {
		return d.unmarshalCustomType(m)
	}

	tok, err := d.Read()
	if err != nil {
		return err
	}
	if tok.Kind() != json.ObjectOpen {
		return d.unexpectedTokenError(tok)
	}

	if err := d.unmarshalFields(m, skipTypeURL); err != nil {
		return err
	}

	return nil
}
// unmarshalMessage unmarshals a message into the given protoreflect.Message.
unmarshalMessage unmarshals a message into the given protoreflect.Message.
// unmarshalMessage unmarshals a message into the given protoreflect . Message .
func (d decoder) unmarshalMessage(m pref.Message, skipTypeURL bool) error {
	if isCustomType(m.Descriptor().FullName()) {
		return d.unmarshalCustomType(m)
	}
	tok, err := d.Read()
	if err != nil {
		return err
	}
	if tok.Kind() != json.ObjectOpen {
		return d.unexpectedTokenError(tok)
	}
	if err := d.unmarshalFields(m, skipTypeURL); err != nil {
		return err
	}
	return nil
}
func ( d decoder ) unmarshalMessage ( m pref . Message , skipTypeURL bool ) error { if isCustomType ( m . Descriptor ( ) . FullName ( ) ) { return d . unmarshalCustomType ( m ) } tok , err := d . Read ( ) if err != nil { return err } if tok . Kind ( ) != json . ObjectOpen { return d . unexpectedTokenError ( tok ) } if err := d . unmarshalFields ( m , skipTypeURL ) ; err != nil { return err } return nil }
unmarshalMessage unmarshals a message into the given protoreflect.Message.
unmarshalMessage unmarshals a message into the given protoreflect . Message .