Documentation
¶
Index ¶
- Variables
- type GetPetRequest
- type GetPetRequest_builder
- type GetPetResponse
- func (x *GetPetResponse) ClearPet()
- func (x *GetPetResponse) GetPet() *Pet
- func (x *GetPetResponse) HasPet() bool
- func (*GetPetResponse) ProtoMessage()
- func (x *GetPetResponse) ProtoReflect() protoreflect.Message
- func (x *GetPetResponse) Reset()
- func (x *GetPetResponse) SetPet(v *Pet)
- func (x *GetPetResponse) String() string
- type GetPetResponse_builder
- type Pet
- func (x *Pet) ClearCreatedAt()
- func (x *Pet) GetCreatedAt() *datetime.DateTime
- func (x *Pet) GetName() string
- func (x *Pet) GetPetId() string
- func (x *Pet) GetPetType() PetType
- func (x *Pet) HasCreatedAt() bool
- func (*Pet) ProtoMessage()
- func (x *Pet) ProtoReflect() protoreflect.Message
- func (x *Pet) Reset()
- func (x *Pet) SetCreatedAt(v *datetime.DateTime)
- func (x *Pet) SetName(v string)
- func (x *Pet) SetPetId(v string)
- func (x *Pet) SetPetType(v PetType)
- func (x *Pet) String() string
- type PetType
- type Pet_builder
- type PingRequest
- func (x *PingRequest) ClearAck()
- func (x *PingRequest) GetAck() *emptypb.Empty
- func (x *PingRequest) HasAck() bool
- func (*PingRequest) ProtoMessage()
- func (x *PingRequest) ProtoReflect() protoreflect.Message
- func (x *PingRequest) Reset()
- func (x *PingRequest) SetAck(v *emptypb.Empty)
- func (x *PingRequest) String() string
- type PingRequest_builder
- type PingResponse
- func (x *PingResponse) ClearAck()
- func (x *PingResponse) GetAck() *emptypb.Empty
- func (x *PingResponse) HasAck() bool
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (x *PingResponse) SetAck(v *emptypb.Empty)
- func (x *PingResponse) String() string
- type PingResponse_builder
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) 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) SetPetId ¶
func (x *GetPetRequest) SetPetId(v string)
func (*GetPetRequest) String ¶
func (x *GetPetRequest) String() string
type GetPetRequest_builder ¶
type GetPetRequest_builder struct {
PetId string
// contains filtered or unexported fields
}
func (GetPetRequest_builder) Build ¶
func (b0 GetPetRequest_builder) Build() *GetPetRequest
type GetPetResponse ¶
type GetPetResponse struct {
Pet *Pet `protobuf:"bytes,1,opt,name=pet,proto3" json:"pet,omitempty"`
// contains filtered or unexported fields
}
func (*GetPetResponse) ClearPet ¶
func (x *GetPetResponse) ClearPet()
func (*GetPetResponse) GetPet ¶
func (x *GetPetResponse) GetPet() *Pet
func (*GetPetResponse) HasPet ¶
func (x *GetPetResponse) HasPet() bool
func (*GetPetResponse) ProtoMessage ¶
func (*GetPetResponse) ProtoMessage()
func (*GetPetResponse) ProtoReflect ¶
func (x *GetPetResponse) ProtoReflect() protoreflect.Message
func (*GetPetResponse) Reset ¶
func (x *GetPetResponse) Reset()
func (*GetPetResponse) SetPet ¶
func (x *GetPetResponse) SetPet(v *Pet)
func (*GetPetResponse) String ¶
func (x *GetPetResponse) String() string
type GetPetResponse_builder ¶
type GetPetResponse_builder struct {
Pet *Pet
// contains filtered or unexported fields
}
func (GetPetResponse_builder) Build ¶
func (b0 GetPetResponse_builder) Build() *GetPetResponse
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) ProtoReflect ¶
func (x *Pet) ProtoReflect() protoreflect.Message
type PetType ¶
type PetType int32
PetType represents the different types of pets in the pet store.
func (PetType) Descriptor ¶
func (PetType) Descriptor() protoreflect.EnumDescriptor
func (PetType) Number ¶
func (x PetType) Number() protoreflect.EnumNumber
func (PetType) Type ¶
func (PetType) Type() protoreflect.EnumType
type Pet_builder ¶
type Pet_builder struct {
PetType PetType
PetId string
Name string
CreatedAt *datetime.DateTime
// contains filtered or unexported fields
}
func (Pet_builder) Build ¶
func (b0 Pet_builder) Build() *Pet
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) ClearAck ¶
func (x *PingRequest) ClearAck()
func (*PingRequest) GetAck ¶
func (x *PingRequest) GetAck() *emptypb.Empty
func (*PingRequest) HasAck ¶
func (x *PingRequest) HasAck() bool
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) SetAck ¶
func (x *PingRequest) SetAck(v *emptypb.Empty)
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingRequest_builder ¶
func (PingRequest_builder) Build ¶
func (b0 PingRequest_builder) Build() *PingRequest
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) ClearAck ¶
func (x *PingResponse) ClearAck()
func (*PingResponse) GetAck ¶
func (x *PingResponse) GetAck() *emptypb.Empty
func (*PingResponse) HasAck ¶
func (x *PingResponse) HasAck() bool
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) SetAck ¶
func (x *PingResponse) SetAck(v *emptypb.Empty)
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type PingResponse_builder ¶
func (PingResponse_builder) Build ¶
func (b0 PingResponse_builder) Build() *PingResponse
Source Files
¶
- pet.pb.go
- pet_api.pb.go
Click to show internal directories.
Click to hide internal directories.