Class: Google::Apis::DataflowV1b3::SideInputInfo

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

Information about a side input of a DoFn or an input of a SeqDoFn.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SideInputInfo

Returns a new instance of SideInputInfo.



5023
5024
5025
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5023

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

Instance Attribute Details

#kindHash<String,Object>

How to interpret the source element(s) as a side input value. Corresponds to the JSON property kind

Returns:

  • (Hash<String,Object>)


5008
5009
5010
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5008

def kind
  @kind
end

#sourcesArray<Google::Apis::DataflowV1b3::Source>

The source(s) to read element(s) from to get the value of this side input. If more than one source, then the elements are taken from the sources, in the specified order if order matters. At least one source is required. Corresponds to the JSON property sources



5015
5016
5017
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5015

def sources
  @sources
end

#tagString

The id of the tag the user code will access this side input by; this should correspond to the tag of some MultiOutputInfo. Corresponds to the JSON property tag

Returns:

  • (String)


5021
5022
5023
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5021

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5028
5029
5030
5031
5032
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5028

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @sources = args[:sources] if args.key?(:sources)
  @tag = args[:tag] if args.key?(:tag)
end