Class protos.google.cloud.recommender.v1beta1.Recommender (5.0.6)

Represents a Recommender

Inheritance

$protobuf.rpc.Service > protos.google.cloud.recommender.v1beta1.Recommender

Package

@google-cloud/recommender

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Recommender service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Recommender;

Creates new Recommender service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Recommender

RPC service. Useful where requests and/or responses are streamed.

getInsight(request, callback)

public getInsight(request: google.cloud.recommender.v1beta1.IGetInsightRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetInsightCallback): void;

Calls GetInsight.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IGetInsightRequest

GetInsightRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.GetInsightCallback

Node-style callback called with the error, if any, and Insight

Returns
TypeDescription
void

getInsight(request)

public getInsight(request: google.cloud.recommender.v1beta1.IGetInsightRequest): Promise<google.cloud.recommender.v1beta1.Insight>;

Calls GetInsight.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IGetInsightRequest

GetInsightRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Insight>

Promise

getInsightTypeConfig(request, callback)

public getInsightTypeConfig(request: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfigCallback): void;

Calls GetInsightTypeConfig.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest

GetInsightTypeConfigRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfigCallback

Node-style callback called with the error, if any, and InsightTypeConfig

Returns
TypeDescription
void

getInsightTypeConfig(request)

public getInsightTypeConfig(request: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest): Promise<google.cloud.recommender.v1beta1.InsightTypeConfig>;

Calls GetInsightTypeConfig.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest

GetInsightTypeConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.InsightTypeConfig>

Promise

getRecommendation(request, callback)

public getRecommendation(request: google.cloud.recommender.v1beta1.IGetRecommendationRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetRecommendationCallback): void;

Calls GetRecommendation.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IGetRecommendationRequest

GetRecommendationRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.GetRecommendationCallback

Node-style callback called with the error, if any, and Recommendation

Returns
TypeDescription
void

getRecommendation(request)

public getRecommendation(request: google.cloud.recommender.v1beta1.IGetRecommendationRequest): Promise<google.cloud.recommender.v1beta1.Recommendation>;

Calls GetRecommendation.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IGetRecommendationRequest

GetRecommendationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Recommendation>

Promise

getRecommenderConfig(request, callback)

public getRecommenderConfig(request: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfigCallback): void;

Calls GetRecommenderConfig.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest

GetRecommenderConfigRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfigCallback

Node-style callback called with the error, if any, and RecommenderConfig

Returns
TypeDescription
void

getRecommenderConfig(request)

public getRecommenderConfig(request: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest): Promise<google.cloud.recommender.v1beta1.RecommenderConfig>;

Calls GetRecommenderConfig.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest

GetRecommenderConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.RecommenderConfig>

Promise

listInsights(request, callback)

public listInsights(request: google.cloud.recommender.v1beta1.IListInsightsRequest, callback: google.cloud.recommender.v1beta1.Recommender.ListInsightsCallback): void;

Calls ListInsights.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IListInsightsRequest

ListInsightsRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.ListInsightsCallback

Node-style callback called with the error, if any, and ListInsightsResponse

Returns
TypeDescription
void

listInsights(request)

public listInsights(request: google.cloud.recommender.v1beta1.IListInsightsRequest): Promise<google.cloud.recommender.v1beta1.ListInsightsResponse>;

Calls ListInsights.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IListInsightsRequest

ListInsightsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.ListInsightsResponse>

Promise

listRecommendations(request, callback)

public listRecommendations(request: google.cloud.recommender.v1beta1.IListRecommendationsRequest, callback: google.cloud.recommender.v1beta1.Recommender.ListRecommendationsCallback): void;

Calls ListRecommendations.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IListRecommendationsRequest

ListRecommendationsRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.ListRecommendationsCallback

Node-style callback called with the error, if any, and ListRecommendationsResponse

Returns
TypeDescription
void

listRecommendations(request)

public listRecommendations(request: google.cloud.recommender.v1beta1.IListRecommendationsRequest): Promise<google.cloud.recommender.v1beta1.ListRecommendationsResponse>;

Calls ListRecommendations.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IListRecommendationsRequest

ListRecommendationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.ListRecommendationsResponse>

Promise

markInsightAccepted(request, callback)

public markInsightAccepted(request: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkInsightAcceptedCallback): void;

Calls MarkInsightAccepted.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest

MarkInsightAcceptedRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.MarkInsightAcceptedCallback

Node-style callback called with the error, if any, and Insight

Returns
TypeDescription
void

markInsightAccepted(request)

public markInsightAccepted(request: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest): Promise<google.cloud.recommender.v1beta1.Insight>;

Calls MarkInsightAccepted.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest

MarkInsightAcceptedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Insight>

Promise

markRecommendationClaimed(request, callback)

public markRecommendationClaimed(request: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimedCallback): void;

Calls MarkRecommendationClaimed.

Parameters
NameDescription
request IMarkRecommendationClaimedRequest

MarkRecommendationClaimedRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimedCallback

Node-style callback called with the error, if any, and Recommendation

Returns
TypeDescription
void

markRecommendationClaimed(request)

public markRecommendationClaimed(request: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest): Promise<google.cloud.recommender.v1beta1.Recommendation>;

Calls MarkRecommendationClaimed.

Parameter
NameDescription
request IMarkRecommendationClaimedRequest

MarkRecommendationClaimedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Recommendation>

Promise

markRecommendationFailed(request, callback)

public markRecommendationFailed(request: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailedCallback): void;

Calls MarkRecommendationFailed.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest

MarkRecommendationFailedRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailedCallback

Node-style callback called with the error, if any, and Recommendation

Returns
TypeDescription
void

markRecommendationFailed(request)

public markRecommendationFailed(request: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest): Promise<google.cloud.recommender.v1beta1.Recommendation>;

Calls MarkRecommendationFailed.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest

MarkRecommendationFailedRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Recommendation>

Promise

markRecommendationSucceeded(request, callback)

public markRecommendationSucceeded(request: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceededCallback): void;

Calls MarkRecommendationSucceeded.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest

MarkRecommendationSucceededRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceededCallback

Node-style callback called with the error, if any, and Recommendation

Returns
TypeDescription
void

markRecommendationSucceeded(request)

public markRecommendationSucceeded(request: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest): Promise<google.cloud.recommender.v1beta1.Recommendation>;

Calls MarkRecommendationSucceeded.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest

MarkRecommendationSucceededRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.Recommendation>

Promise

updateInsightTypeConfig(request, callback)

public updateInsightTypeConfig(request: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfigCallback): void;

Calls UpdateInsightTypeConfig.

Parameters
NameDescription
request IUpdateInsightTypeConfigRequest

UpdateInsightTypeConfigRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfigCallback

Node-style callback called with the error, if any, and InsightTypeConfig

Returns
TypeDescription
void

updateInsightTypeConfig(request)

public updateInsightTypeConfig(request: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest): Promise<google.cloud.recommender.v1beta1.InsightTypeConfig>;

Calls UpdateInsightTypeConfig.

Parameter
NameDescription
request IUpdateInsightTypeConfigRequest

UpdateInsightTypeConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.InsightTypeConfig>

Promise

updateRecommenderConfig(request, callback)

public updateRecommenderConfig(request: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfigCallback): void;

Calls UpdateRecommenderConfig.

Parameters
NameDescription
request google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest

UpdateRecommenderConfigRequest message or plain object

callback google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfigCallback

Node-style callback called with the error, if any, and RecommenderConfig

Returns
TypeDescription
void

updateRecommenderConfig(request)

public updateRecommenderConfig(request: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest): Promise<google.cloud.recommender.v1beta1.RecommenderConfig>;

Calls UpdateRecommenderConfig.

Parameter
NameDescription
request google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest

UpdateRecommenderConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.recommender.v1beta1.RecommenderConfig>

Promise