proto

package
v0.0.0-...-3eab89b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AreaInfo_LocationType_name = map[int32]string{
		0: "COUNTY",
		1: "STATE",
		2: "COUNTRY",
	}
	AreaInfo_LocationType_value = map[string]int32{
		"COUNTY":  0,
		"STATE":   1,
		"COUNTRY": 2,
	}
)

Enum value maps for AreaInfo_LocationType.

Functions

This section is empty.

Types

type AreaInfo

type AreaInfo struct {
	UnixTimeOfRequest int64                 `protobuf:"varint,1,opt,name=UnixTimeOfRequest,proto3" json:"UnixTimeOfRequest,omitempty"`
	Lat               float32               `protobuf:"fixed32,2,opt,name=Lat,proto3" json:"Lat,omitempty"`
	Long              float32               `protobuf:"fixed32,3,opt,name=Long,proto3" json:"Long,omitempty"`
	Deaths            uint32                `protobuf:"varint,4,opt,name=Deaths,proto3" json:"Deaths,omitempty"`
	ConfirmedCases    uint32                `protobuf:"varint,5,opt,name=ConfirmedCases,proto3" json:"ConfirmedCases,omitempty"`
	TestsGiven        uint32                `protobuf:"varint,6,opt,name=TestsGiven,proto3" json:"TestsGiven,omitempty"`
	Recoveries        uint32                `protobuf:"varint,7,opt,name=Recoveries,proto3" json:"Recoveries,omitempty"`
	Incidentrate      float32               `protobuf:"fixed32,8,opt,name=Incidentrate,proto3" json:"Incidentrate,omitempty"`
	Type              AreaInfo_LocationType `protobuf:"varint,9,opt,name=Type,proto3,enum=apiproto.AreaInfo_LocationType" json:"Type,omitempty"`
	CombinedKey       string                `protobuf:"bytes,10,opt,name=CombinedKey,proto3" json:"CombinedKey,omitempty"`
	// contains filtered or unexported fields
}

func (*AreaInfo) Descriptor deprecated

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

Deprecated: Use AreaInfo.ProtoReflect.Descriptor instead.

func (*AreaInfo) GetCombinedKey

func (x *AreaInfo) GetCombinedKey() string

func (*AreaInfo) GetConfirmedCases

func (x *AreaInfo) GetConfirmedCases() uint32

func (*AreaInfo) GetDeaths

func (x *AreaInfo) GetDeaths() uint32

func (*AreaInfo) GetIncidentrate

func (x *AreaInfo) GetIncidentrate() float32

func (*AreaInfo) GetLat

func (x *AreaInfo) GetLat() float32

func (*AreaInfo) GetLong

func (x *AreaInfo) GetLong() float32

func (*AreaInfo) GetRecoveries

func (x *AreaInfo) GetRecoveries() uint32

func (*AreaInfo) GetTestsGiven

func (x *AreaInfo) GetTestsGiven() uint32

func (*AreaInfo) GetType

func (x *AreaInfo) GetType() AreaInfo_LocationType

func (*AreaInfo) GetUnixTimeOfRequest

func (x *AreaInfo) GetUnixTimeOfRequest() int64

func (*AreaInfo) ProtoMessage

func (*AreaInfo) ProtoMessage()

func (*AreaInfo) ProtoReflect

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

func (*AreaInfo) Reset

func (x *AreaInfo) Reset()

func (*AreaInfo) String

func (x *AreaInfo) String() string

type AreaInfo_LocationType

type AreaInfo_LocationType int32
const (
	AreaInfo_COUNTY  AreaInfo_LocationType = 0
	AreaInfo_STATE   AreaInfo_LocationType = 1
	AreaInfo_COUNTRY AreaInfo_LocationType = 2
)

func (AreaInfo_LocationType) Descriptor

func (AreaInfo_LocationType) Enum

func (AreaInfo_LocationType) EnumDescriptor deprecated

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

Deprecated: Use AreaInfo_LocationType.Descriptor instead.

func (AreaInfo_LocationType) Number

func (AreaInfo_LocationType) String

func (x AreaInfo_LocationType) String() string

func (AreaInfo_LocationType) Type

type HistoricalInfo

type HistoricalInfo struct {
	Info []*AreaInfo `protobuf:"bytes,1,rep,name=Info,proto3" json:"Info,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoricalInfo) Descriptor deprecated

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

Deprecated: Use HistoricalInfo.ProtoReflect.Descriptor instead.

func (*HistoricalInfo) GetInfo

func (x *HistoricalInfo) GetInfo() []*AreaInfo

func (*HistoricalInfo) ProtoMessage

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) ProtoReflect

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

func (*HistoricalInfo) Reset

func (x *HistoricalInfo) Reset()

func (*HistoricalInfo) String

func (x *HistoricalInfo) String() string

type ListOfCounties

type ListOfCounties struct {
	Country  string   `protobuf:"bytes,1,opt,name=Country,proto3" json:"Country,omitempty"`
	State    string   `protobuf:"bytes,2,opt,name=State,proto3" json:"State,omitempty"`
	Counties []string `protobuf:"bytes,3,rep,name=Counties,proto3" json:"Counties,omitempty"`
	// contains filtered or unexported fields
}

Returns a list of Counties, and the data for each as type AreaInfo.

func (*ListOfCounties) Descriptor deprecated

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

Deprecated: Use ListOfCounties.ProtoReflect.Descriptor instead.

func (*ListOfCounties) GetCounties

func (x *ListOfCounties) GetCounties() []string

func (*ListOfCounties) GetCountry

func (x *ListOfCounties) GetCountry() string

func (*ListOfCounties) GetState

func (x *ListOfCounties) GetState() string

func (*ListOfCounties) ProtoMessage

func (*ListOfCounties) ProtoMessage()

func (*ListOfCounties) ProtoReflect

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

func (*ListOfCounties) Reset

func (x *ListOfCounties) Reset()

func (*ListOfCounties) String

func (x *ListOfCounties) String() string

type ListOfCountries

type ListOfCountries struct {
	Countries []string `protobuf:"bytes,1,rep,name=Countries,proto3" json:"Countries,omitempty"`
	// contains filtered or unexported fields
}

Is a list of countries, as strings. Does NOT return data on each country, that must be called explicitly, per country. This is in contrast to Counties.

func (*ListOfCountries) Descriptor deprecated

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

Deprecated: Use ListOfCountries.ProtoReflect.Descriptor instead.

func (*ListOfCountries) GetCountries

func (x *ListOfCountries) GetCountries() []string

func (*ListOfCountries) ProtoMessage

func (*ListOfCountries) ProtoMessage()

func (*ListOfCountries) ProtoReflect

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

func (*ListOfCountries) Reset

func (x *ListOfCountries) Reset()

func (*ListOfCountries) String

func (x *ListOfCountries) String() string

type ListOfStates

type ListOfStates struct {
	Country string   `protobuf:"bytes,1,opt,name=Country,proto3" json:"Country,omitempty"`
	States  []string `protobuf:"bytes,2,rep,name=States,proto3" json:"States,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOfStates) Descriptor deprecated

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

Deprecated: Use ListOfStates.ProtoReflect.Descriptor instead.

func (*ListOfStates) GetCountry

func (x *ListOfStates) GetCountry() string

func (*ListOfStates) GetStates

func (x *ListOfStates) GetStates() []string

func (*ListOfStates) ProtoMessage

func (*ListOfStates) ProtoMessage()

func (*ListOfStates) ProtoReflect

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

func (*ListOfStates) Reset

func (x *ListOfStates) Reset()

func (*ListOfStates) String

func (x *ListOfStates) String() string

Jump to

Keyboard shortcuts

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