starshipv1

package
v1.36.10-2024080113053... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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

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

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

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

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) ClearCostInCredits

func (x *Starship) ClearCostInCredits()

func (*Starship) ClearCreated

func (x *Starship) ClearCreated()

func (*Starship) ClearEdited

func (x *Starship) ClearEdited()

func (*Starship) ClearMaxAtmospheringSpeed

func (x *Starship) ClearMaxAtmospheringSpeed()

func (*Starship) GetCargoCapacity

func (x *Starship) GetCargoCapacity() float64

func (*Starship) GetClass

func (x *Starship) GetClass() string

func (*Starship) GetConsumable

func (x *Starship) GetConsumable() string

func (*Starship) GetCostInCredits

func (x *Starship) GetCostInCredits() int64

func (*Starship) GetCreated

func (x *Starship) GetCreated() *timestamppb.Timestamp

func (*Starship) GetCrew

func (x *Starship) GetCrew() int64

func (*Starship) GetEdited

func (x *Starship) GetEdited() *timestamppb.Timestamp

func (*Starship) GetFilmIds

func (x *Starship) GetFilmIds() []string

func (*Starship) GetHyperDriveRating

func (x *Starship) GetHyperDriveRating() float64

func (*Starship) GetId

func (x *Starship) GetId() string

func (*Starship) GetLength

func (x *Starship) GetLength() float64

func (*Starship) GetManufacturers

func (x *Starship) GetManufacturers() []string

func (*Starship) GetMaxAtmospheringSpeed

func (x *Starship) GetMaxAtmospheringSpeed() int64

func (*Starship) GetMglt

func (x *Starship) GetMglt() int64

func (*Starship) GetModel

func (x *Starship) GetModel() string

func (*Starship) GetName

func (x *Starship) GetName() string

func (*Starship) GetPassengers

func (x *Starship) GetPassengers() int64

func (*Starship) GetPilotIds

func (x *Starship) GetPilotIds() []string

func (*Starship) HasCostInCredits

func (x *Starship) HasCostInCredits() bool

func (*Starship) HasCreated

func (x *Starship) HasCreated() bool

func (*Starship) HasEdited

func (x *Starship) HasEdited() bool

func (*Starship) HasMaxAtmospheringSpeed

func (x *Starship) HasMaxAtmospheringSpeed() bool

func (*Starship) ProtoMessage

func (*Starship) ProtoMessage()

func (*Starship) ProtoReflect

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

func (*Starship) Reset

func (x *Starship) Reset()

func (*Starship) SetCargoCapacity

func (x *Starship) SetCargoCapacity(v float64)

func (*Starship) SetClass

func (x *Starship) SetClass(v string)

func (*Starship) SetConsumable

func (x *Starship) SetConsumable(v string)

func (*Starship) SetCostInCredits

func (x *Starship) SetCostInCredits(v int64)

func (*Starship) SetCreated

func (x *Starship) SetCreated(v *timestamppb.Timestamp)

func (*Starship) SetCrew

func (x *Starship) SetCrew(v int64)

func (*Starship) SetEdited

func (x *Starship) SetEdited(v *timestamppb.Timestamp)

func (*Starship) SetFilmIds

func (x *Starship) SetFilmIds(v []string)

func (*Starship) SetHyperDriveRating

func (x *Starship) SetHyperDriveRating(v float64)

func (*Starship) SetId

func (x *Starship) SetId(v string)

func (*Starship) SetLength

func (x *Starship) SetLength(v float64)

func (*Starship) SetManufacturers

func (x *Starship) SetManufacturers(v []string)

func (*Starship) SetMaxAtmospheringSpeed

func (x *Starship) SetMaxAtmospheringSpeed(v int64)

func (*Starship) SetMglt

func (x *Starship) SetMglt(v int64)

func (*Starship) SetModel

func (x *Starship) SetModel(v string)

func (*Starship) SetName

func (x *Starship) SetName(v string)

func (*Starship) SetPassengers

func (x *Starship) SetPassengers(v int64)

func (*Starship) SetPilotIds

func (x *Starship) SetPilotIds(v []string)

func (*Starship) String

func (x *Starship) String() string

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

Jump to

Keyboard shortcuts

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