testv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentService_Index_FullMethodName     = "/vanguard.test.v1.ContentService/Index"
	ContentService_Upload_FullMethodName    = "/vanguard.test.v1.ContentService/Upload"
	ContentService_Download_FullMethodName  = "/vanguard.test.v1.ContentService/Download"
	ContentService_Subscribe_FullMethodName = "/vanguard.test.v1.ContentService/Subscribe"
)
View Source
const (
	LibraryService_GetBook_FullMethodName       = "/vanguard.test.v1.LibraryService/GetBook"
	LibraryService_CreateBook_FullMethodName    = "/vanguard.test.v1.LibraryService/CreateBook"
	LibraryService_ListBooks_FullMethodName     = "/vanguard.test.v1.LibraryService/ListBooks"
	LibraryService_CreateShelf_FullMethodName   = "/vanguard.test.v1.LibraryService/CreateShelf"
	LibraryService_UpdateBook_FullMethodName    = "/vanguard.test.v1.LibraryService/UpdateBook"
	LibraryService_DeleteBook_FullMethodName    = "/vanguard.test.v1.LibraryService/DeleteBook"
	LibraryService_SearchBooks_FullMethodName   = "/vanguard.test.v1.LibraryService/SearchBooks"
	LibraryService_MoveBooks_FullMethodName     = "/vanguard.test.v1.LibraryService/MoveBooks"
	LibraryService_CheckoutBooks_FullMethodName = "/vanguard.test.v1.LibraryService/CheckoutBooks"
	LibraryService_ReturnBooks_FullMethodName   = "/vanguard.test.v1.LibraryService/ReturnBooks"
	LibraryService_GetCheckout_FullMethodName   = "/vanguard.test.v1.LibraryService/GetCheckout"
	LibraryService_ListCheckouts_FullMethodName = "/vanguard.test.v1.LibraryService/ListCheckouts"
)

Variables

View Source
var (
	ParameterValues_Enum_name = map[int32]string{
		0: "ENUM_UNSPECIFIED",
		1: "ENUM_VALUE",
	}
	ParameterValues_Enum_value = map[string]int32{
		"ENUM_UNSPECIFIED": 0,
		"ENUM_VALUE":       1,
	}
)

Enum value maps for ParameterValues_Enum.

View Source
var (
	ParameterValues_Nested_Enum_name = map[int32]string{
		0: "ENUM_UNSPECIFIED",
		1: "ENUM_VALUE",
	}
	ParameterValues_Nested_Enum_value = map[string]int32{
		"ENUM_UNSPECIFIED": 0,
		"ENUM_VALUE":       1,
	}
)

Enum value maps for ParameterValues_Nested_Enum.

View Source
var (
	AllTypes_Enum_name = map[int32]string{
		0: "ENUM_UNSPECIFIED",
		1: "ENUM_ONE",
		2: "ENUM_TWO",
	}
	AllTypes_Enum_value = map[string]int32{
		"ENUM_UNSPECIFIED": 0,
		"ENUM_ONE":         1,
		"ENUM_TWO":         2,
	}
)

Enum value maps for AllTypes_Enum.

View Source
var ContentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vanguard.test.v1.ContentService",
	HandlerType: (*ContentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Index",
			Handler:    _ContentService_Index_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Upload",
			Handler:       _ContentService_Upload_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "Download",
			Handler:       _ContentService_Download_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Subscribe",
			Handler:       _ContentService_Subscribe_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "vanguard/test/v1/content.proto",
}

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

View Source
var File_vanguard_test_v1_content_proto protoreflect.FileDescriptor
View Source
var File_vanguard_test_v1_library_proto protoreflect.FileDescriptor
View Source
var File_vanguard_test_v1_test_proto protoreflect.FileDescriptor
View Source
var LibraryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vanguard.test.v1.LibraryService",
	HandlerType: (*LibraryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBook",
			Handler:    _LibraryService_GetBook_Handler,
		},
		{
			MethodName: "CreateBook",
			Handler:    _LibraryService_CreateBook_Handler,
		},
		{
			MethodName: "ListBooks",
			Handler:    _LibraryService_ListBooks_Handler,
		},
		{
			MethodName: "CreateShelf",
			Handler:    _LibraryService_CreateShelf_Handler,
		},
		{
			MethodName: "UpdateBook",
			Handler:    _LibraryService_UpdateBook_Handler,
		},
		{
			MethodName: "DeleteBook",
			Handler:    _LibraryService_DeleteBook_Handler,
		},
		{
			MethodName: "SearchBooks",
			Handler:    _LibraryService_SearchBooks_Handler,
		},
		{
			MethodName: "MoveBooks",
			Handler:    _LibraryService_MoveBooks_Handler,
		},
		{
			MethodName: "CheckoutBooks",
			Handler:    _LibraryService_CheckoutBooks_Handler,
		},
		{
			MethodName: "ReturnBooks",
			Handler:    _LibraryService_ReturnBooks_Handler,
		},
		{
			MethodName: "GetCheckout",
			Handler:    _LibraryService_GetCheckout_Handler,
		},
		{
			MethodName: "ListCheckouts",
			Handler:    _LibraryService_ListCheckouts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vanguard/test/v1/library.proto",
}

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

Functions

func RegisterContentServiceServer

func RegisterContentServiceServer(s grpc.ServiceRegistrar, srv ContentServiceServer)

func RegisterLibraryServiceServer

func RegisterLibraryServiceServer(s grpc.ServiceRegistrar, srv LibraryServiceServer)

Types

type AllTypes

type AllTypes struct {

	// scalar types
	DoubleValue   float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	FloatValue    float32 `protobuf:"fixed32,2,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	Int32Value    int32   `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value    int64   `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value   uint32  `protobuf:"varint,5,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value   uint64  `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value   int32   `protobuf:"zigzag32,7,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value   int64   `protobuf:"zigzag64,8,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	Fixed32Value  uint32  `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	Fixed64Value  uint64  `protobuf:"fixed64,10,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed32Value int32   `protobuf:"fixed32,11,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value int64   `protobuf:"fixed64,12,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	BoolValue     bool    `protobuf:"varint,13,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue   string  `protobuf:"bytes,14,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue    []byte  `protobuf:"bytes,15,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	// repeated types
	DoubleList   []float64 `protobuf:"fixed64,16,rep,packed,name=double_list,json=doubleList,proto3" json:"double_list,omitempty"`
	FloatList    []float32 `protobuf:"fixed32,17,rep,packed,name=float_list,json=floatList,proto3" json:"float_list,omitempty"`
	Int32List    []int32   `protobuf:"varint,18,rep,packed,name=int32_list,json=int32List,proto3" json:"int32_list,omitempty"`
	Int64List    []int64   `protobuf:"varint,19,rep,packed,name=int64_list,json=int64List,proto3" json:"int64_list,omitempty"`
	Uint32List   []uint32  `protobuf:"varint,20,rep,packed,name=uint32_list,json=uint32List,proto3" json:"uint32_list,omitempty"`
	Uint64List   []uint64  `protobuf:"varint,21,rep,packed,name=uint64_list,json=uint64List,proto3" json:"uint64_list,omitempty"`
	Sint32List   []int32   `protobuf:"zigzag32,22,rep,packed,name=sint32_list,json=sint32List,proto3" json:"sint32_list,omitempty"`
	Sint64List   []int64   `protobuf:"zigzag64,23,rep,packed,name=sint64_list,json=sint64List,proto3" json:"sint64_list,omitempty"`
	Fixed32List  []uint32  `protobuf:"fixed32,24,rep,packed,name=fixed32_list,json=fixed32List,proto3" json:"fixed32_list,omitempty"`
	Fixed64List  []uint64  `protobuf:"fixed64,25,rep,packed,name=fixed64_list,json=fixed64List,proto3" json:"fixed64_list,omitempty"`
	Sfixed32List []int32   `protobuf:"fixed32,26,rep,packed,name=sfixed32_list,json=sfixed32List,proto3" json:"sfixed32_list,omitempty"`
	Sfixed64List []int64   `protobuf:"fixed64,27,rep,packed,name=sfixed64_list,json=sfixed64List,proto3" json:"sfixed64_list,omitempty"`
	BoolList     []bool    `protobuf:"varint,28,rep,packed,name=bool_list,json=boolList,proto3" json:"bool_list,omitempty"`
	StringList   []string  `protobuf:"bytes,29,rep,name=string_list,json=stringList,proto3" json:"string_list,omitempty"`
	BytesList    [][]byte  `protobuf:"bytes,30,rep,name=bytes_list,json=bytesList,proto3" json:"bytes_list,omitempty"`
	// map key types
	Int32ToStringMap    map[int32]string  `` /* 203-byte string literal not displayed */
	Int64ToStringMap    map[int64]string  `` /* 203-byte string literal not displayed */
	Uint32ToStringMap   map[uint32]string `` /* 206-byte string literal not displayed */
	Uint64ToStringMap   map[uint64]string `` /* 206-byte string literal not displayed */
	Sint32ToStringMap   map[int32]string  `` /* 208-byte string literal not displayed */
	Sint64ToStringMap   map[int64]string  `` /* 208-byte string literal not displayed */
	Fixed32ToStringMap  map[uint32]string `` /* 210-byte string literal not displayed */
	Fixed64ToStringMap  map[uint64]string `` /* 210-byte string literal not displayed */
	Sfixed32ToStringMap map[int32]string  `` /* 213-byte string literal not displayed */
	Sfixed64ToStringMap map[int64]string  `` /* 213-byte string literal not displayed */
	BoolToStringMap     map[bool]string   `` /* 200-byte string literal not displayed */
	StringToStringMap   map[string]string `` /* 205-byte string literal not displayed */
	// map value types
	DoubleMap   map[string]float64 `` /* 179-byte string literal not displayed */
	FloatMap    map[string]float32 `` /* 176-byte string literal not displayed */
	Int32Map    map[string]int32   `` /* 175-byte string literal not displayed */
	Int64Map    map[string]int64   `` /* 175-byte string literal not displayed */
	Uint32Map   map[string]uint32  `` /* 178-byte string literal not displayed */
	Uint64Map   map[string]uint64  `` /* 178-byte string literal not displayed */
	Sint32Map   map[string]int32   `` /* 180-byte string literal not displayed */
	Sint64Map   map[string]int64   `` /* 180-byte string literal not displayed */
	Fixed32Map  map[string]uint32  `` /* 182-byte string literal not displayed */
	Fixed64Map  map[string]uint64  `` /* 182-byte string literal not displayed */
	Sfixed32Map map[string]int32   `` /* 185-byte string literal not displayed */
	Sfixed64Map map[string]int64   `` /* 185-byte string literal not displayed */
	BoolMap     map[string]bool    `` /* 172-byte string literal not displayed */
	StringMap   map[string]string  `` /* 177-byte string literal not displayed */
	BytesMap    map[string][]byte  `` /* 174-byte string literal not displayed */
	// explicit presence types
	OptDoubleValue   *float64                 `protobuf:"fixed64,58,opt,name=opt_double_value,json=optDoubleValue,proto3,oneof" json:"opt_double_value,omitempty"`
	OptFloatValue    *float32                 `protobuf:"fixed32,59,opt,name=opt_float_value,json=optFloatValue,proto3,oneof" json:"opt_float_value,omitempty"`
	OptInt32Value    *int32                   `protobuf:"varint,60,opt,name=opt_int32_value,json=optInt32Value,proto3,oneof" json:"opt_int32_value,omitempty"`
	OptInt64Value    *int64                   `protobuf:"varint,61,opt,name=opt_int64_value,json=optInt64Value,proto3,oneof" json:"opt_int64_value,omitempty"`
	OptUint32Value   *uint32                  `protobuf:"varint,62,opt,name=opt_uint32_value,json=optUint32Value,proto3,oneof" json:"opt_uint32_value,omitempty"`
	OptUint64Value   *uint64                  `protobuf:"varint,63,opt,name=opt_uint64_value,json=optUint64Value,proto3,oneof" json:"opt_uint64_value,omitempty"`
	OptSint32Value   *int32                   `protobuf:"zigzag32,64,opt,name=opt_sint32_value,json=optSint32Value,proto3,oneof" json:"opt_sint32_value,omitempty"`
	OptSint64Value   *int64                   `protobuf:"zigzag64,65,opt,name=opt_sint64_value,json=optSint64Value,proto3,oneof" json:"opt_sint64_value,omitempty"`
	OptFixed32Value  *uint32                  `protobuf:"fixed32,66,opt,name=opt_fixed32_value,json=optFixed32Value,proto3,oneof" json:"opt_fixed32_value,omitempty"`
	OptFixed64Value  *uint64                  `protobuf:"fixed64,67,opt,name=opt_fixed64_value,json=optFixed64Value,proto3,oneof" json:"opt_fixed64_value,omitempty"`
	OptSfixed32Value *int32                   `protobuf:"fixed32,68,opt,name=opt_sfixed32_value,json=optSfixed32Value,proto3,oneof" json:"opt_sfixed32_value,omitempty"`
	OptSfixed64Value *int64                   `protobuf:"fixed64,69,opt,name=opt_sfixed64_value,json=optSfixed64Value,proto3,oneof" json:"opt_sfixed64_value,omitempty"`
	OptBoolValue     *bool                    `protobuf:"varint,70,opt,name=opt_bool_value,json=optBoolValue,proto3,oneof" json:"opt_bool_value,omitempty"`
	OptStringValue   *string                  `protobuf:"bytes,71,opt,name=opt_string_value,json=optStringValue,proto3,oneof" json:"opt_string_value,omitempty"`
	OptBytesValue    []byte                   `protobuf:"bytes,72,opt,name=opt_bytes_value,json=optBytesValue,proto3,oneof" json:"opt_bytes_value,omitempty"`
	MsgValue         *AllTypes                `protobuf:"bytes,73,opt,name=msg_value,json=msgValue,proto3" json:"msg_value,omitempty"`
	EnumValue        AllTypes_Enum            `` /* 126-byte string literal not displayed */
	OptMsgValue      *AllTypes                `protobuf:"bytes,75,opt,name=opt_msg_value,json=optMsgValue,proto3,oneof" json:"opt_msg_value,omitempty"`
	OptEnumValue     *AllTypes_Enum           `` /* 143-byte string literal not displayed */
	MsgList          []*AllTypes              `protobuf:"bytes,77,rep,name=msg_list,json=msgList,proto3" json:"msg_list,omitempty"`
	EnumList         []AllTypes_Enum          `` /* 130-byte string literal not displayed */
	MsgMap           map[string]*AllTypes     `` /* 168-byte string literal not displayed */
	EnumMap          map[string]AllTypes_Enum `` /* 208-byte string literal not displayed */
	// oneof
	//
	// Types that are assignable to Option:
	//
	//	*AllTypes_DoubleOption
	//	*AllTypes_FloatOption
	//	*AllTypes_Int32Option
	//	*AllTypes_Int64Option
	//	*AllTypes_Uint32Option
	//	*AllTypes_Uint64Option
	//	*AllTypes_Sint32Option
	//	*AllTypes_Sint64Option
	//	*AllTypes_Fixed32Option
	//	*AllTypes_Fixed64Option
	//	*AllTypes_Sfixed32Option
	//	*AllTypes_Sfixed64Option
	//	*AllTypes_BoolOption
	//	*AllTypes_StringOption
	//	*AllTypes_BytesOption
	//	*AllTypes_MsgOption
	//	*AllTypes_EnumOption
	Option isAllTypes_Option `protobuf_oneof:"option"`
	// contains filtered or unexported fields
}

func (*AllTypes) Descriptor deprecated

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

Deprecated: Use AllTypes.ProtoReflect.Descriptor instead.

func (*AllTypes) GetBoolList

func (x *AllTypes) GetBoolList() []bool

func (*AllTypes) GetBoolMap

func (x *AllTypes) GetBoolMap() map[string]bool

func (*AllTypes) GetBoolOption

func (x *AllTypes) GetBoolOption() bool

func (*AllTypes) GetBoolToStringMap

func (x *AllTypes) GetBoolToStringMap() map[bool]string

func (*AllTypes) GetBoolValue

func (x *AllTypes) GetBoolValue() bool

func (*AllTypes) GetBytesList

func (x *AllTypes) GetBytesList() [][]byte

func (*AllTypes) GetBytesMap

func (x *AllTypes) GetBytesMap() map[string][]byte

func (*AllTypes) GetBytesOption

func (x *AllTypes) GetBytesOption() []byte

func (*AllTypes) GetBytesValue

func (x *AllTypes) GetBytesValue() []byte

func (*AllTypes) GetDoubleList

func (x *AllTypes) GetDoubleList() []float64

func (*AllTypes) GetDoubleMap

func (x *AllTypes) GetDoubleMap() map[string]float64

func (*AllTypes) GetDoubleOption

func (x *AllTypes) GetDoubleOption() float64

func (*AllTypes) GetDoubleValue

func (x *AllTypes) GetDoubleValue() float64

func (*AllTypes) GetEnumList

func (x *AllTypes) GetEnumList() []AllTypes_Enum

func (*AllTypes) GetEnumMap

func (x *AllTypes) GetEnumMap() map[string]AllTypes_Enum

func (*AllTypes) GetEnumOption

func (x *AllTypes) GetEnumOption() AllTypes_Enum

func (*AllTypes) GetEnumValue

func (x *AllTypes) GetEnumValue() AllTypes_Enum

func (*AllTypes) GetFixed32List

func (x *AllTypes) GetFixed32List() []uint32

func (*AllTypes) GetFixed32Map

func (x *AllTypes) GetFixed32Map() map[string]uint32

func (*AllTypes) GetFixed32Option

func (x *AllTypes) GetFixed32Option() uint32

func (*AllTypes) GetFixed32ToStringMap

func (x *AllTypes) GetFixed32ToStringMap() map[uint32]string

func (*AllTypes) GetFixed32Value

func (x *AllTypes) GetFixed32Value() uint32

func (*AllTypes) GetFixed64List

func (x *AllTypes) GetFixed64List() []uint64

func (*AllTypes) GetFixed64Map

func (x *AllTypes) GetFixed64Map() map[string]uint64

func (*AllTypes) GetFixed64Option

func (x *AllTypes) GetFixed64Option() uint64

func (*AllTypes) GetFixed64ToStringMap

func (x *AllTypes) GetFixed64ToStringMap() map[uint64]string

func (*AllTypes) GetFixed64Value

func (x *AllTypes) GetFixed64Value() uint64

func (*AllTypes) GetFloatList

func (x *AllTypes) GetFloatList() []float32

func (*AllTypes) GetFloatMap

func (x *AllTypes) GetFloatMap() map[string]float32

func (*AllTypes) GetFloatOption

func (x *AllTypes) GetFloatOption() float32

func (*AllTypes) GetFloatValue

func (x *AllTypes) GetFloatValue() float32

func (*AllTypes) GetInt32List

func (x *AllTypes) GetInt32List() []int32

func (*AllTypes) GetInt32Map

func (x *AllTypes) GetInt32Map() map[string]int32

func (*AllTypes) GetInt32Option

func (x *AllTypes) GetInt32Option() int32

func (*AllTypes) GetInt32ToStringMap

func (x *AllTypes) GetInt32ToStringMap() map[int32]string

func (*AllTypes) GetInt32Value

func (x *AllTypes) GetInt32Value() int32

func (*AllTypes) GetInt64List

func (x *AllTypes) GetInt64List() []int64

func (*AllTypes) GetInt64Map

func (x *AllTypes) GetInt64Map() map[string]int64

func (*AllTypes) GetInt64Option

func (x *AllTypes) GetInt64Option() int64

func (*AllTypes) GetInt64ToStringMap

func (x *AllTypes) GetInt64ToStringMap() map[int64]string

func (*AllTypes) GetInt64Value

func (x *AllTypes) GetInt64Value() int64

func (*AllTypes) GetMsgList

func (x *AllTypes) GetMsgList() []*AllTypes

func (*AllTypes) GetMsgMap

func (x *AllTypes) GetMsgMap() map[string]*AllTypes

func (*AllTypes) GetMsgOption

func (x *AllTypes) GetMsgOption() *AllTypes

func (*AllTypes) GetMsgValue

func (x *AllTypes) GetMsgValue() *AllTypes

func (*AllTypes) GetOptBoolValue

func (x *AllTypes) GetOptBoolValue() bool

func (*AllTypes) GetOptBytesValue

func (x *AllTypes) GetOptBytesValue() []byte

func (*AllTypes) GetOptDoubleValue

func (x *AllTypes) GetOptDoubleValue() float64

func (*AllTypes) GetOptEnumValue

func (x *AllTypes) GetOptEnumValue() AllTypes_Enum

func (*AllTypes) GetOptFixed32Value

func (x *AllTypes) GetOptFixed32Value() uint32

func (*AllTypes) GetOptFixed64Value

func (x *AllTypes) GetOptFixed64Value() uint64

func (*AllTypes) GetOptFloatValue

func (x *AllTypes) GetOptFloatValue() float32

func (*AllTypes) GetOptInt32Value

func (x *AllTypes) GetOptInt32Value() int32

func (*AllTypes) GetOptInt64Value

func (x *AllTypes) GetOptInt64Value() int64

func (*AllTypes) GetOptMsgValue

func (x *AllTypes) GetOptMsgValue() *AllTypes

func (*AllTypes) GetOptSfixed32Value

func (x *AllTypes) GetOptSfixed32Value() int32

func (*AllTypes) GetOptSfixed64Value

func (x *AllTypes) GetOptSfixed64Value() int64

func (*AllTypes) GetOptSint32Value

func (x *AllTypes) GetOptSint32Value() int32

func (*AllTypes) GetOptSint64Value

func (x *AllTypes) GetOptSint64Value() int64

func (*AllTypes) GetOptStringValue

func (x *AllTypes) GetOptStringValue() string

func (*AllTypes) GetOptUint32Value

func (x *AllTypes) GetOptUint32Value() uint32

func (*AllTypes) GetOptUint64Value

func (x *AllTypes) GetOptUint64Value() uint64

func (*AllTypes) GetOption

func (m *AllTypes) GetOption() isAllTypes_Option

func (*AllTypes) GetSfixed32List

func (x *AllTypes) GetSfixed32List() []int32

func (*AllTypes) GetSfixed32Map

func (x *AllTypes) GetSfixed32Map() map[string]int32

func (*AllTypes) GetSfixed32Option

func (x *AllTypes) GetSfixed32Option() int32

func (*AllTypes) GetSfixed32ToStringMap

func (x *AllTypes) GetSfixed32ToStringMap() map[int32]string

func (*AllTypes) GetSfixed32Value

func (x *AllTypes) GetSfixed32Value() int32

func (*AllTypes) GetSfixed64List

func (x *AllTypes) GetSfixed64List() []int64

func (*AllTypes) GetSfixed64Map

func (x *AllTypes) GetSfixed64Map() map[string]int64

func (*AllTypes) GetSfixed64Option

func (x *AllTypes) GetSfixed64Option() int64

func (*AllTypes) GetSfixed64ToStringMap

func (x *AllTypes) GetSfixed64ToStringMap() map[int64]string

func (*AllTypes) GetSfixed64Value

func (x *AllTypes) GetSfixed64Value() int64

func (*AllTypes) GetSint32List

func (x *AllTypes) GetSint32List() []int32

func (*AllTypes) GetSint32Map

func (x *AllTypes) GetSint32Map() map[string]int32

func (*AllTypes) GetSint32Option

func (x *AllTypes) GetSint32Option() int32

func (*AllTypes) GetSint32ToStringMap

func (x *AllTypes) GetSint32ToStringMap() map[int32]string

func (*AllTypes) GetSint32Value

func (x *AllTypes) GetSint32Value() int32

func (*AllTypes) GetSint64List

func (x *AllTypes) GetSint64List() []int64

func (*AllTypes) GetSint64Map

func (x *AllTypes) GetSint64Map() map[string]int64

func (*AllTypes) GetSint64Option

func (x *AllTypes) GetSint64Option() int64

func (*AllTypes) GetSint64ToStringMap

func (x *AllTypes) GetSint64ToStringMap() map[int64]string

func (*AllTypes) GetSint64Value

func (x *AllTypes) GetSint64Value() int64

func (*AllTypes) GetStringList

func (x *AllTypes) GetStringList() []string

func (*AllTypes) GetStringMap

func (x *AllTypes) GetStringMap() map[string]string

func (*AllTypes) GetStringOption

func (x *AllTypes) GetStringOption() string

func (*AllTypes) GetStringToStringMap

func (x *AllTypes) GetStringToStringMap() map[string]string

func (*AllTypes) GetStringValue

func (x *AllTypes) GetStringValue() string

func (*AllTypes) GetUint32List

func (x *AllTypes) GetUint32List() []uint32

func (*AllTypes) GetUint32Map

func (x *AllTypes) GetUint32Map() map[string]uint32

func (*AllTypes) GetUint32Option

func (x *AllTypes) GetUint32Option() uint32

func (*AllTypes) GetUint32ToStringMap

func (x *AllTypes) GetUint32ToStringMap() map[uint32]string

func (*AllTypes) GetUint32Value

func (x *AllTypes) GetUint32Value() uint32

func (*AllTypes) GetUint64List

func (x *AllTypes) GetUint64List() []uint64

func (*AllTypes) GetUint64Map

func (x *AllTypes) GetUint64Map() map[string]uint64

func (*AllTypes) GetUint64Option

func (x *AllTypes) GetUint64Option() uint64

func (*AllTypes) GetUint64ToStringMap

func (x *AllTypes) GetUint64ToStringMap() map[uint64]string

func (*AllTypes) GetUint64Value

func (x *AllTypes) GetUint64Value() uint64

func (*AllTypes) ProtoMessage

func (*AllTypes) ProtoMessage()

func (*AllTypes) ProtoReflect

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

func (*AllTypes) Reset

func (x *AllTypes) Reset()

func (*AllTypes) String

func (x *AllTypes) String() string

type AllTypes_BoolOption

type AllTypes_BoolOption struct {
	BoolOption bool `protobuf:"varint,93,opt,name=bool_option,json=boolOption,proto3,oneof"`
}

type AllTypes_BytesOption

type AllTypes_BytesOption struct {
	BytesOption []byte `protobuf:"bytes,95,opt,name=bytes_option,json=bytesOption,proto3,oneof"`
}

type AllTypes_DoubleOption

type AllTypes_DoubleOption struct {
	DoubleOption float64 `protobuf:"fixed64,81,opt,name=double_option,json=doubleOption,proto3,oneof"`
}

type AllTypes_Enum

type AllTypes_Enum int32

named types

const (
	AllTypes_ENUM_UNSPECIFIED AllTypes_Enum = 0
	AllTypes_ENUM_ONE         AllTypes_Enum = 1
	AllTypes_ENUM_TWO         AllTypes_Enum = 2
)

func (AllTypes_Enum) Descriptor

func (AllTypes_Enum) Enum

func (x AllTypes_Enum) Enum() *AllTypes_Enum

func (AllTypes_Enum) EnumDescriptor deprecated

func (AllTypes_Enum) EnumDescriptor() ([]byte, []int)

Deprecated: Use AllTypes_Enum.Descriptor instead.

func (AllTypes_Enum) Number

func (AllTypes_Enum) String

func (x AllTypes_Enum) String() string

func (AllTypes_Enum) Type

type AllTypes_EnumOption

type AllTypes_EnumOption struct {
	EnumOption AllTypes_Enum `protobuf:"varint,97,opt,name=enum_option,json=enumOption,proto3,enum=vanguard.test.v1.AllTypes_Enum,oneof"`
}

type AllTypes_Fixed32Option

type AllTypes_Fixed32Option struct {
	Fixed32Option uint32 `protobuf:"fixed32,89,opt,name=fixed32_option,json=fixed32Option,proto3,oneof"`
}

type AllTypes_Fixed64Option

type AllTypes_Fixed64Option struct {
	Fixed64Option uint64 `protobuf:"fixed64,90,opt,name=fixed64_option,json=fixed64Option,proto3,oneof"`
}

type AllTypes_FloatOption

type AllTypes_FloatOption struct {
	FloatOption float32 `protobuf:"fixed32,82,opt,name=float_option,json=floatOption,proto3,oneof"`
}

type AllTypes_Int32Option

type AllTypes_Int32Option struct {
	Int32Option int32 `protobuf:"varint,83,opt,name=int32_option,json=int32Option,proto3,oneof"`
}

type AllTypes_Int64Option

type AllTypes_Int64Option struct {
	Int64Option int64 `protobuf:"varint,84,opt,name=int64_option,json=int64Option,proto3,oneof"`
}

type AllTypes_MsgOption

type AllTypes_MsgOption struct {
	MsgOption *AllTypes `protobuf:"bytes,96,opt,name=msg_option,json=msgOption,proto3,oneof"`
}

type AllTypes_Sfixed32Option

type AllTypes_Sfixed32Option struct {
	Sfixed32Option int32 `protobuf:"fixed32,91,opt,name=sfixed32_option,json=sfixed32Option,proto3,oneof"`
}

type AllTypes_Sfixed64Option

type AllTypes_Sfixed64Option struct {
	Sfixed64Option int64 `protobuf:"fixed64,92,opt,name=sfixed64_option,json=sfixed64Option,proto3,oneof"`
}

type AllTypes_Sint32Option

type AllTypes_Sint32Option struct {
	Sint32Option int32 `protobuf:"zigzag32,87,opt,name=sint32_option,json=sint32Option,proto3,oneof"`
}

type AllTypes_Sint64Option

type AllTypes_Sint64Option struct {
	Sint64Option int64 `protobuf:"zigzag64,88,opt,name=sint64_option,json=sint64Option,proto3,oneof"`
}

type AllTypes_StringOption

type AllTypes_StringOption struct {
	StringOption string `protobuf:"bytes,94,opt,name=string_option,json=stringOption,proto3,oneof"`
}

type AllTypes_Uint32Option

type AllTypes_Uint32Option struct {
	Uint32Option uint32 `protobuf:"varint,85,opt,name=uint32_option,json=uint32Option,proto3,oneof"`
}

type AllTypes_Uint64Option

type AllTypes_Uint64Option struct {
	Uint64Option uint64 `protobuf:"varint,86,opt,name=uint64_option,json=uint64Option,proto3,oneof"`
}

type Book

type Book struct {

	// Resource name of the book. It must have the format of "shelves/*/books/*".
	// For example: "shelves/shelf1/books/book2".
	Name       string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Parent     string                 `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The title of the book.
	Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	// The name of the author.
	Author string `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty"`
	// The description of the book.
	Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels to represent user provided metadata.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Book) Descriptor deprecated

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAuthor

func (x *Book) GetAuthor() string

func (*Book) GetCreateTime

func (x *Book) GetCreateTime() *timestamppb.Timestamp

func (*Book) GetDescription

func (x *Book) GetDescription() string

func (*Book) GetLabels

func (x *Book) GetLabels() map[string]string

func (*Book) GetName

func (x *Book) GetName() string

func (*Book) GetParent

func (x *Book) GetParent() string

func (*Book) GetTitle

func (x *Book) GetTitle() string

func (*Book) GetUpdateTime

func (x *Book) GetUpdateTime() *timestamppb.Timestamp

func (*Book) ProtoMessage

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) String

func (x *Book) String() string

type Checkout

type Checkout struct {
	Id    uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Books []*Book `protobuf:"bytes,2,rep,name=books,proto3" json:"books,omitempty"`
	// contains filtered or unexported fields
}

func (*Checkout) Descriptor deprecated

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

Deprecated: Use Checkout.ProtoReflect.Descriptor instead.

func (*Checkout) GetBooks

func (x *Checkout) GetBooks() []*Book

func (*Checkout) GetId

func (x *Checkout) GetId() uint64

func (*Checkout) ProtoMessage

func (*Checkout) ProtoMessage()

func (*Checkout) ProtoReflect

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

func (*Checkout) Reset

func (x *Checkout) Reset()

func (*Checkout) String

func (x *Checkout) String() string

type CheckoutBooksRequest

type CheckoutBooksRequest struct {
	BookNames []string `protobuf:"bytes,2,rep,name=book_names,json=bookNames,proto3" json:"book_names,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutBooksRequest) Descriptor deprecated

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

Deprecated: Use CheckoutBooksRequest.ProtoReflect.Descriptor instead.

func (*CheckoutBooksRequest) GetBookNames

func (x *CheckoutBooksRequest) GetBookNames() []string

func (*CheckoutBooksRequest) ProtoMessage

func (*CheckoutBooksRequest) ProtoMessage()

func (*CheckoutBooksRequest) ProtoReflect

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

func (*CheckoutBooksRequest) Reset

func (x *CheckoutBooksRequest) Reset()

func (*CheckoutBooksRequest) String

func (x *CheckoutBooksRequest) String() string

type ContentServiceClient

type ContentServiceClient interface {
	// Index returns a html index page at the given path.
	Index(ctx context.Context, in *IndexRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
	// Upload a file to the given path.
	Upload(ctx context.Context, opts ...grpc.CallOption) (ContentService_UploadClient, error)
	// Download a file from the given path.
	Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (ContentService_DownloadClient, error)
	// Subscribe to updates for changes to content.
	Subscribe(ctx context.Context, opts ...grpc.CallOption) (ContentService_SubscribeClient, error)
}

ContentServiceClient is the client API for ContentService 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.

type ContentServiceServer

type ContentServiceServer interface {
	// Index returns a html index page at the given path.
	Index(context.Context, *IndexRequest) (*httpbody.HttpBody, error)
	// Upload a file to the given path.
	Upload(ContentService_UploadServer) error
	// Download a file from the given path.
	Download(*DownloadRequest, ContentService_DownloadServer) error
	// Subscribe to updates for changes to content.
	Subscribe(ContentService_SubscribeServer) error
	// contains filtered or unexported methods
}

ContentServiceServer is the server API for ContentService service. All implementations must embed UnimplementedContentServiceServer for forward compatibility

type ContentService_DownloadClient

type ContentService_DownloadClient interface {
	Recv() (*DownloadResponse, error)
	grpc.ClientStream
}

type ContentService_DownloadServer

type ContentService_DownloadServer interface {
	Send(*DownloadResponse) error
	grpc.ServerStream
}

type ContentService_SubscribeClient

type ContentService_SubscribeClient interface {
	Send(*SubscribeRequest) error
	Recv() (*SubscribeResponse, error)
	grpc.ClientStream
}

type ContentService_SubscribeServer

type ContentService_SubscribeServer interface {
	Send(*SubscribeResponse) error
	Recv() (*SubscribeRequest, error)
	grpc.ServerStream
}

type ContentService_UploadClient

type ContentService_UploadClient interface {
	Send(*UploadRequest) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type ContentService_UploadServer

type ContentService_UploadServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*UploadRequest, error)
	grpc.ServerStream
}

type CreateBookRequest

type CreateBookRequest struct {

	// Resource name of the parent resource where to create the book.
	// For example: "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The book id to use for this book.
	BookId string `protobuf:"bytes,3,opt,name=book_id,json=bookId,proto3" json:"book_id,omitempty"`
	// The Book resource to be created. Client must not set the `Book.name` field.
	Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"`
	// A unique request ID for server to detect duplicated requests.
	RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBookRequest) Descriptor deprecated

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

Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead.

func (*CreateBookRequest) GetBook

func (x *CreateBookRequest) GetBook() *Book

func (*CreateBookRequest) GetBookId

func (x *CreateBookRequest) GetBookId() string

func (*CreateBookRequest) GetParent

func (x *CreateBookRequest) GetParent() string

func (*CreateBookRequest) GetRequestId

func (x *CreateBookRequest) GetRequestId() string

func (*CreateBookRequest) ProtoMessage

func (*CreateBookRequest) ProtoMessage()

func (*CreateBookRequest) ProtoReflect

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

func (*CreateBookRequest) Reset

func (x *CreateBookRequest) Reset()

func (*CreateBookRequest) String

func (x *CreateBookRequest) String() string

type CreateShelfRequest

type CreateShelfRequest struct {
	Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShelfRequest) Descriptor deprecated

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

Deprecated: Use CreateShelfRequest.ProtoReflect.Descriptor instead.

func (*CreateShelfRequest) GetShelf

func (x *CreateShelfRequest) GetShelf() *Shelf

func (*CreateShelfRequest) ProtoMessage

func (*CreateShelfRequest) ProtoMessage()

func (*CreateShelfRequest) ProtoReflect

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

func (*CreateShelfRequest) Reset

func (x *CreateShelfRequest) Reset()

func (*CreateShelfRequest) String

func (x *CreateShelfRequest) String() string

type DeleteBookRequest

type DeleteBookRequest struct {

	// The resource name of the book to be deleted, for example:
	// "shelves/shelf1/books/book2"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBookRequest) Descriptor deprecated

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

Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteBookRequest) GetName

func (x *DeleteBookRequest) GetName() string

func (*DeleteBookRequest) ProtoMessage

func (*DeleteBookRequest) ProtoMessage()

func (*DeleteBookRequest) ProtoReflect

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

func (*DeleteBookRequest) Reset

func (x *DeleteBookRequest) Reset()

func (*DeleteBookRequest) String

func (x *DeleteBookRequest) String() string

type DownloadRequest

type DownloadRequest struct {

	// The path to the file to download.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadRequest) Descriptor deprecated

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

Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead.

func (*DownloadRequest) GetFilename

func (x *DownloadRequest) GetFilename() string

func (*DownloadRequest) ProtoMessage

func (*DownloadRequest) ProtoMessage()

func (*DownloadRequest) ProtoReflect

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

func (*DownloadRequest) Reset

func (x *DownloadRequest) Reset()

func (*DownloadRequest) String

func (x *DownloadRequest) String() string

type DownloadResponse

type DownloadResponse struct {

	// The file contents.
	File *httpbody.HttpBody `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadResponse) Descriptor deprecated

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

Deprecated: Use DownloadResponse.ProtoReflect.Descriptor instead.

func (*DownloadResponse) GetFile

func (x *DownloadResponse) GetFile() *httpbody.HttpBody

func (*DownloadResponse) ProtoMessage

func (*DownloadResponse) ProtoMessage()

func (*DownloadResponse) ProtoReflect

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

func (*DownloadResponse) Reset

func (x *DownloadResponse) Reset()

func (*DownloadResponse) String

func (x *DownloadResponse) String() string

type GetBookRequest

type GetBookRequest struct {

	// Resource name of a book. For example: "shelves/shelf1/books/book2".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBookRequest) Descriptor deprecated

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

Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.

func (*GetBookRequest) GetName

func (x *GetBookRequest) GetName() string

func (*GetBookRequest) ProtoMessage

func (*GetBookRequest) ProtoMessage()

func (*GetBookRequest) ProtoReflect

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

func (*GetBookRequest) Reset

func (x *GetBookRequest) Reset()

func (*GetBookRequest) String

func (x *GetBookRequest) String() string

type GetCheckoutRequest

type GetCheckoutRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCheckoutRequest) Descriptor deprecated

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

Deprecated: Use GetCheckoutRequest.ProtoReflect.Descriptor instead.

func (*GetCheckoutRequest) GetId

func (x *GetCheckoutRequest) GetId() uint64

func (*GetCheckoutRequest) ProtoMessage

func (*GetCheckoutRequest) ProtoMessage()

func (*GetCheckoutRequest) ProtoReflect

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

func (*GetCheckoutRequest) Reset

func (x *GetCheckoutRequest) Reset()

func (*GetCheckoutRequest) String

func (x *GetCheckoutRequest) String() string

type IndexRequest

type IndexRequest struct {

	// The path to the page to index.
	Page string `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexRequest) Descriptor deprecated

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

Deprecated: Use IndexRequest.ProtoReflect.Descriptor instead.

func (*IndexRequest) GetPage

func (x *IndexRequest) GetPage() string

func (*IndexRequest) ProtoMessage

func (*IndexRequest) ProtoMessage()

func (*IndexRequest) ProtoReflect

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

func (*IndexRequest) Reset

func (x *IndexRequest) Reset()

func (*IndexRequest) String

func (x *IndexRequest) String() string

type LibraryServiceClient

type LibraryServiceClient interface {
	// Gets a book.
	GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error)
	// Creates a book, and returns the new Book.
	CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error)
	// Lists books in a shelf.
	ListBooks(ctx context.Context, in *ListBooksRequest, opts ...grpc.CallOption) (*ListBooksResponse, error)
	// Creates a shelf.
	CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*Shelf, error)
	// Updates a book.
	UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error)
	// Deletes a book.
	DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Search books in a shelf.
	SearchBooks(ctx context.Context, in *SearchBooksRequest, opts ...grpc.CallOption) (*SearchBooksResponse, error)
	MoveBooks(ctx context.Context, in *MoveBooksRequest, opts ...grpc.CallOption) (*MoveBooksResponse, error)
	CheckoutBooks(ctx context.Context, in *CheckoutBooksRequest, opts ...grpc.CallOption) (*Checkout, error)
	ReturnBooks(ctx context.Context, in *ReturnBooksRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetCheckout(ctx context.Context, in *GetCheckoutRequest, opts ...grpc.CallOption) (*Checkout, error)
	ListCheckouts(ctx context.Context, in *ListCheckoutsRequest, opts ...grpc.CallOption) (*ListCheckoutsResponse, error)
}

LibraryServiceClient is the client API for LibraryService 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.

type LibraryServiceServer

type LibraryServiceServer interface {
	// Gets a book.
	GetBook(context.Context, *GetBookRequest) (*Book, error)
	// Creates a book, and returns the new Book.
	CreateBook(context.Context, *CreateBookRequest) (*Book, error)
	// Lists books in a shelf.
	ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)
	// Creates a shelf.
	CreateShelf(context.Context, *CreateShelfRequest) (*Shelf, error)
	// Updates a book.
	UpdateBook(context.Context, *UpdateBookRequest) (*Book, error)
	// Deletes a book.
	DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error)
	// Search books in a shelf.
	SearchBooks(context.Context, *SearchBooksRequest) (*SearchBooksResponse, error)
	MoveBooks(context.Context, *MoveBooksRequest) (*MoveBooksResponse, error)
	CheckoutBooks(context.Context, *CheckoutBooksRequest) (*Checkout, error)
	ReturnBooks(context.Context, *ReturnBooksRequest) (*emptypb.Empty, error)
	GetCheckout(context.Context, *GetCheckoutRequest) (*Checkout, error)
	ListCheckouts(context.Context, *ListCheckoutsRequest) (*ListCheckoutsResponse, error)
	// contains filtered or unexported methods
}

LibraryServiceServer is the server API for LibraryService service. All implementations must embed UnimplementedLibraryServiceServer for forward compatibility

type ListBooksRequest

type ListBooksRequest struct {

	// The parent resource name, for example, "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksRequest) Descriptor deprecated

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

Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead.

func (*ListBooksRequest) GetPageSize

func (x *ListBooksRequest) GetPageSize() int32

func (*ListBooksRequest) GetPageToken

func (x *ListBooksRequest) GetPageToken() string

func (*ListBooksRequest) GetParent

func (x *ListBooksRequest) GetParent() string

func (*ListBooksRequest) ProtoMessage

func (*ListBooksRequest) ProtoMessage()

func (*ListBooksRequest) ProtoReflect

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

func (*ListBooksRequest) Reset

func (x *ListBooksRequest) Reset()

func (*ListBooksRequest) String

func (x *ListBooksRequest) String() string

type ListBooksResponse

type ListBooksResponse struct {

	// The field name should match the noun "books" in the method name.  There
	// will be a maximum number of items returned based on the page_size field
	// in the request.
	Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksResponse) Descriptor deprecated

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

Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.

func (*ListBooksResponse) GetBooks

func (x *ListBooksResponse) GetBooks() []*Book

func (*ListBooksResponse) GetNextPageToken

func (x *ListBooksResponse) GetNextPageToken() string

func (*ListBooksResponse) ProtoMessage

func (*ListBooksResponse) ProtoMessage()

func (*ListBooksResponse) ProtoReflect

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

func (*ListBooksResponse) Reset

func (x *ListBooksResponse) Reset()

func (*ListBooksResponse) String

func (x *ListBooksResponse) String() string

type ListCheckoutsRequest

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

func (*ListCheckoutsRequest) Descriptor deprecated

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

Deprecated: Use ListCheckoutsRequest.ProtoReflect.Descriptor instead.

func (*ListCheckoutsRequest) GetName

func (x *ListCheckoutsRequest) GetName() string

func (*ListCheckoutsRequest) ProtoMessage

func (*ListCheckoutsRequest) ProtoMessage()

func (*ListCheckoutsRequest) ProtoReflect

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

func (*ListCheckoutsRequest) Reset

func (x *ListCheckoutsRequest) Reset()

func (*ListCheckoutsRequest) String

func (x *ListCheckoutsRequest) String() string

type ListCheckoutsResponse

type ListCheckoutsResponse struct {
	Checkouts []*Checkout `protobuf:"bytes,1,rep,name=checkouts,proto3" json:"checkouts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCheckoutsResponse) Descriptor deprecated

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

Deprecated: Use ListCheckoutsResponse.ProtoReflect.Descriptor instead.

func (*ListCheckoutsResponse) GetCheckouts

func (x *ListCheckoutsResponse) GetCheckouts() []*Checkout

func (*ListCheckoutsResponse) ProtoMessage

func (*ListCheckoutsResponse) ProtoMessage()

func (*ListCheckoutsResponse) ProtoReflect

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

func (*ListCheckoutsResponse) Reset

func (x *ListCheckoutsResponse) Reset()

func (*ListCheckoutsResponse) String

func (x *ListCheckoutsResponse) String() string

type MoveBooksRequest

type MoveBooksRequest struct {
	NewParent string   `protobuf:"bytes,1,opt,name=new_parent,json=newParent,proto3" json:"new_parent,omitempty"`
	Books     []string `protobuf:"bytes,2,rep,name=books,proto3" json:"books,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveBooksRequest) Descriptor deprecated

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

Deprecated: Use MoveBooksRequest.ProtoReflect.Descriptor instead.

func (*MoveBooksRequest) GetBooks

func (x *MoveBooksRequest) GetBooks() []string

func (*MoveBooksRequest) GetNewParent

func (x *MoveBooksRequest) GetNewParent() string

func (*MoveBooksRequest) ProtoMessage

func (*MoveBooksRequest) ProtoMessage()

func (*MoveBooksRequest) ProtoReflect

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

func (*MoveBooksRequest) Reset

func (x *MoveBooksRequest) Reset()

func (*MoveBooksRequest) String

func (x *MoveBooksRequest) String() string

type MoveBooksResponse

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

func (*MoveBooksResponse) Descriptor deprecated

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

Deprecated: Use MoveBooksResponse.ProtoReflect.Descriptor instead.

func (*MoveBooksResponse) ProtoMessage

func (*MoveBooksResponse) ProtoMessage()

func (*MoveBooksResponse) ProtoReflect

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

func (*MoveBooksResponse) Reset

func (x *MoveBooksResponse) Reset()

func (*MoveBooksResponse) String

func (x *MoveBooksResponse) String() string

type ParameterValues

type ParameterValues struct {

	// scalar types
	DoubleValue   float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	FloatValue    float32 `protobuf:"fixed32,2,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	Int32Value    int32   `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value    int64   `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value   uint32  `protobuf:"varint,5,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value   uint64  `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value   int32   `protobuf:"zigzag32,7,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value   int64   `protobuf:"zigzag64,8,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	Fixed32Value  uint32  `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	Fixed64Value  uint64  `protobuf:"fixed64,10,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed32Value int32   `protobuf:"fixed32,11,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value int64   `protobuf:"fixed64,12,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	BoolValue     bool    `protobuf:"varint,13,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue   string  `protobuf:"bytes,14,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue    []byte  `protobuf:"bytes,15,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	// scalar wrappers
	Timestamp          *timestamppb.Timestamp  `protobuf:"bytes,16,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Duration           *durationpb.Duration    `protobuf:"bytes,17,opt,name=duration,proto3" json:"duration,omitempty"`
	BoolValueWrapper   *wrapperspb.BoolValue   `protobuf:"bytes,18,opt,name=bool_value_wrapper,json=boolValueWrapper,proto3" json:"bool_value_wrapper,omitempty"`
	Int32ValueWrapper  *wrapperspb.Int32Value  `protobuf:"bytes,19,opt,name=int32_value_wrapper,json=int32ValueWrapper,proto3" json:"int32_value_wrapper,omitempty"`
	Int64ValueWrapper  *wrapperspb.Int64Value  `protobuf:"bytes,20,opt,name=int64_value_wrapper,json=int64ValueWrapper,proto3" json:"int64_value_wrapper,omitempty"`
	Uint32ValueWrapper *wrapperspb.UInt32Value `protobuf:"bytes,21,opt,name=uint32_value_wrapper,json=uint32ValueWrapper,proto3" json:"uint32_value_wrapper,omitempty"`
	Uint64ValueWrapper *wrapperspb.UInt64Value `protobuf:"bytes,22,opt,name=uint64_value_wrapper,json=uint64ValueWrapper,proto3" json:"uint64_value_wrapper,omitempty"`
	FloatValueWrapper  *wrapperspb.FloatValue  `protobuf:"bytes,23,opt,name=float_value_wrapper,json=floatValueWrapper,proto3" json:"float_value_wrapper,omitempty"`
	DoubleValueWrapper *wrapperspb.DoubleValue `protobuf:"bytes,24,opt,name=double_value_wrapper,json=doubleValueWrapper,proto3" json:"double_value_wrapper,omitempty"`
	BytesValueWrapper  *wrapperspb.BytesValue  `protobuf:"bytes,25,opt,name=bytes_value_wrapper,json=bytesValueWrapper,proto3" json:"bytes_value_wrapper,omitempty"`
	StringValueWrapper *wrapperspb.StringValue `protobuf:"bytes,26,opt,name=string_value_wrapper,json=stringValueWrapper,proto3" json:"string_value_wrapper,omitempty"`
	FieldMask          *fieldmaskpb.FieldMask  `protobuf:"bytes,27,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	EnumValue          ParameterValues_Enum    `` /* 133-byte string literal not displayed */
	// complex types
	EnumList        []ParameterValues_Enum    `` /* 137-byte string literal not displayed */
	DoubleList      []float64                 `protobuf:"fixed64,30,rep,packed,name=double_list,json=doubleList,proto3" json:"double_list,omitempty"`
	DoubleValueList []*wrapperspb.DoubleValue `protobuf:"bytes,31,rep,name=double_value_list,json=doubleValueList,proto3" json:"double_value_list,omitempty"`
	// Types that are assignable to Oneof:
	//
	//	*ParameterValues_OneofDoubleValue
	//	*ParameterValues_OneofDoubleValueWrapper
	//	*ParameterValues_OneofEnumValue
	Oneof     isParameterValues_Oneof `protobuf_oneof:"oneof"`
	Nested    *ParameterValues_Nested `protobuf:"bytes,36,opt,name=nested,proto3" json:"nested,omitempty"`
	Recursive *ParameterValues        `protobuf:"bytes,37,opt,name=recursive,proto3" json:"recursive,omitempty"`
	// unsupported
	StringMap      map[string]string                  `` /* 177-byte string literal not displayed */
	StringValueMap map[string]*wrapperspb.StringValue `` /* 194-byte string literal not displayed */
	EnumMap        map[string]ParameterValues_Enum    `` /* 215-byte string literal not displayed */
	NestedMap      map[string]*ParameterValues_Nested `` /* 177-byte string literal not displayed */
	StructValue    *structpb.Struct                   `protobuf:"bytes,42,opt,name=struct_value,json=structValue,proto3" json:"struct_value,omitempty"`
	Value          *structpb.Value                    `protobuf:"bytes,43,opt,name=value,proto3" json:"value,omitempty"`
	RecursiveList  []*ParameterValues                 `protobuf:"bytes,44,rep,name=recursive_list,json=recursiveList,proto3" json:"recursive_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ParameterValues) Descriptor deprecated

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

Deprecated: Use ParameterValues.ProtoReflect.Descriptor instead.

func (*ParameterValues) GetBoolValue

func (x *ParameterValues) GetBoolValue() bool

func (*ParameterValues) GetBoolValueWrapper

func (x *ParameterValues) GetBoolValueWrapper() *wrapperspb.BoolValue

func (*ParameterValues) GetBytesValue

func (x *ParameterValues) GetBytesValue() []byte

func (*ParameterValues) GetBytesValueWrapper

func (x *ParameterValues) GetBytesValueWrapper() *wrapperspb.BytesValue

func (*ParameterValues) GetDoubleList

func (x *ParameterValues) GetDoubleList() []float64

func (*ParameterValues) GetDoubleValue

func (x *ParameterValues) GetDoubleValue() float64

func (*ParameterValues) GetDoubleValueList

func (x *ParameterValues) GetDoubleValueList() []*wrapperspb.DoubleValue

func (*ParameterValues) GetDoubleValueWrapper

func (x *ParameterValues) GetDoubleValueWrapper() *wrapperspb.DoubleValue

func (*ParameterValues) GetDuration

func (x *ParameterValues) GetDuration() *durationpb.Duration

func (*ParameterValues) GetEnumList

func (x *ParameterValues) GetEnumList() []ParameterValues_Enum

func (*ParameterValues) GetEnumMap

func (x *ParameterValues) GetEnumMap() map[string]ParameterValues_Enum

func (*ParameterValues) GetEnumValue

func (x *ParameterValues) GetEnumValue() ParameterValues_Enum

func (*ParameterValues) GetFieldMask

func (x *ParameterValues) GetFieldMask() *fieldmaskpb.FieldMask

func (*ParameterValues) GetFixed32Value

func (x *ParameterValues) GetFixed32Value() uint32

func (*ParameterValues) GetFixed64Value

func (x *ParameterValues) GetFixed64Value() uint64

func (*ParameterValues) GetFloatValue

func (x *ParameterValues) GetFloatValue() float32

func (*ParameterValues) GetFloatValueWrapper

func (x *ParameterValues) GetFloatValueWrapper() *wrapperspb.FloatValue

func (*ParameterValues) GetInt32Value

func (x *ParameterValues) GetInt32Value() int32

func (*ParameterValues) GetInt32ValueWrapper

func (x *ParameterValues) GetInt32ValueWrapper() *wrapperspb.Int32Value

func (*ParameterValues) GetInt64Value

func (x *ParameterValues) GetInt64Value() int64

func (*ParameterValues) GetInt64ValueWrapper

func (x *ParameterValues) GetInt64ValueWrapper() *wrapperspb.Int64Value

func (*ParameterValues) GetNested

func (x *ParameterValues) GetNested() *ParameterValues_Nested

func (*ParameterValues) GetNestedMap

func (x *ParameterValues) GetNestedMap() map[string]*ParameterValues_Nested

func (*ParameterValues) GetOneof

func (m *ParameterValues) GetOneof() isParameterValues_Oneof

func (*ParameterValues) GetOneofDoubleValue

func (x *ParameterValues) GetOneofDoubleValue() float64

func (*ParameterValues) GetOneofDoubleValueWrapper

func (x *ParameterValues) GetOneofDoubleValueWrapper() *wrapperspb.DoubleValue

func (*ParameterValues) GetOneofEnumValue

func (x *ParameterValues) GetOneofEnumValue() ParameterValues_Enum

func (*ParameterValues) GetRecursive

func (x *ParameterValues) GetRecursive() *ParameterValues

func (*ParameterValues) GetRecursiveList

func (x *ParameterValues) GetRecursiveList() []*ParameterValues

func (*ParameterValues) GetSfixed32Value

func (x *ParameterValues) GetSfixed32Value() int32

func (*ParameterValues) GetSfixed64Value

func (x *ParameterValues) GetSfixed64Value() int64

func (*ParameterValues) GetSint32Value

func (x *ParameterValues) GetSint32Value() int32

func (*ParameterValues) GetSint64Value

func (x *ParameterValues) GetSint64Value() int64

func (*ParameterValues) GetStringMap

func (x *ParameterValues) GetStringMap() map[string]string

func (*ParameterValues) GetStringValue

func (x *ParameterValues) GetStringValue() string

func (*ParameterValues) GetStringValueMap

func (x *ParameterValues) GetStringValueMap() map[string]*wrapperspb.StringValue

func (*ParameterValues) GetStringValueWrapper

func (x *ParameterValues) GetStringValueWrapper() *wrapperspb.StringValue

func (*ParameterValues) GetStructValue

func (x *ParameterValues) GetStructValue() *structpb.Struct

func (*ParameterValues) GetTimestamp

func (x *ParameterValues) GetTimestamp() *timestamppb.Timestamp

func (*ParameterValues) GetUint32Value

func (x *ParameterValues) GetUint32Value() uint32

func (*ParameterValues) GetUint32ValueWrapper

func (x *ParameterValues) GetUint32ValueWrapper() *wrapperspb.UInt32Value

func (*ParameterValues) GetUint64Value

func (x *ParameterValues) GetUint64Value() uint64

func (*ParameterValues) GetUint64ValueWrapper

func (x *ParameterValues) GetUint64ValueWrapper() *wrapperspb.UInt64Value

func (*ParameterValues) GetValue

func (x *ParameterValues) GetValue() *structpb.Value

func (*ParameterValues) ProtoMessage

func (*ParameterValues) ProtoMessage()

func (*ParameterValues) ProtoReflect

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

func (*ParameterValues) Reset

func (x *ParameterValues) Reset()

func (*ParameterValues) String

func (x *ParameterValues) String() string

type ParameterValues_Enum

type ParameterValues_Enum int32

enum types

const (
	ParameterValues_ENUM_UNSPECIFIED ParameterValues_Enum = 0
	ParameterValues_ENUM_VALUE       ParameterValues_Enum = 1
)

func (ParameterValues_Enum) Descriptor

func (ParameterValues_Enum) Enum

func (ParameterValues_Enum) EnumDescriptor deprecated

func (ParameterValues_Enum) EnumDescriptor() ([]byte, []int)

Deprecated: Use ParameterValues_Enum.Descriptor instead.

func (ParameterValues_Enum) Number

func (ParameterValues_Enum) String

func (x ParameterValues_Enum) String() string

func (ParameterValues_Enum) Type

type ParameterValues_Nested

type ParameterValues_Nested struct {
	DoubleValue        float64                     `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	DoubleValueWrapper *wrapperspb.DoubleValue     `protobuf:"bytes,2,opt,name=double_value_wrapper,json=doubleValueWrapper,proto3" json:"double_value_wrapper,omitempty"`
	EnumValue          ParameterValues_Nested_Enum `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ParameterValues_Nested) Descriptor deprecated

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

Deprecated: Use ParameterValues_Nested.ProtoReflect.Descriptor instead.

func (*ParameterValues_Nested) GetDoubleValue

func (x *ParameterValues_Nested) GetDoubleValue() float64

func (*ParameterValues_Nested) GetDoubleValueWrapper

func (x *ParameterValues_Nested) GetDoubleValueWrapper() *wrapperspb.DoubleValue

func (*ParameterValues_Nested) GetEnumValue

func (*ParameterValues_Nested) ProtoMessage

func (*ParameterValues_Nested) ProtoMessage()

func (*ParameterValues_Nested) ProtoReflect

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

func (*ParameterValues_Nested) Reset

func (x *ParameterValues_Nested) Reset()

func (*ParameterValues_Nested) String

func (x *ParameterValues_Nested) String() string

type ParameterValues_Nested_Enum

type ParameterValues_Nested_Enum int32
const (
	ParameterValues_Nested_ENUM_UNSPECIFIED ParameterValues_Nested_Enum = 0
	ParameterValues_Nested_ENUM_VALUE       ParameterValues_Nested_Enum = 1
)

func (ParameterValues_Nested_Enum) Descriptor

func (ParameterValues_Nested_Enum) Enum

func (ParameterValues_Nested_Enum) EnumDescriptor deprecated

func (ParameterValues_Nested_Enum) EnumDescriptor() ([]byte, []int)

Deprecated: Use ParameterValues_Nested_Enum.Descriptor instead.

func (ParameterValues_Nested_Enum) Number

func (ParameterValues_Nested_Enum) String

func (ParameterValues_Nested_Enum) Type

type ParameterValues_OneofDoubleValue

type ParameterValues_OneofDoubleValue struct {
	OneofDoubleValue float64 `protobuf:"fixed64,33,opt,name=oneof_double_value,json=oneofDoubleValue,proto3,oneof"`
}

type ParameterValues_OneofDoubleValueWrapper

type ParameterValues_OneofDoubleValueWrapper struct {
	OneofDoubleValueWrapper *wrapperspb.DoubleValue `protobuf:"bytes,34,opt,name=oneof_double_value_wrapper,json=oneofDoubleValueWrapper,proto3,oneof"`
}

type ParameterValues_OneofEnumValue

type ParameterValues_OneofEnumValue struct {
	OneofEnumValue ParameterValues_Enum `protobuf:"varint,35,opt,name=oneof_enum_value,json=oneofEnumValue,proto3,enum=vanguard.test.v1.ParameterValues_Enum,oneof"`
}

type ReturnBooksRequest

type ReturnBooksRequest struct {
	Id        uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	BookNames []string `protobuf:"bytes,2,rep,name=book_names,json=bookNames,proto3" json:"book_names,omitempty"`
	// contains filtered or unexported fields
}

func (*ReturnBooksRequest) Descriptor deprecated

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

Deprecated: Use ReturnBooksRequest.ProtoReflect.Descriptor instead.

func (*ReturnBooksRequest) GetBookNames

func (x *ReturnBooksRequest) GetBookNames() []string

func (*ReturnBooksRequest) GetId

func (x *ReturnBooksRequest) GetId() uint64

func (*ReturnBooksRequest) ProtoMessage

func (*ReturnBooksRequest) ProtoMessage()

func (*ReturnBooksRequest) ProtoReflect

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

func (*ReturnBooksRequest) Reset

func (x *ReturnBooksRequest) Reset()

func (*ReturnBooksRequest) String

func (x *ReturnBooksRequest) String() string

type SearchBooksRequest

type SearchBooksRequest struct {

	// The parent resource name, for example, "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The query string in search query syntax.
	Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchBooksRequest) Descriptor deprecated

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

Deprecated: Use SearchBooksRequest.ProtoReflect.Descriptor instead.

func (*SearchBooksRequest) GetPageSize

func (x *SearchBooksRequest) GetPageSize() int32

func (*SearchBooksRequest) GetPageToken

func (x *SearchBooksRequest) GetPageToken() string

func (*SearchBooksRequest) GetParent

func (x *SearchBooksRequest) GetParent() string

func (*SearchBooksRequest) GetQuery

func (x *SearchBooksRequest) GetQuery() string

func (*SearchBooksRequest) ProtoMessage

func (*SearchBooksRequest) ProtoMessage()

func (*SearchBooksRequest) ProtoReflect

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

func (*SearchBooksRequest) Reset

func (x *SearchBooksRequest) Reset()

func (*SearchBooksRequest) String

func (x *SearchBooksRequest) String() string

type SearchBooksResponse

type SearchBooksResponse struct {

	// The field name should match the noun "books" in the method name.  There
	// will be a maximum number of items returned based on the page_size field
	// in the request.
	Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchBooksResponse) Descriptor deprecated

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

Deprecated: Use SearchBooksResponse.ProtoReflect.Descriptor instead.

func (*SearchBooksResponse) GetBooks

func (x *SearchBooksResponse) GetBooks() []*Book

func (*SearchBooksResponse) GetNextPageToken

func (x *SearchBooksResponse) GetNextPageToken() string

func (*SearchBooksResponse) ProtoMessage

func (*SearchBooksResponse) ProtoMessage()

func (*SearchBooksResponse) ProtoReflect

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

func (*SearchBooksResponse) Reset

func (x *SearchBooksResponse) Reset()

func (*SearchBooksResponse) String

func (x *SearchBooksResponse) String() string

type Shelf

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

func (*Shelf) Descriptor deprecated

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

Deprecated: Use Shelf.ProtoReflect.Descriptor instead.

func (*Shelf) ProtoMessage

func (*Shelf) ProtoMessage()

func (*Shelf) ProtoReflect

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

func (*Shelf) Reset

func (x *Shelf) Reset()

func (*Shelf) String

func (x *Shelf) String() string

type SubscribeRequest

type SubscribeRequest struct {
	FilenamePatterns []string `protobuf:"bytes,1,rep,name=filename_patterns,json=filenamePatterns,proto3" json:"filename_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetFilenamePatterns

func (x *SubscribeRequest) GetFilenamePatterns() []string

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

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

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

type SubscribeResponse

type SubscribeResponse struct {
	FilenameChanged string                 `protobuf:"bytes,1,opt,name=filename_changed,json=filenameChanged,proto3" json:"filename_changed,omitempty"`
	UpdateTime      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	Deleted         bool                   `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeResponse) Descriptor deprecated

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

Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.

func (*SubscribeResponse) GetDeleted

func (x *SubscribeResponse) GetDeleted() bool

func (*SubscribeResponse) GetFilenameChanged

func (x *SubscribeResponse) GetFilenameChanged() string

func (*SubscribeResponse) GetUpdateTime

func (x *SubscribeResponse) GetUpdateTime() *timestamppb.Timestamp

func (*SubscribeResponse) ProtoMessage

func (*SubscribeResponse) ProtoMessage()

func (*SubscribeResponse) ProtoReflect

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

func (*SubscribeResponse) Reset

func (x *SubscribeResponse) Reset()

func (*SubscribeResponse) String

func (x *SubscribeResponse) String() string

type UnimplementedContentServiceServer

type UnimplementedContentServiceServer struct {
}

UnimplementedContentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedContentServiceServer) Download

func (UnimplementedContentServiceServer) Index

func (UnimplementedContentServiceServer) Subscribe

func (UnimplementedContentServiceServer) Upload

type UnimplementedLibraryServiceServer

type UnimplementedLibraryServiceServer struct {
}

UnimplementedLibraryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLibraryServiceServer) CheckoutBooks

func (UnimplementedLibraryServiceServer) CreateBook

func (UnimplementedLibraryServiceServer) CreateShelf

func (UnimplementedLibraryServiceServer) DeleteBook

func (UnimplementedLibraryServiceServer) GetBook

func (UnimplementedLibraryServiceServer) GetCheckout

func (UnimplementedLibraryServiceServer) ListBooks

func (UnimplementedLibraryServiceServer) ListCheckouts

func (UnimplementedLibraryServiceServer) MoveBooks

func (UnimplementedLibraryServiceServer) ReturnBooks

func (UnimplementedLibraryServiceServer) SearchBooks

func (UnimplementedLibraryServiceServer) UpdateBook

type UnsafeContentServiceServer

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

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

type UnsafeLibraryServiceServer

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

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

type UpdateBookRequest

type UpdateBookRequest struct {

	// The book resource which replaces the resource on the server.
	Book *Book `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	// The update mask applies to the resource. For the `FieldMask` definition,
	// see
	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBookRequest) Descriptor deprecated

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

Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead.

func (*UpdateBookRequest) GetBook

func (x *UpdateBookRequest) GetBook() *Book

func (*UpdateBookRequest) GetUpdateMask

func (x *UpdateBookRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateBookRequest) ProtoMessage

func (*UpdateBookRequest) ProtoMessage()

func (*UpdateBookRequest) ProtoReflect

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

func (*UpdateBookRequest) Reset

func (x *UpdateBookRequest) Reset()

func (*UpdateBookRequest) String

func (x *UpdateBookRequest) String() string

type UploadRequest

type UploadRequest struct {

	// The path to the file to upload.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// The file contents to upload.
	File *httpbody.HttpBody `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadRequest) Descriptor deprecated

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

Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.

func (*UploadRequest) GetFile

func (x *UploadRequest) GetFile() *httpbody.HttpBody

func (*UploadRequest) GetFilename

func (x *UploadRequest) GetFilename() string

func (*UploadRequest) ProtoMessage

func (*UploadRequest) ProtoMessage()

func (*UploadRequest) ProtoReflect

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

func (*UploadRequest) Reset

func (x *UploadRequest) Reset()

func (*UploadRequest) String

func (x *UploadRequest) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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