Class: Google::Apis::DataflowV1b3::SplitInt64

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb

Overview

A representation of an int64, n, that is immune to precision loss when encoded in JSON.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SplitInt64

Returns a new instance of SplitInt64.



5902
5903
5904
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5902

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#high_bitsFixnum

The high order bits, including the sign: n >> 32. Corresponds to the JSON property highBits

Returns:

  • (Fixnum)


5895
5896
5897
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5895

def high_bits
  @high_bits
end

#low_bitsFixnum

The low order bits: n & 0xffffffff. Corresponds to the JSON property lowBits

Returns:

  • (Fixnum)


5900
5901
5902
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5900

def low_bits
  @low_bits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5907
5908
5909
5910
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5907

def update!(**args)
  @high_bits = args[:high_bits] if args.key?(:high_bits)
  @low_bits = args[:low_bits] if args.key?(:low_bits)
end