unitpb

package
v0.0.0-...-fcf2c48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: BSD-4-Clause Imports: 4 Imported by: 0

Documentation

Index

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) Enum

func (x Length) Enum() *Length

func (Length) EnumDescriptor deprecated

func (Length) EnumDescriptor() ([]byte, []int)

Deprecated: Use Length.Descriptor instead.

func (Length) Number

func (x Length) Number() protoreflect.EnumNumber

func (Length) String

func (x Length) String() string

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) 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

type Time

type Time int32
const (
	Time_TIME_UNSPECIFIED Time = 0 // —
	Time_TIME_SECOND      Time = 1 // Second.
	Time_TIME_MINUTE      Time = 2 // Minute.
	Time_TIME_HOUR        Time = 3 // Hour.
	Time_TIME_DAY         Time = 4 // Dat.
	Time_TIME_WEEK        Time = 5 // Week.
	Time_TIME_MONTH       Time = 6 // Month.
	Time_TIME_YEAR        Time = 7 // Year.
)

func (Time) Descriptor

func (Time) Descriptor() protoreflect.EnumDescriptor

func (Time) Enum

func (x Time) Enum() *Time

func (Time) EnumDescriptor deprecated

func (Time) EnumDescriptor() ([]byte, []int)

Deprecated: Use Time.Descriptor instead.

func (Time) Number

func (x Time) Number() protoreflect.EnumNumber

func (Time) String

func (x Time) String() string

func (Time) Type

func (Time) Type() protoreflect.EnumType

type Volume

type Volume int32
const (
	Volume_VOLUME_UNSPECIFIED Volume = 0 // —
	Volume_VOLUME_ML          Volume = 1 // Milliliter [mL].
	Volume_VOLUME_L           Volume = 2 // Liter [L].
	Volume_VOLUME_FT3         Volume = 3 // Cubic Foot [ft³].
	Volume_VOLUME_M3          Volume = 4 // Cubic Meter [m³].
	Volume_VOLUME_BBL         Volume = 5 // Barrel (Oil) [bbl].
)

func (Volume) Descriptor

func (Volume) Descriptor() protoreflect.EnumDescriptor

func (Volume) Enum

func (x Volume) Enum() *Volume

func (Volume) EnumDescriptor deprecated

func (Volume) EnumDescriptor() ([]byte, []int)

Deprecated: Use Volume.Descriptor instead.

func (Volume) Number

func (x Volume) Number() protoreflect.EnumNumber

func (Volume) String

func (x Volume) String() string

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) Enum

func (x Weight) Enum() *Weight

func (Weight) EnumDescriptor deprecated

func (Weight) EnumDescriptor() ([]byte, []int)

Deprecated: Use Weight.Descriptor instead.

func (Weight) Number

func (x Weight) Number() protoreflect.EnumNumber

func (Weight) String

func (x Weight) String() string

func (Weight) Type

func (Weight) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL