grpc_testing

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package grpc_testing is a generated protocol buffer package.

It is generated from these files:

proto2.proto
proto2_ext.proto
proto2_ext2.proto
test.proto

It has these top-level messages:

ToBeExtended
Extension
AnotherExtension
SearchResponse
SearchRequest

Index

Constants

This section is empty.

Variables

View Source
var E_Bar = &proto.ExtensionDesc{
	ExtendedType:  (*ToBeExtended)(nil),
	ExtensionType: (*Extension)(nil),
	Field:         17,
	Name:          "grpc.testing.bar",
	Tag:           "bytes,17,opt,name=bar",
	Filename:      "proto2_ext.proto",
}
View Source
var E_Baz = &proto.ExtensionDesc{
	ExtendedType:  (*ToBeExtended)(nil),
	ExtensionType: (*SearchRequest)(nil),
	Field:         19,
	Name:          "grpc.testing.baz",
	Tag:           "bytes,19,opt,name=baz",
	Filename:      "proto2_ext.proto",
}
View Source
var E_Foo = &proto.ExtensionDesc{
	ExtendedType:  (*ToBeExtended)(nil),
	ExtensionType: (*int32)(nil),
	Field:         13,
	Name:          "grpc.testing.foo",
	Tag:           "varint,13,opt,name=foo",
	Filename:      "proto2_ext.proto",
}
View Source
var E_Frob = &proto.ExtensionDesc{
	ExtendedType:  (*ToBeExtended)(nil),
	ExtensionType: (*string)(nil),
	Field:         23,
	Name:          "grpc.testing.frob",
	Tag:           "bytes,23,opt,name=frob",
	Filename:      "proto2_ext2.proto",
}
View Source
var E_Nitz = &proto.ExtensionDesc{
	ExtendedType:  (*ToBeExtended)(nil),
	ExtensionType: (*AnotherExtension)(nil),
	Field:         29,
	Name:          "grpc.testing.nitz",
	Tag:           "bytes,29,opt,name=nitz",
	Filename:      "proto2_ext2.proto",
}

Functions

func RegisterSearchServiceServer

func RegisterSearchServiceServer(s *grpc.Server, srv SearchServiceServer)

Types

type AnotherExtension added in v1.2.0

type AnotherExtension struct {
	Whatchamacallit  *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*AnotherExtension) Descriptor added in v1.2.0

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

func (*AnotherExtension) GetWhatchamacallit added in v1.2.0

func (m *AnotherExtension) GetWhatchamacallit() int32

func (*AnotherExtension) ProtoMessage added in v1.2.0

func (*AnotherExtension) ProtoMessage()

func (*AnotherExtension) Reset added in v1.2.0

func (m *AnotherExtension) Reset()

func (*AnotherExtension) String added in v1.2.0

func (m *AnotherExtension) String() string

type Extension

type Extension struct {
	Whatzit          *int32 `protobuf:"varint,1,opt,name=whatzit" json:"whatzit,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Extension) Descriptor

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

func (*Extension) GetWhatzit added in v1.2.0

func (m *Extension) GetWhatzit() int32

func (*Extension) ProtoMessage

func (*Extension) ProtoMessage()

func (*Extension) Reset

func (m *Extension) Reset()

func (*Extension) String

func (m *Extension) String() string

type SearchRequest

type SearchRequest struct {
	Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
}

func (*SearchRequest) Descriptor

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

func (*SearchRequest) GetQuery added in v1.2.0

func (m *SearchRequest) GetQuery() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) Reset

func (m *SearchRequest) Reset()

func (*SearchRequest) String

func (m *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}

func (*SearchResponse) Descriptor

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

func (*SearchResponse) GetResults

func (m *SearchResponse) GetResults() []*SearchResponse_Result

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) Reset

func (m *SearchResponse) Reset()

func (*SearchResponse) String

func (m *SearchResponse) String() string

type SearchResponse_Result

type SearchResponse_Result struct {
	Url      string   `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	Title    string   `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
	Snippets []string `protobuf:"bytes,3,rep,name=snippets" json:"snippets,omitempty"`
}

func (*SearchResponse_Result) Descriptor

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

func (*SearchResponse_Result) GetSnippets added in v1.2.0

func (m *SearchResponse_Result) GetSnippets() []string

func (*SearchResponse_Result) GetTitle added in v1.2.0

func (m *SearchResponse_Result) GetTitle() string

func (*SearchResponse_Result) GetUrl added in v1.2.0

func (m *SearchResponse_Result) GetUrl() string

func (*SearchResponse_Result) ProtoMessage

func (*SearchResponse_Result) ProtoMessage()

func (*SearchResponse_Result) Reset

func (m *SearchResponse_Result) Reset()

func (*SearchResponse_Result) String

func (m *SearchResponse_Result) String() string

type SearchServiceClient

type SearchServiceClient interface {
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	StreamingSearch(ctx context.Context, opts ...grpc.CallOption) (SearchService_StreamingSearchClient, error)
}

func NewSearchServiceClient

func NewSearchServiceClient(cc *grpc.ClientConn) SearchServiceClient

type SearchServiceServer

type SearchServiceServer interface {
	Search(context.Context, *SearchRequest) (*SearchResponse, error)
	StreamingSearch(SearchService_StreamingSearchServer) error
}

type SearchService_StreamingSearchClient

type SearchService_StreamingSearchClient interface {
	Send(*SearchRequest) error
	Recv() (*SearchResponse, error)
	grpc.ClientStream
}

type SearchService_StreamingSearchServer

type SearchService_StreamingSearchServer interface {
	Send(*SearchResponse) error
	Recv() (*SearchRequest, error)
	grpc.ServerStream
}

type ToBeExtended added in v1.2.0

type ToBeExtended struct {
	Foo                          *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

func (*ToBeExtended) Descriptor added in v1.2.0

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

func (*ToBeExtended) ExtensionRangeArray added in v1.2.0

func (*ToBeExtended) ExtensionRangeArray() []proto.ExtensionRange

func (*ToBeExtended) GetFoo added in v1.2.0

func (m *ToBeExtended) GetFoo() int32

func (*ToBeExtended) ProtoMessage added in v1.2.0

func (*ToBeExtended) ProtoMessage()

func (*ToBeExtended) Reset added in v1.2.0

func (m *ToBeExtended) Reset()

func (*ToBeExtended) String added in v1.2.0

func (m *ToBeExtended) String() string

Jump to

Keyboard shortcuts

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