Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Response of the CompletionService.ImportCompletionSuggestions method. If the long running operation is done, this message is returned by the google. longrunning.Operations.response field if the operation is successful.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse

Returns a new instance of GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse.



4485
4486
4487
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4485

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_samplesArray<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>

A sample of errors encountered while processing the request. Corresponds to the JSON property errorSamples



4473
4474
4475
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4473

def error_samples
  @error_samples
end

#failure_countFixnum

Count of CompletionSuggestions that failed to be imported. Corresponds to the JSON property failureCount

Returns:

  • (Fixnum)


4478
4479
4480
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4478

def failure_count
  @failure_count
end

#success_countFixnum

Count of CompletionSuggestions successfully imported. Corresponds to the JSON property successCount

Returns:

  • (Fixnum)


4483
4484
4485
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4483

def success_count
  @success_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4490
4491
4492
4493
4494
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4490

def update!(**args)
  @error_samples = args[:error_samples] if args.key?(:error_samples)
  @failure_count = args[:failure_count] if args.key?(:failure_count)
  @success_count = args[:success_count] if args.key?(:success_count)
end