Class: ParserConnectorInput

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/parser_model_types.rb

Constant Summary collapse

ID =
1
INPUTID =
2
PARENTOUTPUTID =
3
VALUE =
4
PARSERCONNECTORID =
5
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  INPUTID => {:type => ::Thrift::Types::STRING, :name => 'inputId'},
  PARENTOUTPUTID => {:type => ::Thrift::Types::STRING, :name => 'parentOutputId'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
  PARSERCONNECTORID => {:type => ::Thrift::Types::STRING, :name => 'parserConnectorId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



134
# File 'lib/parser_model_types.rb', line 134

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


136
137
138
139
140
# File 'lib/parser_model_types.rb', line 136

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputId is unset!') unless @inputId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parserConnectorId is unset!') unless @parserConnectorId
end