Class: RemoveProductFromSubscriptionSlotRequest
- Inherits:
-
Object
- Object
- RemoveProductFromSubscriptionSlotRequest
- 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
- SUBSCRIPTIONSERVICE =
3
- FIELDS =
{ PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::J0_a_a_b_a_a_z1}, PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'}, SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::J0_a_a_b_a_a_v3} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
9573 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9573 def struct_fields; FIELDS; end |
#validate ⇒ Object
9575 9576 9577 9578 9579 9580 9581 9582 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9575 def validate unless @productType.nil? || ::J0_a_a_b_a_a_z1::VALID_VALUES.include?(@productType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!') end unless @subscriptionService.nil? || ::J0_a_a_b_a_a_v3::VALID_VALUES.include?(@subscriptionService) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subscriptionService!') end end |