v1

package
v0.2.58 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_recommendation_api_recommendation_v1_recommendation_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use EntityKey.ProtoReflect.Descriptor instead.

func (*EntityKey) GetId

func (x *EntityKey) GetId() string

func (*EntityKey) ProtoMessage

func (*EntityKey) ProtoMessage()

func (*EntityKey) ProtoReflect

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

func (*EntityKey) Reset

func (x *EntityKey) Reset()

func (*EntityKey) String

func (x *EntityKey) 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 (*GetSavedSearchResultsRequest) GetKind

func (x *GetSavedSearchResultsRequest) GetKind() Kind

func (*GetSavedSearchResultsRequest) ProtoMessage

func (*GetSavedSearchResultsRequest) ProtoMessage()

func (*GetSavedSearchResultsRequest) ProtoReflect

func (*GetSavedSearchResultsRequest) Reset

func (x *GetSavedSearchResultsRequest) Reset()

func (*GetSavedSearchResultsRequest) 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 (*GetSavedSearchResultsResponse) GetResults

func (*GetSavedSearchResultsResponse) ProtoMessage

func (*GetSavedSearchResultsResponse) ProtoMessage()

func (*GetSavedSearchResultsResponse) ProtoReflect

func (*GetSavedSearchResultsResponse) Reset

func (x *GetSavedSearchResultsResponse) Reset()

func (*GetSavedSearchResultsResponse) String

type Kind

type Kind int32
const (
	Kind_KIND_UNSPECIFIED Kind = 0
	Kind_KIND_APP         Kind = 1
	Kind_KIND_CHAT        Kind = 2
	Kind_KIND_POST        Kind = 3
	Kind_KIND_CIRCLE      Kind = 4
	Kind_KIND_PROFILE     Kind = 5
)

func (Kind) Descriptor

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) EnumDescriptor deprecated

func (Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Kind.Descriptor instead.

func (Kind) Number

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String

func (x Kind) String() string

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.

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) SaveSearchResult

func (UnimplementedRecommendationServiceServer) UnsaveSearchResult

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 (*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 (*UnsaveSearchResultResponse) Reset

func (x *UnsaveSearchResultResponse) Reset()

func (*UnsaveSearchResultResponse) String

func (x *UnsaveSearchResultResponse) String() string

Directories

Path Synopsis
Package recommendation_mock is a generated GoMock package.
Package recommendation_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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