ApiKeysServiceBase constructor

ApiKeysServiceBase()

Implementation

ApiKeysServiceBase() {
  $addMethod($grpc.ServiceMethod<$0.CreateKeyRequest, $1.Operation>(
      'CreateKey',
      createKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.CreateKeyRequest.fromBuffer(value),
      ($1.Operation value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.ListKeysRequest, $0.ListKeysResponse>(
      'ListKeys',
      listKeys_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.ListKeysRequest.fromBuffer(value),
      ($0.ListKeysResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetKeyRequest, $2.Key>(
      'GetKey',
      getKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.GetKeyRequest.fromBuffer(value),
      ($2.Key value) => value.writeToBuffer()));
  $addMethod(
      $grpc.ServiceMethod<$0.GetKeyStringRequest, $0.GetKeyStringResponse>(
          'GetKeyString',
          getKeyString_Pre,
          false,
          false,
          ($core.List<$core.int> value) =>
              $0.GetKeyStringRequest.fromBuffer(value),
          ($0.GetKeyStringResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.UpdateKeyRequest, $1.Operation>(
      'UpdateKey',
      updateKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.UpdateKeyRequest.fromBuffer(value),
      ($1.Operation value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.DeleteKeyRequest, $1.Operation>(
      'DeleteKey',
      deleteKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.DeleteKeyRequest.fromBuffer(value),
      ($1.Operation value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.UndeleteKeyRequest, $1.Operation>(
      'UndeleteKey',
      undeleteKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) =>
          $0.UndeleteKeyRequest.fromBuffer(value),
      ($1.Operation value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.LookupKeyRequest, $0.LookupKeyResponse>(
      'LookupKey',
      lookupKey_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.LookupKeyRequest.fromBuffer(value),
      ($0.LookupKeyResponse value) => value.writeToBuffer()));
}