Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#fixed
def fixed() -> ::Integer
Returns
- (::Integer) — Specifies a fixed value.
#fixed=
def fixed=(value) -> ::Integer
Parameter
- value (::Integer) — Specifies a fixed value.
Returns
- (::Integer) — Specifies a fixed value.
#percent
def percent() -> ::Integer
Returns
- (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
#percent=
def percent=(value) -> ::Integer
Parameter
- value (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Returns
- (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.