ProjectService

google.cloud.retail.v2alpha. ProjectService

Represents a ProjectService

Constructor

new ProjectService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ProjectService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

acceptTerms(request, callback) → {undefined}

Calls AcceptTerms.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IAcceptTermsRequest

AcceptTermsRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.AcceptTermsCallback

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

Returns:
Type Description
undefined

acceptTerms(request) → {Promise.<google.cloud.retail.v2alpha.Project>}

Calls AcceptTerms.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IAcceptTermsRequest

AcceptTermsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.Project>

Promise

enrollSolution(request, callback) → {undefined}

Calls EnrollSolution.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IEnrollSolutionRequest

EnrollSolutionRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.EnrollSolutionCallback

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

Returns:
Type Description
undefined

enrollSolution(request) → {Promise.<google.longrunning.Operation>}

Calls EnrollSolution.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IEnrollSolutionRequest

EnrollSolutionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getAlertConfig(request, callback) → {undefined}

Calls GetAlertConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetAlertConfigRequest

GetAlertConfigRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.GetAlertConfigCallback

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

Returns:
Type Description
undefined

getAlertConfig(request) → {Promise.<google.cloud.retail.v2alpha.AlertConfig>}

Calls GetAlertConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetAlertConfigRequest

GetAlertConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.AlertConfig>

Promise

getLoggingConfig(request, callback) → {undefined}

Calls GetLoggingConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetLoggingConfigRequest

GetLoggingConfigRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.GetLoggingConfigCallback

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

Returns:
Type Description
undefined

getLoggingConfig(request) → {Promise.<google.cloud.retail.v2alpha.LoggingConfig>}

Calls GetLoggingConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetLoggingConfigRequest

GetLoggingConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.LoggingConfig>

Promise

getProject(request, callback) → {undefined}

Calls GetProject.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetProjectRequest

GetProjectRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.GetProjectCallback

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

Returns:
Type Description
undefined

getProject(request) → {Promise.<google.cloud.retail.v2alpha.Project>}

Calls GetProject.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetProjectRequest

GetProjectRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.Project>

Promise

listEnrolledSolutions(request, callback) → {undefined}

Calls ListEnrolledSolutions.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListEnrolledSolutionsRequest

ListEnrolledSolutionsRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.ListEnrolledSolutionsCallback

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

Returns:
Type Description
undefined

listEnrolledSolutions(request) → {Promise.<google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse>}

Calls ListEnrolledSolutions.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListEnrolledSolutionsRequest

ListEnrolledSolutionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse>

Promise

updateAlertConfig(request, callback) → {undefined}

Calls UpdateAlertConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateAlertConfigRequest

UpdateAlertConfigRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfigCallback

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

Returns:
Type Description
undefined

updateAlertConfig(request) → {Promise.<google.cloud.retail.v2alpha.AlertConfig>}

Calls UpdateAlertConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateAlertConfigRequest

UpdateAlertConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.AlertConfig>

Promise

updateLoggingConfig(request, callback) → {undefined}

Calls UpdateLoggingConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateLoggingConfigRequest

UpdateLoggingConfigRequest message or plain object

callback google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfigCallback

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

Returns:
Type Description
undefined

updateLoggingConfig(request) → {Promise.<google.cloud.retail.v2alpha.LoggingConfig>}

Calls UpdateLoggingConfig.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IUpdateLoggingConfigRequest

UpdateLoggingConfigRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.LoggingConfig>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ProjectService}

Creates new ProjectService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
ProjectService

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

Type Definitions

AcceptTermsCallback(error, responseopt)

Callback as used by acceptTerms.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.Project <optional>

Project

EnrollSolutionCallback(error, responseopt)

Callback as used by enrollSolution.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetAlertConfigCallback(error, responseopt)

Callback as used by getAlertConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.AlertConfig <optional>

AlertConfig

GetLoggingConfigCallback(error, responseopt)

Callback as used by getLoggingConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.LoggingConfig <optional>

LoggingConfig

GetProjectCallback(error, responseopt)

Callback as used by getProject.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.Project <optional>

Project

ListEnrolledSolutionsCallback(error, responseopt)

Callback as used by listEnrolledSolutions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse <optional>

ListEnrolledSolutionsResponse

UpdateAlertConfigCallback(error, responseopt)

Callback as used by updateAlertConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.AlertConfig <optional>

AlertConfig

UpdateLoggingConfigCallback(error, responseopt)

Callback as used by updateLoggingConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.LoggingConfig <optional>

LoggingConfig