TranslationServiceBase constructor
TranslationServiceBase()
Implementation
TranslationServiceBase() {
$addMethod($grpc.ServiceMethod<$0.ProjectId, $1.TranslationList>(
'GetTranslationsByProject',
getTranslationsByProject_Pre,
false,
false,
($core.List<$core.int> value) => $0.ProjectId.fromBuffer(value),
($1.TranslationList value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.TranslationId, $1.Translation>(
'GetTranslation',
getTranslation_Pre,
false,
false,
($core.List<$core.int> value) => $1.TranslationId.fromBuffer(value),
($1.Translation value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.TranslationId, $1.DeleteTranslationResponse>(
'DeleteTranslation',
deleteTranslation_Pre,
false,
false,
($core.List<$core.int> value) => $1.TranslationId.fromBuffer(value),
($1.DeleteTranslationResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Translation, $1.Translation>(
'UpsertTranslation',
upsertTranslation_Pre,
false,
false,
($core.List<$core.int> value) => $1.Translation.fromBuffer(value),
($1.Translation value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.CopyTranslationRequest, $1.Translation>(
'CopyTranslation',
copyTranslation_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.CopyTranslationRequest.fromBuffer(value),
($1.Translation value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.ProjectSearch, $1.TranslationList>(
'GetTranslationsByProjectSearch',
getTranslationsByProjectSearch_Pre,
false,
false,
($core.List<$core.int> value) => $1.ProjectSearch.fromBuffer(value),
($1.TranslationList value) => value.writeToBuffer()));
}