Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickRankingParams
- 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
-
#end_time_ms ⇒ Fixnum
The end-time that this object will expect to occur.
-
#priority ⇒ String
The priority to determine between objects that have the same start_time_ms The lower-value of priority == ranked higher.
-
#score ⇒ Float
The score of the card to be used to break priority-ties Corresponds to the JSON property
score
. -
#span_ms ⇒ Fixnum
The span that this card will take in the stream Expected to be set when type is set to FLEXIBLE.
-
#start_time_ms ⇒ Fixnum
The start-time that this object will bid-for If the type is marked as FIXED, then this start-time will persist after bidding.
-
#type ⇒ String
The packing type of this object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickRankingParams
constructor
A new instance of EnterpriseTopazSidekickRankingParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_ms ⇒ Fixnum
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
2924 2925 2926 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2924 def end_time_ms @end_time_ms end |
#priority ⇒ String
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
2931 2932 2933 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2931 def priority @priority end |
#score ⇒ Float
The score of the card to be used to break priority-ties
Corresponds to the JSON property score
2936 2937 2938 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2936 def score @score end |
#span_ms ⇒ Fixnum
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
2942 2943 2944 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2942 def span_ms @span_ms end |
#start_time_ms ⇒ Fixnum
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
2950 2951 2952 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2950 def start_time_ms @start_time_ms end |
#type ⇒ String
The packing type of this object.
Corresponds to the JSON property type
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 |