Class: Google::Apis::DataflowV1b3::BoundedTrieNode

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

A single node in a BoundedTrie.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BoundedTrieNode

Returns a new instance of BoundedTrieNode.



419
420
421
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 419

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

Instance Attribute Details

#childrenHash<String,Google::Apis::DataflowV1b3::BoundedTrieNode>

Children of this node. Must be empty if truncated is true. Corresponds to the JSON property children



410
411
412
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 410

def children
  @children
end

#truncatedBoolean Also known as: truncated?

Whether this node has been truncated. A truncated leaf represents possibly many children with the same prefix. Corresponds to the JSON property truncated

Returns:

  • (Boolean)


416
417
418
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 416

def truncated
  @truncated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



424
425
426
427
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 424

def update!(**args)
  @children = args[:children] if args.key?(:children)
  @truncated = args[:truncated] if args.key?(:truncated)
end