func (x *PayloadType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(PayloadType_value, data, "PayloadType") if err != nil { return err } *x = PayloadType(value) return nil }
func (x *MetricType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType") if err != nil { return err } *x = MetricType(value) return nil }