getBySessionId constant

Spec<GetBySessionIdRequest, GetBySessionIdResponse> const getBySessionId

GetBySessionId retrieves a device by its active session identifier. Useful for resolving devices from session tokens.

Implementation

static const getBySessionId = connect.Spec(
  '/$name/GetBySessionId',
  connect.StreamType.unary,
  devicev1device.GetBySessionIdRequest.new,
  devicev1device.GetBySessionIdResponse.new,
  idempotency: connect.Idempotency.noSideEffects,
);