public class QuestionServiceClient : ClientBase<QuestionService.QuestionServiceClient>
Client for QuestionService
Inheritance
Object > ClientBase > ClientBase<QuestionService.QuestionServiceClient> > 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(ClientBase.ClientBaseConfiguration)
protected QuestionServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration 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, Nullable<DateTime>, CancellationToken)
public virtual Question CreateQuestion(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | The call object. |
CreateQuestionAsync(CreateQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Question> CreateQuestionAsync(CreateQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | 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, Nullable<DateTime>, CancellationToken)
public virtual Question ExecuteQuestion(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | The call object. |
ExecuteQuestionAsync(ExecuteQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Question> ExecuteQuestionAsync(ExecuteQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | 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, Nullable<DateTime>, CancellationToken)
public virtual Question GetQuestion(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | The call object. |
GetQuestionAsync(GetQuestionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Question> GetQuestionAsync(GetQuestionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Question> | 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, Nullable<DateTime>, CancellationToken)
public virtual UserFeedback GetUserFeedback(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<UserFeedback> | The call object. |
GetUserFeedbackAsync(GetUserFeedbackRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<UserFeedback> GetUserFeedbackAsync(GetUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<UserFeedback> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override QuestionService.QuestionServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
QuestionService.QuestionServiceClient |
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, Nullable<DateTime>, CancellationToken)
public virtual UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<UserFeedback> | The call object. |
UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<UserFeedback> UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<UserFeedback> | The call object. |