Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams

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

Overview

Ranking params.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickRankingParams

Returns a new instance of EnterpriseTopazSidekickRankingParams.



2955
2956
2957
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2955

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

Instance Attribute Details

#end_time_msFixnum

The end-time that this object will expect to occur. If the type is marked as FIXED, then this end-time will persist after bidding. If the type is marked as FLEXIBLE, this field is NOT expected to be filled and will be filled in after it has won a bid. Expected to be set when type is set to FIXED. Corresponds to the JSON property endTimeMs

Returns:

  • (Fixnum)


2922
2923
2924
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2922

def end_time_ms
  @end_time_ms
end

#priorityString

The priority to determine between objects that have the same start_time_ms The lower-value of priority == ranked higher. Max-priority = 0. Expected to be set for all types. Corresponds to the JSON property priority

Returns:

  • (String)


2929
2930
2931
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2929

def priority
  @priority
end

#scoreFloat

The score of the card to be used to break priority-ties Corresponds to the JSON property score

Returns:

  • (Float)


2934
2935
2936
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2934

def score
  @score
end

#span_msFixnum

The span that this card will take in the stream Expected to be set when type is set to FLEXIBLE. Corresponds to the JSON property spanMs

Returns:

  • (Fixnum)


2940
2941
2942
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2940

def span_ms
  @span_ms
end

#start_time_msFixnum

The start-time that this object will bid-for If the type is marked as FIXED, then this start-time will persist after bidding. If the type is marked as FLEXIBLE, then it will occur at the given time or sometime after the requested time. Expected to be set for all types. Corresponds to the JSON property startTimeMs

Returns:

  • (Fixnum)


2948
2949
2950
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2948

def start_time_ms
  @start_time_ms
end

#typeString

The packing type of this object. Corresponds to the JSON property type

Returns:

  • (String)


2953
2954
2955
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2953

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2960
2961
2962
2963
2964
2965
2966
2967
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2960

def update!(**args)
  @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
  @priority = args[:priority] if args.key?(:priority)
  @score = args[:score] if args.key?(:score)
  @span_ms = args[:span_ms] if args.key?(:span_ms)
  @start_time_ms = args[:start_time_ms] if args.key?(:start_time_ms)
  @type = args[:type] if args.key?(:type)
end