Class: AbuseMessage
- Inherits:
-
Object
- Object
- AbuseMessage
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- MESSAGEID =
1
- MESSAGE =
2
- SENDERMID =
3
- CONTENTTYPE =
4
- CREATEDTIME =
5
- METADATA =
6
- FIELDS =
{ MESSAGEID => {:type => ::Thrift::Types::I64, :name => 'messageId'}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}, SENDERMID => {:type => ::Thrift::Types::STRING, :name => 'senderMid'}, CONTENTTYPE => {:type => ::Thrift::Types::I32, :name => 'contentType', :enum_class => ::P0_a_e_a_b_d9}, CREATEDTIME => {:type => ::Thrift::Types::I64, :name => 'createdTime'}, METADATA => {:type => ::Thrift::Types::MAP, :name => 'metadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
15559 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15559 def struct_fields; FIELDS; end |
#validate ⇒ Object
15561 15562 15563 15564 15565 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15561 def validate unless @contentType.nil? || ::P0_a_e_a_b_d9::VALID_VALUES.include?(@contentType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field contentType!') end end |