common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Fuel_name = map[int32]string{
		0: "FUEL_UNKNOWN",
		1: "GASOLINE",
		2: "GAS",
		3: "ELECTRICITY",
	}
	Fuel_value = map[string]int32{
		"FUEL_UNKNOWN": 0,
		"GASOLINE":     1,
		"GAS":          2,
		"ELECTRICITY":  3,
	}
)

Enum value maps for Fuel.

View Source
var (
	Category_name = map[int32]string{
		0:  "CATEGORY_UNKNOWN",
		1:  "A1",
		2:  "A",
		3:  "B1",
		4:  "B",
		5:  "C1",
		6:  "C",
		7:  "D1",
		8:  "D",
		9:  "BE",
		10: "C1E",
		11: "CE",
		12: "D1E",
		13: "DE",
		14: "T",
	}
	Category_value = map[string]int32{
		"CATEGORY_UNKNOWN": 0,
		"A1":               1,
		"A":                2,
		"B1":               3,
		"B":                4,
		"C1":               5,
		"C":                6,
		"D1":               7,
		"D":                8,
		"BE":               9,
		"C1E":              10,
		"CE":               11,
		"D1E":              12,
		"DE":               13,
		"T":                14,
	}
)

Enum value maps for Category.

View Source
var File_proto_common_date_proto protoreflect.FileDescriptor
View Source
var File_proto_common_enums_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Category

type Category int32
const (
	Category_CATEGORY_UNKNOWN Category = 0
	Category_A1               Category = 1
	Category_A                Category = 2
	Category_B1               Category = 3
	Category_B                Category = 4
	Category_C1               Category = 5
	Category_C                Category = 6
	Category_D1               Category = 7
	Category_D                Category = 8
	Category_BE               Category = 9
	Category_C1E              Category = 10
	Category_CE               Category = 11
	Category_D1E              Category = 12
	Category_DE               Category = 13
	Category_T                Category = 14
)

func (Category) Descriptor

func (Category) Descriptor() protoreflect.EnumDescriptor

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor deprecated

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

Deprecated: Use Category.Descriptor instead.

func (Category) Number

func (x Category) Number() protoreflect.EnumNumber

func (Category) String

func (x Category) String() string

func (Category) Type

type Date

type Date struct {

	// Year of the date. Must be from 1 to 9999, or 0 to specify a date without
	// a year.
	Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
	// Month of a year. Must be from 1 to 12, or 0 to specify a year without a
	// month and day.
	Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	// Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
	// to specify a year by itself or a year and month where the day isn't
	// significant.
	Day int32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
	// contains filtered or unexported fields
}

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:

* A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date

Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.

func (*Date) Descriptor deprecated

func (*Date) Descriptor() ([]byte, []int)

Deprecated: Use Date.ProtoReflect.Descriptor instead.

func (*Date) GetDay

func (x *Date) GetDay() int32

func (*Date) GetMonth

func (x *Date) GetMonth() int32

func (*Date) GetYear

func (x *Date) GetYear() int32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) ProtoReflect

func (x *Date) ProtoReflect() protoreflect.Message

func (*Date) Reset

func (x *Date) Reset()

func (*Date) String

func (x *Date) String() string

type Fuel

type Fuel int32
const (
	Fuel_FUEL_UNKNOWN Fuel = 0
	Fuel_GASOLINE     Fuel = 1
	Fuel_GAS          Fuel = 2
	Fuel_ELECTRICITY  Fuel = 3
)

func (Fuel) Descriptor

func (Fuel) Descriptor() protoreflect.EnumDescriptor

func (Fuel) Enum

func (x Fuel) Enum() *Fuel

func (Fuel) EnumDescriptor deprecated

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

Deprecated: Use Fuel.Descriptor instead.

func (Fuel) Number

func (x Fuel) Number() protoreflect.EnumNumber

func (Fuel) String

func (x Fuel) String() string

func (Fuel) Type

func (Fuel) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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