Documentation ¶
Index ¶
- Variables
- func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)
- type EntityKey
- type GetSavedSearchResultsRequest
- func (*GetSavedSearchResultsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSavedSearchResultsRequest) GetCursor() *protobuf.PageCursor
- func (x *GetSavedSearchResultsRequest) GetKind() Kind
- func (*GetSavedSearchResultsRequest) ProtoMessage()
- func (x *GetSavedSearchResultsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSavedSearchResultsRequest) Reset()
- func (x *GetSavedSearchResultsRequest) String() string
- type GetSavedSearchResultsResponse
- func (*GetSavedSearchResultsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSavedSearchResultsResponse) GetPageInfo() *protobuf.PageInfo
- func (x *GetSavedSearchResultsResponse) GetResults() []*SavedSearchResult
- func (*GetSavedSearchResultsResponse) ProtoMessage()
- func (x *GetSavedSearchResultsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSavedSearchResultsResponse) Reset()
- func (x *GetSavedSearchResultsResponse) String() string
- type Kind
- type RecommendationServiceClient
- type RecommendationServiceServer
- type SaveSearchResultRequest
- func (*SaveSearchResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveSearchResultRequest) GetEntityKey() *EntityKey
- func (x *SaveSearchResultRequest) GetKind() Kind
- func (*SaveSearchResultRequest) ProtoMessage()
- func (x *SaveSearchResultRequest) ProtoReflect() protoreflect.Message
- func (x *SaveSearchResultRequest) Reset()
- func (x *SaveSearchResultRequest) String() string
- type SaveSearchResultResponse
- type SavedSearchResult
- func (*SavedSearchResult) Descriptor() ([]byte, []int)deprecated
- func (x *SavedSearchResult) GetEntityKey() *EntityKey
- func (x *SavedSearchResult) GetKind() Kind
- func (x *SavedSearchResult) GetSearchedAt() *timestamppb.Timestamp
- func (*SavedSearchResult) ProtoMessage()
- func (x *SavedSearchResult) ProtoReflect() protoreflect.Message
- func (x *SavedSearchResult) Reset()
- func (x *SavedSearchResult) String() string
- type UnimplementedRecommendationServiceServer
- func (UnimplementedRecommendationServiceServer) GetSavedSearchResults(context.Context, *GetSavedSearchResultsRequest) (*GetSavedSearchResultsResponse, error)
- func (UnimplementedRecommendationServiceServer) SaveSearchResult(context.Context, *SaveSearchResultRequest) (*SaveSearchResultResponse, error)
- func (UnimplementedRecommendationServiceServer) UnsaveSearchResult(context.Context, *UnsaveSearchResultRequest) (*UnsaveSearchResultResponse, error)
- type UnsafeRecommendationServiceServer
- type UnsaveSearchResultRequest
- func (*UnsaveSearchResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnsaveSearchResultRequest) GetEntityKey() *EntityKey
- func (x *UnsaveSearchResultRequest) GetKind() Kind
- func (*UnsaveSearchResultRequest) ProtoMessage()
- func (x *UnsaveSearchResultRequest) ProtoReflect() protoreflect.Message
- func (x *UnsaveSearchResultRequest) Reset()
- func (x *UnsaveSearchResultRequest) String() string
- type UnsaveSearchResultResponse
Constants ¶
This section is empty.
Variables ¶
var ( Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_APP", 2: "KIND_CHAT", 3: "KIND_POST", 4: "KIND_CIRCLE", 5: "KIND_PROFILE", } Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_APP": 1, "KIND_CHAT": 2, "KIND_POST": 3, "KIND_CIRCLE": 4, "KIND_PROFILE": 5, } )
Enum value maps for Kind.
var File_recommendation_api_recommendation_v1_recommendation_proto protoreflect.FileDescriptor
var RecommendationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "recommendation.v1.RecommendationService", HandlerType: (*RecommendationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SaveSearchResult", Handler: _RecommendationService_SaveSearchResult_Handler, }, { MethodName: "UnsaveSearchResult", Handler: _RecommendationService_UnsaveSearchResult_Handler, }, { MethodName: "GetSavedSearchResults", Handler: _RecommendationService_GetSavedSearchResults_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "recommendation-api/recommendation/v1/recommendation.proto", }
RecommendationService_ServiceDesc is the grpc.ServiceDesc for RecommendationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecommendationServiceServer ¶
func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)
Types ¶
type EntityKey ¶
type EntityKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EntityKey) Descriptor
deprecated
func (*EntityKey) ProtoMessage ¶
func (*EntityKey) ProtoMessage()
func (*EntityKey) ProtoReflect ¶
func (x *EntityKey) ProtoReflect() protoreflect.Message
type GetSavedSearchResultsRequest ¶
type GetSavedSearchResultsRequest struct { Kind Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=recommendation.v1.Kind" json:"kind,omitempty"` Cursor *protobuf.PageCursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*GetSavedSearchResultsRequest) Descriptor
deprecated
func (*GetSavedSearchResultsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSavedSearchResultsRequest.ProtoReflect.Descriptor instead.
func (*GetSavedSearchResultsRequest) GetCursor ¶
func (x *GetSavedSearchResultsRequest) GetCursor() *protobuf.PageCursor
func (*GetSavedSearchResultsRequest) GetKind ¶
func (x *GetSavedSearchResultsRequest) GetKind() Kind
func (*GetSavedSearchResultsRequest) ProtoMessage ¶
func (*GetSavedSearchResultsRequest) ProtoMessage()
func (*GetSavedSearchResultsRequest) ProtoReflect ¶
func (x *GetSavedSearchResultsRequest) ProtoReflect() protoreflect.Message
func (*GetSavedSearchResultsRequest) Reset ¶
func (x *GetSavedSearchResultsRequest) Reset()
func (*GetSavedSearchResultsRequest) String ¶
func (x *GetSavedSearchResultsRequest) String() string
type GetSavedSearchResultsResponse ¶
type GetSavedSearchResultsResponse struct { PageInfo *protobuf.PageInfo `protobuf:"bytes,1,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"` Results []*SavedSearchResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*GetSavedSearchResultsResponse) Descriptor
deprecated
func (*GetSavedSearchResultsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSavedSearchResultsResponse.ProtoReflect.Descriptor instead.
func (*GetSavedSearchResultsResponse) GetPageInfo ¶
func (x *GetSavedSearchResultsResponse) GetPageInfo() *protobuf.PageInfo
func (*GetSavedSearchResultsResponse) GetResults ¶
func (x *GetSavedSearchResultsResponse) GetResults() []*SavedSearchResult
func (*GetSavedSearchResultsResponse) ProtoMessage ¶
func (*GetSavedSearchResultsResponse) ProtoMessage()
func (*GetSavedSearchResultsResponse) ProtoReflect ¶
func (x *GetSavedSearchResultsResponse) ProtoReflect() protoreflect.Message
func (*GetSavedSearchResultsResponse) Reset ¶
func (x *GetSavedSearchResultsResponse) Reset()
func (*GetSavedSearchResultsResponse) String ¶
func (x *GetSavedSearchResultsResponse) String() string
type Kind ¶
type Kind int32
func (Kind) Descriptor ¶
func (Kind) Descriptor() protoreflect.EnumDescriptor
func (Kind) EnumDescriptor
deprecated
func (Kind) Number ¶
func (x Kind) Number() protoreflect.EnumNumber
func (Kind) Type ¶
func (Kind) Type() protoreflect.EnumType
type RecommendationServiceClient ¶
type RecommendationServiceClient interface { SaveSearchResult(ctx context.Context, in *SaveSearchResultRequest, opts ...grpc.CallOption) (*SaveSearchResultResponse, error) UnsaveSearchResult(ctx context.Context, in *UnsaveSearchResultRequest, opts ...grpc.CallOption) (*UnsaveSearchResultResponse, error) GetSavedSearchResults(ctx context.Context, in *GetSavedSearchResultsRequest, opts ...grpc.CallOption) (*GetSavedSearchResultsResponse, error) }
RecommendationServiceClient is the client API for RecommendationService 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 NewRecommendationServiceClient ¶
func NewRecommendationServiceClient(cc grpc.ClientConnInterface) RecommendationServiceClient
type RecommendationServiceServer ¶
type RecommendationServiceServer interface { SaveSearchResult(context.Context, *SaveSearchResultRequest) (*SaveSearchResultResponse, error) UnsaveSearchResult(context.Context, *UnsaveSearchResultRequest) (*UnsaveSearchResultResponse, error) GetSavedSearchResults(context.Context, *GetSavedSearchResultsRequest) (*GetSavedSearchResultsResponse, error) // contains filtered or unexported methods }
RecommendationServiceServer is the server API for RecommendationService service. All implementations must embed UnimplementedRecommendationServiceServer for forward compatibility
type SaveSearchResultRequest ¶
type SaveSearchResultRequest struct { Kind Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=recommendation.v1.Kind" json:"kind,omitempty"` EntityKey *EntityKey `protobuf:"bytes,2,opt,name=entity_key,json=entityKey,proto3" json:"entity_key,omitempty"` // contains filtered or unexported fields }
func (*SaveSearchResultRequest) Descriptor
deprecated
func (*SaveSearchResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveSearchResultRequest.ProtoReflect.Descriptor instead.
func (*SaveSearchResultRequest) GetEntityKey ¶
func (x *SaveSearchResultRequest) GetEntityKey() *EntityKey
func (*SaveSearchResultRequest) GetKind ¶
func (x *SaveSearchResultRequest) GetKind() Kind
func (*SaveSearchResultRequest) ProtoMessage ¶
func (*SaveSearchResultRequest) ProtoMessage()
func (*SaveSearchResultRequest) ProtoReflect ¶
func (x *SaveSearchResultRequest) ProtoReflect() protoreflect.Message
func (*SaveSearchResultRequest) Reset ¶
func (x *SaveSearchResultRequest) Reset()
func (*SaveSearchResultRequest) String ¶
func (x *SaveSearchResultRequest) String() string
type SaveSearchResultResponse ¶
type SaveSearchResultResponse struct {
// contains filtered or unexported fields
}
func (*SaveSearchResultResponse) Descriptor
deprecated
func (*SaveSearchResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveSearchResultResponse.ProtoReflect.Descriptor instead.
func (*SaveSearchResultResponse) ProtoMessage ¶
func (*SaveSearchResultResponse) ProtoMessage()
func (*SaveSearchResultResponse) ProtoReflect ¶
func (x *SaveSearchResultResponse) ProtoReflect() protoreflect.Message
func (*SaveSearchResultResponse) Reset ¶
func (x *SaveSearchResultResponse) Reset()
func (*SaveSearchResultResponse) String ¶
func (x *SaveSearchResultResponse) String() string
type SavedSearchResult ¶
type SavedSearchResult struct { Kind Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=recommendation.v1.Kind" json:"kind,omitempty"` EntityKey *EntityKey `protobuf:"bytes,2,opt,name=entity_key,json=entityKey,proto3" json:"entity_key,omitempty"` SearchedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=searched_at,json=searchedAt,proto3" json:"searched_at,omitempty"` // contains filtered or unexported fields }
func (*SavedSearchResult) Descriptor
deprecated
func (*SavedSearchResult) Descriptor() ([]byte, []int)
Deprecated: Use SavedSearchResult.ProtoReflect.Descriptor instead.
func (*SavedSearchResult) GetEntityKey ¶
func (x *SavedSearchResult) GetEntityKey() *EntityKey
func (*SavedSearchResult) GetKind ¶
func (x *SavedSearchResult) GetKind() Kind
func (*SavedSearchResult) GetSearchedAt ¶
func (x *SavedSearchResult) GetSearchedAt() *timestamppb.Timestamp
func (*SavedSearchResult) ProtoMessage ¶
func (*SavedSearchResult) ProtoMessage()
func (*SavedSearchResult) ProtoReflect ¶
func (x *SavedSearchResult) ProtoReflect() protoreflect.Message
func (*SavedSearchResult) Reset ¶
func (x *SavedSearchResult) Reset()
func (*SavedSearchResult) String ¶
func (x *SavedSearchResult) String() string
type UnimplementedRecommendationServiceServer ¶
type UnimplementedRecommendationServiceServer struct { }
UnimplementedRecommendationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRecommendationServiceServer) GetSavedSearchResults ¶
func (UnimplementedRecommendationServiceServer) GetSavedSearchResults(context.Context, *GetSavedSearchResultsRequest) (*GetSavedSearchResultsResponse, error)
func (UnimplementedRecommendationServiceServer) SaveSearchResult ¶
func (UnimplementedRecommendationServiceServer) SaveSearchResult(context.Context, *SaveSearchResultRequest) (*SaveSearchResultResponse, error)
func (UnimplementedRecommendationServiceServer) UnsaveSearchResult ¶
func (UnimplementedRecommendationServiceServer) UnsaveSearchResult(context.Context, *UnsaveSearchResultRequest) (*UnsaveSearchResultResponse, error)
type UnsafeRecommendationServiceServer ¶
type UnsafeRecommendationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRecommendationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecommendationServiceServer will result in compilation errors.
type UnsaveSearchResultRequest ¶
type UnsaveSearchResultRequest struct { Kind Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=recommendation.v1.Kind" json:"kind,omitempty"` EntityKey *EntityKey `protobuf:"bytes,2,opt,name=entity_key,json=entityKey,proto3" json:"entity_key,omitempty"` // contains filtered or unexported fields }
func (*UnsaveSearchResultRequest) Descriptor
deprecated
func (*UnsaveSearchResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnsaveSearchResultRequest.ProtoReflect.Descriptor instead.
func (*UnsaveSearchResultRequest) GetEntityKey ¶
func (x *UnsaveSearchResultRequest) GetEntityKey() *EntityKey
func (*UnsaveSearchResultRequest) GetKind ¶
func (x *UnsaveSearchResultRequest) GetKind() Kind
func (*UnsaveSearchResultRequest) ProtoMessage ¶
func (*UnsaveSearchResultRequest) ProtoMessage()
func (*UnsaveSearchResultRequest) ProtoReflect ¶
func (x *UnsaveSearchResultRequest) ProtoReflect() protoreflect.Message
func (*UnsaveSearchResultRequest) Reset ¶
func (x *UnsaveSearchResultRequest) Reset()
func (*UnsaveSearchResultRequest) String ¶
func (x *UnsaveSearchResultRequest) String() string
type UnsaveSearchResultResponse ¶
type UnsaveSearchResultResponse struct {
// contains filtered or unexported fields
}
func (*UnsaveSearchResultResponse) Descriptor
deprecated
func (*UnsaveSearchResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnsaveSearchResultResponse.ProtoReflect.Descriptor instead.
func (*UnsaveSearchResultResponse) ProtoMessage ¶
func (*UnsaveSearchResultResponse) ProtoMessage()
func (*UnsaveSearchResultResponse) ProtoReflect ¶
func (x *UnsaveSearchResultResponse) ProtoReflect() protoreflect.Message
func (*UnsaveSearchResultResponse) Reset ¶
func (x *UnsaveSearchResultResponse) Reset()
func (*UnsaveSearchResultResponse) String ¶
func (x *UnsaveSearchResultResponse) String() string