storagepb

package
v2.0.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStorageServer

func RegisterStorageServer(s *grpc.Server, 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" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating               uint32   `protobuf:"varint,6,opt,name=rating,proto3" json:"rating,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddRequest) Descriptor

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

func (*AddRequest) GetComposition

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

func (*AddRequest) GetDescription

func (m *AddRequest) GetDescription() string

func (*AddRequest) GetName

func (m *AddRequest) GetName() string

func (*AddRequest) GetRating

func (m *AddRequest) GetRating() uint32

func (*AddRequest) GetVintage

func (m *AddRequest) GetVintage() uint32

func (*AddRequest) GetWinery

func (m *AddRequest) GetWinery() *Winery

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) Reset

func (m *AddRequest) Reset()

func (*AddRequest) String

func (m *AddRequest) String() string

func (*AddRequest) XXX_DiscardUnknown

func (m *AddRequest) XXX_DiscardUnknown()

func (*AddRequest) XXX_Marshal

func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddRequest) XXX_Merge

func (m *AddRequest) XXX_Merge(src proto.Message)

func (*AddRequest) XXX_Size

func (m *AddRequest) XXX_Size() int

func (*AddRequest) XXX_Unmarshal

func (m *AddRequest) XXX_Unmarshal(b []byte) error

type AddResponse

type AddResponse struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddResponse) Descriptor

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

func (*AddResponse) GetField

func (m *AddResponse) GetField() string

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) Reset

func (m *AddResponse) Reset()

func (*AddResponse) String

func (m *AddResponse) String() string

func (*AddResponse) XXX_DiscardUnknown

func (m *AddResponse) XXX_DiscardUnknown()

func (*AddResponse) XXX_Marshal

func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddResponse) XXX_Merge

func (m *AddResponse) XXX_Merge(src proto.Message)

func (*AddResponse) XXX_Size

func (m *AddResponse) XXX_Size() int

func (*AddResponse) XXX_Unmarshal

func (m *AddResponse) XXX_Unmarshal(b []byte) error

type ArrayOfString

type ArrayOfString struct {
	Field                []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ArrayOfString) Descriptor

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

func (*ArrayOfString) GetField

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

func (*ArrayOfString) ProtoMessage

func (*ArrayOfString) ProtoMessage()

func (*ArrayOfString) Reset

func (m *ArrayOfString) Reset()

func (*ArrayOfString) String

func (m *ArrayOfString) String() string

func (*ArrayOfString) XXX_DiscardUnknown

func (m *ArrayOfString) XXX_DiscardUnknown()

func (*ArrayOfString) XXX_Marshal

func (m *ArrayOfString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArrayOfString) XXX_Merge

func (m *ArrayOfString) XXX_Merge(src proto.Message)

func (*ArrayOfString) XXX_Size

func (m *ArrayOfString) XXX_Size() int

func (*ArrayOfString) XXX_Unmarshal

func (m *ArrayOfString) XXX_Unmarshal(b []byte) error

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" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating               uint32   `protobuf:"varint,6,opt,name=rating,proto3" json:"rating,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Bottle describes a bottle of wine to be stored.

func (*Bottle) Descriptor

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

func (*Bottle) GetComposition

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

func (*Bottle) GetDescription

func (m *Bottle) GetDescription() string

func (*Bottle) GetName

func (m *Bottle) GetName() string

func (*Bottle) GetRating

func (m *Bottle) GetRating() uint32

func (*Bottle) GetVintage

func (m *Bottle) GetVintage() uint32

func (*Bottle) GetWinery

func (m *Bottle) GetWinery() *Winery

func (*Bottle) ProtoMessage

func (*Bottle) ProtoMessage()

func (*Bottle) Reset

func (m *Bottle) Reset()

func (*Bottle) String

func (m *Bottle) String() string

func (*Bottle) XXX_DiscardUnknown

func (m *Bottle) XXX_DiscardUnknown()

func (*Bottle) XXX_Marshal

func (m *Bottle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bottle) XXX_Merge

func (m *Bottle) XXX_Merge(src proto.Message)

func (*Bottle) XXX_Size

func (m *Bottle) XXX_Size() int

func (*Bottle) XXX_Unmarshal

func (m *Bottle) XXX_Unmarshal(b []byte) error

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" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Component) Descriptor

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

func (*Component) GetPercentage

func (m *Component) GetPercentage() uint32

func (*Component) GetVarietal

func (m *Component) GetVarietal() string

func (*Component) ProtoMessage

func (*Component) ProtoMessage()

func (*Component) Reset

func (m *Component) Reset()

func (*Component) String

func (m *Component) String() string

func (*Component) XXX_DiscardUnknown

func (m *Component) XXX_DiscardUnknown()

func (*Component) XXX_Marshal

func (m *Component) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Component) XXX_Merge

func (m *Component) XXX_Merge(src proto.Message)

func (*Component) XXX_Size

func (m *Component) XXX_Size() int

func (*Component) XXX_Unmarshal

func (m *Component) XXX_Unmarshal(b []byte) error

type ListRequest

type ListRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor

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

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal

func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRequest) XXX_Merge

func (m *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_Size

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal

func (m *ListRequest) XXX_Unmarshal(b []byte) error

type MultiAddRequest

type MultiAddRequest struct {
	Field                []*Bottle `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MultiAddRequest) Descriptor

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

func (*MultiAddRequest) GetField

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

func (*MultiAddRequest) ProtoMessage

func (*MultiAddRequest) ProtoMessage()

func (*MultiAddRequest) Reset

func (m *MultiAddRequest) Reset()

func (*MultiAddRequest) String

func (m *MultiAddRequest) String() string

func (*MultiAddRequest) XXX_DiscardUnknown

func (m *MultiAddRequest) XXX_DiscardUnknown()

func (*MultiAddRequest) XXX_Marshal

func (m *MultiAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiAddRequest) XXX_Merge

func (m *MultiAddRequest) XXX_Merge(src proto.Message)

func (*MultiAddRequest) XXX_Size

func (m *MultiAddRequest) XXX_Size() int

func (*MultiAddRequest) XXX_Unmarshal

func (m *MultiAddRequest) XXX_Unmarshal(b []byte) error

type MultiAddResponse

type MultiAddResponse struct {
	Field                []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MultiAddResponse) Descriptor

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

func (*MultiAddResponse) GetField

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

func (*MultiAddResponse) ProtoMessage

func (*MultiAddResponse) ProtoMessage()

func (*MultiAddResponse) Reset

func (m *MultiAddResponse) Reset()

func (*MultiAddResponse) String

func (m *MultiAddResponse) String() string

func (*MultiAddResponse) XXX_DiscardUnknown

func (m *MultiAddResponse) XXX_DiscardUnknown()

func (*MultiAddResponse) XXX_Marshal

func (m *MultiAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiAddResponse) XXX_Merge

func (m *MultiAddResponse) XXX_Merge(src proto.Message)

func (*MultiAddResponse) XXX_Size

func (m *MultiAddResponse) XXX_Size() int

func (*MultiAddResponse) XXX_Unmarshal

func (m *MultiAddResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MultiUpdateRequest) Descriptor

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

func (*MultiUpdateRequest) GetBottles

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

func (*MultiUpdateRequest) GetIds

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

func (*MultiUpdateRequest) ProtoMessage

func (*MultiUpdateRequest) ProtoMessage()

func (*MultiUpdateRequest) Reset

func (m *MultiUpdateRequest) Reset()

func (*MultiUpdateRequest) String

func (m *MultiUpdateRequest) String() string

func (*MultiUpdateRequest) XXX_DiscardUnknown

func (m *MultiUpdateRequest) XXX_DiscardUnknown()

func (*MultiUpdateRequest) XXX_Marshal

func (m *MultiUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiUpdateRequest) XXX_Merge

func (m *MultiUpdateRequest) XXX_Merge(src proto.Message)

func (*MultiUpdateRequest) XXX_Size

func (m *MultiUpdateRequest) XXX_Size() int

func (*MultiUpdateRequest) XXX_Unmarshal

func (m *MultiUpdateRequest) XXX_Unmarshal(b []byte) error

type MultiUpdateResponse

type MultiUpdateResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MultiUpdateResponse) Descriptor

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

func (*MultiUpdateResponse) ProtoMessage

func (*MultiUpdateResponse) ProtoMessage()

func (*MultiUpdateResponse) Reset

func (m *MultiUpdateResponse) Reset()

func (*MultiUpdateResponse) String

func (m *MultiUpdateResponse) String() string

func (*MultiUpdateResponse) XXX_DiscardUnknown

func (m *MultiUpdateResponse) XXX_DiscardUnknown()

func (*MultiUpdateResponse) XXX_Marshal

func (m *MultiUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiUpdateResponse) XXX_Merge

func (m *MultiUpdateResponse) XXX_Merge(src proto.Message)

func (*MultiUpdateResponse) XXX_Size

func (m *MultiUpdateResponse) XXX_Size() int

func (*MultiUpdateResponse) XXX_Unmarshal

func (m *MultiUpdateResponse) XXX_Unmarshal(b []byte) error

type RateRequest

type RateRequest struct {
	Field                map[uint32]*ArrayOfString `` /* 152-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*RateRequest) Descriptor

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

func (*RateRequest) GetField

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

func (*RateRequest) ProtoMessage

func (*RateRequest) ProtoMessage()

func (*RateRequest) Reset

func (m *RateRequest) Reset()

func (*RateRequest) String

func (m *RateRequest) String() string

func (*RateRequest) XXX_DiscardUnknown

func (m *RateRequest) XXX_DiscardUnknown()

func (*RateRequest) XXX_Marshal

func (m *RateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RateRequest) XXX_Merge

func (m *RateRequest) XXX_Merge(src proto.Message)

func (*RateRequest) XXX_Size

func (m *RateRequest) XXX_Size() int

func (*RateRequest) XXX_Unmarshal

func (m *RateRequest) XXX_Unmarshal(b []byte) error

type RateResponse

type RateResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RateResponse) Descriptor

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

func (*RateResponse) ProtoMessage

func (*RateResponse) ProtoMessage()

func (*RateResponse) Reset

func (m *RateResponse) Reset()

func (*RateResponse) String

func (m *RateResponse) String() string

func (*RateResponse) XXX_DiscardUnknown

func (m *RateResponse) XXX_DiscardUnknown()

func (*RateResponse) XXX_Marshal

func (m *RateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RateResponse) XXX_Merge

func (m *RateResponse) XXX_Merge(src proto.Message)

func (*RateResponse) XXX_Size

func (m *RateResponse) XXX_Size() int

func (*RateResponse) XXX_Unmarshal

func (m *RateResponse) XXX_Unmarshal(b []byte) error

type RemoveRequest

type RemoveRequest struct {
	// ID of bottle to remove
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveRequest) Descriptor

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

func (*RemoveRequest) GetId

func (m *RemoveRequest) GetId() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) Reset

func (m *RemoveRequest) Reset()

func (*RemoveRequest) String

func (m *RemoveRequest) String() string

func (*RemoveRequest) XXX_DiscardUnknown

func (m *RemoveRequest) XXX_DiscardUnknown()

func (*RemoveRequest) XXX_Marshal

func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveRequest) XXX_Merge

func (m *RemoveRequest) XXX_Merge(src proto.Message)

func (*RemoveRequest) XXX_Size

func (m *RemoveRequest) XXX_Size() int

func (*RemoveRequest) XXX_Unmarshal

func (m *RemoveRequest) XXX_Unmarshal(b []byte) error

type RemoveResponse

type RemoveResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveResponse) Descriptor

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

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) Reset

func (m *RemoveResponse) Reset()

func (*RemoveResponse) String

func (m *RemoveResponse) String() string

func (*RemoveResponse) XXX_DiscardUnknown

func (m *RemoveResponse) XXX_DiscardUnknown()

func (*RemoveResponse) XXX_Marshal

func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveResponse) XXX_Merge

func (m *RemoveResponse) XXX_Merge(src proto.Message)

func (*RemoveResponse) XXX_Size

func (m *RemoveResponse) XXX_Size() int

func (*RemoveResponse) XXX_Unmarshal

func (m *RemoveResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShowNotFoundError) Descriptor

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

func (*ShowNotFoundError) GetId

func (m *ShowNotFoundError) GetId() string

func (*ShowNotFoundError) GetMessage_

func (m *ShowNotFoundError) GetMessage_() string

func (*ShowNotFoundError) ProtoMessage

func (*ShowNotFoundError) ProtoMessage()

func (*ShowNotFoundError) Reset

func (m *ShowNotFoundError) Reset()

func (*ShowNotFoundError) String

func (m *ShowNotFoundError) String() string

func (*ShowNotFoundError) XXX_DiscardUnknown

func (m *ShowNotFoundError) XXX_DiscardUnknown()

func (*ShowNotFoundError) XXX_Marshal

func (m *ShowNotFoundError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShowNotFoundError) XXX_Merge

func (m *ShowNotFoundError) XXX_Merge(src proto.Message)

func (*ShowNotFoundError) XXX_Size

func (m *ShowNotFoundError) XXX_Size() int

func (*ShowNotFoundError) XXX_Unmarshal

func (m *ShowNotFoundError) XXX_Unmarshal(b []byte) error

type ShowRequest

type ShowRequest struct {
	// ID of bottle to show
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShowRequest) Descriptor

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

func (*ShowRequest) GetId

func (m *ShowRequest) GetId() string

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) Reset

func (m *ShowRequest) Reset()

func (*ShowRequest) String

func (m *ShowRequest) String() string

func (*ShowRequest) XXX_DiscardUnknown

func (m *ShowRequest) XXX_DiscardUnknown()

func (*ShowRequest) XXX_Marshal

func (m *ShowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShowRequest) XXX_Merge

func (m *ShowRequest) XXX_Merge(src proto.Message)

func (*ShowRequest) XXX_Size

func (m *ShowRequest) XXX_Size() int

func (*ShowRequest) XXX_Unmarshal

func (m *ShowRequest) XXX_Unmarshal(b []byte) error

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" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating               uint32   `protobuf:"varint,7,opt,name=rating,proto3" json:"rating,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShowResponse) Descriptor

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

func (*ShowResponse) GetComposition

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

func (*ShowResponse) GetDescription

func (m *ShowResponse) GetDescription() string

func (*ShowResponse) GetId

func (m *ShowResponse) GetId() string

func (*ShowResponse) GetName

func (m *ShowResponse) GetName() string

func (*ShowResponse) GetRating

func (m *ShowResponse) GetRating() uint32

func (*ShowResponse) GetVintage

func (m *ShowResponse) GetVintage() uint32

func (*ShowResponse) GetWinery

func (m *ShowResponse) GetWinery() *Winery

func (*ShowResponse) ProtoMessage

func (*ShowResponse) ProtoMessage()

func (*ShowResponse) Reset

func (m *ShowResponse) Reset()

func (*ShowResponse) String

func (m *ShowResponse) String() string

func (*ShowResponse) XXX_DiscardUnknown

func (m *ShowResponse) XXX_DiscardUnknown()

func (*ShowResponse) XXX_Marshal

func (m *ShowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShowResponse) XXX_Merge

func (m *ShowResponse) XXX_Merge(src proto.Message)

func (*ShowResponse) XXX_Size

func (m *ShowResponse) XXX_Size() int

func (*ShowResponse) XXX_Unmarshal

func (m *ShowResponse) XXX_Unmarshal(b []byte) error

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStorageClient

func NewStorageClient(cc *grpc.ClientConn) 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)
}

StorageServer is the server API for Storage service.

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" json:"description,omitempty"`
	// Rating of bottle from 1 (worst) to 5 (best)
	Rating               uint32   `protobuf:"varint,7,opt,name=rating,proto3" json:"rating,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A StoredBottle describes a bottle retrieved by the storage service.

func (*StoredBottle) Descriptor

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

func (*StoredBottle) GetComposition

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

func (*StoredBottle) GetDescription

func (m *StoredBottle) GetDescription() string

func (*StoredBottle) GetId

func (m *StoredBottle) GetId() string

func (*StoredBottle) GetName

func (m *StoredBottle) GetName() string

func (*StoredBottle) GetRating

func (m *StoredBottle) GetRating() uint32

func (*StoredBottle) GetVintage

func (m *StoredBottle) GetVintage() uint32

func (*StoredBottle) GetWinery

func (m *StoredBottle) GetWinery() *Winery

func (*StoredBottle) ProtoMessage

func (*StoredBottle) ProtoMessage()

func (*StoredBottle) Reset

func (m *StoredBottle) Reset()

func (*StoredBottle) String

func (m *StoredBottle) String() string

func (*StoredBottle) XXX_DiscardUnknown

func (m *StoredBottle) XXX_DiscardUnknown()

func (*StoredBottle) XXX_Marshal

func (m *StoredBottle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoredBottle) XXX_Merge

func (m *StoredBottle) XXX_Merge(src proto.Message)

func (*StoredBottle) XXX_Size

func (m *StoredBottle) XXX_Size() int

func (*StoredBottle) XXX_Unmarshal

func (m *StoredBottle) XXX_Unmarshal(b []byte) error

type StoredBottleCollection

type StoredBottleCollection struct {
	Field                []*StoredBottle `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*StoredBottleCollection) Descriptor

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

func (*StoredBottleCollection) GetField

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

func (*StoredBottleCollection) ProtoMessage

func (*StoredBottleCollection) ProtoMessage()

func (*StoredBottleCollection) Reset

func (m *StoredBottleCollection) Reset()

func (*StoredBottleCollection) String

func (m *StoredBottleCollection) String() string

func (*StoredBottleCollection) XXX_DiscardUnknown

func (m *StoredBottleCollection) XXX_DiscardUnknown()

func (*StoredBottleCollection) XXX_Marshal

func (m *StoredBottleCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoredBottleCollection) XXX_Merge

func (m *StoredBottleCollection) XXX_Merge(src proto.Message)

func (*StoredBottleCollection) XXX_Size

func (m *StoredBottleCollection) XXX_Size() int

func (*StoredBottleCollection) XXX_Unmarshal

func (m *StoredBottleCollection) XXX_Unmarshal(b []byte) error

type UnimplementedStorageServer

type UnimplementedStorageServer struct {
}

UnimplementedStorageServer can be embedded to have forward compatible implementations.

func (*UnimplementedStorageServer) Add

func (*UnimplementedStorageServer) List

func (*UnimplementedStorageServer) MultiAdd

func (*UnimplementedStorageServer) MultiUpdate

func (*UnimplementedStorageServer) Rate

func (*UnimplementedStorageServer) Remove

func (*UnimplementedStorageServer) Show

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" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Winery) Descriptor

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

func (*Winery) GetCountry

func (m *Winery) GetCountry() string

func (*Winery) GetName

func (m *Winery) GetName() string

func (*Winery) GetRegion

func (m *Winery) GetRegion() string

func (*Winery) GetUrl

func (m *Winery) GetUrl() string

func (*Winery) ProtoMessage

func (*Winery) ProtoMessage()

func (*Winery) Reset

func (m *Winery) Reset()

func (*Winery) String

func (m *Winery) String() string

func (*Winery) XXX_DiscardUnknown

func (m *Winery) XXX_DiscardUnknown()

func (*Winery) XXX_Marshal

func (m *Winery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Winery) XXX_Merge

func (m *Winery) XXX_Merge(src proto.Message)

func (*Winery) XXX_Size

func (m *Winery) XXX_Size() int

func (*Winery) XXX_Unmarshal

func (m *Winery) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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