Class: DBEventMessage
- Inherits:
-
Object
- Object
- DBEventMessage
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/db_event_model_types.rb
Constant Summary collapse
- DBEVENTTYPE =
1
- MESSAGECONTEXT =
2
- PUBLISHERSERVICE =
3
- FIELDS =
{ DBEVENTTYPE => {:type => ::Thrift::Types::I32, :name => 'dbEventType', :enum_class => ::DBEventType}, MESSAGECONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'messageContext', :class => ::DBEventMessageContext}, PUBLISHERSERVICE => {:type => ::Thrift::Types::STRING, :name => 'publisherService'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
142 |
# File 'lib/db_event_model_types.rb', line 142 def struct_fields; FIELDS; end |
#validate ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/db_event_model_types.rb', line 144 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbEventType is unset!') unless @dbEventType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field messageContext is unset!') unless @messageContext raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field publisherService is unset!') unless @publisherService unless @dbEventType.nil? || ::DBEventType::VALID_VALUES.include?(@dbEventType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dbEventType!') end end |