Documentation
¶
Index ¶
- Variables
- type GetStarshipsRequest
- type GetStarshipsRequest_builder
- type GetStarshipsResponse
- func (x *GetStarshipsResponse) GetStarships() []*Starship
- func (*GetStarshipsResponse) ProtoMessage()
- func (x *GetStarshipsResponse) ProtoReflect() protoreflect.Message
- func (x *GetStarshipsResponse) Reset()
- func (x *GetStarshipsResponse) SetStarships(v []*Starship)
- func (x *GetStarshipsResponse) String() string
- type GetStarshipsResponse_builder
- type ListStarshipsRequest
- func (x *ListStarshipsRequest) GetPageSize() int32
- func (x *ListStarshipsRequest) GetPageToken() string
- func (*ListStarshipsRequest) ProtoMessage()
- func (x *ListStarshipsRequest) ProtoReflect() protoreflect.Message
- func (x *ListStarshipsRequest) Reset()
- func (x *ListStarshipsRequest) SetPageSize(v int32)
- func (x *ListStarshipsRequest) SetPageToken(v string)
- func (x *ListStarshipsRequest) String() string
- type ListStarshipsRequest_builder
- type ListStarshipsResponse
- func (x *ListStarshipsResponse) GetNextPageToken() string
- func (x *ListStarshipsResponse) GetStarships() []*Starship
- func (*ListStarshipsResponse) ProtoMessage()
- func (x *ListStarshipsResponse) ProtoReflect() protoreflect.Message
- func (x *ListStarshipsResponse) Reset()
- func (x *ListStarshipsResponse) SetNextPageToken(v string)
- func (x *ListStarshipsResponse) SetStarships(v []*Starship)
- func (x *ListStarshipsResponse) String() string
- type ListStarshipsResponse_builder
- type Starship
- func (x *Starship) ClearCostInCredits()
- func (x *Starship) ClearCreated()
- func (x *Starship) ClearEdited()
- func (x *Starship) ClearMaxAtmospheringSpeed()
- func (x *Starship) GetCargoCapacity() float64
- func (x *Starship) GetClass() string
- func (x *Starship) GetConsumable() string
- func (x *Starship) GetCostInCredits() int64
- func (x *Starship) GetCreated() *timestamppb.Timestamp
- func (x *Starship) GetCrew() int64
- func (x *Starship) GetEdited() *timestamppb.Timestamp
- func (x *Starship) GetFilmIds() []string
- func (x *Starship) GetHyperDriveRating() float64
- func (x *Starship) GetId() string
- func (x *Starship) GetLength() float64
- func (x *Starship) GetManufacturers() []string
- func (x *Starship) GetMaxAtmospheringSpeed() int64
- func (x *Starship) GetMglt() int64
- func (x *Starship) GetModel() string
- func (x *Starship) GetName() string
- func (x *Starship) GetPassengers() int64
- func (x *Starship) GetPilotIds() []string
- func (x *Starship) HasCostInCredits() bool
- func (x *Starship) HasCreated() bool
- func (x *Starship) HasEdited() bool
- func (x *Starship) HasMaxAtmospheringSpeed() bool
- func (*Starship) ProtoMessage()
- func (x *Starship) ProtoReflect() protoreflect.Message
- func (x *Starship) Reset()
- func (x *Starship) SetCargoCapacity(v float64)
- func (x *Starship) SetClass(v string)
- func (x *Starship) SetConsumable(v string)
- func (x *Starship) SetCostInCredits(v int64)
- func (x *Starship) SetCreated(v *timestamppb.Timestamp)
- func (x *Starship) SetCrew(v int64)
- func (x *Starship) SetEdited(v *timestamppb.Timestamp)
- func (x *Starship) SetFilmIds(v []string)
- func (x *Starship) SetHyperDriveRating(v float64)
- func (x *Starship) SetId(v string)
- func (x *Starship) SetLength(v float64)
- func (x *Starship) SetManufacturers(v []string)
- func (x *Starship) SetMaxAtmospheringSpeed(v int64)
- func (x *Starship) SetMglt(v int64)
- func (x *Starship) SetModel(v string)
- func (x *Starship) SetName(v string)
- func (x *Starship) SetPassengers(v int64)
- func (x *Starship) SetPilotIds(v []string)
- func (x *Starship) String() string
- type Starship_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_buf_knit_demo_swapi_starship_v1_starship_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetStarshipsRequest ¶
type GetStarshipsRequest struct {
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*GetStarshipsRequest) GetIds ¶
func (x *GetStarshipsRequest) GetIds() []string
func (*GetStarshipsRequest) ProtoMessage ¶
func (*GetStarshipsRequest) ProtoMessage()
func (*GetStarshipsRequest) ProtoReflect ¶
func (x *GetStarshipsRequest) ProtoReflect() protoreflect.Message
func (*GetStarshipsRequest) Reset ¶
func (x *GetStarshipsRequest) Reset()
func (*GetStarshipsRequest) SetIds ¶
func (x *GetStarshipsRequest) SetIds(v []string)
func (*GetStarshipsRequest) String ¶
func (x *GetStarshipsRequest) String() string
type GetStarshipsRequest_builder ¶
type GetStarshipsRequest_builder struct {
Ids []string
// contains filtered or unexported fields
}
func (GetStarshipsRequest_builder) Build ¶
func (b0 GetStarshipsRequest_builder) Build() *GetStarshipsRequest
type GetStarshipsResponse ¶
type GetStarshipsResponse struct {
Starships []*Starship `protobuf:"bytes,1,rep,name=starships,proto3" json:"starships,omitempty"`
// contains filtered or unexported fields
}
func (*GetStarshipsResponse) GetStarships ¶
func (x *GetStarshipsResponse) GetStarships() []*Starship
func (*GetStarshipsResponse) ProtoMessage ¶
func (*GetStarshipsResponse) ProtoMessage()
func (*GetStarshipsResponse) ProtoReflect ¶
func (x *GetStarshipsResponse) ProtoReflect() protoreflect.Message
func (*GetStarshipsResponse) Reset ¶
func (x *GetStarshipsResponse) Reset()
func (*GetStarshipsResponse) SetStarships ¶
func (x *GetStarshipsResponse) SetStarships(v []*Starship)
func (*GetStarshipsResponse) String ¶
func (x *GetStarshipsResponse) String() string
type GetStarshipsResponse_builder ¶
type GetStarshipsResponse_builder struct {
Starships []*Starship
// contains filtered or unexported fields
}
func (GetStarshipsResponse_builder) Build ¶
func (b0 GetStarshipsResponse_builder) Build() *GetStarshipsResponse
type ListStarshipsRequest ¶
type ListStarshipsRequest 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 (*ListStarshipsRequest) GetPageSize ¶
func (x *ListStarshipsRequest) GetPageSize() int32
func (*ListStarshipsRequest) GetPageToken ¶
func (x *ListStarshipsRequest) GetPageToken() string
func (*ListStarshipsRequest) ProtoMessage ¶
func (*ListStarshipsRequest) ProtoMessage()
func (*ListStarshipsRequest) ProtoReflect ¶
func (x *ListStarshipsRequest) ProtoReflect() protoreflect.Message
func (*ListStarshipsRequest) Reset ¶
func (x *ListStarshipsRequest) Reset()
func (*ListStarshipsRequest) SetPageSize ¶
func (x *ListStarshipsRequest) SetPageSize(v int32)
func (*ListStarshipsRequest) SetPageToken ¶
func (x *ListStarshipsRequest) SetPageToken(v string)
func (*ListStarshipsRequest) String ¶
func (x *ListStarshipsRequest) String() string
type ListStarshipsRequest_builder ¶
type ListStarshipsRequest_builder struct {
PageSize int32
PageToken string
// contains filtered or unexported fields
}
func (ListStarshipsRequest_builder) Build ¶
func (b0 ListStarshipsRequest_builder) Build() *ListStarshipsRequest
type ListStarshipsResponse ¶
type ListStarshipsResponse struct {
Starships []*Starship `protobuf:"bytes,1,rep,name=starships,proto3" json:"starships,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 (*ListStarshipsResponse) GetNextPageToken ¶
func (x *ListStarshipsResponse) GetNextPageToken() string
func (*ListStarshipsResponse) GetStarships ¶
func (x *ListStarshipsResponse) GetStarships() []*Starship
func (*ListStarshipsResponse) ProtoMessage ¶
func (*ListStarshipsResponse) ProtoMessage()
func (*ListStarshipsResponse) ProtoReflect ¶
func (x *ListStarshipsResponse) ProtoReflect() protoreflect.Message
func (*ListStarshipsResponse) Reset ¶
func (x *ListStarshipsResponse) Reset()
func (*ListStarshipsResponse) SetNextPageToken ¶
func (x *ListStarshipsResponse) SetNextPageToken(v string)
func (*ListStarshipsResponse) SetStarships ¶
func (x *ListStarshipsResponse) SetStarships(v []*Starship)
func (*ListStarshipsResponse) String ¶
func (x *ListStarshipsResponse) String() string
type ListStarshipsResponse_builder ¶
type ListStarshipsResponse_builder struct {
Starships []*Starship
NextPageToken string
// contains filtered or unexported fields
}
func (ListStarshipsResponse_builder) Build ¶
func (b0 ListStarshipsResponse_builder) Build() *ListStarshipsResponse
type Starship ¶
type Starship 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"`
Mglt int64 `protobuf:"varint,3,opt,name=mglt,proto3" json:"mglt,omitempty"`
CargoCapacity float64 `protobuf:"fixed64,4,opt,name=cargo_capacity,json=cargoCapacity,proto3" json:"cargo_capacity,omitempty"`
Consumable string `protobuf:"bytes,5,opt,name=consumable,proto3" json:"consumable,omitempty"`
CostInCredits *int64 `protobuf:"varint,6,opt,name=cost_in_credits,json=costInCredits,proto3,oneof" json:"cost_in_credits,omitempty"`
Crew int64 `protobuf:"varint,7,opt,name=crew,proto3" json:"crew,omitempty"`
HyperDriveRating float64 `protobuf:"fixed64,8,opt,name=hyper_drive_rating,json=hyperDriveRating,proto3" json:"hyper_drive_rating,omitempty"`
Length float64 `protobuf:"fixed64,9,opt,name=length,proto3" json:"length,omitempty"`
Manufacturers []string `protobuf:"bytes,10,rep,name=manufacturers,proto3" json:"manufacturers,omitempty"`
Model string `protobuf:"bytes,11,opt,name=model,proto3" json:"model,omitempty"`
MaxAtmospheringSpeed *int64 `` /* 131-byte string literal not displayed */
Passengers int64 `protobuf:"varint,13,opt,name=passengers,proto3" json:"passengers,omitempty"`
Class string `protobuf:"bytes,14,opt,name=class,proto3" json:"class,omitempty"`
PilotIds []string `protobuf:"bytes,15,rep,name=pilot_ids,json=pilotIds,proto3" json:"pilot_ids,omitempty"`
FilmIds []string `protobuf:"bytes,16,rep,name=film_ids,json=filmIds,proto3" json:"film_ids,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=created,proto3" json:"created,omitempty"`
Edited *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=edited,proto3" json:"edited,omitempty"`
// contains filtered or unexported fields
}
func (*Starship) GetCreated ¶
func (x *Starship) GetCreated() *timestamppb.Timestamp
func (*Starship) GetEdited ¶
func (x *Starship) GetEdited() *timestamppb.Timestamp
func (*Starship) ProtoReflect ¶
func (x *Starship) ProtoReflect() protoreflect.Message
func (*Starship) SetCreated ¶
func (x *Starship) SetCreated(v *timestamppb.Timestamp)
func (*Starship) SetEdited ¶
func (x *Starship) SetEdited(v *timestamppb.Timestamp)
type Starship_builder ¶
type Starship_builder struct {
Id string
Name string
Mglt int64
CargoCapacity float64
Consumable string
CostInCredits *int64
Crew int64
HyperDriveRating float64
Length float64
Manufacturers []string
Model string
MaxAtmospheringSpeed *int64
Passengers int64
Class string
PilotIds []string
FilmIds []string
Created *timestamppb.Timestamp
Edited *timestamppb.Timestamp
// contains filtered or unexported fields
}
func (Starship_builder) Build ¶
func (b0 Starship_builder) Build() *Starship
Source Files
¶
- starship.pb.go
Click to show internal directories.
Click to hide internal directories.