class Google::Apis::GamesV1::RoomP2PStatus

This is a JSON template for an update on the status of a peer in a room.

Attributes

connection_setup_latency_millis[RW]

The amount of time in milliseconds it took to establish connections with this peer. Corresponds to the JSON property `connectionSetupLatencyMillis` @return [Fixnum]

error[RW]

The error code in event of a failure. Possible values are:

  • “P2P_FAILED” - The client failed to establish a P2P connection with the peer.

  • “PRESENCE_FAILED” - The client failed to register to receive P2P connections.

  • “RELAY_SERVER_FAILED” - The client received an error when trying to use the

relay server to establish a P2P connection with the peer. Corresponds to the JSON property `error` @return [String]

error_reason[RW]

More detailed diagnostic message returned in event of a failure. Corresponds to the JSON property `error_reason` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatus. Corresponds to the JSON property `kind` @return [String]

participant_id[RW]

The ID of the participant. Corresponds to the JSON property `participantId` @return [String]

status[RW]

The status of the peer in the room. Possible values are:

  • “CONNECTION_ESTABLISHED” - The client established a P2P connection with the

peer.

  • “CONNECTION_FAILED” - The client failed to establish directed presence with

the peer. Corresponds to the JSON property `status` @return [String]

unreliable_roundtrip_latency_millis[RW]

The amount of time in milliseconds it took to send packets back and forth on the unreliable channel with this peer. Corresponds to the JSON property `unreliableRoundtripLatencyMillis` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 3622
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 3627
def update!(**args)
  @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis)
  @error = args[:error] if args.key?(:error)
  @error_reason = args[:error_reason] if args.key?(:error_reason)
  @kind = args[:kind] if args.key?(:kind)
  @participant_id = args[:participant_id] if args.key?(:participant_id)
  @status = args[:status] if args.key?(:status)
  @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis)
end