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.



2957
2958
2959
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2957

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)


2924
2925
2926
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2924

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)


2931
2932
2933
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2931

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)


2936
2937
2938
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2936

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)


2942
2943
2944
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2942

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)


2950
2951
2952
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2950

def start_time_ms
  @start_time_ms
end

#typeString

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

Returns:

  • (String)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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