//
//  Generated code. Do not modify.
//  source: view.proto
//
// @dart = 3.3

// 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 'view.pb.dart' as $62;

export 'view.pb.dart';

@$pb.GrpcServiceName('api.ViewService')
class ViewServiceClient extends $grpc.Client {
  static final _$getViewFields = $grpc.ClientMethod<$62.GetViewFieldsRequest, $62.GetViewFieldsResult>(
      '/api.ViewService/GetViewFields',
      ($62.GetViewFieldsRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $62.GetViewFieldsResult.fromBuffer(value));

  ViewServiceClient(super.channel, {super.options, super.interceptors});

  $grpc.ResponseFuture<$62.GetViewFieldsResult> getViewFields($62.GetViewFieldsRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getViewFields, request, options: options);
  }
}

@$pb.GrpcServiceName('api.ViewService')
abstract class ViewServiceBase extends $grpc.Service {
  $core.String get $name => 'api.ViewService';

  ViewServiceBase() {
    $addMethod($grpc.ServiceMethod<$62.GetViewFieldsRequest, $62.GetViewFieldsResult>(
        'GetViewFields',
        getViewFields_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $62.GetViewFieldsRequest.fromBuffer(value),
        ($62.GetViewFieldsResult value) => value.writeToBuffer()));
  }

  $async.Future<$62.GetViewFieldsResult> getViewFields_Pre($grpc.ServiceCall $call, $async.Future<$62.GetViewFieldsRequest> $request) async {
    return getViewFields($call, await $request);
  }

  $async.Future<$62.GetViewFieldsResult> getViewFields($grpc.ServiceCall call, $62.GetViewFieldsRequest request);
}
