Class: UnregisterAvailabilityInfo
- Inherits:
-
Object
- Object
- UnregisterAvailabilityInfo
- 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
- RESULT =
1
- MESSAGE =
2
- FIELDS =
{ RESULT => {:type => ::Thrift::Types::I32, :name => 'result', :enum_class => ::G_a_b_z0_a_d_m8}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7934 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7934 def struct_fields; FIELDS; end |
#validate ⇒ Object
7936 7937 7938 7939 7940 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7936 def validate unless @result.nil? || ::G_a_b_z0_a_d_m8::VALID_VALUES.include?(@result) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field result!') end end |