pokedex-go/pb/pokemon.pb.go

307 lines
8.6 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.1
// source: pokemon/pokemon.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Move struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *Move) Reset() {
*x = Move{}
if protoimpl.UnsafeEnabled {
mi := &file_pokemon_pokemon_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Move) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Move) ProtoMessage() {}
func (x *Move) ProtoReflect() protoreflect.Message {
mi := &file_pokemon_pokemon_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Move.ProtoReflect.Descriptor instead.
func (*Move) Descriptor() ([]byte, []int) {
return file_pokemon_pokemon_proto_rawDescGZIP(), []int{0}
}
func (x *Move) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Move) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type Pokemons struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Entries []*Pokemon `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}
func (x *Pokemons) Reset() {
*x = Pokemons{}
if protoimpl.UnsafeEnabled {
mi := &file_pokemon_pokemon_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Pokemons) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Pokemons) ProtoMessage() {}
func (x *Pokemons) ProtoReflect() protoreflect.Message {
mi := &file_pokemon_pokemon_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pokemons.ProtoReflect.Descriptor instead.
func (*Pokemons) Descriptor() ([]byte, []int) {
return file_pokemon_pokemon_proto_rawDescGZIP(), []int{1}
}
func (x *Pokemons) GetEntries() []*Pokemon {
if x != nil {
return x.Entries
}
return nil
}
type Pokemon struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Weight int32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
Moves []*Move `protobuf:"bytes,4,rep,name=moves,proto3" json:"moves,omitempty"`
}
func (x *Pokemon) Reset() {
*x = Pokemon{}
if protoimpl.UnsafeEnabled {
mi := &file_pokemon_pokemon_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Pokemon) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Pokemon) ProtoMessage() {}
func (x *Pokemon) ProtoReflect() protoreflect.Message {
mi := &file_pokemon_pokemon_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pokemon.ProtoReflect.Descriptor instead.
func (*Pokemon) Descriptor() ([]byte, []int) {
return file_pokemon_pokemon_proto_rawDescGZIP(), []int{2}
}
func (x *Pokemon) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Pokemon) GetHeight() int32 {
if x != nil {
return x.Height
}
return 0
}
func (x *Pokemon) GetWeight() int32 {
if x != nil {
return x.Weight
}
return 0
}
func (x *Pokemon) GetMoves() []*Move {
if x != nil {
return x.Moves
}
return nil
}
var File_pokemon_pokemon_proto protoreflect.FileDescriptor
var file_pokemon_pokemon_proto_rawDesc = []byte{
0x0a, 0x15, 0x70, 0x6f, 0x6b, 0x65, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6f, 0x6b, 0x65, 0x6d, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x2e, 0x0a, 0x08, 0x50, 0x6f, 0x6b, 0x65, 0x6d, 0x6f, 0x6e,
0x73, 0x12, 0x22, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x50, 0x6f, 0x6b, 0x65, 0x6d, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x6e,
0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x6a, 0x0a, 0x07, 0x50, 0x6f, 0x6b, 0x65, 0x6d, 0x6f, 0x6e,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x77, 0x65,
0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x05, 0x6d, 0x6f, 0x76, 0x65,
0x73, 0x42, 0x0c, 0x5a, 0x0a, 0x70, 0x6f, 0x6b, 0x65, 0x64, 0x65, 0x78, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_pokemon_pokemon_proto_rawDescOnce sync.Once
file_pokemon_pokemon_proto_rawDescData = file_pokemon_pokemon_proto_rawDesc
)
func file_pokemon_pokemon_proto_rawDescGZIP() []byte {
file_pokemon_pokemon_proto_rawDescOnce.Do(func() {
file_pokemon_pokemon_proto_rawDescData = protoimpl.X.CompressGZIP(file_pokemon_pokemon_proto_rawDescData)
})
return file_pokemon_pokemon_proto_rawDescData
}
var file_pokemon_pokemon_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_pokemon_pokemon_proto_goTypes = []interface{}{
(*Move)(nil), // 0: Move
(*Pokemons)(nil), // 1: Pokemons
(*Pokemon)(nil), // 2: Pokemon
}
var file_pokemon_pokemon_proto_depIdxs = []int32{
2, // 0: Pokemons.entries:type_name -> Pokemon
0, // 1: Pokemon.moves:type_name -> Move
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_pokemon_pokemon_proto_init() }
func file_pokemon_pokemon_proto_init() {
if File_pokemon_pokemon_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_pokemon_pokemon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Move); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pokemon_pokemon_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Pokemons); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pokemon_pokemon_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Pokemon); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pokemon_pokemon_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pokemon_pokemon_proto_goTypes,
DependencyIndexes: file_pokemon_pokemon_proto_depIdxs,
MessageInfos: file_pokemon_pokemon_proto_msgTypes,
}.Build()
File_pokemon_pokemon_proto = out.File
file_pokemon_pokemon_proto_rawDesc = nil
file_pokemon_pokemon_proto_goTypes = nil
file_pokemon_pokemon_proto_depIdxs = nil
}