Class: Protobug::Field::Int32Field
- Inherits:
-
IntegerField
- Object
- Protobug::Field
- IntegerField
- Protobug::Field::Int32Field
- Defined in:
- lib/protobug/field.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Protobug::Field
Instance Attribute Summary
Attributes inherited from Protobug::Field
#adder, #cardinality, #clearer, #haser, #ivar, #json_name, #name, #number, #oneof, #setter
Instance Method Summary collapse
Methods inherited from IntegerField
#binary_decode_one, #binary_encode_one, #default, #json_decode_one, #json_encode_one, #validate!
Methods inherited from Protobug::Field
#adder_method_definition, #binary_decode, #binary_encode, #initialize, #json_decode, #json_encode, #json_key_encode, #method_definitions, #optional?, #packed?, #pretty_print, #proto3_optional?, #repeated?, #to_text, #validate!
Constructor Details
This class inherits a constructor from Protobug::Field
Instance Method Details
#bit_length ⇒ Object
653 654 655 |
# File 'lib/protobug/field.rb', line 653 def bit_length 32 end |
#encoding ⇒ Object
649 650 651 |
# File 'lib/protobug/field.rb', line 649 def encoding :varint end |
#signed ⇒ Object
657 658 659 |
# File 'lib/protobug/field.rb', line 657 def signed true end |
#wire_type ⇒ Object
661 662 663 |
# File 'lib/protobug/field.rb', line 661 def wire_type 0 end |