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.



357
358
359
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 357

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



348
349
350
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 348

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)


354
355
356
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 354

def truncated
  @truncated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 362

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