Class: ParserConnector

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

Constant Summary collapse

ID =
1
PARENTPARSERID =
2
CHILDPARSERID =
3
CONNECTORINPUTS =
4
PARSINGTEMPLATEID =
5
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  PARENTPARSERID => {:type => ::Thrift::Types::STRING, :name => 'parentParserId'},
  CHILDPARSERID => {:type => ::Thrift::Types::STRING, :name => 'childParserId'},
  CONNECTORINPUTS => {:type => ::Thrift::Types::LIST, :name => 'connectorInputs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ParserConnectorInput}},
  PARSINGTEMPLATEID => {:type => ::Thrift::Types::STRING, :name => 'parsingTemplateId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


163
164
165
166
167
168
169
# File 'lib/parser_model_types.rb', line 163

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 parentParserId is unset!') unless @parentParserId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field childParserId is unset!') unless @childParserId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field connectorInputs is unset!') unless @connectorInputs
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field parsingTemplateId is unset!') unless @parsingTemplateId
end