From 654fca486362bde0f4083e5358adce6c60f308da Mon Sep 17 00:00:00 2001 From: Simon Tucker Date: Fri, 17 Apr 2020 18:20:46 -0700 Subject: [PATCH] Fixes the proto issue. This closes #118. --- README.md | 4 +- build.sh | 1 + proto/wantslist.pb.go | 792 ++++++++++++++++++++++++++++-------------- proto/wantslist.proto | 2 + 4 files changed, 530 insertions(+), 269 deletions(-) diff --git a/README.md b/README.md index 0f7d517..2fb0ae8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# wantslist +# Wantslist -Stores a list of wants. +Stores a list of wants in a list. [![Coverage Status](https://coveralls.io/repos/github/brotherlogic/wantslist/badge.svg?branch=master)](https://coveralls.io/github/brotherlogic/wantslist?branch=master) diff --git a/build.sh b/build.sh index b63aa3c..dcf0d16 100755 --- a/build.sh +++ b/build.sh @@ -1 +1,2 @@ protoc --proto_path ../../../ -I=./proto --go_out=plugins=grpc:./proto proto/wantslist.proto +mv proto/github.com/brotherlogic/wantslist/proto ./proto diff --git a/proto/wantslist.pb.go b/proto/wantslist.pb.go index 37c7093..d955daa 100644 --- a/proto/wantslist.pb.go +++ b/proto/wantslist.pb.go @@ -1,26 +1,33 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0-devel +// protoc (unknown) // source: wantslist.proto package wantslist import ( - fmt "fmt" + context "context" proto "github.com/golang/protobuf/proto" - context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type WantListEntry_Status int32 @@ -30,381 +37,621 @@ const ( WantListEntry_COMPLETE WantListEntry_Status = 3 ) -var WantListEntry_Status_name = map[int32]string{ - 0: "UNPROCESSED", - 1: "WANTED", - 3: "COMPLETE", -} +// Enum value maps for WantListEntry_Status. +var ( + WantListEntry_Status_name = map[int32]string{ + 0: "UNPROCESSED", + 1: "WANTED", + 3: "COMPLETE", + } + WantListEntry_Status_value = map[string]int32{ + "UNPROCESSED": 0, + "WANTED": 1, + "COMPLETE": 3, + } +) -var WantListEntry_Status_value = map[string]int32{ - "UNPROCESSED": 0, - "WANTED": 1, - "COMPLETE": 3, +func (x WantListEntry_Status) Enum() *WantListEntry_Status { + p := new(WantListEntry_Status) + *p = x + return p } func (x WantListEntry_Status) String() string { - return proto.EnumName(WantListEntry_Status_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (WantListEntry_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{1, 0} +func (WantListEntry_Status) Descriptor() protoreflect.EnumDescriptor { + return file_wantslist_proto_enumTypes[0].Descriptor() } -type Config struct { - Lists []*WantList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` - LastChange int64 `protobuf:"varint,2,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (WantListEntry_Status) Type() protoreflect.EnumType { + return &file_wantslist_proto_enumTypes[0] } -func (m *Config) Reset() { *m = Config{} } -func (m *Config) String() string { return proto.CompactTextString(m) } -func (*Config) ProtoMessage() {} -func (*Config) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{0} +func (x WantListEntry_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Config) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Config.Unmarshal(m, b) +// Deprecated: Use WantListEntry_Status.Descriptor instead. +func (WantListEntry_Status) EnumDescriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{1, 0} } -func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Config.Marshal(b, m, deterministic) + +type Config struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Lists []*WantList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` + LastChange int64 `protobuf:"varint,2,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` } -func (m *Config) XXX_Merge(src proto.Message) { - xxx_messageInfo_Config.Merge(m, src) + +func (x *Config) Reset() { + *x = Config{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Config) XXX_Size() int { - return xxx_messageInfo_Config.Size(m) + +func (x *Config) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Config) XXX_DiscardUnknown() { - xxx_messageInfo_Config.DiscardUnknown(m) + +func (*Config) ProtoMessage() {} + +func (x *Config) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Config proto.InternalMessageInfo +// Deprecated: Use Config.ProtoReflect.Descriptor instead. +func (*Config) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{0} +} -func (m *Config) GetLists() []*WantList { - if m != nil { - return m.Lists +func (x *Config) GetLists() []*WantList { + if x != nil { + return x.Lists } return nil } -func (m *Config) GetLastChange() int64 { - if m != nil { - return m.LastChange +func (x *Config) GetLastChange() int64 { + if x != nil { + return x.LastChange } return 0 } type WantListEntry struct { - Want int32 `protobuf:"varint,1,opt,name=want,proto3" json:"want,omitempty"` - Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - Status WantListEntry_Status `protobuf:"varint,3,opt,name=status,proto3,enum=wantslist.WantListEntry_Status" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WantListEntry) Reset() { *m = WantListEntry{} } -func (m *WantListEntry) String() string { return proto.CompactTextString(m) } -func (*WantListEntry) ProtoMessage() {} -func (*WantListEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{1} + Want int32 `protobuf:"varint,1,opt,name=want,proto3" json:"want,omitempty"` + Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + Status WantListEntry_Status `protobuf:"varint,3,opt,name=status,proto3,enum=wantslist.WantListEntry_Status" json:"status,omitempty"` } -func (m *WantListEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WantListEntry.Unmarshal(m, b) -} -func (m *WantListEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WantListEntry.Marshal(b, m, deterministic) -} -func (m *WantListEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_WantListEntry.Merge(m, src) +func (x *WantListEntry) Reset() { + *x = WantListEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WantListEntry) XXX_Size() int { - return xxx_messageInfo_WantListEntry.Size(m) + +func (x *WantListEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WantListEntry) XXX_DiscardUnknown() { - xxx_messageInfo_WantListEntry.DiscardUnknown(m) + +func (*WantListEntry) ProtoMessage() {} + +func (x *WantListEntry) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WantListEntry proto.InternalMessageInfo +// Deprecated: Use WantListEntry.ProtoReflect.Descriptor instead. +func (*WantListEntry) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{1} +} -func (m *WantListEntry) GetWant() int32 { - if m != nil { - return m.Want +func (x *WantListEntry) GetWant() int32 { + if x != nil { + return x.Want } return 0 } -func (m *WantListEntry) GetIndex() int32 { - if m != nil { - return m.Index +func (x *WantListEntry) GetIndex() int32 { + if x != nil { + return x.Index } return 0 } -func (m *WantListEntry) GetStatus() WantListEntry_Status { - if m != nil { - return m.Status +func (x *WantListEntry) GetStatus() WantListEntry_Status { + if x != nil { + return x.Status } return WantListEntry_UNPROCESSED } type WantList struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Wants []*WantListEntry `protobuf:"bytes,2,rep,name=wants,proto3" json:"wants,omitempty"` - LastProcessTime int64 `protobuf:"varint,3,opt,name=last_process_time,json=lastProcessTime,proto3" json:"last_process_time,omitempty"` - Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WantList) Reset() { *m = WantList{} } -func (m *WantList) String() string { return proto.CompactTextString(m) } -func (*WantList) ProtoMessage() {} -func (*WantList) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{2} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Wants []*WantListEntry `protobuf:"bytes,2,rep,name=wants,proto3" json:"wants,omitempty"` + LastProcessTime int64 `protobuf:"varint,3,opt,name=last_process_time,json=lastProcessTime,proto3" json:"last_process_time,omitempty"` + Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"` +} + +func (x *WantList) Reset() { + *x = WantList{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WantList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WantList.Unmarshal(m, b) +func (x *WantList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WantList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WantList.Marshal(b, m, deterministic) -} -func (m *WantList) XXX_Merge(src proto.Message) { - xxx_messageInfo_WantList.Merge(m, src) -} -func (m *WantList) XXX_Size() int { - return xxx_messageInfo_WantList.Size(m) -} -func (m *WantList) XXX_DiscardUnknown() { - xxx_messageInfo_WantList.DiscardUnknown(m) + +func (*WantList) ProtoMessage() {} + +func (x *WantList) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WantList proto.InternalMessageInfo +// Deprecated: Use WantList.ProtoReflect.Descriptor instead. +func (*WantList) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{2} +} -func (m *WantList) GetName() string { - if m != nil { - return m.Name +func (x *WantList) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *WantList) GetWants() []*WantListEntry { - if m != nil { - return m.Wants +func (x *WantList) GetWants() []*WantListEntry { + if x != nil { + return x.Wants } return nil } -func (m *WantList) GetLastProcessTime() int64 { - if m != nil { - return m.LastProcessTime +func (x *WantList) GetLastProcessTime() int64 { + if x != nil { + return x.LastProcessTime } return 0 } -func (m *WantList) GetYear() int32 { - if m != nil { - return m.Year +func (x *WantList) GetYear() int32 { + if x != nil { + return x.Year } return 0 } type AddWantListRequest struct { - Add *WantList `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AddWantListRequest) Reset() { *m = AddWantListRequest{} } -func (m *AddWantListRequest) String() string { return proto.CompactTextString(m) } -func (*AddWantListRequest) ProtoMessage() {} -func (*AddWantListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{3} + Add *WantList `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"` } -func (m *AddWantListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddWantListRequest.Unmarshal(m, b) -} -func (m *AddWantListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddWantListRequest.Marshal(b, m, deterministic) -} -func (m *AddWantListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddWantListRequest.Merge(m, src) +func (x *AddWantListRequest) Reset() { + *x = AddWantListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddWantListRequest) XXX_Size() int { - return xxx_messageInfo_AddWantListRequest.Size(m) + +func (x *AddWantListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddWantListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddWantListRequest.DiscardUnknown(m) + +func (*AddWantListRequest) ProtoMessage() {} + +func (x *AddWantListRequest) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AddWantListRequest proto.InternalMessageInfo +// Deprecated: Use AddWantListRequest.ProtoReflect.Descriptor instead. +func (*AddWantListRequest) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{3} +} -func (m *AddWantListRequest) GetAdd() *WantList { - if m != nil { - return m.Add +func (x *AddWantListRequest) GetAdd() *WantList { + if x != nil { + return x.Add } return nil } type AddWantListResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AddWantListResponse) Reset() { *m = AddWantListResponse{} } -func (m *AddWantListResponse) String() string { return proto.CompactTextString(m) } -func (*AddWantListResponse) ProtoMessage() {} -func (*AddWantListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{4} +func (x *AddWantListResponse) Reset() { + *x = AddWantListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AddWantListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddWantListResponse.Unmarshal(m, b) -} -func (m *AddWantListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddWantListResponse.Marshal(b, m, deterministic) -} -func (m *AddWantListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddWantListResponse.Merge(m, src) -} -func (m *AddWantListResponse) XXX_Size() int { - return xxx_messageInfo_AddWantListResponse.Size(m) -} -func (m *AddWantListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddWantListResponse.DiscardUnknown(m) +func (x *AddWantListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_AddWantListResponse proto.InternalMessageInfo +func (*AddWantListResponse) ProtoMessage() {} -type GetWantListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AddWantListResponse) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetWantListRequest) Reset() { *m = GetWantListRequest{} } -func (m *GetWantListRequest) String() string { return proto.CompactTextString(m) } -func (*GetWantListRequest) ProtoMessage() {} -func (*GetWantListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{5} +// Deprecated: Use AddWantListResponse.ProtoReflect.Descriptor instead. +func (*AddWantListResponse) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{4} } -func (m *GetWantListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetWantListRequest.Unmarshal(m, b) -} -func (m *GetWantListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetWantListRequest.Marshal(b, m, deterministic) -} -func (m *GetWantListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWantListRequest.Merge(m, src) +type GetWantListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GetWantListRequest) XXX_Size() int { - return xxx_messageInfo_GetWantListRequest.Size(m) + +func (x *GetWantListRequest) Reset() { + *x = GetWantListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetWantListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetWantListRequest.DiscardUnknown(m) + +func (x *GetWantListRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetWantListRequest proto.InternalMessageInfo +func (*GetWantListRequest) ProtoMessage() {} -type GetWantListResponse struct { - Lists []*WantList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetWantListRequest) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetWantListResponse) Reset() { *m = GetWantListResponse{} } -func (m *GetWantListResponse) String() string { return proto.CompactTextString(m) } -func (*GetWantListResponse) ProtoMessage() {} -func (*GetWantListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c74c703880358ab0, []int{6} +// Deprecated: Use GetWantListRequest.ProtoReflect.Descriptor instead. +func (*GetWantListRequest) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{5} } -func (m *GetWantListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetWantListResponse.Unmarshal(m, b) -} -func (m *GetWantListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetWantListResponse.Marshal(b, m, deterministic) +type GetWantListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Lists []*WantList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` } -func (m *GetWantListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetWantListResponse.Merge(m, src) + +func (x *GetWantListResponse) Reset() { + *x = GetWantListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wantslist_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetWantListResponse) XXX_Size() int { - return xxx_messageInfo_GetWantListResponse.Size(m) + +func (x *GetWantListResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetWantListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetWantListResponse.DiscardUnknown(m) + +func (*GetWantListResponse) ProtoMessage() {} + +func (x *GetWantListResponse) ProtoReflect() protoreflect.Message { + mi := &file_wantslist_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetWantListResponse proto.InternalMessageInfo +// Deprecated: Use GetWantListResponse.ProtoReflect.Descriptor instead. +func (*GetWantListResponse) Descriptor() ([]byte, []int) { + return file_wantslist_proto_rawDescGZIP(), []int{6} +} -func (m *GetWantListResponse) GetLists() []*WantList { - if m != nil { - return m.Lists +func (x *GetWantListResponse) GetLists() []*WantList { + if x != nil { + return x.Lists } return nil } -func init() { - proto.RegisterEnum("wantslist.WantListEntry_Status", WantListEntry_Status_name, WantListEntry_Status_value) - proto.RegisterType((*Config)(nil), "wantslist.Config") - proto.RegisterType((*WantListEntry)(nil), "wantslist.WantListEntry") - proto.RegisterType((*WantList)(nil), "wantslist.WantList") - proto.RegisterType((*AddWantListRequest)(nil), "wantslist.AddWantListRequest") - proto.RegisterType((*AddWantListResponse)(nil), "wantslist.AddWantListResponse") - proto.RegisterType((*GetWantListRequest)(nil), "wantslist.GetWantListRequest") - proto.RegisterType((*GetWantListResponse)(nil), "wantslist.GetWantListResponse") -} - -func init() { proto.RegisterFile("wantslist.proto", fileDescriptor_c74c703880358ab0) } - -var fileDescriptor_c74c703880358ab0 = []byte{ - // 409 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0xcd, 0xd6, 0xb5, 0xd5, 0x8e, 0x81, 0x84, 0x49, 0x91, 0x2c, 0x24, 0xa8, 0xb5, 0x12, 0x92, - 0xe1, 0xe0, 0x43, 0x7a, 0xe0, 0xc0, 0x85, 0xca, 0xb5, 0xb8, 0x94, 0x34, 0x5a, 0x1b, 0xf5, 0x18, - 0x2d, 0xf1, 0x12, 0x2c, 0x25, 0xeb, 0xe0, 0xdd, 0x00, 0xf9, 0x09, 0x7e, 0x83, 0x13, 0xff, 0x88, - 0x76, 0x9d, 0x84, 0x98, 0x24, 0x87, 0xde, 0xc6, 0x6f, 0xde, 0xbc, 0x79, 0xf3, 0xbc, 0xd0, 0xfd, - 0xc1, 0xa5, 0x56, 0xb3, 0x52, 0xe9, 0x78, 0x51, 0x57, 0xba, 0xc2, 0xf3, 0x2d, 0x40, 0x73, 0xf0, - 0x92, 0x4a, 0x7e, 0x29, 0xa7, 0xf8, 0x1a, 0x5c, 0x83, 0xa8, 0x80, 0x84, 0x4e, 0xe4, 0x0f, 0xfa, - 0xf1, 0xbf, 0xa9, 0x7b, 0x2e, 0xf5, 0x6d, 0xa9, 0x34, 0x6b, 0x18, 0x78, 0x09, 0xfe, 0x8c, 0x2b, - 0x3d, 0x9e, 0x7c, 0xe5, 0x72, 0x2a, 0x82, 0x93, 0x90, 0x44, 0x0e, 0x03, 0x03, 0x25, 0x16, 0xa1, - 0xbf, 0x09, 0x3c, 0xde, 0x0c, 0xa5, 0x52, 0xd7, 0x2b, 0x44, 0x38, 0x35, 0x7a, 0x01, 0x09, 0x49, - 0xe4, 0x32, 0x5b, 0xe3, 0x05, 0xb8, 0xa5, 0x2c, 0xc4, 0x4f, 0x2b, 0xe0, 0xb2, 0xe6, 0x03, 0xdf, - 0x82, 0xa7, 0x34, 0xd7, 0x4b, 0x15, 0x38, 0x21, 0x89, 0x9e, 0x0c, 0x2e, 0x0f, 0x18, 0xb1, 0x9a, - 0x71, 0x66, 0x69, 0x6c, 0x4d, 0xa7, 0x57, 0xe0, 0x35, 0x08, 0x76, 0xc1, 0xff, 0x34, 0x1c, 0xb1, - 0xbb, 0x24, 0xcd, 0xb2, 0xf4, 0xa6, 0xd7, 0x41, 0x00, 0xef, 0xfe, 0x7a, 0x98, 0xa7, 0x37, 0x3d, - 0x82, 0x8f, 0xe0, 0x2c, 0xb9, 0xfb, 0x38, 0xba, 0x4d, 0xf3, 0xb4, 0xe7, 0xd0, 0x5f, 0x04, 0xce, - 0x36, 0xaa, 0xc6, 0xa4, 0xe4, 0x73, 0x61, 0x4d, 0x9e, 0x33, 0x5b, 0x63, 0x0c, 0xae, 0xdd, 0x1f, - 0x9c, 0xd8, 0x58, 0x82, 0x63, 0x6e, 0x58, 0x43, 0xc3, 0x37, 0xf0, 0xd4, 0x66, 0xb3, 0xa8, 0xab, - 0x89, 0x50, 0x6a, 0xac, 0xcb, 0xb9, 0xb0, 0x97, 0x38, 0xac, 0x6b, 0x1a, 0xa3, 0x06, 0xcf, 0xcb, - 0xb9, 0x30, 0xfb, 0x56, 0x82, 0xd7, 0xc1, 0x69, 0x13, 0x8a, 0xa9, 0xe9, 0x3b, 0xc0, 0xeb, 0xa2, - 0xd8, 0x26, 0x2e, 0xbe, 0x2d, 0x85, 0xd2, 0xf8, 0x0a, 0x1c, 0x5e, 0x14, 0xd6, 0xd8, 0x91, 0x5f, - 0x63, 0xfa, 0xf4, 0x19, 0xf4, 0x5b, 0xc3, 0x6a, 0x51, 0x49, 0x25, 0xe8, 0x05, 0xe0, 0x07, 0xa1, - 0xff, 0xd3, 0xa4, 0xef, 0xa1, 0xdf, 0x42, 0x1b, 0xf2, 0x03, 0xde, 0xc1, 0xe0, 0x0f, 0x01, 0xdf, - 0x60, 0x99, 0xa8, 0xbf, 0x97, 0x13, 0x81, 0x43, 0xf0, 0x77, 0xd6, 0xe3, 0x8b, 0x9d, 0xd1, 0xfd, - 0x9b, 0x9e, 0xbf, 0x3c, 0xd6, 0x5e, 0xbb, 0xee, 0x18, 0xbd, 0x1d, 0x87, 0x2d, 0xbd, 0xfd, 0x7b, - 0x5a, 0x7a, 0x07, 0x0e, 0xa3, 0x9d, 0xcf, 0x9e, 0x7d, 0xfe, 0x57, 0x7f, 0x03, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x09, 0xaa, 0x0d, 0x11, 0x03, 0x00, 0x00, +var File_wantslist_proto protoreflect.FileDescriptor + +var file_wantslist_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x06, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, + 0x74, 0x2e, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x6c, 0x69, 0x73, 0x74, + 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x0d, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x77, 0x61, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x37, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, + 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57, 0x61, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x33, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x41, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, + 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x8e, 0x01, 0x0a, + 0x08, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, + 0x05, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, + 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, + 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x22, 0x3b, 0x0a, + 0x12, 0x41, 0x64, 0x64, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57, 0x61, 0x6e, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x03, 0x61, 0x64, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x41, 0x64, + 0x64, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x40, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x61, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x32, 0xad, 0x01, 0x0a, 0x0b, 0x57, 0x61, + 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0b, 0x41, 0x64, 0x64, + 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, + 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, + 0x69, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, + 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, + 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x61, 0x6e, 0x74, 0x73, 0x6c, + 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_wantslist_proto_rawDescOnce sync.Once + file_wantslist_proto_rawDescData = file_wantslist_proto_rawDesc +) + +func file_wantslist_proto_rawDescGZIP() []byte { + file_wantslist_proto_rawDescOnce.Do(func() { + file_wantslist_proto_rawDescData = protoimpl.X.CompressGZIP(file_wantslist_proto_rawDescData) + }) + return file_wantslist_proto_rawDescData +} + +var file_wantslist_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_wantslist_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_wantslist_proto_goTypes = []interface{}{ + (WantListEntry_Status)(0), // 0: wantslist.WantListEntry.Status + (*Config)(nil), // 1: wantslist.Config + (*WantListEntry)(nil), // 2: wantslist.WantListEntry + (*WantList)(nil), // 3: wantslist.WantList + (*AddWantListRequest)(nil), // 4: wantslist.AddWantListRequest + (*AddWantListResponse)(nil), // 5: wantslist.AddWantListResponse + (*GetWantListRequest)(nil), // 6: wantslist.GetWantListRequest + (*GetWantListResponse)(nil), // 7: wantslist.GetWantListResponse +} +var file_wantslist_proto_depIdxs = []int32{ + 3, // 0: wantslist.Config.lists:type_name -> wantslist.WantList + 0, // 1: wantslist.WantListEntry.status:type_name -> wantslist.WantListEntry.Status + 2, // 2: wantslist.WantList.wants:type_name -> wantslist.WantListEntry + 3, // 3: wantslist.AddWantListRequest.add:type_name -> wantslist.WantList + 3, // 4: wantslist.GetWantListResponse.lists:type_name -> wantslist.WantList + 4, // 5: wantslist.WantService.AddWantList:input_type -> wantslist.AddWantListRequest + 6, // 6: wantslist.WantService.GetWantList:input_type -> wantslist.GetWantListRequest + 5, // 7: wantslist.WantService.AddWantList:output_type -> wantslist.AddWantListResponse + 7, // 8: wantslist.WantService.GetWantList:output_type -> wantslist.GetWantListResponse + 7, // [7:9] is the sub-list for method output_type + 5, // [5:7] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_wantslist_proto_init() } +func file_wantslist_proto_init() { + if File_wantslist_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_wantslist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Config); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WantListEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WantList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddWantListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddWantListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWantListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wantslist_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetWantListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wantslist_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_wantslist_proto_goTypes, + DependencyIndexes: file_wantslist_proto_depIdxs, + EnumInfos: file_wantslist_proto_enumTypes, + MessageInfos: file_wantslist_proto_msgTypes, + }.Build() + File_wantslist_proto = out.File + file_wantslist_proto_rawDesc = nil + file_wantslist_proto_goTypes = nil + file_wantslist_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // WantServiceClient is the client API for WantService service. // @@ -415,10 +662,10 @@ type WantServiceClient interface { } type wantServiceClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewWantServiceClient(cc *grpc.ClientConn) WantServiceClient { +func NewWantServiceClient(cc grpc.ClientConnInterface) WantServiceClient { return &wantServiceClient{cc} } @@ -446,6 +693,17 @@ type WantServiceServer interface { GetWantList(context.Context, *GetWantListRequest) (*GetWantListResponse, error) } +// UnimplementedWantServiceServer can be embedded to have forward compatible implementations. +type UnimplementedWantServiceServer struct { +} + +func (*UnimplementedWantServiceServer) AddWantList(context.Context, *AddWantListRequest) (*AddWantListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddWantList not implemented") +} +func (*UnimplementedWantServiceServer) GetWantList(context.Context, *GetWantListRequest) (*GetWantListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWantList not implemented") +} + func RegisterWantServiceServer(s *grpc.Server, srv WantServiceServer) { s.RegisterService(&_WantService_serviceDesc, srv) } diff --git a/proto/wantslist.proto b/proto/wantslist.proto index 9134af7..2fc5480 100644 --- a/proto/wantslist.proto +++ b/proto/wantslist.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wantslist; +option go_package = "github.com/brotherlogic/wantslist/proto"; + message Config { repeated WantList lists = 1; int64 last_change = 2;