protobuf

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 6 Imported by: 18

Documentation

Overview

Package protobuf is a generated protocol buffer package.

It is generated from these files:

service.proto

It has these top-level messages:

UppercaseRequest
UppercaseResponse
CountRequest
CountResponse
Comment
TestCaseRequest
TestCaseResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStringServiceServer

func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)

Types

type Comment

type Comment struct {
	Text     string                     `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Relates  *Comment                   `protobuf:"bytes,2,opt,name=relates" json:"relates,omitempty"`
	PostedAt *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=PostedAt" json:"PostedAt,omitempty"`
}

func (*Comment) Descriptor

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

func (*Comment) GetPostedAt

func (m *Comment) GetPostedAt() *google_protobuf.Timestamp

func (*Comment) GetRelates

func (m *Comment) GetRelates() *Comment

func (*Comment) GetText

func (m *Comment) GetText() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

type CountRequest

type CountRequest struct {
	Text   string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"`
}

func (*CountRequest) Descriptor

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

func (*CountRequest) GetSymbol

func (m *CountRequest) GetSymbol() string

func (*CountRequest) GetText

func (m *CountRequest) GetText() string

func (*CountRequest) ProtoMessage

func (*CountRequest) ProtoMessage()

func (*CountRequest) Reset

func (m *CountRequest) Reset()

func (*CountRequest) String

func (m *CountRequest) String() string

type CountResponse

type CountResponse struct {
	Count     int64   `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
	Positions []int64 `protobuf:"varint,2,rep,packed,name=positions" json:"positions,omitempty"`
}

func (*CountResponse) Descriptor

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

func (*CountResponse) GetCount

func (m *CountResponse) GetCount() int64

func (*CountResponse) GetPositions

func (m *CountResponse) GetPositions() []int64

func (*CountResponse) ProtoMessage

func (*CountResponse) ProtoMessage()

func (*CountResponse) Reset

func (m *CountResponse) Reset()

func (*CountResponse) String

func (m *CountResponse) String() string

type StringServiceClient

type StringServiceClient interface {
	Uppercase(ctx context.Context, in *UppercaseRequest, opts ...grpc.CallOption) (*UppercaseResponse, error)
	Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error)
	TestCase(ctx context.Context, in *TestCaseRequest, opts ...grpc.CallOption) (*TestCaseResponse, error)
}

func NewStringServiceClient

func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient

type TestCaseRequest

type TestCaseRequest struct {
	Comments []*Comment `protobuf:"bytes,1,rep,name=comments" json:"comments,omitempty"`
}

func (*TestCaseRequest) Descriptor

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

func (*TestCaseRequest) GetComments

func (m *TestCaseRequest) GetComments() []*Comment

func (*TestCaseRequest) ProtoMessage

func (*TestCaseRequest) ProtoMessage()

func (*TestCaseRequest) Reset

func (m *TestCaseRequest) Reset()

func (*TestCaseRequest) String

func (m *TestCaseRequest) String() string

type TestCaseResponse

type TestCaseResponse struct {
	Tree map[string]int64 `` /* 129-byte string literal not displayed */
}

func (*TestCaseResponse) Descriptor

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

func (*TestCaseResponse) GetTree

func (m *TestCaseResponse) GetTree() map[string]int64

func (*TestCaseResponse) ProtoMessage

func (*TestCaseResponse) ProtoMessage()

func (*TestCaseResponse) Reset

func (m *TestCaseResponse) Reset()

func (*TestCaseResponse) String

func (m *TestCaseResponse) String() string

type UppercaseRequest

type UppercaseRequest struct {
	StringsMap map[string]string `` /* 158-byte string literal not displayed */
}

func (*UppercaseRequest) Descriptor

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

func (*UppercaseRequest) GetStringsMap

func (m *UppercaseRequest) GetStringsMap() map[string]string

func (*UppercaseRequest) ProtoMessage

func (*UppercaseRequest) ProtoMessage()

func (*UppercaseRequest) Reset

func (m *UppercaseRequest) Reset()

func (*UppercaseRequest) String

func (m *UppercaseRequest) String() string

type UppercaseResponse

type UppercaseResponse struct {
	Ans string `protobuf:"bytes,1,opt,name=ans" json:"ans,omitempty"`
}

func (*UppercaseResponse) Descriptor

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

func (*UppercaseResponse) GetAns

func (m *UppercaseResponse) GetAns() string

func (*UppercaseResponse) ProtoMessage

func (*UppercaseResponse) ProtoMessage()

func (*UppercaseResponse) Reset

func (m *UppercaseResponse) Reset()

func (*UppercaseResponse) String

func (m *UppercaseResponse) String() string

Jump to

Keyboard shortcuts

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