Documentation
¶
Index ¶
- Variables
- type Film
- func (x *Film) ClearCreated()
- func (x *Film) ClearEdited()
- func (x *Film) ClearReleaseDate()
- func (x *Film) GetCharacterIds() []string
- func (x *Film) GetCreated() *timestamppb.Timestamp
- func (x *Film) GetDirector() string
- func (x *Film) GetEdited() *timestamppb.Timestamp
- func (x *Film) GetEpisodeNumber() int32
- func (x *Film) GetId() string
- func (x *Film) GetOpeningCrawl() string
- func (x *Film) GetPlanetIds() []string
- func (x *Film) GetProducer() string
- func (x *Film) GetReleaseDate() *date.Date
- func (x *Film) GetSpeciesIds() []string
- func (x *Film) GetStarshipIds() []string
- func (x *Film) GetTitle() string
- func (x *Film) GetVehicleIds() []string
- func (x *Film) HasCreated() bool
- func (x *Film) HasEdited() bool
- func (x *Film) HasReleaseDate() bool
- func (*Film) ProtoMessage()
- func (x *Film) ProtoReflect() protoreflect.Message
- func (x *Film) Reset()
- func (x *Film) SetCharacterIds(v []string)
- func (x *Film) SetCreated(v *timestamppb.Timestamp)
- func (x *Film) SetDirector(v string)
- func (x *Film) SetEdited(v *timestamppb.Timestamp)
- func (x *Film) SetEpisodeNumber(v int32)
- func (x *Film) SetId(v string)
- func (x *Film) SetOpeningCrawl(v string)
- func (x *Film) SetPlanetIds(v []string)
- func (x *Film) SetProducer(v string)
- func (x *Film) SetReleaseDate(v *date.Date)
- func (x *Film) SetSpeciesIds(v []string)
- func (x *Film) SetStarshipIds(v []string)
- func (x *Film) SetTitle(v string)
- func (x *Film) SetVehicleIds(v []string)
- func (x *Film) String() string
- type Film_builder
- type GetFilmsRequest
- type GetFilmsRequest_builder
- type GetFilmsResponse
- type GetFilmsResponse_builder
- type ListFilmsRequest
- func (x *ListFilmsRequest) GetPageSize() int32
- func (x *ListFilmsRequest) GetPageToken() string
- func (*ListFilmsRequest) ProtoMessage()
- func (x *ListFilmsRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilmsRequest) Reset()
- func (x *ListFilmsRequest) SetPageSize(v int32)
- func (x *ListFilmsRequest) SetPageToken(v string)
- func (x *ListFilmsRequest) String() string
- type ListFilmsRequest_builder
- type ListFilmsResponse
- func (x *ListFilmsResponse) GetFilms() []*Film
- func (x *ListFilmsResponse) GetNextPageToken() string
- func (*ListFilmsResponse) ProtoMessage()
- func (x *ListFilmsResponse) ProtoReflect() protoreflect.Message
- func (x *ListFilmsResponse) Reset()
- func (x *ListFilmsResponse) SetFilms(v []*Film)
- func (x *ListFilmsResponse) SetNextPageToken(v string)
- func (x *ListFilmsResponse) String() string
- type ListFilmsResponse_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_buf_knit_demo_swapi_film_v1_film_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Film ¶
type Film struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
EpisodeNumber int32 `protobuf:"varint,3,opt,name=episode_number,json=episodeNumber,proto3" json:"episode_number,omitempty"`
OpeningCrawl string `protobuf:"bytes,4,opt,name=opening_crawl,json=openingCrawl,proto3" json:"opening_crawl,omitempty"`
Director string `protobuf:"bytes,5,opt,name=director,proto3" json:"director,omitempty"`
Producer string `protobuf:"bytes,6,opt,name=producer,proto3" json:"producer,omitempty"`
ReleaseDate *date.Date `protobuf:"bytes,7,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"`
CharacterIds []string `protobuf:"bytes,8,rep,name=character_ids,json=characterIds,proto3" json:"character_ids,omitempty"`
PlanetIds []string `protobuf:"bytes,9,rep,name=planet_ids,json=planetIds,proto3" json:"planet_ids,omitempty"`
SpeciesIds []string `protobuf:"bytes,10,rep,name=species_ids,json=speciesIds,proto3" json:"species_ids,omitempty"`
StarshipIds []string `protobuf:"bytes,11,rep,name=starship_ids,json=starshipIds,proto3" json:"starship_ids,omitempty"`
VehicleIds []string `protobuf:"bytes,12,rep,name=vehicle_ids,json=vehicleIds,proto3" json:"vehicle_ids,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created,proto3" json:"created,omitempty"`
Edited *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=edited,proto3" json:"edited,omitempty"`
// contains filtered or unexported fields
}
func (*Film) GetCreated ¶
func (x *Film) GetCreated() *timestamppb.Timestamp
func (*Film) GetEdited ¶
func (x *Film) GetEdited() *timestamppb.Timestamp
func (*Film) ProtoReflect ¶
func (x *Film) ProtoReflect() protoreflect.Message
func (*Film) SetCreated ¶
func (x *Film) SetCreated(v *timestamppb.Timestamp)
func (*Film) SetEdited ¶
func (x *Film) SetEdited(v *timestamppb.Timestamp)
type Film_builder ¶
type Film_builder struct {
Id string
Title string
EpisodeNumber int32
OpeningCrawl string
Director string
Producer string
ReleaseDate *date.Date
CharacterIds []string
PlanetIds []string
SpeciesIds []string
StarshipIds []string
VehicleIds []string
Created *timestamppb.Timestamp
Edited *timestamppb.Timestamp
// contains filtered or unexported fields
}
func (Film_builder) Build ¶
func (b0 Film_builder) Build() *Film
type GetFilmsRequest ¶
type GetFilmsRequest struct {
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*GetFilmsRequest) GetIds ¶
func (x *GetFilmsRequest) GetIds() []string
func (*GetFilmsRequest) ProtoMessage ¶
func (*GetFilmsRequest) ProtoMessage()
func (*GetFilmsRequest) ProtoReflect ¶
func (x *GetFilmsRequest) ProtoReflect() protoreflect.Message
func (*GetFilmsRequest) Reset ¶
func (x *GetFilmsRequest) Reset()
func (*GetFilmsRequest) SetIds ¶
func (x *GetFilmsRequest) SetIds(v []string)
func (*GetFilmsRequest) String ¶
func (x *GetFilmsRequest) String() string
type GetFilmsRequest_builder ¶
type GetFilmsRequest_builder struct {
Ids []string
// contains filtered or unexported fields
}
func (GetFilmsRequest_builder) Build ¶
func (b0 GetFilmsRequest_builder) Build() *GetFilmsRequest
type GetFilmsResponse ¶
type GetFilmsResponse struct {
Films []*Film `protobuf:"bytes,1,rep,name=films,proto3" json:"films,omitempty"`
// contains filtered or unexported fields
}
func (*GetFilmsResponse) GetFilms ¶
func (x *GetFilmsResponse) GetFilms() []*Film
func (*GetFilmsResponse) ProtoMessage ¶
func (*GetFilmsResponse) ProtoMessage()
func (*GetFilmsResponse) ProtoReflect ¶
func (x *GetFilmsResponse) ProtoReflect() protoreflect.Message
func (*GetFilmsResponse) Reset ¶
func (x *GetFilmsResponse) Reset()
func (*GetFilmsResponse) SetFilms ¶
func (x *GetFilmsResponse) SetFilms(v []*Film)
func (*GetFilmsResponse) String ¶
func (x *GetFilmsResponse) String() string
type GetFilmsResponse_builder ¶
type GetFilmsResponse_builder struct {
Films []*Film
// contains filtered or unexported fields
}
func (GetFilmsResponse_builder) Build ¶
func (b0 GetFilmsResponse_builder) Build() *GetFilmsResponse
type ListFilmsRequest ¶
type ListFilmsRequest 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 (*ListFilmsRequest) GetPageSize ¶
func (x *ListFilmsRequest) GetPageSize() int32
func (*ListFilmsRequest) GetPageToken ¶
func (x *ListFilmsRequest) GetPageToken() string
func (*ListFilmsRequest) ProtoMessage ¶
func (*ListFilmsRequest) ProtoMessage()
func (*ListFilmsRequest) ProtoReflect ¶
func (x *ListFilmsRequest) ProtoReflect() protoreflect.Message
func (*ListFilmsRequest) Reset ¶
func (x *ListFilmsRequest) Reset()
func (*ListFilmsRequest) SetPageSize ¶
func (x *ListFilmsRequest) SetPageSize(v int32)
func (*ListFilmsRequest) SetPageToken ¶
func (x *ListFilmsRequest) SetPageToken(v string)
func (*ListFilmsRequest) String ¶
func (x *ListFilmsRequest) String() string
type ListFilmsRequest_builder ¶
type ListFilmsRequest_builder struct {
PageSize int32
PageToken string
// contains filtered or unexported fields
}
func (ListFilmsRequest_builder) Build ¶
func (b0 ListFilmsRequest_builder) Build() *ListFilmsRequest
type ListFilmsResponse ¶
type ListFilmsResponse struct {
Films []*Film `protobuf:"bytes,1,rep,name=films,proto3" json:"films,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 (*ListFilmsResponse) GetFilms ¶
func (x *ListFilmsResponse) GetFilms() []*Film
func (*ListFilmsResponse) GetNextPageToken ¶
func (x *ListFilmsResponse) GetNextPageToken() string
func (*ListFilmsResponse) ProtoMessage ¶
func (*ListFilmsResponse) ProtoMessage()
func (*ListFilmsResponse) ProtoReflect ¶
func (x *ListFilmsResponse) ProtoReflect() protoreflect.Message
func (*ListFilmsResponse) Reset ¶
func (x *ListFilmsResponse) Reset()
func (*ListFilmsResponse) SetFilms ¶
func (x *ListFilmsResponse) SetFilms(v []*Film)
func (*ListFilmsResponse) SetNextPageToken ¶
func (x *ListFilmsResponse) SetNextPageToken(v string)
func (*ListFilmsResponse) String ¶
func (x *ListFilmsResponse) String() string
type ListFilmsResponse_builder ¶
type ListFilmsResponse_builder struct {
Films []*Film
NextPageToken string
// contains filtered or unexported fields
}
func (ListFilmsResponse_builder) Build ¶
func (b0 ListFilmsResponse_builder) Build() *ListFilmsResponse
Source Files
¶
- film.pb.go
Click to show internal directories.
Click to hide internal directories.