Class: AddProductToSubscriptionSlotRequest

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

PRODUCTTYPE =
1
PRODUCTID =
2
OLDPRODUCTID =
3
SUBSCRIPTIONSERVICE =
4
FIELDS =
{
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1},
  PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'},
  OLDPRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'oldProductId'},
  SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::P0_a_a_b_a_a_p3}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10985
10986
10987
10988
10989
10990
10991
10992
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10985

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