Class: Google::Apis::DataflowV1b3::InstructionInput

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

Overview

An input of an instruction, as a reference to an output of a producer instruction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstructionInput

Returns a new instance of InstructionInput



1712
1713
1714
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1712

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

Instance Attribute Details

#output_numFixnum

The output index (origin zero) within the producer. Corresponds to the JSON property outputNum

Returns:

  • (Fixnum)


1710
1711
1712
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1710

def output_num
  @output_num
end

#producer_instruction_indexFixnum

The index (origin zero) of the parallel instruction that produces the output to be consumed by this input. This index is relative to the list of instructions in this input's instruction's containing MapTask. Corresponds to the JSON property producerInstructionIndex

Returns:

  • (Fixnum)


1705
1706
1707
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1705

def producer_instruction_index
  @producer_instruction_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1717
1718
1719
1720
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1717

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