Class: TalkService::GetPreviousMessagesV2WithRequest_args
- Inherits:
-
Object
- Object
- TalkService::GetPreviousMessagesV2WithRequest_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/talk_service.rb
Constant Summary collapse
- REQUEST =
2
- SYNCREASON =
3
- FIELDS =
{ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::GetPreviousMessagesV2Request}, SYNCREASON => {:type => ::Thrift::Types::I32, :name => 'syncReason', :enum_class => ::J0_a_e_a_b_rg} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3226 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3226 def struct_fields; FIELDS; end |
#validate ⇒ Object
3228 3229 3230 3231 3232 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3228 def validate unless @syncReason.nil? || ::J0_a_e_a_b_rg::VALID_VALUES.include?(@syncReason) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field syncReason!') end end |