...

Package grpc_testing

import "google.golang.org/grpc/reflection/grpc_testing"
Overview
Index

Overview ▾

Index ▾

Constants
Variables
func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
type AnotherExtension
    func (*AnotherExtension) Descriptor() ([]byte, []int)
    func (x *AnotherExtension) GetWhatchamacallit() int32
    func (*AnotherExtension) ProtoMessage()
    func (x *AnotherExtension) ProtoReflect() protoreflect.Message
    func (x *AnotherExtension) Reset()
    func (x *AnotherExtension) String() string
type Extension
    func (*Extension) Descriptor() ([]byte, []int)
    func (x *Extension) GetWhatzit() int32
    func (*Extension) ProtoMessage()
    func (x *Extension) ProtoReflect() protoreflect.Message
    func (x *Extension) Reset()
    func (x *Extension) String() string
type SearchRequest
    func (*SearchRequest) Descriptor() ([]byte, []int)
    func (x *SearchRequest) GetQuery() string
    func (*SearchRequest) ProtoMessage()
    func (x *SearchRequest) ProtoReflect() protoreflect.Message
    func (x *SearchRequest) Reset()
    func (x *SearchRequest) String() string
type SearchResponse
    func (*SearchResponse) Descriptor() ([]byte, []int)
    func (x *SearchResponse) GetResults() []*SearchResponse_Result
    func (*SearchResponse) ProtoMessage()
    func (x *SearchResponse) ProtoReflect() protoreflect.Message
    func (x *SearchResponse) Reset()
    func (x *SearchResponse) String() string
type SearchResponse_Result
    func (*SearchResponse_Result) Descriptor() ([]byte, []int)
    func (x *SearchResponse_Result) GetSnippets() []string
    func (x *SearchResponse_Result) GetTitle() string
    func (x *SearchResponse_Result) GetUrl() string
    func (*SearchResponse_Result) ProtoMessage()
    func (x *SearchResponse_Result) ProtoReflect() protoreflect.Message
    func (x *SearchResponse_Result) Reset()
    func (x *SearchResponse_Result) String() string
type SearchServiceClient
    func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceServer
type SearchService_StreamingSearchClient
type SearchService_StreamingSearchServer
type ToBeExtended
    func (*ToBeExtended) Descriptor() ([]byte, []int)
    func (x *ToBeExtended) GetFoo() int32
    func (*ToBeExtended) ProtoMessage()
    func (x *ToBeExtended) ProtoReflect() protoreflect.Message
    func (x *ToBeExtended) Reset()
    func (x *ToBeExtended) String() string
type UnimplementedSearchServiceServer
    func (UnimplementedSearchServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
    func (UnimplementedSearchServiceServer) StreamingSearch(grpc.BidiStreamingServer[SearchRequest, SearchResponse]) error
type UnsafeSearchServiceServer

Package files

proto2.pb.go proto2_ext.pb.go proto2_ext2.pb.go test.pb.go test_grpc.pb.go

Constants

const (
    SearchService_Search_FullMethodName          = "/grpc.testing.SearchService/Search"
    SearchService_StreamingSearch_FullMethodName = "/grpc.testing.SearchService/StreamingSearch"
)

Variables

Extension fields to ToBeExtended.

var (
    // optional int32 foo = 13;
    E_Foo = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[0]
    // optional grpc.testing.Extension bar = 17;
    E_Bar = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[1]
    // optional grpc.testing.SearchRequest baz = 19;
    E_Baz = &file_reflection_grpc_testing_proto2_ext_proto_extTypes[2]
)

Extension fields to ToBeExtended.

var (
    // optional string frob = 23;
    E_Frob = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[0]
    // optional grpc.testing.AnotherExtension nitz = 29;
    E_Nitz = &file_reflection_grpc_testing_proto2_ext2_proto_extTypes[1]
)
var File_reflection_grpc_testing_proto2_ext2_proto protoreflect.FileDescriptor
var File_reflection_grpc_testing_proto2_ext_proto protoreflect.FileDescriptor
var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor
var File_reflection_grpc_testing_test_proto protoreflect.FileDescriptor

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

var SearchService_ServiceDesc = grpc.ServiceDesc{
    ServiceName: "grpc.testing.SearchService",
    HandlerType: (*SearchServiceServer)(nil),
    Methods: []grpc.MethodDesc{
        {
            MethodName: "Search",
            Handler:    _SearchService_Search_Handler,
        },
    },
    Streams: []grpc.StreamDesc{
        {
            StreamName:    "StreamingSearch",
            Handler:       _SearchService_StreamingSearch_Handler,
            ServerStreams: true,
            ClientStreams: true,
        },
    },
    Metadata: "reflection/grpc_testing/test.proto",
}

func RegisterSearchServiceServer

func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)

type AnotherExtension

type AnotherExtension struct {
    Whatchamacallit *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
    // contains filtered or unexported fields
}

func (*AnotherExtension) Descriptor

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

Deprecated: Use AnotherExtension.ProtoReflect.Descriptor instead.

func (*AnotherExtension) GetWhatchamacallit

func (x *AnotherExtension) GetWhatchamacallit() int32

func (*AnotherExtension) ProtoMessage

func (*AnotherExtension) ProtoMessage()

func (*AnotherExtension) ProtoReflect

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

func (*AnotherExtension) Reset

func (x *AnotherExtension) Reset()

func (*AnotherExtension) String

func (x *AnotherExtension) String() string

type Extension

type Extension struct {
    Whatzit *int32 `protobuf:"varint,1,opt,name=whatzit" json:"whatzit,omitempty"`
    // contains filtered or unexported fields
}

func (*Extension) Descriptor

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

Deprecated: Use Extension.ProtoReflect.Descriptor instead.

func (*Extension) GetWhatzit

func (x *Extension) GetWhatzit() int32

func (*Extension) ProtoMessage

func (*Extension) ProtoMessage()

func (*Extension) ProtoReflect

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

func (*Extension) Reset

func (x *Extension) Reset()

func (*Extension) String

func (x *Extension) String() string

type SearchRequest

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

func (*SearchRequest) Descriptor

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetQuery

func (x *SearchRequest) GetQuery() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

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

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
    Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
    // contains filtered or unexported fields
}

func (*SearchResponse) Descriptor

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetResults

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

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type SearchResponse_Result

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

func (*SearchResponse_Result) Descriptor

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

Deprecated: Use SearchResponse_Result.ProtoReflect.Descriptor instead.

func (*SearchResponse_Result) GetSnippets

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

func (*SearchResponse_Result) GetTitle

func (x *SearchResponse_Result) GetTitle() string

func (*SearchResponse_Result) GetUrl

func (x *SearchResponse_Result) GetUrl() string

func (*SearchResponse_Result) ProtoMessage

func (*SearchResponse_Result) ProtoMessage()

func (*SearchResponse_Result) ProtoReflect

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

func (*SearchResponse_Result) Reset

func (x *SearchResponse_Result) Reset()

func (*SearchResponse_Result) String

func (x *SearchResponse_Result) String() string

type SearchServiceClient

SearchServiceClient is the client API for SearchService 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 SearchServiceClient interface {
    Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
    StreamingSearch(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SearchRequest, SearchResponse], error)
}

func NewSearchServiceClient

func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient

type SearchServiceServer

SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility

type SearchServiceServer interface {
    Search(context.Context, *SearchRequest) (*SearchResponse, error)
    StreamingSearch(grpc.BidiStreamingServer[SearchRequest, SearchResponse]) error
    // contains filtered or unexported methods
}

type SearchService_StreamingSearchClient

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SearchService_StreamingSearchClient = grpc.BidiStreamingClient[SearchRequest, SearchResponse]

type SearchService_StreamingSearchServer

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SearchService_StreamingSearchServer = grpc.BidiStreamingServer[SearchRequest, SearchResponse]

type ToBeExtended

type ToBeExtended struct {
    Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
    // contains filtered or unexported fields
}

func (*ToBeExtended) Descriptor

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

Deprecated: Use ToBeExtended.ProtoReflect.Descriptor instead.

func (*ToBeExtended) GetFoo

func (x *ToBeExtended) GetFoo() int32

func (*ToBeExtended) ProtoMessage

func (*ToBeExtended) ProtoMessage()

func (*ToBeExtended) ProtoReflect

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

func (*ToBeExtended) Reset

func (x *ToBeExtended) Reset()

func (*ToBeExtended) String

func (x *ToBeExtended) String() string

type UnimplementedSearchServiceServer

UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.

type UnimplementedSearchServiceServer struct {
}

func (UnimplementedSearchServiceServer) Search

func (UnimplementedSearchServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)

func (UnimplementedSearchServiceServer) StreamingSearch

func (UnimplementedSearchServiceServer) StreamingSearch(grpc.BidiStreamingServer[SearchRequest, SearchResponse]) error

type UnsafeSearchServiceServer

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

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