Versions in this module Expand all Collapse all v0 v0.59.3 Jun 29, 2020 Changes in this version + func DefaultAuthScopes() []string + type CallOptions struct + GetInsight []gax.CallOption + GetRecommendation []gax.CallOption + ListInsights []gax.CallOption + ListRecommendations []gax.CallOption + MarkInsightAccepted []gax.CallOption + MarkRecommendationClaimed []gax.CallOption + MarkRecommendationFailed []gax.CallOption + MarkRecommendationSucceeded []gax.CallOption + type Client struct + CallOptions *CallOptions + func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error) + func (c *Client) Close() error + func (c *Client) Connection() *grpc.ClientConn + func (c *Client) GetInsight(ctx context.Context, req *recommenderpb.GetInsightRequest, ...) (*recommenderpb.Insight, error) + func (c *Client) GetRecommendation(ctx context.Context, req *recommenderpb.GetRecommendationRequest, ...) (*recommenderpb.Recommendation, error) + func (c *Client) ListInsights(ctx context.Context, req *recommenderpb.ListInsightsRequest, ...) *InsightIterator + func (c *Client) ListRecommendations(ctx context.Context, req *recommenderpb.ListRecommendationsRequest, ...) *RecommendationIterator + func (c *Client) MarkInsightAccepted(ctx context.Context, req *recommenderpb.MarkInsightAcceptedRequest, ...) (*recommenderpb.Insight, error) + func (c *Client) MarkRecommendationClaimed(ctx context.Context, req *recommenderpb.MarkRecommendationClaimedRequest, ...) (*recommenderpb.Recommendation, error) + func (c *Client) MarkRecommendationFailed(ctx context.Context, req *recommenderpb.MarkRecommendationFailedRequest, ...) (*recommenderpb.Recommendation, error) + func (c *Client) MarkRecommendationSucceeded(ctx context.Context, req *recommenderpb.MarkRecommendationSucceededRequest, ...) (*recommenderpb.Recommendation, error) + type InsightIterator struct + InternalFetch func(pageSize int, pageToken string) (results []*recommenderpb.Insight, nextPageToken string, err error) + Response interface{} + func (it *InsightIterator) Next() (*recommenderpb.Insight, error) + func (it *InsightIterator) PageInfo() *iterator.PageInfo + type RecommendationIterator struct + InternalFetch func(pageSize int, pageToken string) (results []*recommenderpb.Recommendation, nextPageToken string, err error) + Response interface{} + func (it *RecommendationIterator) Next() (*recommenderpb.Recommendation, error) + func (it *RecommendationIterator) PageInfo() *iterator.PageInfo