///
//  Generated code. Do not modify.
//  source: burying.proto
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type

import 'dart:async' as $async;

import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'burying.pb.dart' as $0;
export 'burying.pb.dart';

class BuryingClient extends $grpc.Client {
  static final _$homeBury = $grpc.ClientMethod<$0.HomeNote, $0.ServiceNote>(
      '/likebury.Burying/HomeBury',
      ($0.HomeNote value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $0.ServiceNote.fromBuffer(value));

  BuryingClient($grpc.ClientChannel channel, {$grpc.CallOptions options})
      : super(channel, options: options);

  $grpc.ResponseStream<$0.ServiceNote> homeBury(
      $async.Stream<$0.HomeNote> request,
      {$grpc.CallOptions options}) {
    final call = $createCall(_$homeBury, request, options: options);
    return $grpc.ResponseStream(call);
  }
}

abstract class BuryingServiceBase extends $grpc.Service {
  $core.String get $name => 'likebury.Burying';

  BuryingServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.HomeNote, $0.ServiceNote>(
        'HomeBury',
        homeBury,
        true,
        true,
        ($core.List<$core.int> value) => $0.HomeNote.fromBuffer(value),
        ($0.ServiceNote value) => value.writeToBuffer()));
  }

  $async.Stream<$0.ServiceNote> homeBury(
      $grpc.ServiceCall call, $async.Stream<$0.HomeNote> request);
}
