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 => ::P0_a_e_a_b_g7} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
17222 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17222 def struct_fields; FIELDS; end |
#validate ⇒ Object
17224 17225 17226 17227 17228 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17224 def validate unless @updatedAttribute.nil? || ::P0_a_e_a_b_g7::VALID_VALUES.include?(@updatedAttribute) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field updatedAttribute!') end end |