queryservice

package
v0.0.0-...-87ea1e2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_navigator_api_queryservice_v1_service_proto protoreflect.FileDescriptor

Functions

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)

Types

type Asset

type Asset struct {
	ID           string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name         string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Key          string               `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Type         string               `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Metadata     map[string]string    `` /* 157-byte string literal not displayed */
	Alternatives map[string]string    `` /* 165-byte string literal not displayed */
	IsArchived   bool                 `protobuf:"varint,7,opt,name=isArchived,proto3" json:"isArchived,omitempty"`
	CreatedAt    *timestamp.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt    *timestamp.Timestamp `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAlternatives

func (x *Asset) GetAlternatives() map[string]string

func (*Asset) GetCreatedAt

func (x *Asset) GetCreatedAt() *timestamp.Timestamp

func (*Asset) GetID

func (x *Asset) GetID() string

func (*Asset) GetIsArchived

func (x *Asset) GetIsArchived() bool

func (*Asset) GetKey

func (x *Asset) GetKey() string

func (*Asset) GetMetadata

func (x *Asset) GetMetadata() map[string]string

func (*Asset) GetName

func (x *Asset) GetName() string

func (*Asset) GetType

func (x *Asset) GetType() string

func (*Asset) GetUpdatedAt

func (x *Asset) GetUpdatedAt() *timestamp.Timestamp

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type GetAssetRequest

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

func (*GetAssetRequest) Descriptor deprecated

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

Deprecated: Use GetAssetRequest.ProtoReflect.Descriptor instead.

func (*GetAssetRequest) GetAssetID

func (x *GetAssetRequest) GetAssetID() string

func (*GetAssetRequest) ProtoMessage

func (*GetAssetRequest) ProtoMessage()

func (*GetAssetRequest) ProtoReflect

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

func (*GetAssetRequest) Reset

func (x *GetAssetRequest) Reset()

func (*GetAssetRequest) String

func (x *GetAssetRequest) String() string

type GetAssetResponse

type GetAssetResponse struct {
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssetResponse) Descriptor deprecated

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

Deprecated: Use GetAssetResponse.ProtoReflect.Descriptor instead.

func (*GetAssetResponse) GetAsset

func (x *GetAssetResponse) GetAsset() *Asset

func (*GetAssetResponse) ProtoMessage

func (*GetAssetResponse) ProtoMessage()

func (*GetAssetResponse) ProtoReflect

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

func (*GetAssetResponse) Reset

func (x *GetAssetResponse) Reset()

func (*GetAssetResponse) String

func (x *GetAssetResponse) String() string

type ListAssetsRequest

type ListAssetsRequest struct {
	Limit     int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset    int32  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	AssetType string `protobuf:"bytes,3,opt,name=assetType,proto3" json:"assetType,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetsRequest) Descriptor deprecated

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

Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.

func (*ListAssetsRequest) GetAssetType

func (x *ListAssetsRequest) GetAssetType() string

func (*ListAssetsRequest) GetLimit

func (x *ListAssetsRequest) GetLimit() int32

func (*ListAssetsRequest) GetOffset

func (x *ListAssetsRequest) GetOffset() int32

func (*ListAssetsRequest) ProtoMessage

func (*ListAssetsRequest) ProtoMessage()

func (*ListAssetsRequest) ProtoReflect

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

func (*ListAssetsRequest) Reset

func (x *ListAssetsRequest) Reset()

func (*ListAssetsRequest) String

func (x *ListAssetsRequest) String() string

type ListAssetsResponse

type ListAssetsResponse struct {
	Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetsResponse) Descriptor deprecated

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

Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.

func (*ListAssetsResponse) GetAssets

func (x *ListAssetsResponse) GetAssets() []*Asset

func (*ListAssetsResponse) ProtoMessage

func (*ListAssetsResponse) ProtoMessage()

func (*ListAssetsResponse) ProtoReflect

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

func (*ListAssetsResponse) Reset

func (x *ListAssetsResponse) Reset()

func (*ListAssetsResponse) String

func (x *ListAssetsResponse) String() string

type QueryServiceClient

type QueryServiceClient interface {
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	RecommendAsset(ctx context.Context, in *RecommendAssetRequest, opts ...grpc.CallOption) (*RecommendAssetResponse, error)
	GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*GetAssetResponse, error)
	ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type QueryServiceServer

QueryServiceServer is the server API for QueryService service.

type RecommendAssetRequest

type RecommendAssetRequest struct {
	AssetID string `protobuf:"bytes,1,opt,name=assetID,proto3" json:"assetID,omitempty"`
	Limit   int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  int32  `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendAssetRequest) Descriptor deprecated

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

Deprecated: Use RecommendAssetRequest.ProtoReflect.Descriptor instead.

func (*RecommendAssetRequest) GetAssetID

func (x *RecommendAssetRequest) GetAssetID() string

func (*RecommendAssetRequest) GetLimit

func (x *RecommendAssetRequest) GetLimit() int32

func (*RecommendAssetRequest) GetOffset

func (x *RecommendAssetRequest) GetOffset() int32

func (*RecommendAssetRequest) ProtoMessage

func (*RecommendAssetRequest) ProtoMessage()

func (*RecommendAssetRequest) ProtoReflect

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

func (*RecommendAssetRequest) Reset

func (x *RecommendAssetRequest) Reset()

func (*RecommendAssetRequest) String

func (x *RecommendAssetRequest) String() string

type RecommendAssetResponse

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

func (*RecommendAssetResponse) Descriptor deprecated

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

Deprecated: Use RecommendAssetResponse.ProtoReflect.Descriptor instead.

func (*RecommendAssetResponse) GetResults

func (x *RecommendAssetResponse) GetResults() []*RecommendAssetResult

func (*RecommendAssetResponse) ProtoMessage

func (*RecommendAssetResponse) ProtoMessage()

func (*RecommendAssetResponse) ProtoReflect

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

func (*RecommendAssetResponse) Reset

func (x *RecommendAssetResponse) Reset()

func (*RecommendAssetResponse) String

func (x *RecommendAssetResponse) String() string

type RecommendAssetResult

type RecommendAssetResult struct {
	AssetID   string  `protobuf:"bytes,1,opt,name=assetID,proto3" json:"assetID,omitempty"`
	Certainty float64 `protobuf:"fixed64,8,opt,name=certainty,proto3" json:"certainty,omitempty"`
	Distance  float64 `protobuf:"fixed64,9,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendAssetResult) Descriptor deprecated

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

Deprecated: Use RecommendAssetResult.ProtoReflect.Descriptor instead.

func (*RecommendAssetResult) GetAssetID

func (x *RecommendAssetResult) GetAssetID() string

func (*RecommendAssetResult) GetCertainty

func (x *RecommendAssetResult) GetCertainty() float64

func (*RecommendAssetResult) GetDistance

func (x *RecommendAssetResult) GetDistance() float64

func (*RecommendAssetResult) ProtoMessage

func (*RecommendAssetResult) ProtoMessage()

func (*RecommendAssetResult) ProtoReflect

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

func (*RecommendAssetResult) Reset

func (x *RecommendAssetResult) Reset()

func (*RecommendAssetResult) String

func (x *RecommendAssetResult) String() string

type SearchRequest

type SearchRequest struct {
	Limit  int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Text   string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	Image  string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetImage

func (x *SearchRequest) GetImage() string

func (*SearchRequest) GetLimit

func (x *SearchRequest) GetLimit() int32

func (*SearchRequest) GetOffset

func (x *SearchRequest) GetOffset() int32

func (*SearchRequest) GetText

func (x *SearchRequest) GetText() 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 []*SearchResult `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() []*SearchResult

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 SearchResult

type SearchResult struct {
	AssetID   string  `protobuf:"bytes,1,opt,name=assetID,proto3" json:"assetID,omitempty"`
	AssetType string  `protobuf:"bytes,2,opt,name=assetType,proto3" json:"assetType,omitempty"`
	AssetName string  `protobuf:"bytes,3,opt,name=assetName,proto3" json:"assetName,omitempty"`
	Certainty float64 `protobuf:"fixed64,8,opt,name=certainty,proto3" json:"certainty,omitempty"`
	Distance  float64 `protobuf:"fixed64,9,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResult) Descriptor deprecated

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

Deprecated: Use SearchResult.ProtoReflect.Descriptor instead.

func (*SearchResult) GetAssetID

func (x *SearchResult) GetAssetID() string

func (*SearchResult) GetAssetName

func (x *SearchResult) GetAssetName() string

func (*SearchResult) GetAssetType

func (x *SearchResult) GetAssetType() string

func (*SearchResult) GetCertainty

func (x *SearchResult) GetCertainty() float64

func (*SearchResult) GetDistance

func (x *SearchResult) GetDistance() float64

func (*SearchResult) ProtoMessage

func (*SearchResult) ProtoMessage()

func (*SearchResult) ProtoReflect

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

func (*SearchResult) Reset

func (x *SearchResult) Reset()

func (*SearchResult) String

func (x *SearchResult) String() string

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) GetAsset

func (*UnimplementedQueryServiceServer) ListAssets

func (*UnimplementedQueryServiceServer) RecommendAsset

func (*UnimplementedQueryServiceServer) Search

Jump to

Keyboard shortcuts

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