storagepb

package
v0.0.0-...-63cd2eb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Storage_List_FullMethodName        = "/storage.Storage/List"
	Storage_Show_FullMethodName        = "/storage.Storage/Show"
	Storage_Add_FullMethodName         = "/storage.Storage/Add"
	Storage_Remove_FullMethodName      = "/storage.Storage/Remove"
	Storage_Rate_FullMethodName        = "/storage.Storage/Rate"
	Storage_MultiAdd_FullMethodName    = "/storage.Storage/MultiAdd"
	Storage_MultiUpdate_FullMethodName = "/storage.Storage/MultiUpdate"
)

Variables

View Source
var File_goagen_cellar_storage_proto protoreflect.FileDescriptor
View Source
var Storage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "storage.Storage",
	HandlerType: (*StorageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Storage_List_Handler,
		},
		{
			MethodName: "Show",
			Handler:    _Storage_Show_Handler,
		},
		{
			MethodName: "Add",
			Handler:    _Storage_Add_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _Storage_Remove_Handler,
		},
		{
			MethodName: "Rate",
			Handler:    _Storage_Rate_Handler,
		},
		{
			MethodName: "MultiAdd",
			Handler:    _Storage_MultiAdd_Handler,
		},
		{
			MethodName: "MultiUpdate",
			Handler:    _Storage_MultiUpdate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "goagen_cellar_storage.proto",
}

Storage_ServiceDesc is the grpc.ServiceDesc for Storage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStorageServer

func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)

Types

type AddRequest

type AddRequest struct {

	// Name of bottle
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Winery that produces wine
	Winery *Winery `protobuf:"bytes,2,opt,name=winery,proto3" json:"winery,omitempty"`
	// Vintage of bottle
	Vintage uint32 `protobuf:"varint,3,opt,name=vintage,proto3" json:"vintage,omitempty"`
	// Composition is the list of grape varietals and associated percentage.
	Composition []*Component `protobuf:"bytes,4,rep,name=composition,proto3" json:"composition,omitempty"`
	// Description of bottle
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating *uint32 `protobuf:"varint,6,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

func (*AddRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetComposition

func (x *AddRequest) GetComposition() []*Component

func (*AddRequest) GetDescription

func (x *AddRequest) GetDescription() string

func (*AddRequest) GetName

func (x *AddRequest) GetName() string

func (*AddRequest) GetRating

func (x *AddRequest) GetRating() uint32

func (*AddRequest) GetVintage

func (x *AddRequest) GetVintage() uint32

func (*AddRequest) GetWinery

func (x *AddRequest) GetWinery() *Winery

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type AddResponse

type AddResponse struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*AddResponse) Descriptor deprecated

func (*AddResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) GetField

func (x *AddResponse) GetField() string

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

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

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

type ArrayOfString

type ArrayOfString struct {
	Field []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*ArrayOfString) Descriptor deprecated

func (*ArrayOfString) Descriptor() ([]byte, []int)

Deprecated: Use ArrayOfString.ProtoReflect.Descriptor instead.

func (*ArrayOfString) GetField

func (x *ArrayOfString) GetField() []string

func (*ArrayOfString) ProtoMessage

func (*ArrayOfString) ProtoMessage()

func (*ArrayOfString) ProtoReflect

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

func (*ArrayOfString) Reset

func (x *ArrayOfString) Reset()

func (*ArrayOfString) String

func (x *ArrayOfString) String() string

type Bottle

type Bottle struct {

	// Name of bottle
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Winery that produces wine
	Winery *Winery `protobuf:"bytes,2,opt,name=winery,proto3" json:"winery,omitempty"`
	// Vintage of bottle
	Vintage uint32 `protobuf:"varint,3,opt,name=vintage,proto3" json:"vintage,omitempty"`
	// Composition is the list of grape varietals and associated percentage.
	Composition []*Component `protobuf:"bytes,4,rep,name=composition,proto3" json:"composition,omitempty"`
	// Description of bottle
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating *uint32 `protobuf:"varint,6,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	// contains filtered or unexported fields
}

Bottle describes a bottle of wine to be stored.

func (*Bottle) Descriptor deprecated

func (*Bottle) Descriptor() ([]byte, []int)

Deprecated: Use Bottle.ProtoReflect.Descriptor instead.

func (*Bottle) GetComposition

func (x *Bottle) GetComposition() []*Component

func (*Bottle) GetDescription

func (x *Bottle) GetDescription() string

func (*Bottle) GetName

func (x *Bottle) GetName() string

func (*Bottle) GetRating

func (x *Bottle) GetRating() uint32

func (*Bottle) GetVintage

func (x *Bottle) GetVintage() uint32

func (*Bottle) GetWinery

func (x *Bottle) GetWinery() *Winery

func (*Bottle) ProtoMessage

func (*Bottle) ProtoMessage()

func (*Bottle) ProtoReflect

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

func (*Bottle) Reset

func (x *Bottle) Reset()

func (*Bottle) String

func (x *Bottle) String() string

type Component

type Component struct {

	// Grape varietal
	Varietal string `protobuf:"bytes,1,opt,name=varietal,proto3" json:"varietal,omitempty"`
	// Percentage of varietal in wine
	Percentage *uint32 `protobuf:"varint,2,opt,name=percentage,proto3,oneof" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

func (*Component) Descriptor deprecated

func (*Component) Descriptor() ([]byte, []int)

Deprecated: Use Component.ProtoReflect.Descriptor instead.

func (*Component) GetPercentage

func (x *Component) GetPercentage() uint32

func (*Component) GetVarietal

func (x *Component) GetVarietal() string

func (*Component) ProtoMessage

func (*Component) ProtoMessage()

func (*Component) ProtoReflect

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

func (*Component) Reset

func (x *Component) Reset()

func (*Component) String

func (x *Component) String() string

type ListRequest

type ListRequest struct {
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type MultiAddRequest

type MultiAddRequest struct {
	Field []*Bottle `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiAddRequest) Descriptor deprecated

func (*MultiAddRequest) Descriptor() ([]byte, []int)

Deprecated: Use MultiAddRequest.ProtoReflect.Descriptor instead.

func (*MultiAddRequest) GetField

func (x *MultiAddRequest) GetField() []*Bottle

func (*MultiAddRequest) ProtoMessage

func (*MultiAddRequest) ProtoMessage()

func (*MultiAddRequest) ProtoReflect

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

func (*MultiAddRequest) Reset

func (x *MultiAddRequest) Reset()

func (*MultiAddRequest) String

func (x *MultiAddRequest) String() string

type MultiAddResponse

type MultiAddResponse struct {
	Field []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiAddResponse) Descriptor deprecated

func (*MultiAddResponse) Descriptor() ([]byte, []int)

Deprecated: Use MultiAddResponse.ProtoReflect.Descriptor instead.

func (*MultiAddResponse) GetField

func (x *MultiAddResponse) GetField() []string

func (*MultiAddResponse) ProtoMessage

func (*MultiAddResponse) ProtoMessage()

func (*MultiAddResponse) ProtoReflect

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

func (*MultiAddResponse) Reset

func (x *MultiAddResponse) Reset()

func (*MultiAddResponse) String

func (x *MultiAddResponse) String() string

type MultiUpdateRequest

type MultiUpdateRequest struct {

	// IDs of the bottles to be updated
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// Array of bottle info that matches the ids attribute
	Bottles []*Bottle `protobuf:"bytes,2,rep,name=bottles,proto3" json:"bottles,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiUpdateRequest) Descriptor deprecated

func (*MultiUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use MultiUpdateRequest.ProtoReflect.Descriptor instead.

func (*MultiUpdateRequest) GetBottles

func (x *MultiUpdateRequest) GetBottles() []*Bottle

func (*MultiUpdateRequest) GetIds

func (x *MultiUpdateRequest) GetIds() []string

func (*MultiUpdateRequest) ProtoMessage

func (*MultiUpdateRequest) ProtoMessage()

func (*MultiUpdateRequest) ProtoReflect

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

func (*MultiUpdateRequest) Reset

func (x *MultiUpdateRequest) Reset()

func (*MultiUpdateRequest) String

func (x *MultiUpdateRequest) String() string

type MultiUpdateResponse

type MultiUpdateResponse struct {
	// contains filtered or unexported fields
}

func (*MultiUpdateResponse) Descriptor deprecated

func (*MultiUpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use MultiUpdateResponse.ProtoReflect.Descriptor instead.

func (*MultiUpdateResponse) ProtoMessage

func (*MultiUpdateResponse) ProtoMessage()

func (*MultiUpdateResponse) ProtoReflect

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

func (*MultiUpdateResponse) Reset

func (x *MultiUpdateResponse) Reset()

func (*MultiUpdateResponse) String

func (x *MultiUpdateResponse) String() string

type RateRequest

type RateRequest struct {
	Field map[uint32]*ArrayOfString `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RateRequest) Descriptor deprecated

func (*RateRequest) Descriptor() ([]byte, []int)

Deprecated: Use RateRequest.ProtoReflect.Descriptor instead.

func (*RateRequest) GetField

func (x *RateRequest) GetField() map[uint32]*ArrayOfString

func (*RateRequest) ProtoMessage

func (*RateRequest) ProtoMessage()

func (*RateRequest) ProtoReflect

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

func (*RateRequest) Reset

func (x *RateRequest) Reset()

func (*RateRequest) String

func (x *RateRequest) String() string

type RateResponse

type RateResponse struct {
	// contains filtered or unexported fields
}

func (*RateResponse) Descriptor deprecated

func (*RateResponse) Descriptor() ([]byte, []int)

Deprecated: Use RateResponse.ProtoReflect.Descriptor instead.

func (*RateResponse) ProtoMessage

func (*RateResponse) ProtoMessage()

func (*RateResponse) ProtoReflect

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

func (*RateResponse) Reset

func (x *RateResponse) Reset()

func (*RateResponse) String

func (x *RateResponse) String() string

type RemoveRequest

type RemoveRequest struct {

	// ID of bottle to remove
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

func (*RemoveRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetId

func (x *RemoveRequest) GetId() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

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

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type RemoveResponse

type RemoveResponse struct {
	// contains filtered or unexported fields
}

func (*RemoveResponse) Descriptor deprecated

func (*RemoveResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

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

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

type ShowNotFoundError

type ShowNotFoundError struct {

	// Message of error
	Message_ string `protobuf:"bytes,1,opt,name=message_,json=message,proto3" json:"message_,omitempty"`
	// ID of missing bottle
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowNotFoundError) Descriptor deprecated

func (*ShowNotFoundError) Descriptor() ([]byte, []int)

Deprecated: Use ShowNotFoundError.ProtoReflect.Descriptor instead.

func (*ShowNotFoundError) GetId

func (x *ShowNotFoundError) GetId() string

func (*ShowNotFoundError) GetMessage_

func (x *ShowNotFoundError) GetMessage_() string

func (*ShowNotFoundError) ProtoMessage

func (*ShowNotFoundError) ProtoMessage()

func (*ShowNotFoundError) ProtoReflect

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

func (*ShowNotFoundError) Reset

func (x *ShowNotFoundError) Reset()

func (*ShowNotFoundError) String

func (x *ShowNotFoundError) String() string

type ShowRequest

type ShowRequest struct {

	// ID of bottle to show
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowRequest) Descriptor deprecated

func (*ShowRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.

func (*ShowRequest) GetId

func (x *ShowRequest) GetId() string

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) ProtoReflect

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

func (*ShowRequest) Reset

func (x *ShowRequest) Reset()

func (*ShowRequest) String

func (x *ShowRequest) String() string

type ShowResponse

type ShowResponse struct {

	// ID is the unique id of the bottle.
	Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// Name of bottle
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Winery that produces wine
	Winery *Winery `protobuf:"bytes,3,opt,name=winery,proto3" json:"winery,omitempty"`
	// Vintage of bottle
	Vintage uint32 `protobuf:"varint,4,opt,name=vintage,proto3" json:"vintage,omitempty"`
	// Composition is the list of grape varietals and associated percentage.
	Composition []*Component `protobuf:"bytes,5,rep,name=composition,proto3" json:"composition,omitempty"`
	// Description of bottle
	Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating *uint32 `protobuf:"varint,7,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowResponse) Descriptor deprecated

func (*ShowResponse) Descriptor() ([]byte, []int)

Deprecated: Use ShowResponse.ProtoReflect.Descriptor instead.

func (*ShowResponse) GetComposition

func (x *ShowResponse) GetComposition() []*Component

func (*ShowResponse) GetDescription

func (x *ShowResponse) GetDescription() string

func (*ShowResponse) GetId

func (x *ShowResponse) GetId() string

func (*ShowResponse) GetName

func (x *ShowResponse) GetName() string

func (*ShowResponse) GetRating

func (x *ShowResponse) GetRating() uint32

func (*ShowResponse) GetVintage

func (x *ShowResponse) GetVintage() uint32

func (*ShowResponse) GetWinery

func (x *ShowResponse) GetWinery() *Winery

func (*ShowResponse) ProtoMessage

func (*ShowResponse) ProtoMessage()

func (*ShowResponse) ProtoReflect

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

func (*ShowResponse) Reset

func (x *ShowResponse) Reset()

func (*ShowResponse) String

func (x *ShowResponse) String() string

type StorageClient

type StorageClient interface {
	// List all stored bottles
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*StoredBottleCollection, error)
	// Show bottle by ID
	Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowResponse, error)
	// Add new bottle and return its ID.
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
	// Remove bottle from storage
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	// Rate bottles by IDs
	Rate(ctx context.Context, in *RateRequest, opts ...grpc.CallOption) (*RateResponse, error)
	// Add n number of bottles and return their IDs. This is a multipart request
	// and each part has field name 'bottle' and contains the encoded bottle info
	// to be added.
	MultiAdd(ctx context.Context, in *MultiAddRequest, opts ...grpc.CallOption) (*MultiAddResponse, error)
	// Update bottles with the given IDs. This is a multipart request and each part
	// has field name 'bottle' and contains the encoded bottle info to be updated.
	// The IDs in the query parameter is mapped to each part in the request.
	MultiUpdate(ctx context.Context, in *MultiUpdateRequest, opts ...grpc.CallOption) (*MultiUpdateResponse, error)
}

StorageClient is the client API for Storage service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

The storage service makes it possible to view, add or remove wine bottles.

func NewStorageClient

func NewStorageClient(cc grpc.ClientConnInterface) StorageClient

type StorageServer

type StorageServer interface {
	// List all stored bottles
	List(context.Context, *ListRequest) (*StoredBottleCollection, error)
	// Show bottle by ID
	Show(context.Context, *ShowRequest) (*ShowResponse, error)
	// Add new bottle and return its ID.
	Add(context.Context, *AddRequest) (*AddResponse, error)
	// Remove bottle from storage
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
	// Rate bottles by IDs
	Rate(context.Context, *RateRequest) (*RateResponse, error)
	// Add n number of bottles and return their IDs. This is a multipart request
	// and each part has field name 'bottle' and contains the encoded bottle info
	// to be added.
	MultiAdd(context.Context, *MultiAddRequest) (*MultiAddResponse, error)
	// Update bottles with the given IDs. This is a multipart request and each part
	// has field name 'bottle' and contains the encoded bottle info to be updated.
	// The IDs in the query parameter is mapped to each part in the request.
	MultiUpdate(context.Context, *MultiUpdateRequest) (*MultiUpdateResponse, error)
	// contains filtered or unexported methods
}

StorageServer is the server API for Storage service. All implementations must embed UnimplementedStorageServer for forward compatibility.

The storage service makes it possible to view, add or remove wine bottles.

type StoredBottle

type StoredBottle struct {

	// ID is the unique id of the bottle.
	Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// Name of bottle
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Winery that produces wine
	Winery *Winery `protobuf:"bytes,3,opt,name=winery,proto3" json:"winery,omitempty"`
	// Vintage of bottle
	Vintage uint32 `protobuf:"varint,4,opt,name=vintage,proto3" json:"vintage,omitempty"`
	// Composition is the list of grape varietals and associated percentage.
	Composition []*Component `protobuf:"bytes,5,rep,name=composition,proto3" json:"composition,omitempty"`
	// Description of bottle
	Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating *uint32 `protobuf:"varint,7,opt,name=rating,proto3,oneof" json:"rating,omitempty"`
	// contains filtered or unexported fields
}

A StoredBottle describes a bottle retrieved by the storage service.

func (*StoredBottle) Descriptor deprecated

func (*StoredBottle) Descriptor() ([]byte, []int)

Deprecated: Use StoredBottle.ProtoReflect.Descriptor instead.

func (*StoredBottle) GetComposition

func (x *StoredBottle) GetComposition() []*Component

func (*StoredBottle) GetDescription

func (x *StoredBottle) GetDescription() string

func (*StoredBottle) GetId

func (x *StoredBottle) GetId() string

func (*StoredBottle) GetName

func (x *StoredBottle) GetName() string

func (*StoredBottle) GetRating

func (x *StoredBottle) GetRating() uint32

func (*StoredBottle) GetVintage

func (x *StoredBottle) GetVintage() uint32

func (*StoredBottle) GetWinery

func (x *StoredBottle) GetWinery() *Winery

func (*StoredBottle) ProtoMessage

func (*StoredBottle) ProtoMessage()

func (*StoredBottle) ProtoReflect

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

func (*StoredBottle) Reset

func (x *StoredBottle) Reset()

func (*StoredBottle) String

func (x *StoredBottle) String() string

type StoredBottleCollection

type StoredBottleCollection struct {
	Field []*StoredBottle `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*StoredBottleCollection) Descriptor deprecated

func (*StoredBottleCollection) Descriptor() ([]byte, []int)

Deprecated: Use StoredBottleCollection.ProtoReflect.Descriptor instead.

func (*StoredBottleCollection) GetField

func (x *StoredBottleCollection) GetField() []*StoredBottle

func (*StoredBottleCollection) ProtoMessage

func (*StoredBottleCollection) ProtoMessage()

func (*StoredBottleCollection) ProtoReflect

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

func (*StoredBottleCollection) Reset

func (x *StoredBottleCollection) Reset()

func (*StoredBottleCollection) String

func (x *StoredBottleCollection) String() string

type UnimplementedStorageServer

type UnimplementedStorageServer struct{}

UnimplementedStorageServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedStorageServer) Add

func (UnimplementedStorageServer) List

func (UnimplementedStorageServer) MultiAdd

func (UnimplementedStorageServer) MultiUpdate

func (UnimplementedStorageServer) Rate

func (UnimplementedStorageServer) Remove

func (UnimplementedStorageServer) Show

type UnsafeStorageServer

type UnsafeStorageServer interface {
	// contains filtered or unexported methods
}

UnsafeStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServer will result in compilation errors.

type Winery

type Winery struct {

	// Name of winery
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Region of winery
	Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// Country of winery
	Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	// Winery website URL
	Url *string `protobuf:"bytes,4,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Winery) Descriptor deprecated

func (*Winery) Descriptor() ([]byte, []int)

Deprecated: Use Winery.ProtoReflect.Descriptor instead.

func (*Winery) GetCountry

func (x *Winery) GetCountry() string

func (*Winery) GetName

func (x *Winery) GetName() string

func (*Winery) GetRegion

func (x *Winery) GetRegion() string

func (*Winery) GetUrl

func (x *Winery) GetUrl() string

func (*Winery) ProtoMessage

func (*Winery) ProtoMessage()

func (*Winery) ProtoReflect

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

func (*Winery) Reset

func (x *Winery) Reset()

func (*Winery) String

func (x *Winery) String() string

Jump to

Keyboard shortcuts

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