demov1

package
v1.33.0-20231228054318... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PetType_name = map[int32]string{
		0: "PET_TYPE_UNSPECIFIED",
		1: "PET_TYPE_CAT",
		2: "PET_TYPE_DOG",
		3: "PET_TYPE_SNAKE",
		4: "PET_TYPE_HAMSTER",
	}
	PetType_value = map[string]int32{
		"PET_TYPE_UNSPECIFIED": 0,
		"PET_TYPE_CAT":         1,
		"PET_TYPE_DOG":         2,
		"PET_TYPE_SNAKE":       3,
		"PET_TYPE_HAMSTER":     4,
	}
)

Enum value maps for PetType.

View Source
var File_demo_v1_pet_api_proto protoreflect.FileDescriptor
View Source
var File_demo_v1_pet_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetPetRequest

type GetPetRequest struct {
	PetId string `protobuf:"bytes,1,opt,name=pet_id,json=petId,proto3" json:"pet_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPetRequest) Descriptor deprecated

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

Deprecated: Use GetPetRequest.ProtoReflect.Descriptor instead.

func (*GetPetRequest) GetPetId

func (x *GetPetRequest) GetPetId() string

func (*GetPetRequest) ProtoMessage

func (*GetPetRequest) ProtoMessage()

func (*GetPetRequest) ProtoReflect

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

func (*GetPetRequest) Reset

func (x *GetPetRequest) Reset()

func (*GetPetRequest) String

func (x *GetPetRequest) String() string

type GetPetResponse

type GetPetResponse struct {
	Pet *Pet `protobuf:"bytes,1,opt,name=pet,proto3" json:"pet,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPetResponse) Descriptor deprecated

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

Deprecated: Use GetPetResponse.ProtoReflect.Descriptor instead.

func (*GetPetResponse) GetPet

func (x *GetPetResponse) GetPet() *Pet

func (*GetPetResponse) ProtoMessage

func (*GetPetResponse) ProtoMessage()

func (*GetPetResponse) ProtoReflect

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

func (*GetPetResponse) Reset

func (x *GetPetResponse) Reset()

func (*GetPetResponse) String

func (x *GetPetResponse) String() string

type Pet

type Pet struct {
	PetType   PetType            `protobuf:"varint,1,opt,name=pet_type,json=petType,proto3,enum=demo.v1.PetType" json:"pet_type,omitempty"`
	PetId     string             `protobuf:"bytes,2,opt,name=pet_id,json=petId,proto3" json:"pet_id,omitempty"`
	Name      string             `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *datetime.DateTime `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Pet represents a pet in the pet store.

func (*Pet) Descriptor deprecated

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

Deprecated: Use Pet.ProtoReflect.Descriptor instead.

func (*Pet) GetCreatedAt

func (x *Pet) GetCreatedAt() *datetime.DateTime

func (*Pet) GetName

func (x *Pet) GetName() string

func (*Pet) GetPetId

func (x *Pet) GetPetId() string

func (*Pet) GetPetType

func (x *Pet) GetPetType() PetType

func (*Pet) ProtoMessage

func (*Pet) ProtoMessage()

func (*Pet) ProtoReflect

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

func (*Pet) Reset

func (x *Pet) Reset()

func (*Pet) String

func (x *Pet) String() string

type PetType

type PetType int32

PetType represents the different types of pets in the pet store.

const (
	PetType_PET_TYPE_UNSPECIFIED PetType = 0
	PetType_PET_TYPE_CAT         PetType = 1
	PetType_PET_TYPE_DOG         PetType = 2
	PetType_PET_TYPE_SNAKE       PetType = 3
	PetType_PET_TYPE_HAMSTER     PetType = 4
)

func (PetType) Descriptor

func (PetType) Descriptor() protoreflect.EnumDescriptor

func (PetType) Enum

func (x PetType) Enum() *PetType

func (PetType) EnumDescriptor deprecated

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

Deprecated: Use PetType.Descriptor instead.

func (PetType) Number

func (x PetType) Number() protoreflect.EnumNumber

func (PetType) String

func (x PetType) String() string

func (PetType) Type

func (PetType) Type() protoreflect.EnumType

type PingRequest

type PingRequest struct {
	Ack *emptypb.Empty `protobuf:"bytes,1,opt,name=ack,proto3" json:"ack,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetAck

func (x *PingRequest) GetAck() *emptypb.Empty

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {
	Ack *emptypb.Empty `protobuf:"bytes,1,opt,name=ack,proto3" json:"ack,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetAck

func (x *PingResponse) GetAck() *emptypb.Empty

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

Jump to

Keyboard shortcuts

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