Documentation ¶
Index ¶
- Variables
- func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)
- type EntityKey
- type GetCircleMeanScreenTimeRequest
- func (*GetCircleMeanScreenTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCircleMeanScreenTimeRequest) GetAfter() *timestamppb.Timestamp
- func (x *GetCircleMeanScreenTimeRequest) GetBefore() *timestamppb.Timestamp
- func (x *GetCircleMeanScreenTimeRequest) GetCircleId() string
- func (*GetCircleMeanScreenTimeRequest) ProtoMessage()
- func (x *GetCircleMeanScreenTimeRequest) ProtoReflect() protoreflect.Message
- func (x *GetCircleMeanScreenTimeRequest) Reset()
- func (x *GetCircleMeanScreenTimeRequest) String() string
- type GetCircleMeanScreenTimeResponse
- func (*GetCircleMeanScreenTimeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCircleMeanScreenTimeResponse) GetDuration() *durationpb.Duration
- func (*GetCircleMeanScreenTimeResponse) ProtoMessage()
- func (x *GetCircleMeanScreenTimeResponse) ProtoReflect() protoreflect.Message
- func (x *GetCircleMeanScreenTimeResponse) Reset()
- func (x *GetCircleMeanScreenTimeResponse) String() string
- type GetCircleTotalScreenTimeRequest
- func (*GetCircleTotalScreenTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCircleTotalScreenTimeRequest) GetAfter() *timestamppb.Timestamp
- func (x *GetCircleTotalScreenTimeRequest) GetBefore() *timestamppb.Timestamp
- func (x *GetCircleTotalScreenTimeRequest) GetCircleId() string
- func (*GetCircleTotalScreenTimeRequest) ProtoMessage()
- func (x *GetCircleTotalScreenTimeRequest) ProtoReflect() protoreflect.Message
- func (x *GetCircleTotalScreenTimeRequest) Reset()
- func (x *GetCircleTotalScreenTimeRequest) String() string
- type GetCircleTotalScreenTimeResponse
- func (*GetCircleTotalScreenTimeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCircleTotalScreenTimeResponse) GetDuration() *durationpb.Duration
- func (*GetCircleTotalScreenTimeResponse) ProtoMessage()
- func (x *GetCircleTotalScreenTimeResponse) ProtoReflect() protoreflect.Message
- func (x *GetCircleTotalScreenTimeResponse) Reset()
- func (x *GetCircleTotalScreenTimeResponse) String() string
- 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 PostScreenTimeKind
- func (PostScreenTimeKind) Descriptor() protoreflect.EnumDescriptor
- func (x PostScreenTimeKind) Enum() *PostScreenTimeKind
- func (PostScreenTimeKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x PostScreenTimeKind) Number() protoreflect.EnumNumber
- func (x PostScreenTimeKind) String() string
- func (PostScreenTimeKind) Type() protoreflect.EnumType
- type RecommendationServiceClient
- type RecommendationServiceServer
- type SavePostScreenTimeRequest
- func (*SavePostScreenTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SavePostScreenTimeRequest) GetDuration() *durationpb.Duration
- func (x *SavePostScreenTimeRequest) GetKind() PostScreenTimeKind
- func (x *SavePostScreenTimeRequest) GetPostId() string
- func (*SavePostScreenTimeRequest) ProtoMessage()
- func (x *SavePostScreenTimeRequest) ProtoReflect() protoreflect.Message
- func (x *SavePostScreenTimeRequest) Reset()
- func (x *SavePostScreenTimeRequest) String() string
- type SavePostScreenTimeResponse
- 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 SyncCircleMemberRequest
- func (*SyncCircleMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncCircleMemberRequest) GetBannedAt() *timestamppb.Timestamp
- func (x *SyncCircleMemberRequest) GetCircleId() string
- func (x *SyncCircleMemberRequest) GetJoinedAt() *timestamppb.Timestamp
- func (x *SyncCircleMemberRequest) GetUserId() string
- func (*SyncCircleMemberRequest) ProtoMessage()
- func (x *SyncCircleMemberRequest) ProtoReflect() protoreflect.Message
- func (x *SyncCircleMemberRequest) Reset()
- func (x *SyncCircleMemberRequest) String() string
- type SyncCircleRequest
- func (*SyncCircleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncCircleRequest) GetCircleId() string
- func (x *SyncCircleRequest) GetGroupId() string
- func (x *SyncCircleRequest) GetUpdatedAt() *timestamppb.Timestamp
- func (*SyncCircleRequest) ProtoMessage()
- func (x *SyncCircleRequest) ProtoReflect() protoreflect.Message
- func (x *SyncCircleRequest) Reset()
- func (x *SyncCircleRequest) String() string
- type SyncUserFollowRequest
- func (*SyncUserFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncUserFollowRequest) GetFollowedAt() *timestamppb.Timestamp
- func (x *SyncUserFollowRequest) GetTargetUserId() string
- func (x *SyncUserFollowRequest) GetUserId() string
- func (*SyncUserFollowRequest) ProtoMessage()
- func (x *SyncUserFollowRequest) ProtoReflect() protoreflect.Message
- func (x *SyncUserFollowRequest) Reset()
- func (x *SyncUserFollowRequest) String() string
- type SyncUserRequest
- func (*SyncUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncUserRequest) GetBannedAt() *timestamppb.Timestamp
- func (x *SyncUserRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *SyncUserRequest) GetLanguageCodes() []string
- func (x *SyncUserRequest) GetUserId() string
- func (*SyncUserRequest) ProtoMessage()
- func (x *SyncUserRequest) ProtoReflect() protoreflect.Message
- func (x *SyncUserRequest) Reset()
- func (x *SyncUserRequest) String() string
- type UnimplementedRecommendationServiceServer
- func (UnimplementedRecommendationServiceServer) GetCircleMeanScreenTime(context.Context, *GetCircleMeanScreenTimeRequest) (*GetCircleMeanScreenTimeResponse, error)
- func (UnimplementedRecommendationServiceServer) GetCircleTotalScreenTime(context.Context, *GetCircleTotalScreenTimeRequest) (*GetCircleTotalScreenTimeResponse, error)
- func (UnimplementedRecommendationServiceServer) GetSavedSearchResults(context.Context, *GetSavedSearchResultsRequest) (*GetSavedSearchResultsResponse, error)
- func (UnimplementedRecommendationServiceServer) SavePostScreenTime(context.Context, *SavePostScreenTimeRequest) (*SavePostScreenTimeResponse, error)
- func (UnimplementedRecommendationServiceServer) SaveSearchResult(context.Context, *SaveSearchResultRequest) (*SaveSearchResultResponse, error)
- func (UnimplementedRecommendationServiceServer) SyncCircle(context.Context, *SyncCircleRequest) (*emptypb.Empty, error)
- func (UnimplementedRecommendationServiceServer) SyncCircleMember(context.Context, *SyncCircleMemberRequest) (*emptypb.Empty, error)
- func (UnimplementedRecommendationServiceServer) SyncUser(context.Context, *SyncUserRequest) (*emptypb.Empty, error)
- func (UnimplementedRecommendationServiceServer) SyncUserFollow(context.Context, *SyncUserFollowRequest) (*emptypb.Empty, 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 ( PostScreenTimeKind_name = map[int32]string{ 0: "PostScreenTimeKind_Content", 1: "PostScreenTimeKind_Comments", } PostScreenTimeKind_value = map[string]int32{ "PostScreenTimeKind_Content": 0, "PostScreenTimeKind_Comments": 1, } )
Enum value maps for PostScreenTimeKind.
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, }, { MethodName: "SavePostScreenTime", Handler: _RecommendationService_SavePostScreenTime_Handler, }, { MethodName: "GetCircleMeanScreenTime", Handler: _RecommendationService_GetCircleMeanScreenTime_Handler, }, { MethodName: "GetCircleTotalScreenTime", Handler: _RecommendationService_GetCircleTotalScreenTime_Handler, }, { MethodName: "SyncCircle", Handler: _RecommendationService_SyncCircle_Handler, }, { MethodName: "SyncCircleMember", Handler: _RecommendationService_SyncCircleMember_Handler, }, { MethodName: "SyncUser", Handler: _RecommendationService_SyncUser_Handler, }, { MethodName: "SyncUserFollow", Handler: _RecommendationService_SyncUserFollow_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 GetCircleMeanScreenTimeRequest ¶ added in v0.2.77
type GetCircleMeanScreenTimeRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` After *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` Before *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=before,proto3" json:"before,omitempty"` // contains filtered or unexported fields }
func (*GetCircleMeanScreenTimeRequest) Descriptor
deprecated
added in
v0.2.77
func (*GetCircleMeanScreenTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCircleMeanScreenTimeRequest.ProtoReflect.Descriptor instead.
func (*GetCircleMeanScreenTimeRequest) GetAfter ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) GetAfter() *timestamppb.Timestamp
func (*GetCircleMeanScreenTimeRequest) GetBefore ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) GetBefore() *timestamppb.Timestamp
func (*GetCircleMeanScreenTimeRequest) GetCircleId ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) GetCircleId() string
func (*GetCircleMeanScreenTimeRequest) ProtoMessage ¶ added in v0.2.77
func (*GetCircleMeanScreenTimeRequest) ProtoMessage()
func (*GetCircleMeanScreenTimeRequest) ProtoReflect ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) ProtoReflect() protoreflect.Message
func (*GetCircleMeanScreenTimeRequest) Reset ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) Reset()
func (*GetCircleMeanScreenTimeRequest) String ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeRequest) String() string
type GetCircleMeanScreenTimeResponse ¶ added in v0.2.77
type GetCircleMeanScreenTimeResponse struct { Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*GetCircleMeanScreenTimeResponse) Descriptor
deprecated
added in
v0.2.77
func (*GetCircleMeanScreenTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCircleMeanScreenTimeResponse.ProtoReflect.Descriptor instead.
func (*GetCircleMeanScreenTimeResponse) GetDuration ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeResponse) GetDuration() *durationpb.Duration
func (*GetCircleMeanScreenTimeResponse) ProtoMessage ¶ added in v0.2.77
func (*GetCircleMeanScreenTimeResponse) ProtoMessage()
func (*GetCircleMeanScreenTimeResponse) ProtoReflect ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeResponse) ProtoReflect() protoreflect.Message
func (*GetCircleMeanScreenTimeResponse) Reset ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeResponse) Reset()
func (*GetCircleMeanScreenTimeResponse) String ¶ added in v0.2.77
func (x *GetCircleMeanScreenTimeResponse) String() string
type GetCircleTotalScreenTimeRequest ¶ added in v0.2.77
type GetCircleTotalScreenTimeRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` After *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` Before *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=before,proto3" json:"before,omitempty"` // contains filtered or unexported fields }
func (*GetCircleTotalScreenTimeRequest) Descriptor
deprecated
added in
v0.2.77
func (*GetCircleTotalScreenTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCircleTotalScreenTimeRequest.ProtoReflect.Descriptor instead.
func (*GetCircleTotalScreenTimeRequest) GetAfter ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) GetAfter() *timestamppb.Timestamp
func (*GetCircleTotalScreenTimeRequest) GetBefore ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) GetBefore() *timestamppb.Timestamp
func (*GetCircleTotalScreenTimeRequest) GetCircleId ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) GetCircleId() string
func (*GetCircleTotalScreenTimeRequest) ProtoMessage ¶ added in v0.2.77
func (*GetCircleTotalScreenTimeRequest) ProtoMessage()
func (*GetCircleTotalScreenTimeRequest) ProtoReflect ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) ProtoReflect() protoreflect.Message
func (*GetCircleTotalScreenTimeRequest) Reset ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) Reset()
func (*GetCircleTotalScreenTimeRequest) String ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeRequest) String() string
type GetCircleTotalScreenTimeResponse ¶ added in v0.2.77
type GetCircleTotalScreenTimeResponse struct { Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*GetCircleTotalScreenTimeResponse) Descriptor
deprecated
added in
v0.2.77
func (*GetCircleTotalScreenTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCircleTotalScreenTimeResponse.ProtoReflect.Descriptor instead.
func (*GetCircleTotalScreenTimeResponse) GetDuration ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeResponse) GetDuration() *durationpb.Duration
func (*GetCircleTotalScreenTimeResponse) ProtoMessage ¶ added in v0.2.77
func (*GetCircleTotalScreenTimeResponse) ProtoMessage()
func (*GetCircleTotalScreenTimeResponse) ProtoReflect ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeResponse) ProtoReflect() protoreflect.Message
func (*GetCircleTotalScreenTimeResponse) Reset ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeResponse) Reset()
func (*GetCircleTotalScreenTimeResponse) String ¶ added in v0.2.77
func (x *GetCircleTotalScreenTimeResponse) String() string
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 PostScreenTimeKind ¶ added in v0.2.77
type PostScreenTimeKind int32
buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
const ( PostScreenTimeKind_PostScreenTimeKind_Content PostScreenTimeKind = 0 PostScreenTimeKind_PostScreenTimeKind_Comments PostScreenTimeKind = 1 )
func (PostScreenTimeKind) Descriptor ¶ added in v0.2.77
func (PostScreenTimeKind) Descriptor() protoreflect.EnumDescriptor
func (PostScreenTimeKind) Enum ¶ added in v0.2.77
func (x PostScreenTimeKind) Enum() *PostScreenTimeKind
func (PostScreenTimeKind) EnumDescriptor
deprecated
added in
v0.2.77
func (PostScreenTimeKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use PostScreenTimeKind.Descriptor instead.
func (PostScreenTimeKind) Number ¶ added in v0.2.77
func (x PostScreenTimeKind) Number() protoreflect.EnumNumber
func (PostScreenTimeKind) String ¶ added in v0.2.77
func (x PostScreenTimeKind) String() string
func (PostScreenTimeKind) Type ¶ added in v0.2.77
func (PostScreenTimeKind) 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) SavePostScreenTime(ctx context.Context, in *SavePostScreenTimeRequest, opts ...grpc.CallOption) (*SavePostScreenTimeResponse, error) GetCircleMeanScreenTime(ctx context.Context, in *GetCircleMeanScreenTimeRequest, opts ...grpc.CallOption) (*GetCircleMeanScreenTimeResponse, error) GetCircleTotalScreenTime(ctx context.Context, in *GetCircleTotalScreenTimeRequest, opts ...grpc.CallOption) (*GetCircleTotalScreenTimeResponse, error) SyncCircle(ctx context.Context, in *SyncCircleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SyncCircleMember(ctx context.Context, in *SyncCircleMemberRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SyncUser(ctx context.Context, in *SyncUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SyncUserFollow(ctx context.Context, in *SyncUserFollowRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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) SavePostScreenTime(context.Context, *SavePostScreenTimeRequest) (*SavePostScreenTimeResponse, error) GetCircleMeanScreenTime(context.Context, *GetCircleMeanScreenTimeRequest) (*GetCircleMeanScreenTimeResponse, error) GetCircleTotalScreenTime(context.Context, *GetCircleTotalScreenTimeRequest) (*GetCircleTotalScreenTimeResponse, error) SyncCircle(context.Context, *SyncCircleRequest) (*emptypb.Empty, error) SyncCircleMember(context.Context, *SyncCircleMemberRequest) (*emptypb.Empty, error) SyncUser(context.Context, *SyncUserRequest) (*emptypb.Empty, error) SyncUserFollow(context.Context, *SyncUserFollowRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
RecommendationServiceServer is the server API for RecommendationService service. All implementations must embed UnimplementedRecommendationServiceServer for forward compatibility
type SavePostScreenTimeRequest ¶ added in v0.2.77
type SavePostScreenTimeRequest struct { PostId string `protobuf:"bytes,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` Kind PostScreenTimeKind `protobuf:"varint,3,opt,name=kind,proto3,enum=recommendation.v1.PostScreenTimeKind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*SavePostScreenTimeRequest) Descriptor
deprecated
added in
v0.2.77
func (*SavePostScreenTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SavePostScreenTimeRequest.ProtoReflect.Descriptor instead.
func (*SavePostScreenTimeRequest) GetDuration ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) GetDuration() *durationpb.Duration
func (*SavePostScreenTimeRequest) GetKind ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) GetKind() PostScreenTimeKind
func (*SavePostScreenTimeRequest) GetPostId ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) GetPostId() string
func (*SavePostScreenTimeRequest) ProtoMessage ¶ added in v0.2.77
func (*SavePostScreenTimeRequest) ProtoMessage()
func (*SavePostScreenTimeRequest) ProtoReflect ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) ProtoReflect() protoreflect.Message
func (*SavePostScreenTimeRequest) Reset ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) Reset()
func (*SavePostScreenTimeRequest) String ¶ added in v0.2.77
func (x *SavePostScreenTimeRequest) String() string
type SavePostScreenTimeResponse ¶ added in v0.2.77
type SavePostScreenTimeResponse struct {
// contains filtered or unexported fields
}
func (*SavePostScreenTimeResponse) Descriptor
deprecated
added in
v0.2.77
func (*SavePostScreenTimeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SavePostScreenTimeResponse.ProtoReflect.Descriptor instead.
func (*SavePostScreenTimeResponse) ProtoMessage ¶ added in v0.2.77
func (*SavePostScreenTimeResponse) ProtoMessage()
func (*SavePostScreenTimeResponse) ProtoReflect ¶ added in v0.2.77
func (x *SavePostScreenTimeResponse) ProtoReflect() protoreflect.Message
func (*SavePostScreenTimeResponse) Reset ¶ added in v0.2.77
func (x *SavePostScreenTimeResponse) Reset()
func (*SavePostScreenTimeResponse) String ¶ added in v0.2.77
func (x *SavePostScreenTimeResponse) String() string
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 SyncCircleMemberRequest ¶ added in v0.2.80
type SyncCircleMemberRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` JoinedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` BannedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=banned_at,json=bannedAt,proto3" json:"banned_at,omitempty"` // contains filtered or unexported fields }
func (*SyncCircleMemberRequest) Descriptor
deprecated
added in
v0.2.80
func (*SyncCircleMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncCircleMemberRequest.ProtoReflect.Descriptor instead.
func (*SyncCircleMemberRequest) GetBannedAt ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) GetBannedAt() *timestamppb.Timestamp
func (*SyncCircleMemberRequest) GetCircleId ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) GetCircleId() string
func (*SyncCircleMemberRequest) GetJoinedAt ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) GetJoinedAt() *timestamppb.Timestamp
func (*SyncCircleMemberRequest) GetUserId ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) GetUserId() string
func (*SyncCircleMemberRequest) ProtoMessage ¶ added in v0.2.80
func (*SyncCircleMemberRequest) ProtoMessage()
func (*SyncCircleMemberRequest) ProtoReflect ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) ProtoReflect() protoreflect.Message
func (*SyncCircleMemberRequest) Reset ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) Reset()
func (*SyncCircleMemberRequest) String ¶ added in v0.2.80
func (x *SyncCircleMemberRequest) String() string
type SyncCircleRequest ¶ added in v0.2.80
type SyncCircleRequest struct { CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*SyncCircleRequest) Descriptor
deprecated
added in
v0.2.80
func (*SyncCircleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncCircleRequest.ProtoReflect.Descriptor instead.
func (*SyncCircleRequest) GetCircleId ¶ added in v0.2.80
func (x *SyncCircleRequest) GetCircleId() string
func (*SyncCircleRequest) GetGroupId ¶ added in v0.2.80
func (x *SyncCircleRequest) GetGroupId() string
func (*SyncCircleRequest) GetUpdatedAt ¶ added in v0.2.80
func (x *SyncCircleRequest) GetUpdatedAt() *timestamppb.Timestamp
func (*SyncCircleRequest) ProtoMessage ¶ added in v0.2.80
func (*SyncCircleRequest) ProtoMessage()
func (*SyncCircleRequest) ProtoReflect ¶ added in v0.2.80
func (x *SyncCircleRequest) ProtoReflect() protoreflect.Message
func (*SyncCircleRequest) Reset ¶ added in v0.2.80
func (x *SyncCircleRequest) Reset()
func (*SyncCircleRequest) String ¶ added in v0.2.80
func (x *SyncCircleRequest) String() string
type SyncUserFollowRequest ¶ added in v0.2.80
type SyncUserFollowRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` FollowedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=followed_at,json=followedAt,proto3" json:"followed_at,omitempty"` // contains filtered or unexported fields }
func (*SyncUserFollowRequest) Descriptor
deprecated
added in
v0.2.80
func (*SyncUserFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncUserFollowRequest.ProtoReflect.Descriptor instead.
func (*SyncUserFollowRequest) GetFollowedAt ¶ added in v0.2.80
func (x *SyncUserFollowRequest) GetFollowedAt() *timestamppb.Timestamp
func (*SyncUserFollowRequest) GetTargetUserId ¶ added in v0.2.80
func (x *SyncUserFollowRequest) GetTargetUserId() string
func (*SyncUserFollowRequest) GetUserId ¶ added in v0.2.80
func (x *SyncUserFollowRequest) GetUserId() string
func (*SyncUserFollowRequest) ProtoMessage ¶ added in v0.2.80
func (*SyncUserFollowRequest) ProtoMessage()
func (*SyncUserFollowRequest) ProtoReflect ¶ added in v0.2.80
func (x *SyncUserFollowRequest) ProtoReflect() protoreflect.Message
func (*SyncUserFollowRequest) Reset ¶ added in v0.2.80
func (x *SyncUserFollowRequest) Reset()
func (*SyncUserFollowRequest) String ¶ added in v0.2.80
func (x *SyncUserFollowRequest) String() string
type SyncUserRequest ¶ added in v0.2.80
type SyncUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` LanguageCodes []string `protobuf:"bytes,2,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` BannedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=banned_at,json=bannedAt,proto3" json:"banned_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*SyncUserRequest) Descriptor
deprecated
added in
v0.2.80
func (*SyncUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncUserRequest.ProtoReflect.Descriptor instead.
func (*SyncUserRequest) GetBannedAt ¶ added in v0.2.80
func (x *SyncUserRequest) GetBannedAt() *timestamppb.Timestamp
func (*SyncUserRequest) GetCreatedAt ¶ added in v0.2.83
func (x *SyncUserRequest) GetCreatedAt() *timestamppb.Timestamp
func (*SyncUserRequest) GetLanguageCodes ¶ added in v0.2.80
func (x *SyncUserRequest) GetLanguageCodes() []string
func (*SyncUserRequest) GetUserId ¶ added in v0.2.80
func (x *SyncUserRequest) GetUserId() string
func (*SyncUserRequest) ProtoMessage ¶ added in v0.2.80
func (*SyncUserRequest) ProtoMessage()
func (*SyncUserRequest) ProtoReflect ¶ added in v0.2.80
func (x *SyncUserRequest) ProtoReflect() protoreflect.Message
func (*SyncUserRequest) Reset ¶ added in v0.2.80
func (x *SyncUserRequest) Reset()
func (*SyncUserRequest) String ¶ added in v0.2.80
func (x *SyncUserRequest) String() string
type UnimplementedRecommendationServiceServer ¶
type UnimplementedRecommendationServiceServer struct { }
UnimplementedRecommendationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRecommendationServiceServer) GetCircleMeanScreenTime ¶ added in v0.2.77
func (UnimplementedRecommendationServiceServer) GetCircleMeanScreenTime(context.Context, *GetCircleMeanScreenTimeRequest) (*GetCircleMeanScreenTimeResponse, error)
func (UnimplementedRecommendationServiceServer) GetCircleTotalScreenTime ¶ added in v0.2.77
func (UnimplementedRecommendationServiceServer) GetCircleTotalScreenTime(context.Context, *GetCircleTotalScreenTimeRequest) (*GetCircleTotalScreenTimeResponse, error)
func (UnimplementedRecommendationServiceServer) GetSavedSearchResults ¶
func (UnimplementedRecommendationServiceServer) GetSavedSearchResults(context.Context, *GetSavedSearchResultsRequest) (*GetSavedSearchResultsResponse, error)
func (UnimplementedRecommendationServiceServer) SavePostScreenTime ¶ added in v0.2.77
func (UnimplementedRecommendationServiceServer) SavePostScreenTime(context.Context, *SavePostScreenTimeRequest) (*SavePostScreenTimeResponse, error)
func (UnimplementedRecommendationServiceServer) SaveSearchResult ¶
func (UnimplementedRecommendationServiceServer) SaveSearchResult(context.Context, *SaveSearchResultRequest) (*SaveSearchResultResponse, error)
func (UnimplementedRecommendationServiceServer) SyncCircle ¶ added in v0.2.80
func (UnimplementedRecommendationServiceServer) SyncCircle(context.Context, *SyncCircleRequest) (*emptypb.Empty, error)
func (UnimplementedRecommendationServiceServer) SyncCircleMember ¶ added in v0.2.80
func (UnimplementedRecommendationServiceServer) SyncCircleMember(context.Context, *SyncCircleMemberRequest) (*emptypb.Empty, error)
func (UnimplementedRecommendationServiceServer) SyncUser ¶ added in v0.2.80
func (UnimplementedRecommendationServiceServer) SyncUser(context.Context, *SyncUserRequest) (*emptypb.Empty, error)
func (UnimplementedRecommendationServiceServer) SyncUserFollow ¶ added in v0.2.80
func (UnimplementedRecommendationServiceServer) SyncUserFollow(context.Context, *SyncUserFollowRequest) (*emptypb.Empty, 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