api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Planet_name = map[int32]string{
		0: "PLANET_UNKNOWN",
		3: "PLANET_EARTH",
		1: "PLANET_MERCURY",
		2: "PLANET_VENUS",
		4: "PLANET_MARS",
		5: "PLANET_JUPITER",
		6: "PLANET_SATURN",
		7: "PLANET_URANUS",
		8: "PLANET_NEPTUNE",
		9: "PLANET_PLUTO",
	}
	Planet_value = map[string]int32{
		"PLANET_UNKNOWN": 0,
		"PLANET_EARTH":   3,
		"PLANET_MERCURY": 1,
		"PLANET_VENUS":   2,
		"PLANET_MARS":    4,
		"PLANET_JUPITER": 5,
		"PLANET_SATURN":  6,
		"PLANET_URANUS":  7,
		"PLANET_NEPTUNE": 8,
		"PLANET_PLUTO":   9,
	}
)

Enum value maps for Planet.

View Source
var File_tests_api_v2_planets_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MyFavoritePlanets

type MyFavoritePlanets struct {
	Planets []Planet `protobuf:"varint,1,rep,packed,name=planets,proto3,enum=tests.api.v2.Planet" json:"planets,omitempty"`
	// contains filtered or unexported fields
}

func (*MyFavoritePlanets) Descriptor deprecated

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

Deprecated: Use MyFavoritePlanets.ProtoReflect.Descriptor instead.

func (*MyFavoritePlanets) GetPlanets

func (x *MyFavoritePlanets) GetPlanets() []Planet

func (*MyFavoritePlanets) ProtoMessage

func (*MyFavoritePlanets) ProtoMessage()

func (*MyFavoritePlanets) ProtoReflect

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

func (*MyFavoritePlanets) Reset

func (x *MyFavoritePlanets) Reset()

func (*MyFavoritePlanets) String

func (x *MyFavoritePlanets) String() string

type Planet

type Planet int32
const (
	Planet_PLANET_UNKNOWN Planet = 0
	Planet_PLANET_EARTH   Planet = 3
	Planet_PLANET_MERCURY Planet = 1
	Planet_PLANET_VENUS   Planet = 2
	Planet_PLANET_MARS    Planet = 4
	Planet_PLANET_JUPITER Planet = 5
	Planet_PLANET_SATURN  Planet = 6
	Planet_PLANET_URANUS  Planet = 7
	Planet_PLANET_NEPTUNE Planet = 8
	Planet_PLANET_PLUTO   Planet = 9
)

func (Planet) Descriptor

func (Planet) Descriptor() protoreflect.EnumDescriptor

func (Planet) Enum

func (x Planet) Enum() *Planet

func (Planet) EnumDescriptor deprecated

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

Deprecated: Use Planet.Descriptor instead.

func (Planet) Number

func (x Planet) Number() protoreflect.EnumNumber

func (Planet) String

func (x Planet) String() string

func (Planet) Type

func (Planet) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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