Class: SquareJoinMethod

Inherits:
Object
  • Object
show all
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

TYPE =
1
VALUE =
2
FIELDS =
{
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Com_linecorp_square_protocol_thrift_common_SquareJoinMethodType},
  VALUE => {:type => ::Thrift::Types::STRUCT, :name => 'value', :class => ::SquareJoinMethodValue}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



9646
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9646

def struct_fields; FIELDS; end

#validateObject



9648
9649
9650
9651
9652
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9648

def validate
  unless @type.nil? || ::Com_linecorp_square_protocol_thrift_common_SquareJoinMethodType::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end