Documentation
¶
Index ¶
- Variables
- func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
- type Corpus
- type ErrorStatus
- func (*ErrorStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorStatus) GetDetails() []*anypb.Any
- func (x *ErrorStatus) GetMessage() string
- func (*ErrorStatus) ProtoMessage()
- func (x *ErrorStatus) ProtoReflect() protoreflect.Message
- func (x *ErrorStatus) Reset()
- func (x *ErrorStatus) String() string
- type ErrorStatusExt
- type HelloServiceClient
- type HelloServiceServer
- type Result
- type SampleMessage
- func (*SampleMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SampleMessage) GetSub1() *Sub1
- func (x *SampleMessage) GetSub2() *Sub2
- func (m *SampleMessage) GetTestOneof() isSampleMessage_TestOneof
- func (*SampleMessage) ProtoMessage()
- func (x *SampleMessage) ProtoReflect() protoreflect.Message
- func (x *SampleMessage) Reset()
- func (x *SampleMessage) String() string
- type SampleMessage_Sub1
- type SampleMessage_Sub2
- type SearchResponse
- type String
- type Sub1
- type Sub2
- type UnimplementedHelloServiceServer
- type UnsafeHelloServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Corpus_name = map[int32]string{ 0: "UNIVERSAL", 1: "WEB", 2: "IMAGES", 3: "LOCAL", 4: "NEWS", 5: "PRODUCTS", 6: "VIDEO", } Corpus_value = map[string]int32{ "UNIVERSAL": 0, "WEB": 1, "IMAGES": 2, "LOCAL": 3, "NEWS": 4, "PRODUCTS": 5, "VIDEO": 6, } )
Enum value maps for Corpus.
var File_pb_any_proto protoreflect.FileDescriptor
var File_pb_enum_proto protoreflect.FileDescriptor
var File_pb_hello_proto protoreflect.FileDescriptor
var File_pb_import_proto protoreflect.FileDescriptor
var File_pb_oneof_proto protoreflect.FileDescriptor
var File_pb_repeated_proto protoreflect.FileDescriptor
var HelloService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hello.HelloService", HandlerType: (*HelloServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _HelloService_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/hello.proto", }
HelloService_ServiceDesc is the grpc.ServiceDesc for HelloService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
Types ¶
type Corpus ¶
type Corpus int32
func (Corpus) Descriptor ¶
func (Corpus) Descriptor() protoreflect.EnumDescriptor
func (Corpus) EnumDescriptor
deprecated
func (Corpus) Number ¶
func (x Corpus) Number() protoreflect.EnumNumber
func (Corpus) Type ¶
func (Corpus) Type() protoreflect.EnumType
type ErrorStatus ¶
type ErrorStatus struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Details []*anypb.Any `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*ErrorStatus) Descriptor
deprecated
func (*ErrorStatus) Descriptor() ([]byte, []int)
Deprecated: Use ErrorStatus.ProtoReflect.Descriptor instead.
func (*ErrorStatus) GetDetails ¶
func (x *ErrorStatus) GetDetails() []*anypb.Any
func (*ErrorStatus) GetMessage ¶
func (x *ErrorStatus) GetMessage() string
func (*ErrorStatus) ProtoMessage ¶
func (*ErrorStatus) ProtoMessage()
func (*ErrorStatus) ProtoReflect ¶
func (x *ErrorStatus) ProtoReflect() protoreflect.Message
func (*ErrorStatus) Reset ¶
func (x *ErrorStatus) Reset()
func (*ErrorStatus) String ¶
func (x *ErrorStatus) String() string
type ErrorStatusExt ¶
type ErrorStatusExt struct { ErrorStatus *ErrorStatus `protobuf:"bytes,1,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"` // contains filtered or unexported fields }
func (*ErrorStatusExt) Descriptor
deprecated
func (*ErrorStatusExt) Descriptor() ([]byte, []int)
Deprecated: Use ErrorStatusExt.ProtoReflect.Descriptor instead.
func (*ErrorStatusExt) GetErrorStatus ¶
func (x *ErrorStatusExt) GetErrorStatus() *ErrorStatus
func (*ErrorStatusExt) ProtoMessage ¶
func (*ErrorStatusExt) ProtoMessage()
func (*ErrorStatusExt) ProtoReflect ¶
func (x *ErrorStatusExt) ProtoReflect() protoreflect.Message
func (*ErrorStatusExt) Reset ¶
func (x *ErrorStatusExt) Reset()
func (*ErrorStatusExt) String ¶
func (x *ErrorStatusExt) String() string
type HelloServiceClient ¶
type HelloServiceClient interface {
Hello(ctx context.Context, in *String, opts ...grpc.CallOption) (*String, error)
}
HelloServiceClient is the client API for HelloService 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.
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { Hello(context.Context, *String) (*String, error) // contains filtered or unexported methods }
HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility
type Result ¶
type Result struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` A map[string]int32 `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type SampleMessage ¶
type SampleMessage struct { // Types that are assignable to TestOneof: // *SampleMessage_Sub1 // *SampleMessage_Sub2 TestOneof isSampleMessage_TestOneof `protobuf_oneof:"test_oneof"` // contains filtered or unexported fields }
func (*SampleMessage) Descriptor
deprecated
func (*SampleMessage) Descriptor() ([]byte, []int)
Deprecated: Use SampleMessage.ProtoReflect.Descriptor instead.
func (*SampleMessage) GetSub1 ¶
func (x *SampleMessage) GetSub1() *Sub1
func (*SampleMessage) GetSub2 ¶
func (x *SampleMessage) GetSub2() *Sub2
func (*SampleMessage) GetTestOneof ¶
func (m *SampleMessage) GetTestOneof() isSampleMessage_TestOneof
func (*SampleMessage) ProtoMessage ¶
func (*SampleMessage) ProtoMessage()
func (*SampleMessage) ProtoReflect ¶
func (x *SampleMessage) ProtoReflect() protoreflect.Message
func (*SampleMessage) Reset ¶
func (x *SampleMessage) Reset()
func (*SampleMessage) String ¶
func (x *SampleMessage) String() string
type SampleMessage_Sub1 ¶
type SampleMessage_Sub1 struct {
Sub1 *Sub1 `protobuf:"bytes,1,opt,name=sub1,proto3,oneof"`
}
type SampleMessage_Sub2 ¶
type SampleMessage_Sub2 struct {
Sub2 *Sub2 `protobuf:"bytes,2,opt,name=sub2,proto3,oneof"`
}
type SearchResponse ¶
type SearchResponse struct { Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetResults ¶
func (x *SearchResponse) GetResults() []*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 String ¶
type String struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*String) Descriptor
deprecated
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶
func (x *String) ProtoReflect() protoreflect.Message
type Sub1 ¶
type Sub1 struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Sub1) Descriptor
deprecated
func (*Sub1) ProtoMessage ¶
func (*Sub1) ProtoMessage()
func (*Sub1) ProtoReflect ¶
func (x *Sub1) ProtoReflect() protoreflect.Message
type Sub2 ¶
type Sub2 struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Sub2) Descriptor
deprecated
func (*Sub2) ProtoMessage ¶
func (*Sub2) ProtoMessage()
func (*Sub2) ProtoReflect ¶
func (x *Sub2) ProtoReflect() protoreflect.Message
type UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct { }
UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.
type UnsafeHelloServiceServer ¶
type UnsafeHelloServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServiceServer will result in compilation errors.