serialization

package
v0.0.0-...-ba9df72 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Stacking_name = map[int32]string{
		0: "Up",
		1: "Down",
		2: "On",
	}
	Stacking_value = map[string]int32{
		"Up":   0,
		"Down": 1,
		"On":   2,
	}
)

Enum value maps for Stacking.

View Source
var (
	Results_name = map[int32]string{
		0: "Ok",
		1: "Err",
	}
	Results_value = map[string]int32{
		"Ok":  0,
		"Err": 1,
	}
)

Enum value maps for Results.

View Source
var File_serialization_encode_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Book

type Book struct {
	BookID          string `protobuf:"bytes,1,opt,name=bookID,proto3" json:"bookID,omitempty"`
	BookTitle       string `protobuf:"bytes,2,opt,name=bookTitle,proto3" json:"bookTitle,omitempty"`
	BookIsbn        string `protobuf:"bytes,3,opt,name=bookIsbn,proto3" json:"bookIsbn,omitempty"`
	BookAuthor      string `protobuf:"bytes,4,opt,name=bookAuthor,proto3" json:"bookAuthor,omitempty"`
	BookPublishDate string `protobuf:"bytes,5,opt,name=bookPublishDate,proto3" json:"bookPublishDate,omitempty"`
	// contains filtered or unexported fields
}

func (*Book) Descriptor deprecated

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetBookAuthor

func (x *Book) GetBookAuthor() string

func (*Book) GetBookID

func (x *Book) GetBookID() string

func (*Book) GetBookIsbn

func (x *Book) GetBookIsbn() string

func (*Book) GetBookPublishDate

func (x *Book) GetBookPublishDate() string

func (*Book) GetBookTitle

func (x *Book) GetBookTitle() string

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 Books

type Books struct {
	Publish   *Book    `protobuf:"bytes,1,opt,name=publish,proto3" json:"publish,omitempty"`
	Result    Results  `protobuf:"varint,2,opt,name=result,proto3,enum=serialization.Results" json:"result,omitempty"`
	Operation Stacking `protobuf:"varint,3,opt,name=Operation,proto3,enum=serialization.Stacking" json:"Operation,omitempty"`
	// contains filtered or unexported fields
}

func (*Books) Descriptor deprecated

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

Deprecated: Use Books.ProtoReflect.Descriptor instead.

func (*Books) GetOperation

func (x *Books) GetOperation() Stacking

func (*Books) GetPublish

func (x *Books) GetPublish() *Book

func (*Books) GetResult

func (x *Books) GetResult() Results

func (*Books) ProtoMessage

func (*Books) ProtoMessage()

func (*Books) ProtoReflect

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

func (*Books) Reset

func (x *Books) Reset()

func (*Books) String

func (x *Books) String() string

type EmptyRequest

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

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

type Results

type Results int32
const (
	Results_Ok  Results = 0
	Results_Err Results = 1
)

func (Results) Descriptor

func (Results) Descriptor() protoreflect.EnumDescriptor

func (Results) Enum

func (x Results) Enum() *Results

func (Results) EnumDescriptor deprecated

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

Deprecated: Use Results.Descriptor instead.

func (Results) Number

func (x Results) Number() protoreflect.EnumNumber

func (Results) String

func (x Results) String() string

func (Results) Type

func (Results) Type() protoreflect.EnumType

type StackedBook

type StackedBook struct {
	Stackedover *Book `protobuf:"bytes,1,opt,name=stackedover,proto3" json:"stackedover,omitempty"`
	// contains filtered or unexported fields
}

func (*StackedBook) Descriptor deprecated

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

Deprecated: Use StackedBook.ProtoReflect.Descriptor instead.

func (*StackedBook) GetStackedover

func (x *StackedBook) GetStackedover() *Book

func (*StackedBook) ProtoMessage

func (*StackedBook) ProtoMessage()

func (*StackedBook) ProtoReflect

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

func (*StackedBook) Reset

func (x *StackedBook) Reset()

func (*StackedBook) String

func (x *StackedBook) String() string

type Stacking

type Stacking int32
const (
	Stacking_Up   Stacking = 0
	Stacking_Down Stacking = 1
	Stacking_On   Stacking = 2
)

func (Stacking) Descriptor

func (Stacking) Descriptor() protoreflect.EnumDescriptor

func (Stacking) Enum

func (x Stacking) Enum() *Stacking

func (Stacking) EnumDescriptor deprecated

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

Deprecated: Use Stacking.Descriptor instead.

func (Stacking) Number

func (x Stacking) Number() protoreflect.EnumNumber

func (Stacking) String

func (x Stacking) String() string

func (Stacking) Type

Jump to

Keyboard shortcuts

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