Documentation
¶
Index ¶
- Variables
- type GetPeopleRequest
- type GetPeopleRequest_builder
- type GetPeopleResponse
- type GetPeopleResponse_builder
- type ListPeopleRequest
- func (x *ListPeopleRequest) GetPageSize() int32
- func (x *ListPeopleRequest) GetPageToken() string
- func (*ListPeopleRequest) ProtoMessage()
- func (x *ListPeopleRequest) ProtoReflect() protoreflect.Message
- func (x *ListPeopleRequest) Reset()
- func (x *ListPeopleRequest) SetPageSize(v int32)
- func (x *ListPeopleRequest) SetPageToken(v string)
- func (x *ListPeopleRequest) String() string
- type ListPeopleRequest_builder
- type ListPeopleResponse
- func (x *ListPeopleResponse) GetNextPageToken() string
- func (x *ListPeopleResponse) GetPeople() []*Person
- func (*ListPeopleResponse) ProtoMessage()
- func (x *ListPeopleResponse) ProtoReflect() protoreflect.Message
- func (x *ListPeopleResponse) Reset()
- func (x *ListPeopleResponse) SetNextPageToken(v string)
- func (x *ListPeopleResponse) SetPeople(v []*Person)
- func (x *ListPeopleResponse) String() string
- type ListPeopleResponse_builder
- type Person
- func (x *Person) ClearCreated()
- func (x *Person) ClearEdited()
- func (x *Person) GetBirthYear() string
- func (x *Person) GetCreated() *timestamppb.Timestamp
- func (x *Person) GetEdited() *timestamppb.Timestamp
- func (x *Person) GetEyeColor() string
- func (x *Person) GetFilmIds() []string
- func (x *Person) GetGender() string
- func (x *Person) GetHairColor() string
- func (x *Person) GetHomeworldId() string
- func (x *Person) GetId() string
- func (x *Person) GetMass() string
- func (x *Person) GetName() string
- func (x *Person) GetSkinColor() string
- func (x *Person) GetSpeciesIds() []string
- func (x *Person) GetStarshipIds() []string
- func (x *Person) GetVehicleIds() []string
- func (x *Person) HasCreated() bool
- func (x *Person) HasEdited() bool
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) SetBirthYear(v string)
- func (x *Person) SetCreated(v *timestamppb.Timestamp)
- func (x *Person) SetEdited(v *timestamppb.Timestamp)
- func (x *Person) SetEyeColor(v string)
- func (x *Person) SetFilmIds(v []string)
- func (x *Person) SetGender(v string)
- func (x *Person) SetHairColor(v string)
- func (x *Person) SetHomeworldId(v string)
- func (x *Person) SetId(v string)
- func (x *Person) SetMass(v string)
- func (x *Person) SetName(v string)
- func (x *Person) SetSkinColor(v string)
- func (x *Person) SetSpeciesIds(v []string)
- func (x *Person) SetStarshipIds(v []string)
- func (x *Person) SetVehicleIds(v []string)
- func (x *Person) String() string
- type Person_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_buf_knit_demo_swapi_person_v1_person_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetPeopleRequest ¶
type GetPeopleRequest struct {
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*GetPeopleRequest) GetIds ¶
func (x *GetPeopleRequest) GetIds() []string
func (*GetPeopleRequest) ProtoMessage ¶
func (*GetPeopleRequest) ProtoMessage()
func (*GetPeopleRequest) ProtoReflect ¶
func (x *GetPeopleRequest) ProtoReflect() protoreflect.Message
func (*GetPeopleRequest) Reset ¶
func (x *GetPeopleRequest) Reset()
func (*GetPeopleRequest) SetIds ¶
func (x *GetPeopleRequest) SetIds(v []string)
func (*GetPeopleRequest) String ¶
func (x *GetPeopleRequest) String() string
type GetPeopleRequest_builder ¶
type GetPeopleRequest_builder struct {
Ids []string
// contains filtered or unexported fields
}
func (GetPeopleRequest_builder) Build ¶
func (b0 GetPeopleRequest_builder) Build() *GetPeopleRequest
type GetPeopleResponse ¶
type GetPeopleResponse struct {
People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"`
// contains filtered or unexported fields
}
func (*GetPeopleResponse) GetPeople ¶
func (x *GetPeopleResponse) GetPeople() []*Person
func (*GetPeopleResponse) ProtoMessage ¶
func (*GetPeopleResponse) ProtoMessage()
func (*GetPeopleResponse) ProtoReflect ¶
func (x *GetPeopleResponse) ProtoReflect() protoreflect.Message
func (*GetPeopleResponse) Reset ¶
func (x *GetPeopleResponse) Reset()
func (*GetPeopleResponse) SetPeople ¶
func (x *GetPeopleResponse) SetPeople(v []*Person)
func (*GetPeopleResponse) String ¶
func (x *GetPeopleResponse) String() string
type GetPeopleResponse_builder ¶
type GetPeopleResponse_builder struct {
People []*Person
// contains filtered or unexported fields
}
func (GetPeopleResponse_builder) Build ¶
func (b0 GetPeopleResponse_builder) Build() *GetPeopleResponse
type ListPeopleRequest ¶
type ListPeopleRequest struct {
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListPeopleRequest) GetPageSize ¶
func (x *ListPeopleRequest) GetPageSize() int32
func (*ListPeopleRequest) GetPageToken ¶
func (x *ListPeopleRequest) GetPageToken() string
func (*ListPeopleRequest) ProtoMessage ¶
func (*ListPeopleRequest) ProtoMessage()
func (*ListPeopleRequest) ProtoReflect ¶
func (x *ListPeopleRequest) ProtoReflect() protoreflect.Message
func (*ListPeopleRequest) Reset ¶
func (x *ListPeopleRequest) Reset()
func (*ListPeopleRequest) SetPageSize ¶
func (x *ListPeopleRequest) SetPageSize(v int32)
func (*ListPeopleRequest) SetPageToken ¶
func (x *ListPeopleRequest) SetPageToken(v string)
func (*ListPeopleRequest) String ¶
func (x *ListPeopleRequest) String() string
type ListPeopleRequest_builder ¶
type ListPeopleRequest_builder struct {
PageSize int32
PageToken string
// contains filtered or unexported fields
}
func (ListPeopleRequest_builder) Build ¶
func (b0 ListPeopleRequest_builder) Build() *ListPeopleRequest
type ListPeopleResponse ¶
type ListPeopleResponse struct {
People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListPeopleResponse) GetNextPageToken ¶
func (x *ListPeopleResponse) GetNextPageToken() string
func (*ListPeopleResponse) GetPeople ¶
func (x *ListPeopleResponse) GetPeople() []*Person
func (*ListPeopleResponse) ProtoMessage ¶
func (*ListPeopleResponse) ProtoMessage()
func (*ListPeopleResponse) ProtoReflect ¶
func (x *ListPeopleResponse) ProtoReflect() protoreflect.Message
func (*ListPeopleResponse) Reset ¶
func (x *ListPeopleResponse) Reset()
func (*ListPeopleResponse) SetNextPageToken ¶
func (x *ListPeopleResponse) SetNextPageToken(v string)
func (*ListPeopleResponse) SetPeople ¶
func (x *ListPeopleResponse) SetPeople(v []*Person)
func (*ListPeopleResponse) String ¶
func (x *ListPeopleResponse) String() string
type ListPeopleResponse_builder ¶
type ListPeopleResponse_builder struct {
People []*Person
NextPageToken string
// contains filtered or unexported fields
}
func (ListPeopleResponse_builder) Build ¶
func (b0 ListPeopleResponse_builder) Build() *ListPeopleResponse
type Person ¶
type Person struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Mass string `protobuf:"bytes,3,opt,name=mass,proto3" json:"mass,omitempty"`
HairColor string `protobuf:"bytes,4,opt,name=hair_color,json=hairColor,proto3" json:"hair_color,omitempty"`
SkinColor string `protobuf:"bytes,5,opt,name=skin_color,json=skinColor,proto3" json:"skin_color,omitempty"`
EyeColor string `protobuf:"bytes,6,opt,name=eye_color,json=eyeColor,proto3" json:"eye_color,omitempty"`
BirthYear string `protobuf:"bytes,7,opt,name=birth_year,json=birthYear,proto3" json:"birth_year,omitempty"`
Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"`
HomeworldId string `protobuf:"bytes,9,opt,name=homeworld_id,json=homeworldId,proto3" json:"homeworld_id,omitempty"`
SpeciesIds []string `protobuf:"bytes,10,rep,name=species_ids,json=speciesIds,proto3" json:"species_ids,omitempty"`
FilmIds []string `protobuf:"bytes,11,rep,name=film_ids,json=filmIds,proto3" json:"film_ids,omitempty"`
StarshipIds []string `protobuf:"bytes,12,rep,name=starship_ids,json=starshipIds,proto3" json:"starship_ids,omitempty"`
VehicleIds []string `protobuf:"bytes,13,rep,name=vehicle_ids,json=vehicleIds,proto3" json:"vehicle_ids,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created,proto3" json:"created,omitempty"`
Edited *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=edited,proto3" json:"edited,omitempty"`
// contains filtered or unexported fields
}
func (*Person) GetCreated ¶
func (x *Person) GetCreated() *timestamppb.Timestamp
func (*Person) GetEdited ¶
func (x *Person) GetEdited() *timestamppb.Timestamp
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
func (*Person) SetCreated ¶
func (x *Person) SetCreated(v *timestamppb.Timestamp)
func (*Person) SetEdited ¶
func (x *Person) SetEdited(v *timestamppb.Timestamp)
type Person_builder ¶
type Person_builder struct {
Id string
Name string
Mass string
HairColor string
SkinColor string
EyeColor string
BirthYear string
Gender string
HomeworldId string
SpeciesIds []string
FilmIds []string
StarshipIds []string
VehicleIds []string
Created *timestamppb.Timestamp
Edited *timestamppb.Timestamp
// contains filtered or unexported fields
}
func (Person_builder) Build ¶
func (b0 Person_builder) Build() *Person
Source Files
¶
- person.pb.go
Click to show internal directories.
Click to hide internal directories.