Class: Google::Apis::GamesV1::PeerSessionDiagnostics
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PeerSessionDiagnostics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
This is a JSON template for peer session diagnostics.
Instance Attribute Summary collapse
-
#connected_timestamp_millis ⇒ Fixnum
Connected time in milliseconds.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#participant_id ⇒ String
The participant ID of the peer.
-
#reliable_channel ⇒ Google::Apis::GamesV1::PeerChannelDiagnostics
This is a JSON template for peer channel diagnostics.
-
#unreliable_channel ⇒ Google::Apis::GamesV1::PeerChannelDiagnostics
This is a JSON template for peer channel diagnostics.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PeerSessionDiagnostics
constructor
A new instance of PeerSessionDiagnostics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PeerSessionDiagnostics
Returns a new instance of PeerSessionDiagnostics
1932 1933 1934 |
# File 'generated/google/apis/games_v1/classes.rb', line 1932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connected_timestamp_millis ⇒ Fixnum
Connected time in milliseconds.
Corresponds to the JSON property connectedTimestampMillis
1909 1910 1911 |
# File 'generated/google/apis/games_v1/classes.rb', line 1909 def @connected_timestamp_millis end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#peerSessionDiagnostics.
Corresponds to the JSON property kind
1915 1916 1917 |
# File 'generated/google/apis/games_v1/classes.rb', line 1915 def kind @kind end |
#participant_id ⇒ String
The participant ID of the peer.
Corresponds to the JSON property participantId
1920 1921 1922 |
# File 'generated/google/apis/games_v1/classes.rb', line 1920 def participant_id @participant_id end |
#reliable_channel ⇒ Google::Apis::GamesV1::PeerChannelDiagnostics
This is a JSON template for peer channel diagnostics.
Corresponds to the JSON property reliableChannel
1925 1926 1927 |
# File 'generated/google/apis/games_v1/classes.rb', line 1925 def reliable_channel @reliable_channel end |
#unreliable_channel ⇒ Google::Apis::GamesV1::PeerChannelDiagnostics
This is a JSON template for peer channel diagnostics.
Corresponds to the JSON property unreliableChannel
1930 1931 1932 |
# File 'generated/google/apis/games_v1/classes.rb', line 1930 def unreliable_channel @unreliable_channel end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1937 1938 1939 1940 1941 1942 1943 |
# File 'generated/google/apis/games_v1/classes.rb', line 1937 def update!(**args) @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis) @kind = args[:kind] if args.key?(:kind) @participant_id = args[:participant_id] if args.key?(:participant_id) @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel) @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel) end |