public class QuestionService.QuestionServiceClient : ClientBase<QuestionService.QuestionServiceClient>
Reference documentation and code samples for the Data QnA v1alpha API class QuestionService.QuestionServiceClient.
Client for QuestionService
Inheritance
object > ClientBase > ClientBaseQuestionServiceQuestionServiceClient > QuestionService.QuestionServiceClientNamespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Constructors
QuestionServiceClient()
protected QuestionServiceClient()
Protected parameterless constructor to allow creation of test doubles.
QuestionServiceClient(CallInvoker)
public QuestionServiceClient(CallInvoker callInvoker)
Creates a new client for QuestionService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
QuestionServiceClient(ChannelBase)
public QuestionServiceClient(ChannelBase channel)
Creates a new client for QuestionService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
QuestionServiceClient(ClientBaseConfiguration)
protected QuestionServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration The client configuration. |
Methods
CreateQuestion(CreateQuestionRequest, CallOptions)
public virtual Question CreateQuestion(CreateQuestionRequest request, CallOptions options)
Creates a question.
Parameters | |
---|---|
Name | Description |
request | CreateQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
CreateQuestion(CreateQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual Question CreateQuestion(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Creates a question.
Parameters | |
---|---|
Name | Description |
request | CreateQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
CreateQuestionAsync(CreateQuestionRequest, CallOptions)
public virtual AsyncUnaryCall<Question> CreateQuestionAsync(CreateQuestionRequest request, CallOptions options)
Creates a question.
Parameters | |
---|---|
Name | Description |
request | CreateQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
CreateQuestionAsync(CreateQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Question> CreateQuestionAsync(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Creates a question.
Parameters | |
---|---|
Name | Description |
request | CreateQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
ExecuteQuestion(ExecuteQuestionRequest, CallOptions)
public virtual Question ExecuteQuestion(ExecuteQuestionRequest request, CallOptions options)
Executes an interpretation.
Parameters | |
---|---|
Name | Description |
request | ExecuteQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
ExecuteQuestion(ExecuteQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual Question ExecuteQuestion(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Executes an interpretation.
Parameters | |
---|---|
Name | Description |
request | ExecuteQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
ExecuteQuestionAsync(ExecuteQuestionRequest, CallOptions)
public virtual AsyncUnaryCall<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, CallOptions options)
Executes an interpretation.
Parameters | |
---|---|
Name | Description |
request | ExecuteQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
ExecuteQuestionAsync(ExecuteQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Executes an interpretation.
Parameters | |
---|---|
Name | Description |
request | ExecuteQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
GetQuestion(GetQuestionRequest, CallOptions)
public virtual Question GetQuestion(GetQuestionRequest request, CallOptions options)
Gets a previously created question.
Parameters | |
---|---|
Name | Description |
request | GetQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
GetQuestion(GetQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual Question GetQuestion(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets a previously created question.
Parameters | |
---|---|
Name | Description |
request | GetQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Question | The response received from the server. |
GetQuestionAsync(GetQuestionRequest, CallOptions)
public virtual AsyncUnaryCall<Question> GetQuestionAsync(GetQuestionRequest request, CallOptions options)
Gets a previously created question.
Parameters | |
---|---|
Name | Description |
request | GetQuestionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
GetQuestionAsync(GetQuestionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Question> GetQuestionAsync(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets a previously created question.
Parameters | |
---|---|
Name | Description |
request | GetQuestionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallQuestion | The call object. |
GetUserFeedback(GetUserFeedbackRequest, CallOptions)
public virtual UserFeedback GetUserFeedback(GetUserFeedbackRequest request, CallOptions options)
Gets previously created user feedback.
Parameters | |
---|---|
Name | Description |
request | GetUserFeedbackRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
UserFeedback | The response received from the server. |
GetUserFeedback(GetUserFeedbackRequest, Metadata, DateTime?, CancellationToken)
public virtual UserFeedback GetUserFeedback(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets previously created user feedback.
Parameters | |
---|---|
Name | Description |
request | GetUserFeedbackRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
UserFeedback | The response received from the server. |
GetUserFeedbackAsync(GetUserFeedbackRequest, CallOptions)
public virtual AsyncUnaryCall<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, CallOptions options)
Gets previously created user feedback.
Parameters | |
---|---|
Name | Description |
request | GetUserFeedbackRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallUserFeedback | The call object. |
GetUserFeedbackAsync(GetUserFeedbackRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets previously created user feedback.
Parameters | |
---|---|
Name | Description |
request | GetUserFeedbackRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallUserFeedback | The call object. |
NewInstance(ClientBaseConfiguration)
protected override QuestionService.QuestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
QuestionServiceQuestionServiceClient |
UpdateUserFeedback(UpdateUserFeedbackRequest, CallOptions)
public virtual UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, CallOptions options)
Updates user feedback. This creates user feedback if there was none before (upsert).
Parameters | |
---|---|
Name | Description |
request | UpdateUserFeedbackRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
UserFeedback | The response received from the server. |
UpdateUserFeedback(UpdateUserFeedbackRequest, Metadata, DateTime?, CancellationToken)
public virtual UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates user feedback. This creates user feedback if there was none before (upsert).
Parameters | |
---|---|
Name | Description |
request | UpdateUserFeedbackRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
UserFeedback | The response received from the server. |
UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, CallOptions)
public virtual AsyncUnaryCall<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, CallOptions options)
Updates user feedback. This creates user feedback if there was none before (upsert).
Parameters | |
---|---|
Name | Description |
request | UpdateUserFeedbackRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallUserFeedback | The call object. |
UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Updates user feedback. This creates user feedback if there was none before (upsert).
Parameters | |
---|---|
Name | Description |
request | UpdateUserFeedbackRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallUserFeedback | The call object. |