Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::GenerativeQuestionService::Rest::ServiceStub.
REST service stub for the GenerativeQuestionService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#batch_update_generative_question_configs
def batch_update_generative_question_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::BatchUpdateGenerativeQuestionConfigsResponse
Baseline implementation for the batch_update_generative_question_configs REST call
- request_pb (::Google::Cloud::Retail::V2::BatchUpdateGenerativeQuestionConfigsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::BatchUpdateGenerativeQuestionConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::BatchUpdateGenerativeQuestionConfigsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_generative_questions_feature_config
def get_generative_questions_feature_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig
Baseline implementation for the get_generative_questions_feature_config REST call
- request_pb (::Google::Cloud::Retail::V2::GetGenerativeQuestionsFeatureConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_generative_question_configs
def list_generative_question_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListGenerativeQuestionConfigsResponse
Baseline implementation for the list_generative_question_configs REST call
- request_pb (::Google::Cloud::Retail::V2::ListGenerativeQuestionConfigsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::ListGenerativeQuestionConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ListGenerativeQuestionConfigsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_generative_question_config
def update_generative_question_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::GenerativeQuestionConfig
Baseline implementation for the update_generative_question_config REST call
- request_pb (::Google::Cloud::Retail::V2::UpdateGenerativeQuestionConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::GenerativeQuestionConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::GenerativeQuestionConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_generative_questions_feature_config
def update_generative_questions_feature_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig
Baseline implementation for the update_generative_questions_feature_config REST call
- request_pb (::Google::Cloud::Retail::V2::UpdateGenerativeQuestionsFeatureConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::GenerativeQuestionsFeatureConfig) — A result object deserialized from the server's reply
- (::ArgumentError)