Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress

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

Overview

Represents the progress of a sync run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress

Returns a new instance of GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress.



9324
9325
9326
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9324

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

Instance Attribute Details

#current_countFixnum

The current progress. Corresponds to the JSON property currentCount

Returns:

  • (Fixnum)


9311
9312
9313
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9311

def current_count
  @current_count
end

#percentileFloat

Derived. The percentile of the progress.current_count / total_count. The value is between [0, 1.0] inclusive. Corresponds to the JSON property percentile

Returns:

  • (Float)


9317
9318
9319
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9317

def percentile
  @percentile
end

#total_countFixnum

The total. Corresponds to the JSON property totalCount

Returns:

  • (Fixnum)


9322
9323
9324
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9322

def total_count
  @total_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9329
9330
9331
9332
9333
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9329

def update!(**args)
  @current_count = args[:current_count] if args.key?(:current_count)
  @percentile = args[:percentile] if args.key?(:percentile)
  @total_count = args[:total_count] if args.key?(:total_count)
end