Class: ThriftSourceProtocol::AppendBatch_result
- Inherits:
-
Object
- Object
- ThriftSourceProtocol::AppendBatch_result
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/flume-logger/flume-ng/thrift_source_protocol.rb
Constant Summary collapse
- SUCCESS =
0
- FIELDS =
{ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Status} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
126 |
# File 'lib/flume-logger/flume-ng/thrift_source_protocol.rb', line 126 def struct_fields; FIELDS; end |
#validate ⇒ Object
128 129 130 131 132 |
# File 'lib/flume-logger/flume-ng/thrift_source_protocol.rb', line 128 def validate unless @success.nil? || ::Status::VALID_VALUES.include?(@success) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!') end end |