Represents a ProjectService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.ProjectServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ProjectService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
acceptTerms(request, callback)
public acceptTerms(request: google.cloud.retail.v2alpha.IAcceptTermsRequest, callback: google.cloud.retail.v2alpha.ProjectService.AcceptTermsCallback): void;
Calls AcceptTerms.
Parameters | |
---|---|
Name | Description |
request |
IAcceptTermsRequest
AcceptTermsRequest message or plain object |
callback |
AcceptTermsCallback
Node-style callback called with the error, if any, and Project |
Returns | |
---|---|
Type | Description |
void |
acceptTerms(request)
public acceptTerms(request: google.cloud.retail.v2alpha.IAcceptTermsRequest): Promise<google.cloud.retail.v2alpha.Project>;
Calls AcceptTerms.
Parameter | |
---|---|
Name | Description |
request |
IAcceptTermsRequest
AcceptTermsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.Project> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ProjectService;
Creates new ProjectService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
ProjectService |
RPC service. Useful where requests and/or responses are streamed. |
enrollSolution(request, callback)
public enrollSolution(request: google.cloud.retail.v2alpha.IEnrollSolutionRequest, callback: google.cloud.retail.v2alpha.ProjectService.EnrollSolutionCallback): void;
Calls EnrollSolution.
Parameters | |
---|---|
Name | Description |
request |
IEnrollSolutionRequest
EnrollSolutionRequest message or plain object |
callback |
EnrollSolutionCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
enrollSolution(request)
public enrollSolution(request: google.cloud.retail.v2alpha.IEnrollSolutionRequest): Promise<google.longrunning.Operation>;
Calls EnrollSolution.
Parameter | |
---|---|
Name | Description |
request |
IEnrollSolutionRequest
EnrollSolutionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
getAlertConfig(request, callback)
public getAlertConfig(request: google.cloud.retail.v2alpha.IGetAlertConfigRequest, callback: google.cloud.retail.v2alpha.ProjectService.GetAlertConfigCallback): void;
Calls GetAlertConfig.
Parameters | |
---|---|
Name | Description |
request |
IGetAlertConfigRequest
GetAlertConfigRequest message or plain object |
callback |
GetAlertConfigCallback
Node-style callback called with the error, if any, and AlertConfig |
Returns | |
---|---|
Type | Description |
void |
getAlertConfig(request)
public getAlertConfig(request: google.cloud.retail.v2alpha.IGetAlertConfigRequest): Promise<google.cloud.retail.v2alpha.AlertConfig>;
Calls GetAlertConfig.
Parameter | |
---|---|
Name | Description |
request |
IGetAlertConfigRequest
GetAlertConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.AlertConfig> |
Promise |
getLoggingConfig(request, callback)
public getLoggingConfig(request: google.cloud.retail.v2alpha.IGetLoggingConfigRequest, callback: google.cloud.retail.v2alpha.ProjectService.GetLoggingConfigCallback): void;
Calls GetLoggingConfig.
Parameters | |
---|---|
Name | Description |
request |
IGetLoggingConfigRequest
GetLoggingConfigRequest message or plain object |
callback |
GetLoggingConfigCallback
Node-style callback called with the error, if any, and LoggingConfig |
Returns | |
---|---|
Type | Description |
void |
getLoggingConfig(request)
public getLoggingConfig(request: google.cloud.retail.v2alpha.IGetLoggingConfigRequest): Promise<google.cloud.retail.v2alpha.LoggingConfig>;
Calls GetLoggingConfig.
Parameter | |
---|---|
Name | Description |
request |
IGetLoggingConfigRequest
GetLoggingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.LoggingConfig> |
Promise |
getProject(request, callback)
public getProject(request: google.cloud.retail.v2alpha.IGetProjectRequest, callback: google.cloud.retail.v2alpha.ProjectService.GetProjectCallback): void;
Calls GetProject.
Parameters | |
---|---|
Name | Description |
request |
IGetProjectRequest
GetProjectRequest message or plain object |
callback |
GetProjectCallback
Node-style callback called with the error, if any, and Project |
Returns | |
---|---|
Type | Description |
void |
getProject(request)
public getProject(request: google.cloud.retail.v2alpha.IGetProjectRequest): Promise<google.cloud.retail.v2alpha.Project>;
Calls GetProject.
Parameter | |
---|---|
Name | Description |
request |
IGetProjectRequest
GetProjectRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.Project> |
Promise |
listEnrolledSolutions(request, callback)
public listEnrolledSolutions(request: google.cloud.retail.v2alpha.IListEnrolledSolutionsRequest, callback: google.cloud.retail.v2alpha.ProjectService.ListEnrolledSolutionsCallback): void;
Calls ListEnrolledSolutions.
Parameters | |
---|---|
Name | Description |
request |
IListEnrolledSolutionsRequest
ListEnrolledSolutionsRequest message or plain object |
callback |
ListEnrolledSolutionsCallback
Node-style callback called with the error, if any, and ListEnrolledSolutionsResponse |
Returns | |
---|---|
Type | Description |
void |
listEnrolledSolutions(request)
public listEnrolledSolutions(request: google.cloud.retail.v2alpha.IListEnrolledSolutionsRequest): Promise<google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse>;
Calls ListEnrolledSolutions.
Parameter | |
---|---|
Name | Description |
request |
IListEnrolledSolutionsRequest
ListEnrolledSolutionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse> |
Promise |
updateAlertConfig(request, callback)
public updateAlertConfig(request: google.cloud.retail.v2alpha.IUpdateAlertConfigRequest, callback: google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfigCallback): void;
Calls UpdateAlertConfig.
Parameters | |
---|---|
Name | Description |
request |
IUpdateAlertConfigRequest
UpdateAlertConfigRequest message or plain object |
callback |
UpdateAlertConfigCallback
Node-style callback called with the error, if any, and AlertConfig |
Returns | |
---|---|
Type | Description |
void |
updateAlertConfig(request)
public updateAlertConfig(request: google.cloud.retail.v2alpha.IUpdateAlertConfigRequest): Promise<google.cloud.retail.v2alpha.AlertConfig>;
Calls UpdateAlertConfig.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAlertConfigRequest
UpdateAlertConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.AlertConfig> |
Promise |
updateLoggingConfig(request, callback)
public updateLoggingConfig(request: google.cloud.retail.v2alpha.IUpdateLoggingConfigRequest, callback: google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfigCallback): void;
Calls UpdateLoggingConfig.
Parameters | |
---|---|
Name | Description |
request |
IUpdateLoggingConfigRequest
UpdateLoggingConfigRequest message or plain object |
callback |
UpdateLoggingConfigCallback
Node-style callback called with the error, if any, and LoggingConfig |
Returns | |
---|---|
Type | Description |
void |
updateLoggingConfig(request)
public updateLoggingConfig(request: google.cloud.retail.v2alpha.IUpdateLoggingConfigRequest): Promise<google.cloud.retail.v2alpha.LoggingConfig>;
Calls UpdateLoggingConfig.
Parameter | |
---|---|
Name | Description |
request |
IUpdateLoggingConfigRequest
UpdateLoggingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.LoggingConfig> |
Promise |