Class: UpdateChatRequest
- Inherits:
-
Object
- Object
- UpdateChatRequest
- 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
- REQSEQ =
1
- CHAT =
2
- UPDATEDATTRIBUTE =
3
- FIELDS =
{ REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'}, CHAT => {:type => ::Thrift::Types::STRUCT, :name => 'chat', :class => ::Chat}, UPDATEDATTRIBUTE => {:type => ::Thrift::Types::I32, :name => 'updatedAttribute', :enum_class => ::J0_a_e_a_b_f7} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16631 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16631 def struct_fields; FIELDS; end |
#validate ⇒ Object
16633 16634 16635 16636 16637 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16633 def validate unless @updatedAttribute.nil? || ::J0_a_e_a_b_f7::VALID_VALUES.include?(@updatedAttribute) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field updatedAttribute!') end end |