code: func NewDiscrete(key string, val int64) *api.GenericResource {
  	return &api.GenericResource{
  		Resource: &api.GenericResource_DiscreteResourceSpec{
  			DiscreteResourceSpec: &api.DiscreteGenericResource{
  				Kind:  key,
  				Value: val,
  			},
  		},
  	}
  }
docs: // NewDiscrete creates a Discrete resource