Class: Operation
- Inherits:
-
Object
- Object
- Operation
- 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
- REVISION =
1
- CREATEDTIME =
2
- TYPE =
3
- REQSEQ =
4
- CHECKSUM =
5
- STATUS =
7
- PARAM1 =
10
- PARAM2 =
11
- PARAM3 =
12
- MESSAGE =
20
- FIELDS =
{ REVISION => {:type => ::Thrift::Types::I64, :name => 'revision'}, CREATEDTIME => {:type => ::Thrift::Types::I64, :name => 'createdTime'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_od}, REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'}, CHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'checksum'}, STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::P0_a_e_a_b_nd}, PARAM1 => {:type => ::Thrift::Types::STRING, :name => 'param1'}, PARAM2 => {:type => ::Thrift::Types::STRING, :name => 'param2'}, PARAM3 => {:type => ::Thrift::Types::STRING, :name => 'param3'}, MESSAGE => {:type => ::Thrift::Types::STRUCT, :name => 'message', :class => ::Message} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16772 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16772 def struct_fields; FIELDS; end |
#validate ⇒ Object
16774 16775 16776 16777 16778 16779 16780 16781 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16774 def validate unless @type.nil? || ::P0_a_e_a_b_od::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @status.nil? || ::P0_a_e_a_b_nd::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |