Class: Google::Apis::DataflowV1b3::BoundedTrie

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

Overview

The message type used for encoding metrics of type bounded trie.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BoundedTrie

Returns a new instance of BoundedTrie.



329
330
331
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 329

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

Instance Attribute Details

#boundFixnum

The maximum number of elements to store before truncation. Corresponds to the JSON property bound

Returns:

  • (Fixnum)


317
318
319
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 317

def bound
  @bound
end

#rootGoogle::Apis::DataflowV1b3::BoundedTrieNode

A single node in a BoundedTrie. Corresponds to the JSON property root



322
323
324
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 322

def root
  @root
end

#singletonArray<String>

A more efficient representation for metrics consisting of a single value. Corresponds to the JSON property singleton

Returns:

  • (Array<String>)


327
328
329
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 327

def singleton
  @singleton
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



334
335
336
337
338
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 334

def update!(**args)
  @bound = args[:bound] if args.key?(:bound)
  @root = args[:root] if args.key?(:root)
  @singleton = args[:singleton] if args.key?(:singleton)
end