//
//  Generated code. Do not modify.
//  source: signaler_service.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:async' as $async;
import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;

import 'signaler_service.pb.dart' as $0;

export 'signaler_service.pb.dart';

@$pb.GrpcServiceName('signaler.SignalerService')
class SignalerServiceClient extends $grpc.Client {
  static final _$createAuthToken = $grpc.ClientMethod<$0.CreateAuthTokenRequest, $0.AuthToken>(
      '/signaler.SignalerService/CreateAuthToken',
      ($0.CreateAuthTokenRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.AuthToken.fromBuffer(value));
  static final _$listCameras = $grpc.ClientMethod<$0.ListCamerasRequest, $0.ListCamerasResponse>(
      '/signaler.SignalerService/ListCameras',
      ($0.ListCamerasRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.ListCamerasResponse.fromBuffer(value));
  static final _$createSession = $grpc.ClientMethod<$0.CreateSessionRequest, $0.Session>(
      '/signaler.SignalerService/CreateSession',
      ($0.CreateSessionRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.Session.fromBuffer(value));
  static final _$popSession = $grpc.ClientMethod<$0.PopSessionRequest, $0.Session>(
      '/signaler.SignalerService/PopSession',
      ($0.PopSessionRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.Session.fromBuffer(value));
  static final _$createIceMessage = $grpc.ClientMethod<$0.CreateIceMessageRequest, $0.IceMessage>(
      '/signaler.SignalerService/CreateIceMessage',
      ($0.CreateIceMessageRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.IceMessage.fromBuffer(value));
  static final _$popIceMessage = $grpc.ClientMethod<$0.PopIceMessageRequest, $0.IceMessage>(
      '/signaler.SignalerService/PopIceMessage',
      ($0.PopIceMessageRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.IceMessage.fromBuffer(value));
  static final _$createSample = $grpc.ClientMethod<$0.CreateSampleRequest, $0.Sample>(
      '/signaler.SignalerService/CreateSample',
      ($0.CreateSampleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.Sample.fromBuffer(value));
  static final _$listSamples = $grpc.ClientMethod<$0.ListSamplesRequest, $0.ListSamplesResponse>(
      '/signaler.SignalerService/ListSamples',
      ($0.ListSamplesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.ListSamplesResponse.fromBuffer(value));

  SignalerServiceClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

  $grpc.ResponseFuture<$0.AuthToken> createAuthToken($0.CreateAuthTokenRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createAuthToken, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListCamerasResponse> listCameras($0.ListCamerasRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listCameras, request, options: options);
  }

  $grpc.ResponseFuture<$0.Session> createSession($0.CreateSessionRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createSession, request, options: options);
  }

  $grpc.ResponseFuture<$0.Session> popSession($0.PopSessionRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$popSession, request, options: options);
  }

  $grpc.ResponseFuture<$0.IceMessage> createIceMessage($0.CreateIceMessageRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createIceMessage, request, options: options);
  }

  $grpc.ResponseFuture<$0.IceMessage> popIceMessage($0.PopIceMessageRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$popIceMessage, request, options: options);
  }

  $grpc.ResponseFuture<$0.Sample> createSample($0.CreateSampleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createSample, request, options: options);
  }

  $grpc.ResponseFuture<$0.ListSamplesResponse> listSamples($0.ListSamplesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$listSamples, request, options: options);
  }
}

@$pb.GrpcServiceName('signaler.SignalerService')
abstract class SignalerServiceBase extends $grpc.Service {
  $core.String get $name => 'signaler.SignalerService';

  SignalerServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.CreateAuthTokenRequest, $0.AuthToken>(
        'CreateAuthToken',
        createAuthToken_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateAuthTokenRequest.fromBuffer(value),
        ($0.AuthToken value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListCamerasRequest, $0.ListCamerasResponse>(
        'ListCameras',
        listCameras_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListCamerasRequest.fromBuffer(value),
        ($0.ListCamerasResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.CreateSessionRequest, $0.Session>(
        'CreateSession',
        createSession_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateSessionRequest.fromBuffer(value),
        ($0.Session value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PopSessionRequest, $0.Session>(
        'PopSession',
        popSession_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PopSessionRequest.fromBuffer(value),
        ($0.Session value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.CreateIceMessageRequest, $0.IceMessage>(
        'CreateIceMessage',
        createIceMessage_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateIceMessageRequest.fromBuffer(value),
        ($0.IceMessage value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PopIceMessageRequest, $0.IceMessage>(
        'PopIceMessage',
        popIceMessage_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PopIceMessageRequest.fromBuffer(value),
        ($0.IceMessage value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.CreateSampleRequest, $0.Sample>(
        'CreateSample',
        createSample_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.CreateSampleRequest.fromBuffer(value),
        ($0.Sample value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.ListSamplesRequest, $0.ListSamplesResponse>(
        'ListSamples',
        listSamples_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.ListSamplesRequest.fromBuffer(value),
        ($0.ListSamplesResponse value) => value.writeToBuffer()));
  }

  $async.Future<$0.AuthToken> createAuthToken_Pre($grpc.ServiceCall call, $async.Future<$0.CreateAuthTokenRequest> request) async {
    return createAuthToken(call, await request);
  }

  $async.Future<$0.ListCamerasResponse> listCameras_Pre($grpc.ServiceCall call, $async.Future<$0.ListCamerasRequest> request) async {
    return listCameras(call, await request);
  }

  $async.Future<$0.Session> createSession_Pre($grpc.ServiceCall call, $async.Future<$0.CreateSessionRequest> request) async {
    return createSession(call, await request);
  }

  $async.Future<$0.Session> popSession_Pre($grpc.ServiceCall call, $async.Future<$0.PopSessionRequest> request) async {
    return popSession(call, await request);
  }

  $async.Future<$0.IceMessage> createIceMessage_Pre($grpc.ServiceCall call, $async.Future<$0.CreateIceMessageRequest> request) async {
    return createIceMessage(call, await request);
  }

  $async.Future<$0.IceMessage> popIceMessage_Pre($grpc.ServiceCall call, $async.Future<$0.PopIceMessageRequest> request) async {
    return popIceMessage(call, await request);
  }

  $async.Future<$0.Sample> createSample_Pre($grpc.ServiceCall call, $async.Future<$0.CreateSampleRequest> request) async {
    return createSample(call, await request);
  }

  $async.Future<$0.ListSamplesResponse> listSamples_Pre($grpc.ServiceCall call, $async.Future<$0.ListSamplesRequest> request) async {
    return listSamples(call, await request);
  }

  $async.Future<$0.AuthToken> createAuthToken($grpc.ServiceCall call, $0.CreateAuthTokenRequest request);
  $async.Future<$0.ListCamerasResponse> listCameras($grpc.ServiceCall call, $0.ListCamerasRequest request);
  $async.Future<$0.Session> createSession($grpc.ServiceCall call, $0.CreateSessionRequest request);
  $async.Future<$0.Session> popSession($grpc.ServiceCall call, $0.PopSessionRequest request);
  $async.Future<$0.IceMessage> createIceMessage($grpc.ServiceCall call, $0.CreateIceMessageRequest request);
  $async.Future<$0.IceMessage> popIceMessage($grpc.ServiceCall call, $0.PopIceMessageRequest request);
  $async.Future<$0.Sample> createSample($grpc.ServiceCall call, $0.CreateSampleRequest request);
  $async.Future<$0.ListSamplesResponse> listSamples($grpc.ServiceCall call, $0.ListSamplesRequest request);
}
