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 => ::J0_a_e_a_b_nd}, REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'}, CHECKSUM => {:type => ::Thrift::Types::STRING, :name => 'checksum'}, STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::J0_a_e_a_b_md}, 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
15671 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15671 def struct_fields; FIELDS; end |
#validate ⇒ Object
15673 15674 15675 15676 15677 15678 15679 15680 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15673 def validate unless @type.nil? || ::J0_a_e_a_b_nd::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @status.nil? || ::J0_a_e_a_b_md::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |