Class: ParsingTemplateInput

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

Constant Summary collapse

ID =
1
TARGETINPUTID =
2
APPLICATIONOUTPUTNAME =
3
VALUE =
4
PARSINGTEMPLATEID =
5
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  TARGETINPUTID => {:type => ::Thrift::Types::STRING, :name => 'targetInputId'},
  APPLICATIONOUTPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'applicationOutputName'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
  PARSINGTEMPLATEID => {:type => ::Thrift::Types::STRING, :name => 'parsingTemplateId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


192
193
194
195
196
# File 'lib/parser_model_types.rb', line 192

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