Class: Google::Apis::GamesV1::PeerSessionDiagnostics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_millisFixnum

Connected time in milliseconds. Corresponds to the JSON property connectedTimestampMillis

Returns:

  • (Fixnum)


1909
1910
1911
# File 'generated/google/apis/games_v1/classes.rb', line 1909

def connected_timestamp_millis
  @connected_timestamp_millis
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#peerSessionDiagnostics. Corresponds to the JSON property kind

Returns:

  • (String)


1915
1916
1917
# File 'generated/google/apis/games_v1/classes.rb', line 1915

def kind
  @kind
end

#participant_idString

The participant ID of the peer. Corresponds to the JSON property participantId

Returns:

  • (String)


1920
1921
1922
# File 'generated/google/apis/games_v1/classes.rb', line 1920

def participant_id
  @participant_id
end

#reliable_channelGoogle::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_channelGoogle::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