Documentation ¶
Index ¶
- Variables
- type DeletePetRequest
- type DeletePetResponse
- type GetPetRequest
- type GetPetResponse
- type Pet
- type PetType
- type PurchasePetRequest
- func (*PurchasePetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PurchasePetRequest) GetPetId() string
- func (*PurchasePetRequest) ProtoMessage()
- func (x *PurchasePetRequest) ProtoReflect() protoreflect.Message
- func (x *PurchasePetRequest) Reset()
- func (x *PurchasePetRequest) String() string
- type PurchasePetResponse
- type PutPetRequest
- func (*PutPetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutPetRequest) GetName() string
- func (x *PutPetRequest) GetPetType() PetType
- func (*PutPetRequest) ProtoMessage()
- func (x *PutPetRequest) ProtoReflect() protoreflect.Message
- func (x *PutPetRequest) Reset()
- func (x *PutPetRequest) String() string
- type PutPetResponse
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", 5: "PET_TYPE_LION", 6: "PET_TYPE_TIGER", 7: "PET_TYPE_CHICKEN", } 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, "PET_TYPE_LION": 5, "PET_TYPE_TIGER": 6, "PET_TYPE_CHICKEN": 7, } )
Enum value maps for PetType.
View Source
var File_api_v1_pet_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DeletePetRequest ¶
type DeletePetRequest struct { PetId string `protobuf:"bytes,1,opt,name=pet_id,json=petId,proto3" json:"pet_id,omitempty"` // contains filtered or unexported fields }
func (*DeletePetRequest) Descriptor
deprecated
func (*DeletePetRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePetRequest.ProtoReflect.Descriptor instead.
func (*DeletePetRequest) GetPetId ¶
func (x *DeletePetRequest) GetPetId() string
func (*DeletePetRequest) ProtoMessage ¶
func (*DeletePetRequest) ProtoMessage()
func (*DeletePetRequest) ProtoReflect ¶
func (x *DeletePetRequest) ProtoReflect() protoreflect.Message
func (*DeletePetRequest) Reset ¶
func (x *DeletePetRequest) Reset()
func (*DeletePetRequest) String ¶
func (x *DeletePetRequest) String() string
type DeletePetResponse ¶
type DeletePetResponse struct {
// contains filtered or unexported fields
}
func (*DeletePetResponse) Descriptor
deprecated
func (*DeletePetResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePetResponse.ProtoReflect.Descriptor instead.
func (*DeletePetResponse) ProtoMessage ¶
func (*DeletePetResponse) ProtoMessage()
func (*DeletePetResponse) ProtoReflect ¶
func (x *DeletePetResponse) ProtoReflect() protoreflect.Message
func (*DeletePetResponse) Reset ¶
func (x *DeletePetResponse) Reset()
func (*DeletePetResponse) String ¶
func (x *DeletePetResponse) String() string
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=api.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"` // contains filtered or unexported fields }
func (*Pet) ProtoReflect ¶
func (x *Pet) ProtoReflect() protoreflect.Message
type PetType ¶
type PetType int32
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 PurchasePetRequest ¶
type PurchasePetRequest struct { PetId string `protobuf:"bytes,1,opt,name=pet_id,json=petId,proto3" json:"pet_id,omitempty"` // contains filtered or unexported fields }
func (*PurchasePetRequest) Descriptor
deprecated
func (*PurchasePetRequest) Descriptor() ([]byte, []int)
Deprecated: Use PurchasePetRequest.ProtoReflect.Descriptor instead.
func (*PurchasePetRequest) GetPetId ¶
func (x *PurchasePetRequest) GetPetId() string
func (*PurchasePetRequest) ProtoMessage ¶
func (*PurchasePetRequest) ProtoMessage()
func (*PurchasePetRequest) ProtoReflect ¶
func (x *PurchasePetRequest) ProtoReflect() protoreflect.Message
func (*PurchasePetRequest) Reset ¶
func (x *PurchasePetRequest) Reset()
func (*PurchasePetRequest) String ¶
func (x *PurchasePetRequest) String() string
type PurchasePetResponse ¶
type PurchasePetResponse struct {
// contains filtered or unexported fields
}
func (*PurchasePetResponse) Descriptor
deprecated
func (*PurchasePetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PurchasePetResponse.ProtoReflect.Descriptor instead.
func (*PurchasePetResponse) ProtoMessage ¶
func (*PurchasePetResponse) ProtoMessage()
func (*PurchasePetResponse) ProtoReflect ¶
func (x *PurchasePetResponse) ProtoReflect() protoreflect.Message
func (*PurchasePetResponse) Reset ¶
func (x *PurchasePetResponse) Reset()
func (*PurchasePetResponse) String ¶
func (x *PurchasePetResponse) String() string
type PutPetRequest ¶
type PutPetRequest struct { PetType PetType `protobuf:"varint,1,opt,name=pet_type,json=petType,proto3,enum=api.PetType" json:"pet_type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PutPetRequest) Descriptor
deprecated
func (*PutPetRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutPetRequest.ProtoReflect.Descriptor instead.
func (*PutPetRequest) GetName ¶
func (x *PutPetRequest) GetName() string
func (*PutPetRequest) GetPetType ¶
func (x *PutPetRequest) GetPetType() PetType
func (*PutPetRequest) ProtoMessage ¶
func (*PutPetRequest) ProtoMessage()
func (*PutPetRequest) ProtoReflect ¶
func (x *PutPetRequest) ProtoReflect() protoreflect.Message
func (*PutPetRequest) Reset ¶
func (x *PutPetRequest) Reset()
func (*PutPetRequest) String ¶
func (x *PutPetRequest) String() string
type PutPetResponse ¶
type PutPetResponse struct { Pet *Pet `protobuf:"bytes,1,opt,name=pet,proto3" json:"pet,omitempty"` // contains filtered or unexported fields }
func (*PutPetResponse) Descriptor
deprecated
func (*PutPetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutPetResponse.ProtoReflect.Descriptor instead.
func (*PutPetResponse) GetPet ¶
func (x *PutPetResponse) GetPet() *Pet
func (*PutPetResponse) ProtoMessage ¶
func (*PutPetResponse) ProtoMessage()
func (*PutPetResponse) ProtoReflect ¶
func (x *PutPetResponse) ProtoReflect() protoreflect.Message
func (*PutPetResponse) Reset ¶
func (x *PutPetResponse) Reset()
func (*PutPetResponse) String ¶
func (x *PutPetResponse) String() string
Click to show internal directories.
Click to hide internal directories.