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 => ::J0_a_e_a_b_c9}, 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
14917 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14917 def struct_fields; FIELDS; end |
#validate ⇒ Object
14919 14920 14921 14922 14923 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14919 def validate unless @contentType.nil? || ::J0_a_e_a_b_c9::VALID_VALUES.include?(@contentType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field contentType!') end end |