package telemetry
import (
)
type protoInt64 int64
func ( *protoInt64) () int64 { return int64(*) }
func ( *protoInt64) ( []byte) error {
if [0] == '"' {
var string
if := json.Unmarshal(, &); != nil {
return
}
, := strconv.ParseInt(, 10, 64)
if != nil {
return
}
* = protoInt64()
} else {
var int64
if := json.Unmarshal(, &); != nil {
return
}
* = protoInt64()
}
return nil
}
type protoUint64 uint64
func ( *protoUint64) () uint64 { return uint64(*) }
func ( *protoUint64) ( []byte) error {
if [0] == '"' {
var string
if := json.Unmarshal(, &); != nil {
return
}
, := strconv.ParseUint(, 10, 64)
if != nil {
return
}
* = protoUint64()
} else {
var uint64
if := json.Unmarshal(, &); != nil {
return
}
* = protoUint64()
}
return nil
}