Documentation ¶
Index ¶
- Variables
- type Length
- type Temperature
- func (Temperature) Descriptor() protoreflect.EnumDescriptor
- func (x Temperature) Enum() *Temperature
- func (Temperature) EnumDescriptor() ([]byte, []int)deprecated
- func (x Temperature) Number() protoreflect.EnumNumber
- func (x Temperature) String() string
- func (Temperature) Type() protoreflect.EnumType
- type Time
- type Volume
- type Weight
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Length_name = map[int32]string{ 0: "LENGTH_UNSPECIFIED", 1: "LENGTH_MM", 2: "LENGTH_CM", 3: "LENGTH_M", 4: "LENGTH_KM", 5: "LENGTH_IN", 6: "LENGTH_FT", 7: "LENGTH_YD", 8: "LENGTH_MI", } Length_value = map[string]int32{ "LENGTH_UNSPECIFIED": 0, "LENGTH_MM": 1, "LENGTH_CM": 2, "LENGTH_M": 3, "LENGTH_KM": 4, "LENGTH_IN": 5, "LENGTH_FT": 6, "LENGTH_YD": 7, "LENGTH_MI": 8, } )
Enum value maps for Length.
View Source
var ( Temperature_name = map[int32]string{ 0: "TEMPERATURE_UNSPECIFIED", 1: "TEMPERATURE_C", 2: "TEMPERATURE_F", 3: "TEMPERATURE_K", 4: "TEMPERATURE_R", } Temperature_value = map[string]int32{ "TEMPERATURE_UNSPECIFIED": 0, "TEMPERATURE_C": 1, "TEMPERATURE_F": 2, "TEMPERATURE_K": 3, "TEMPERATURE_R": 4, } )
Enum value maps for Temperature.
View Source
var ( Time_name = map[int32]string{ 0: "TIME_UNSPECIFIED", 1: "TIME_SECOND", 2: "TIME_MINUTE", 3: "TIME_HOUR", 4: "TIME_DAY", 5: "TIME_WEEK", 6: "TIME_MONTH", 7: "TIME_YEAR", } Time_value = map[string]int32{ "TIME_UNSPECIFIED": 0, "TIME_SECOND": 1, "TIME_MINUTE": 2, "TIME_HOUR": 3, "TIME_DAY": 4, "TIME_WEEK": 5, "TIME_MONTH": 6, "TIME_YEAR": 7, } )
Enum value maps for Time.
View Source
var ( Volume_name = map[int32]string{ 0: "VOLUME_UNSPECIFIED", 1: "VOLUME_ML", 2: "VOLUME_L", 3: "VOLUME_FT3", 4: "VOLUME_M3", 5: "VOLUME_BBL", } Volume_value = map[string]int32{ "VOLUME_UNSPECIFIED": 0, "VOLUME_ML": 1, "VOLUME_L": 2, "VOLUME_FT3": 3, "VOLUME_M3": 4, "VOLUME_BBL": 5, } )
Enum value maps for Volume.
View Source
var ( Weight_name = map[int32]string{ 0: "WEIGHT_UNSPECIFIED", 1: "WEIGHT_MG", 2: "WEIGHT_CT", 3: "WEIGHT_G", 4: "WEIGHT_OZ", 5: "WEIGHT_LB", 6: "WEIGHT_KG", 7: "WEIGHT_TON", } Weight_value = map[string]int32{ "WEIGHT_UNSPECIFIED": 0, "WEIGHT_MG": 1, "WEIGHT_CT": 2, "WEIGHT_G": 3, "WEIGHT_OZ": 4, "WEIGHT_LB": 5, "WEIGHT_KG": 6, "WEIGHT_TON": 7, } )
Enum value maps for Weight.
View Source
var File_genproto_unit_v1_unit_length_proto protoreflect.FileDescriptor
View Source
var File_genproto_unit_v1_unit_temperature_proto protoreflect.FileDescriptor
View Source
var File_genproto_unit_v1_unit_time_proto protoreflect.FileDescriptor
View Source
var File_genproto_unit_v1_unit_volume_proto protoreflect.FileDescriptor
View Source
var File_genproto_unit_v1_unit_weight_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Length ¶
type Length int32
const ( Length_LENGTH_UNSPECIFIED Length = 0 // — Length_LENGTH_MM Length = 1 // Millimeter. Length_LENGTH_CM Length = 2 // Centimeter. Length_LENGTH_M Length = 3 // Meter. Length_LENGTH_KM Length = 4 // Kilometer. Length_LENGTH_IN Length = 5 // Inch. Length_LENGTH_FT Length = 6 // Feet. Length_LENGTH_YD Length = 7 // Yard. Length_LENGTH_MI Length = 8 // Mile. )
func (Length) Descriptor ¶
func (Length) Descriptor() protoreflect.EnumDescriptor
func (Length) EnumDescriptor
deprecated
func (Length) Number ¶
func (x Length) Number() protoreflect.EnumNumber
func (Length) Type ¶
func (Length) Type() protoreflect.EnumType
type Temperature ¶
type Temperature int32
const ( Temperature_TEMPERATURE_UNSPECIFIED Temperature = 0 // — Temperature_TEMPERATURE_C Temperature = 1 // Celsius [°C]. Temperature_TEMPERATURE_F Temperature = 2 // Fahrenheit [°F]. Temperature_TEMPERATURE_K Temperature = 3 // Kelvin [K]. Temperature_TEMPERATURE_R Temperature = 4 // Rankine [°R]. )
func (Temperature) Descriptor ¶
func (Temperature) Descriptor() protoreflect.EnumDescriptor
func (Temperature) Enum ¶
func (x Temperature) Enum() *Temperature
func (Temperature) EnumDescriptor
deprecated
func (Temperature) EnumDescriptor() ([]byte, []int)
Deprecated: Use Temperature.Descriptor instead.
func (Temperature) Number ¶
func (x Temperature) Number() protoreflect.EnumNumber
func (Temperature) String ¶
func (x Temperature) String() string
func (Temperature) Type ¶
func (Temperature) Type() protoreflect.EnumType
type Time ¶
type Time int32
func (Time) Descriptor ¶
func (Time) Descriptor() protoreflect.EnumDescriptor
func (Time) EnumDescriptor
deprecated
func (Time) Number ¶
func (x Time) Number() protoreflect.EnumNumber
func (Time) Type ¶
func (Time) Type() protoreflect.EnumType
type Volume ¶
type Volume int32
func (Volume) Descriptor ¶
func (Volume) Descriptor() protoreflect.EnumDescriptor
func (Volume) EnumDescriptor
deprecated
func (Volume) Number ¶
func (x Volume) Number() protoreflect.EnumNumber
func (Volume) Type ¶
func (Volume) Type() protoreflect.EnumType
type Weight ¶
type Weight int32
const ( Weight_WEIGHT_UNSPECIFIED Weight = 0 // — Weight_WEIGHT_MG Weight = 1 // Milligram. Weight_WEIGHT_CT Weight = 2 // Carat. Weight_WEIGHT_G Weight = 3 // Gram. Weight_WEIGHT_OZ Weight = 4 // Ounce. Weight_WEIGHT_LB Weight = 5 // Pound. Weight_WEIGHT_KG Weight = 6 // Kilogram. Weight_WEIGHT_TON Weight = 7 // Ton. )
func (Weight) Descriptor ¶
func (Weight) Descriptor() protoreflect.EnumDescriptor
func (Weight) EnumDescriptor
deprecated
func (Weight) Number ¶
func (x Weight) Number() protoreflect.EnumNumber
func (Weight) Type ¶
func (Weight) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.