Class: Hive2::Thrift::TTypeQualifierValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hive2::Thrift::TTypeQualifierValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- I32VALUE =
1
- STRINGVALUE =
2
- FIELDS =
{ I32VALUE => {:type => ::Thrift::Types::I32, :name => 'i32Value', :optional => true}, STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue', :optional => true} }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.i32Value(val) ⇒ Object
146 147 148 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 146 def i32Value(val) TTypeQualifierValue.new(:i32Value, val) end |
.stringValue(val) ⇒ Object
150 151 152 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 150 def stringValue(val) TTypeQualifierValue.new(:stringValue, val) end |
Instance Method Details
#struct_fields ⇒ Object
163 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 163 def struct_fields; FIELDS; end |
#validate ⇒ Object
165 166 167 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 165 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |