refactor(grpc): 移除AGV和机械臂服务的gRPC自动生成代码
- 删除AgvServiceOuterClass类及其相关实现 - 移除ArmServiceGrpc类及其中的所有方法定义 - 清理相关的协议缓冲区和服务端点代码 - 更新项目结构以移除废弃的gRPC服务文件
This commit is contained in:
parent
d4fb83ee53
commit
d595de2597
12
bin/update-grpc-protos.bat
Normal file
12
bin/update-grpc-protos.bat
Normal file
@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0update-grpc-protos.ps1" %*
|
||||
set "exitCode=%ERRORLEVEL%"
|
||||
|
||||
if not "%exitCode%"=="0" (
|
||||
echo.
|
||||
echo CMVR-ES proto update failed.
|
||||
)
|
||||
|
||||
exit /b %exitCode%
|
||||
194
bin/update-grpc-protos.ps1
Normal file
194
bin/update-grpc-protos.ps1
Normal file
@ -0,0 +1,194 @@
|
||||
param(
|
||||
[string]$Revision,
|
||||
[switch]$Force,
|
||||
[switch]$SkipBuild
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
function Invoke-CommandChecked {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Executable,
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string[]]$Arguments
|
||||
)
|
||||
|
||||
& $Executable @Arguments
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "$Executable failed with exit code $LASTEXITCODE."
|
||||
}
|
||||
}
|
||||
|
||||
function Get-PomProperty {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$PomText,
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Name
|
||||
)
|
||||
|
||||
$escapedName = [Regex]::Escape($Name)
|
||||
$match = [Regex]::Match($PomText, "<$escapedName>([^<]+)</$escapedName>")
|
||||
if (-not $match.Success) {
|
||||
throw "Cannot find Maven property '$Name'."
|
||||
}
|
||||
|
||||
return $match.Groups[1].Value.Trim()
|
||||
}
|
||||
|
||||
function Sync-ProtoDirectory {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Source,
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Destination
|
||||
)
|
||||
|
||||
if (-not (Test-Path -LiteralPath $Source -PathType Container)) {
|
||||
throw "Upstream proto directory does not exist: $Source"
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path $Destination -Force | Out-Null
|
||||
|
||||
$sourceFiles = @{}
|
||||
foreach ($sourceFile in Get-ChildItem -LiteralPath $Source -Filter '*.proto' -File -Recurse) {
|
||||
$relativePath = $sourceFile.FullName.Substring($Source.Length).TrimStart('\', '/')
|
||||
$sourceFiles[$relativePath] = $true
|
||||
|
||||
$destinationFile = Join-Path $Destination $relativePath
|
||||
$destinationDirectory = Split-Path -Parent $destinationFile
|
||||
New-Item -ItemType Directory -Path $destinationDirectory -Force | Out-Null
|
||||
Copy-Item -LiteralPath $sourceFile.FullName -Destination $destinationFile -Force
|
||||
}
|
||||
|
||||
foreach ($destinationFile in Get-ChildItem -LiteralPath $Destination -Filter '*.proto' -File -Recurse) {
|
||||
$relativePath = $destinationFile.FullName.Substring($Destination.Length).TrimStart('\', '/')
|
||||
if (-not $sourceFiles.ContainsKey($relativePath)) {
|
||||
Remove-Item -LiteralPath $destinationFile.FullName -Force
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
|
||||
throw 'Git was not found on PATH.'
|
||||
}
|
||||
|
||||
$rootDirectory = Split-Path -Parent $PSScriptRoot
|
||||
$moduleRelativePath = 'cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib'
|
||||
$moduleDirectory = Join-Path $rootDirectory $moduleRelativePath
|
||||
$pomPath = Join-Path $moduleDirectory 'pom.xml'
|
||||
$protoRelativePath = "$moduleRelativePath/src/main/proto/cmvr"
|
||||
$protoDirectory = Join-Path $rootDirectory $protoRelativePath
|
||||
$checkoutDirectory = Join-Path $moduleDirectory 'target/cmvr-es'
|
||||
|
||||
$pomText = [IO.File]::ReadAllText($pomPath)
|
||||
$repository = Get-PomProperty -PomText $pomText -Name 'cmvr.es.repository'
|
||||
$branch = Get-PomProperty -PomText $pomText -Name 'cmvr.es.proto.branch'
|
||||
|
||||
$localProtoChanges = @(& git -C $rootDirectory status --porcelain -- $protoRelativePath)
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw 'Unable to inspect local proto changes.'
|
||||
}
|
||||
if ($localProtoChanges.Count -gt 0 -and -not $Force) {
|
||||
throw "Local proto files have uncommitted changes. Commit/stash them first, or rerun with -Force.`n$($localProtoChanges -join "`n")"
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($Revision)) {
|
||||
Write-Host "Looking up the latest '$branch' revision..."
|
||||
$remoteLine = @(& git ls-remote $repository "refs/heads/$branch")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw 'Unable to read the upstream branch. Check the network and Git credentials.'
|
||||
}
|
||||
if ($remoteLine.Count -ne 1) {
|
||||
throw "Upstream branch '$branch' was not found or was ambiguous."
|
||||
}
|
||||
$Revision = ($remoteLine[0] -split '\s+')[0]
|
||||
}
|
||||
|
||||
if ($Revision -notmatch '^[0-9a-fA-F]{40}$') {
|
||||
throw "Revision must be a full 40-character Git commit SHA: $Revision"
|
||||
}
|
||||
$Revision = $Revision.ToLowerInvariant()
|
||||
|
||||
$checkoutParent = Split-Path -Parent $checkoutDirectory
|
||||
New-Item -ItemType Directory -Path $checkoutParent -Force | Out-Null
|
||||
|
||||
if (Test-Path -LiteralPath (Join-Path $checkoutDirectory '.git') -PathType Container) {
|
||||
Write-Host 'Refreshing the existing upstream checkout...'
|
||||
Invoke-CommandChecked git @('-C', $checkoutDirectory, 'remote', 'set-url', 'origin', $repository)
|
||||
Invoke-CommandChecked git @('-C', $checkoutDirectory, 'fetch', '--filter=blob:none', 'origin', $branch)
|
||||
} else {
|
||||
if (Test-Path -LiteralPath $checkoutDirectory) {
|
||||
$expectedPath = [IO.Path]::GetFullPath($checkoutDirectory).TrimEnd('\')
|
||||
$actualPath = (Resolve-Path -LiteralPath $checkoutDirectory).Path.TrimEnd('\')
|
||||
if ($actualPath -ne $expectedPath -or (Split-Path -Parent $actualPath) -ne [IO.Path]::GetFullPath($checkoutParent).TrimEnd('\')) {
|
||||
throw "Refusing to replace unexpected checkout path: $actualPath"
|
||||
}
|
||||
Remove-Item -LiteralPath $checkoutDirectory -Recurse -Force
|
||||
}
|
||||
|
||||
Write-Host 'Cloning the upstream proto repository...'
|
||||
Invoke-CommandChecked git @(
|
||||
'clone', '--filter=blob:none', '--sparse', '--single-branch',
|
||||
'--branch', $branch, $repository, $checkoutDirectory
|
||||
)
|
||||
}
|
||||
|
||||
Invoke-CommandChecked git @(
|
||||
'-C', $checkoutDirectory, 'sparse-checkout', 'set',
|
||||
'protos/cmvr/api', 'protos/cmvr/msgs', 'protos/cmvr/common'
|
||||
)
|
||||
Invoke-CommandChecked git @('-C', $checkoutDirectory, 'checkout', '--detach', $Revision)
|
||||
|
||||
$actualRevision = (& git -C $checkoutDirectory rev-parse HEAD).Trim()
|
||||
if ($LASTEXITCODE -ne 0 -or $actualRevision -ne $Revision) {
|
||||
throw "Expected revision $Revision, but checked out $actualRevision."
|
||||
}
|
||||
|
||||
Write-Host "Syncing proto files from revision $Revision..."
|
||||
foreach ($group in @('api', 'msgs', 'common')) {
|
||||
Sync-ProtoDirectory `
|
||||
-Source (Join-Path $checkoutDirectory "protos/cmvr/$group") `
|
||||
-Destination (Join-Path $protoDirectory $group)
|
||||
}
|
||||
|
||||
$revisionPattern = '(<cmvr\.es\.proto\.revision>)[^<]+(</cmvr\.es\.proto\.revision>)'
|
||||
$revisionRegex = [Regex]::new($revisionPattern)
|
||||
$updatedPomText = $revisionRegex.Replace($pomText, "`${1}$Revision`${2}", 1)
|
||||
if ($updatedPomText -eq $pomText -and (Get-PomProperty -PomText $pomText -Name 'cmvr.es.proto.revision') -ne $Revision) {
|
||||
throw 'Unable to update cmvr.es.proto.revision in pom.xml.'
|
||||
}
|
||||
if ($updatedPomText -ne $pomText) {
|
||||
[IO.File]::WriteAllText($pomPath, $updatedPomText, [Text.UTF8Encoding]::new($false))
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host 'Updated files:'
|
||||
& git -C $rootDirectory status --short -- $protoRelativePath "$moduleRelativePath/pom.xml"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw 'Unable to show the update summary.'
|
||||
}
|
||||
|
||||
if (-not $SkipBuild) {
|
||||
if (-not (Get-Command mvn -ErrorAction SilentlyContinue)) {
|
||||
throw 'Maven was not found on PATH. Proto files were updated, but the verification build was not run.'
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host 'Running the gRPC verification build...'
|
||||
Push-Location $rootDirectory
|
||||
try {
|
||||
Invoke-CommandChecked mvn @(
|
||||
'-pl', 'cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client',
|
||||
'-am', 'clean', 'package', '-DskipTests'
|
||||
)
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host "CMVR-ES proto update completed: $Revision"
|
||||
Write-Host 'Review and commit the proto files and pom.xml together.'
|
||||
169
bin/update-grpc-protos.sh
Normal file
169
bin/update-grpc-protos.sh
Normal file
@ -0,0 +1,169 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -Eeuo pipefail
|
||||
|
||||
revision=""
|
||||
force=false
|
||||
skip_build=false
|
||||
|
||||
while (($# > 0)); do
|
||||
case "$1" in
|
||||
--revision)
|
||||
if (($# < 2)); then
|
||||
echo "--revision requires a full Git commit SHA." >&2
|
||||
exit 2
|
||||
fi
|
||||
revision="$2"
|
||||
shift 2
|
||||
;;
|
||||
--force)
|
||||
force=true
|
||||
shift
|
||||
;;
|
||||
--skip-build)
|
||||
skip_build=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument: $1" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
command -v git >/dev/null 2>&1 || {
|
||||
echo "Git was not found on PATH." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
script_directory="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||
root_directory="$(cd -- "$script_directory/.." && pwd -P)"
|
||||
module_relative_path="cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib"
|
||||
module_directory="$root_directory/$module_relative_path"
|
||||
pom_path="$module_directory/pom.xml"
|
||||
proto_relative_path="$module_relative_path/src/main/proto/cmvr"
|
||||
proto_directory="$root_directory/$proto_relative_path"
|
||||
checkout_directory="$module_directory/target/cmvr-es"
|
||||
|
||||
read_pom_property() {
|
||||
local name="$1"
|
||||
local escaped_name="${name//./\\.}"
|
||||
local value
|
||||
value="$(sed -n "s:.*<$escaped_name>\([^<]*\)</$escaped_name>.*:\1:p" "$pom_path" | head -n 1)"
|
||||
if [[ -z "$value" ]]; then
|
||||
echo "Cannot find Maven property '$name'." >&2
|
||||
exit 1
|
||||
fi
|
||||
printf '%s' "$value"
|
||||
}
|
||||
|
||||
repository="$(read_pom_property 'cmvr.es.repository')"
|
||||
branch="$(read_pom_property 'cmvr.es.proto.branch')"
|
||||
|
||||
local_proto_changes="$(git -C "$root_directory" status --porcelain -- "$proto_relative_path")"
|
||||
if [[ -n "$local_proto_changes" && "$force" != true ]]; then
|
||||
echo "Local proto files have uncommitted changes:" >&2
|
||||
echo "$local_proto_changes" >&2
|
||||
echo "Commit/stash them first, or rerun with --force." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "$revision" ]]; then
|
||||
echo "Looking up the latest '$branch' revision..."
|
||||
remote_line="$(git ls-remote "$repository" "refs/heads/$branch")"
|
||||
if [[ -z "$remote_line" || "$remote_line" == *$'\n'* ]]; then
|
||||
echo "Upstream branch '$branch' was not found or was ambiguous." >&2
|
||||
exit 1
|
||||
fi
|
||||
revision="${remote_line%%[[:space:]]*}"
|
||||
fi
|
||||
|
||||
revision="${revision,,}"
|
||||
if [[ ! "$revision" =~ ^[0-9a-f]{40}$ ]]; then
|
||||
echo "Revision must be a full 40-character Git commit SHA: $revision" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p -- "$(dirname -- "$checkout_directory")"
|
||||
if [[ -d "$checkout_directory/.git" ]]; then
|
||||
echo "Refreshing the existing upstream checkout..."
|
||||
git -C "$checkout_directory" remote set-url origin "$repository"
|
||||
git -C "$checkout_directory" fetch --filter=blob:none origin "$branch"
|
||||
else
|
||||
if [[ -e "$checkout_directory" ]]; then
|
||||
checkout_parent="$(cd -- "$(dirname -- "$checkout_directory")" && pwd -P)"
|
||||
expected_parent="$(cd -- "$module_directory/target" && pwd -P)"
|
||||
if [[ "$checkout_parent" != "$expected_parent" || "$(basename -- "$checkout_directory")" != "cmvr-es" ]]; then
|
||||
echo "Refusing to replace unexpected checkout path: $checkout_directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -rf -- "$checkout_directory"
|
||||
fi
|
||||
|
||||
echo "Cloning the upstream proto repository..."
|
||||
git clone --filter=blob:none --sparse --single-branch \
|
||||
--branch "$branch" "$repository" "$checkout_directory"
|
||||
fi
|
||||
|
||||
git -C "$checkout_directory" sparse-checkout set \
|
||||
protos/cmvr/api protos/cmvr/msgs protos/cmvr/common
|
||||
git -C "$checkout_directory" checkout --detach "$revision"
|
||||
|
||||
actual_revision="$(git -C "$checkout_directory" rev-parse HEAD)"
|
||||
if [[ "$actual_revision" != "$revision" ]]; then
|
||||
echo "Expected revision $revision, but checked out $actual_revision." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Syncing proto files from revision $revision..."
|
||||
for group in api msgs common; do
|
||||
source_directory="$checkout_directory/protos/cmvr/$group"
|
||||
destination_directory="$proto_directory/$group"
|
||||
if [[ ! -d "$source_directory" ]]; then
|
||||
echo "Upstream proto directory does not exist: $source_directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p -- "$destination_directory"
|
||||
find "$destination_directory" -type f -name '*.proto' -delete
|
||||
while IFS= read -r -d '' source_file; do
|
||||
relative_path="${source_file#"$source_directory/"}"
|
||||
destination_file="$destination_directory/$relative_path"
|
||||
mkdir -p -- "$(dirname -- "$destination_file")"
|
||||
cp -- "$source_file" "$destination_file"
|
||||
done < <(find "$source_directory" -type f -name '*.proto' -print0)
|
||||
done
|
||||
|
||||
sed -i \
|
||||
"s#<cmvr\.es\.proto\.revision>[^<]*</cmvr\.es\.proto\.revision>#<cmvr.es.proto.revision>$revision</cmvr.es.proto.revision>#" \
|
||||
"$pom_path"
|
||||
|
||||
updated_revision="$(read_pom_property 'cmvr.es.proto.revision')"
|
||||
if [[ "$updated_revision" != "$revision" ]]; then
|
||||
echo "Unable to update cmvr.es.proto.revision in pom.xml." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Updated files:"
|
||||
git -C "$root_directory" status --short -- \
|
||||
"$proto_relative_path" "$module_relative_path/pom.xml"
|
||||
|
||||
if [[ "$skip_build" != true ]]; then
|
||||
command -v mvn >/dev/null 2>&1 || {
|
||||
echo "Maven was not found on PATH. Proto files were updated, but the verification build was not run." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo
|
||||
echo "Running the gRPC verification build..."
|
||||
(
|
||||
cd -- "$root_directory"
|
||||
mvn -pl cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-client \
|
||||
-am clean package -DskipTests
|
||||
)
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "CMVR-ES proto update completed: $revision"
|
||||
echo "Review and commit the proto files and pom.xml together."
|
||||
@ -1,21 +1,79 @@
|
||||
# CMVR-ES Proto Contract
|
||||
|
||||
This module maintains a one-way mirror of protobuf definitions from the
|
||||
`xtkuang_dev` branch of the CMVR-ES repository.
|
||||
This module builds from the protobuf snapshot committed under
|
||||
`src/main/proto/cmvr`. The snapshot currently corresponds to CMVR-ES commit
|
||||
`67566e8aea8b6cb8735556af02d25705f36cce74`.
|
||||
|
||||
During Maven's `initialize` phase, the build performs a shallow sparse clone
|
||||
of the upstream `protos/cmvr/api`, `protos/cmvr/msgs`, and
|
||||
`protos/cmvr/common` directories. These directories replace the local
|
||||
`src/main/proto/cmvr` mirror, and Java/gRPC sources are regenerated under
|
||||
`src/main/java/cmvr` so Maven and IDE compilation use the same files.
|
||||
Normal Maven builds do not access the CMVR-ES Git repository and never modify
|
||||
`src/main`. The protobuf plugin generates Java and gRPC sources under
|
||||
`target/generated-sources/protobuf`, which Maven automatically adds to the
|
||||
compile source roots.
|
||||
|
||||
The build machine must have `git` installed and read access to the CMVR-ES
|
||||
SSH repository. The upstream repository and ref can be overridden when
|
||||
needed:
|
||||
## Updating to the latest upstream proto
|
||||
|
||||
```shell
|
||||
mvn -Dcmvr.es.repository=<git-url> -Dcmvr.es.proto.ref=<branch-or-tag> compile
|
||||
Run one command from the repository root.
|
||||
|
||||
Windows:
|
||||
|
||||
```powershell
|
||||
.\bin\update-grpc-protos.bat
|
||||
```
|
||||
|
||||
Do not edit local proto or generated Java files. The next Maven build replaces
|
||||
them with the current upstream definitions.
|
||||
Linux:
|
||||
|
||||
```shell
|
||||
bash ./bin/update-grpc-protos.sh
|
||||
```
|
||||
|
||||
The script resolves the latest commit on the configured upstream branch,
|
||||
updates the committed `.proto` snapshot and `cmvr.es.proto.revision`, and runs
|
||||
a gRPC verification build. It refuses to overwrite uncommitted local proto
|
||||
changes. Review and commit the proto files and `pom.xml` together.
|
||||
|
||||
Normal builds still never access the upstream Git repository. Only this
|
||||
explicit update command pulls and updates protocol sources.
|
||||
|
||||
Do not run the update command on a production server. Build the application in
|
||||
a development or CI environment and deploy the resulting JAR and environment
|
||||
configuration. If a Linux server must build from source, a normal
|
||||
`mvn clean package` uses the committed proto snapshot and does not require
|
||||
access to the CMVR-ES Git repository.
|
||||
|
||||
## Jenkins
|
||||
|
||||
The normal Jenkins build/deploy job should only build the checked-out business
|
||||
repository:
|
||||
|
||||
```shell
|
||||
mvn -B clean package -DskipTests
|
||||
```
|
||||
|
||||
Archive or deploy `cmvr-iot-admin/target/cmvr-iot-admin.jar` using the existing
|
||||
deployment steps. This job does not need credentials or network access for the
|
||||
CMVR-ES Git repository.
|
||||
|
||||
When an upstream protocol update is required, run
|
||||
`bash ./bin/update-grpc-protos.sh` in a separate, manually triggered Jenkins
|
||||
job (or on a developer machine) that can access the internal Git repository.
|
||||
Review and commit the changed proto files and `pom.xml` to the business
|
||||
repository, then let the normal build/deploy job build that commit. Do not
|
||||
deploy an uncommitted protocol update directly from a temporary Jenkins
|
||||
workspace.
|
||||
|
||||
## Inspecting a pinned snapshot
|
||||
|
||||
To inspect the currently pinned upstream snapshot without changing source
|
||||
files, explicitly enable the fetch profile:
|
||||
|
||||
```shell
|
||||
mvn -pl cmvr-iot-api/cmvr-iot-edge/cmvr-iot-grpc-lib \
|
||||
-Pfetch-cmvr-es-protos initialize
|
||||
```
|
||||
|
||||
The profile checks out the exact `cmvr.es.proto.revision` into
|
||||
`target/cmvr-es`; it does not copy or delete source files. Compare
|
||||
`target/cmvr-es/protos/cmvr` with `src/main/proto/cmvr`, review the protocol
|
||||
changes, update the committed snapshot and revision together, then run a clean
|
||||
build. The repository URL, lookup branch, and revision can be overridden
|
||||
explicitly with `-Dcmvr.es.repository=...`, `-Dcmvr.es.proto.branch=...`, and
|
||||
`-Dcmvr.es.proto.revision=...`.
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
|
||||
<properties>
|
||||
<cmvr.es.repository>ssh://git@192.168.28.10:10022/SmartBench/cmvr-es.git</cmvr.es.repository>
|
||||
<cmvr.es.proto.ref>xtkuang_dev</cmvr.es.proto.ref>
|
||||
<cmvr.es.proto.branch>xtkuang_dev</cmvr.es.proto.branch>
|
||||
<cmvr.es.proto.revision>67566e8aea8b6cb8735556af02d25705f36cce74</cmvr.es.proto.revision>
|
||||
<cmvr.es.checkout.dir>${project.build.directory}/cmvr-es</cmvr.es.checkout.dir>
|
||||
</properties>
|
||||
<description> cmvr-iot gRPC 公共 proto 生成库</description>
|
||||
@ -58,75 +59,15 @@
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>fetch-cmvr-es-protos</id>
|
||||
<phase>initialize</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<delete dir="${cmvr.es.checkout.dir}" quiet="true"/>
|
||||
<mkdir dir="${project.build.directory}"/>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="clone"/>
|
||||
<arg value="--depth"/>
|
||||
<arg value="1"/>
|
||||
<arg value="--filter=blob:none"/>
|
||||
<arg value="--sparse"/>
|
||||
<arg value="--single-branch"/>
|
||||
<arg value="--branch"/>
|
||||
<arg value="${cmvr.es.proto.ref}"/>
|
||||
<arg value="${cmvr.es.repository}"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
</exec>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="-C"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
<arg value="sparse-checkout"/>
|
||||
<arg value="set"/>
|
||||
<arg value="protos/cmvr/api"/>
|
||||
<arg value="protos/cmvr/msgs"/>
|
||||
<arg value="protos/cmvr/common"/>
|
||||
</exec>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="-C"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
<arg value="rev-parse"/>
|
||||
<arg value="HEAD"/>
|
||||
</exec>
|
||||
<delete dir="${basedir}/src/main/proto/cmvr" quiet="true"/>
|
||||
<copy todir="${basedir}/src/main/proto/cmvr/api">
|
||||
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/api" includes="**/*.proto"/>
|
||||
</copy>
|
||||
<copy todir="${basedir}/src/main/proto/cmvr/msgs">
|
||||
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/msgs" includes="**/*.proto"/>
|
||||
</copy>
|
||||
<copy todir="${basedir}/src/main/proto/cmvr/common">
|
||||
<fileset dir="${cmvr.es.checkout.dir}/protos/cmvr/common" includes="**/*.proto"/>
|
||||
</copy>
|
||||
<delete dir="${basedir}/src/main/java/cmvr" quiet="true"/>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.xolstice.maven.plugins</groupId>
|
||||
<artifactId>protobuf-maven-plugin</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<configuration>
|
||||
<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:${os.detected.classifier}</protocArtifact>
|
||||
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
|
||||
<pluginId>grpc-java</pluginId>
|
||||
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.52.0:exe:${os.detected.classifier}</pluginArtifact>
|
||||
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
|
||||
<protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
|
||||
<outputDirectory>${basedir}/src/main/java</outputDirectory>
|
||||
<clearOutputDirectory>false</clearOutputDirectory>
|
||||
<includes>
|
||||
<include>cmvr/api/*.proto</include>
|
||||
<include>cmvr/msgs/*.proto</include>
|
||||
@ -153,4 +94,67 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>fetch-cmvr-es-protos</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>fetch-pinned-cmvr-es-protos</id>
|
||||
<phase>initialize</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<delete dir="${cmvr.es.checkout.dir}" quiet="true"/>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="clone"/>
|
||||
<arg value="--filter=blob:none"/>
|
||||
<arg value="--sparse"/>
|
||||
<arg value="--single-branch"/>
|
||||
<arg value="--branch"/>
|
||||
<arg value="${cmvr.es.proto.branch}"/>
|
||||
<arg value="${cmvr.es.repository}"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
</exec>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="-C"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
<arg value="sparse-checkout"/>
|
||||
<arg value="set"/>
|
||||
<arg value="protos/cmvr/api"/>
|
||||
<arg value="protos/cmvr/msgs"/>
|
||||
<arg value="protos/cmvr/common"/>
|
||||
</exec>
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg value="-C"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
<arg value="checkout"/>
|
||||
<arg value="--detach"/>
|
||||
<arg value="${cmvr.es.proto.revision}"/>
|
||||
</exec>
|
||||
<exec executable="git" failonerror="true"
|
||||
outputproperty="cmvr.es.proto.actual-revision">
|
||||
<arg value="-C"/>
|
||||
<arg value="${cmvr.es.checkout.dir}"/>
|
||||
<arg value="rev-parse"/>
|
||||
<arg value="HEAD"/>
|
||||
</exec>
|
||||
<echo message="Fetched CMVR-ES proto revision: ${cmvr.es.proto.actual-revision}"/>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,92 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/agv_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class AgvServiceOuterClass {
|
||||
private AgvServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032cmvr/api/agv_service.proto\022\010cmvr.api\032\025" +
|
||||
"cmvr/api/common.proto\032\032cmvr/api/agv_comm" +
|
||||
"and.proto2\213\020\n\nAgvService\022f\n\017getRuntimeSt" +
|
||||
"ate\022(.cmvr.api.AgvRuntimeStateCommand.Re" +
|
||||
"quest\032).cmvr.api.AgvRuntimeStateCommand." +
|
||||
"Feedback\022r\n\023getNavigationStatus\022,.cmvr.a" +
|
||||
"pi.AgvNavigationStatusCommand.Request\032-." +
|
||||
"cmvr.api.AgvNavigationStatusCommand.Feed" +
|
||||
"back\022R\n\remergencyStop\022\037.cmvr.api.Command" +
|
||||
"Header.Request\032 .cmvr.api.CommandHeader." +
|
||||
"Feedback\022O\n\nclearFault\022\037.cmvr.api.Comman" +
|
||||
"dHeader.Request\032 .cmvr.api.CommandHeader" +
|
||||
".Feedback\022]\n\nrelocalize\022&.cmvr.api.AgvRe" +
|
||||
"localizeCommand.Request\032\'.cmvr.api.AgvRe" +
|
||||
"localizeCommand.Feedback\022i\n\016navigateToPo" +
|
||||
"se\022*.cmvr.api.AgvNavigateToPoseCommand.R" +
|
||||
"equest\032+.cmvr.api.AgvNavigateToPoseComma" +
|
||||
"nd.Feedback\022r\n\021navigateToStation\022-.cmvr." +
|
||||
"api.AgvNavigateToStationCommand.Request\032" +
|
||||
"..cmvr.api.AgvNavigateToStationCommand.F" +
|
||||
"eedback\022]\n\nfollowPath\022&.cmvr.api.AgvFoll" +
|
||||
"owPathCommand.Request\032\'.cmvr.api.AgvFoll" +
|
||||
"owPathCommand.Feedback\022T\n\017pauseNavigatio" +
|
||||
"n\022\037.cmvr.api.CommandHeader.Request\032 .cmv" +
|
||||
"r.api.CommandHeader.Feedback\022U\n\020resumeNa" +
|
||||
"vigation\022\037.cmvr.api.CommandHeader.Reques" +
|
||||
"t\032 .cmvr.api.CommandHeader.Feedback\022U\n\020c" +
|
||||
"ancelNavigation\022\037.cmvr.api.CommandHeader" +
|
||||
".Request\032 .cmvr.api.CommandHeader.Feedba" +
|
||||
"ck\022`\n\013setVelocity\022\'.cmvr.api.AgvSetVeloc" +
|
||||
"ityCommand.Request\032(.cmvr.api.AgvSetVelo" +
|
||||
"cityCommand.Feedback\022X\n\023stopVelocityCont" +
|
||||
"rol\022\037.cmvr.api.CommandHeader.Request\032 .c" +
|
||||
"mvr.api.CommandHeader.Feedback\022W\n\010listMa" +
|
||||
"ps\022$.cmvr.api.AgvListMapsCommand.Request" +
|
||||
"\032%.cmvr.api.AgvListMapsCommand.Feedback\022" +
|
||||
"c\n\014listStations\022(.cmvr.api.AgvListStatio" +
|
||||
"nsCommand.Request\032).cmvr.api.AgvListStat" +
|
||||
"ionsCommand.Feedback\022N\n\tswitchMap\022\037.cmvr" +
|
||||
".api.AgvMapCommand.Request\032 .cmvr.api.Ag" +
|
||||
"vMapCommand.Feedback\022N\n\tuploadMap\022\037.cmvr" +
|
||||
".api.AgvMapCommand.Request\032 .cmvr.api.Ag" +
|
||||
"vMapCommand.Feedback\022P\n\013downloadMap\022\037.cm" +
|
||||
"vr.api.AgvMapCommand.Request\032 .cmvr.api." +
|
||||
"AgvMapCommand.Feedback\022c\n\014startMapping\022(" +
|
||||
".cmvr.api.AgvStartMappingCommand.Request" +
|
||||
"\032).cmvr.api.AgvStartMappingCommand.Feedb" +
|
||||
"ack\022\\\n\tstreamMap\022%.cmvr.api.AgvMapStream" +
|
||||
"Command.Request\032&.cmvr.api.AgvMapStreamC" +
|
||||
"ommand.Feedback0\001\022P\n\013stopMapping\022\037.cmvr." +
|
||||
"api.CommandHeader.Request\032 .cmvr.api.Com" +
|
||||
"mandHeader.Feedback\022Z\n\ttranslate\022%.cmvr." +
|
||||
"api.AgvTranslateCommand.Request\032&.cmvr.a" +
|
||||
"pi.AgvTranslateCommand.Feedbackb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.Common.getDescriptor(),
|
||||
cmvr.api.AgvCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.Common.getDescriptor();
|
||||
cmvr.api.AgvCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,70 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/arm_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class ArmServiceOuterClass {
|
||||
private ArmServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032cmvr/api/arm_service.proto\022\010cmvr.api\032\025" +
|
||||
"cmvr/api/common.proto\032\032cmvr/api/arm_comm" +
|
||||
"and.proto2\207\t\n\nArmService\022N\n\ttorqueOff\022\037." +
|
||||
"cmvr.api.CommandHeader.Request\032 .cmvr.ap" +
|
||||
"i.CommandHeader.Feedback\022M\n\010torqueOn\022\037.c" +
|
||||
"mvr.api.CommandHeader.Request\032 .cmvr.api" +
|
||||
".CommandHeader.Feedback\022O\n\nclearFault\022\037." +
|
||||
"cmvr.api.CommandHeader.Request\032 .cmvr.ap" +
|
||||
"i.CommandHeader.Feedback\022:\n\005moveJ\022\027.cmvr" +
|
||||
".api.MoveJ.Request\032\030.cmvr.api.MoveJ.Resp" +
|
||||
"onse\022:\n\005moveL\022\027.cmvr.api.MoveL.Request\032\030" +
|
||||
".cmvr.api.MoveL.Response\022=\n\006speedJ\022\030.cmv" +
|
||||
"r.api.SpeedJ.Request\032\031.cmvr.api.SpeedJ.R" +
|
||||
"esponse\022=\n\006speedL\022\030.cmvr.api.SpeedL.Requ" +
|
||||
"est\032\031.cmvr.api.SpeedL.Response\022=\n\006servoJ" +
|
||||
"\022\030.cmvr.api.ServoJ.Request\032\031.cmvr.api.Se" +
|
||||
"rvoJ.Response\022O\n\nstopMotion\022\037.cmvr.api.C" +
|
||||
"ommandHeader.Request\032 .cmvr.api.CommandH" +
|
||||
"eader.Feedback\022@\n\rgetJointState\022\026.cmvr.a" +
|
||||
"pi.JointRequest\032\027.cmvr.api.JointResponse" +
|
||||
"\022@\n\007getPose\022\031.cmvr.api.GetPose.Request\032\032" +
|
||||
".cmvr.api.GetPose.Response\022U\n\016calibrateZ" +
|
||||
"eroQ\022 .cmvr.api.CalibrateZeroQ.Request\032!" +
|
||||
".cmvr.api.CalibrateZeroQ.Response\022R\n\rget" +
|
||||
"PoseMatrix\022\037.cmvr.api.GetPoseMatrix.Requ" +
|
||||
"est\032 .cmvr.api.GetPoseMatrix.Response\022s\n" +
|
||||
"\030computeForwardKinematics\022*.cmvr.api.Com" +
|
||||
"puteForwardKinematics.Request\032+.cmvr.api" +
|
||||
".ComputeForwardKinematics.Response\022_\n\022Ex" +
|
||||
"ecuteJsonCommand\022#.cmvr.api.JsonDeviceCo" +
|
||||
"mmand.Request\032$.cmvr.api.JsonDeviceComma" +
|
||||
"nd.Feedbackb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.Common.getDescriptor(),
|
||||
cmvr.api.ArmCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.Common.getDescriptor();
|
||||
cmvr.api.ArmCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,65 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/biohead_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class BioheadService {
|
||||
private BioheadService() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\036cmvr/api/biohead_service.proto\022\010cmvr.a" +
|
||||
"pi\032\036cmvr/api/biohead_command.proto2\224\010\n\016B" +
|
||||
"ioHeadService\022`\n\rSetExpression\022%.cmvr.ap" +
|
||||
"i.SetFacialExpression.Request\032&.cmvr.api" +
|
||||
".SetFacialExpression.Feedback\"\000\022k\n\020Strea" +
|
||||
"mExpression\022(.cmvr.api.StreamFacialExpre" +
|
||||
"ssion.Request\032).cmvr.api.StreamFacialExp" +
|
||||
"ression.Feedback(\0010\001\022N\n\017GetSystemStatus\022" +
|
||||
"\033.cmvr.api.GetStatus.Request\032\034.cmvr.api." +
|
||||
"GetStatus.Feedback\"\000\022T\n\rEmergencyStop\022\037." +
|
||||
"cmvr.api.EmergencyStop.Request\032 .cmvr.ap" +
|
||||
"i.EmergencyStop.Feedback\"\000\022K\n\nSpeakStart" +
|
||||
"\022\034.cmvr.api.SpeakStart.Request\032\035.cmvr.ap" +
|
||||
"i.SpeakStart.Feedback\"\000\022H\n\tSpeakStop\022\033.c" +
|
||||
"mvr.api.SpeakStop.Request\032\034.cmvr.api.Spe" +
|
||||
"akStop.Feedback\"\000\022<\n\005Happy\022\027.cmvr.api.Ha" +
|
||||
"ppy.Request\032\030.cmvr.api.Happy.Feedback\"\000\022" +
|
||||
"E\n\010Surprise\022\032.cmvr.api.Surprise.Request\032" +
|
||||
"\033.cmvr.api.Surprise.Feedback\"\000\022Z\n\017Expres" +
|
||||
"sionTired\022!.cmvr.api.ExpressionTired.Req" +
|
||||
"uest\032\".cmvr.api.ExpressionTired.Feedback" +
|
||||
"\"\000\022Z\n\017ExpressionAngry\022!.cmvr.api.Express" +
|
||||
"ionAngry.Request\032\".cmvr.api.ExpressionAn" +
|
||||
"gry.Feedback\"\000\022`\n\021ExpressionSadness\022#.cm" +
|
||||
"vr.api.ExpressionSadness.Request\032$.cmvr." +
|
||||
"api.ExpressionSadness.Feedback\"\000\022W\n\016Expr" +
|
||||
"essionYawn\022 .cmvr.api.ExpressionYawn.Req" +
|
||||
"uest\032!.cmvr.api.ExpressionYawn.Feedback\"" +
|
||||
"\000b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.BioheadCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.BioheadCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,70 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/camera_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class CameraServiceOuterClass {
|
||||
private CameraServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\035cmvr/api/camera_service.proto\022\010cmvr.ap" +
|
||||
"i\032\035cmvr/api/camera_command.proto2\366\t\n\rCam" +
|
||||
"eraService\022`\n\tGetStatus\022\'.cmvr.api.GetCa" +
|
||||
"meraStateCommand.Request\032(.cmvr.api.GetC" +
|
||||
"ameraStateCommand.Feedback\"\000\022\\\n\013StartCam" +
|
||||
"era\022$.cmvr.api.StartCameraCommand.Reques" +
|
||||
"t\032%.cmvr.api.StartCameraCommand.Feedback" +
|
||||
"\"\000\022Y\n\nStopCamera\022#.cmvr.api.StopCameraCo" +
|
||||
"mmand.Request\032$.cmvr.api.StopCameraComma" +
|
||||
"nd.Feedback\"\000\022\\\n\013GetRGBImage\022$.cmvr.api." +
|
||||
"GetRGBImageCommand.Request\032%.cmvr.api.Ge" +
|
||||
"tRGBImageCommand.Feedback\"\000\022b\n\rGetDepthI" +
|
||||
"mage\022&.cmvr.api.GetDepthImageCommand.Req" +
|
||||
"uest\032\'.cmvr.api.GetDepthImageCommand.Fee" +
|
||||
"dback\"\000\022b\n\rGetRGBDImages\022&.cmvr.api.GetR" +
|
||||
"GBDImagesCommand.Request\032\'.cmvr.api.GetR" +
|
||||
"GBDImagesCommand.Feedback\"\000\022q\n\016StartReco" +
|
||||
"rding\022-.cmvr.api.StartCameraRecordingCom" +
|
||||
"mand.Request\032..cmvr.api.StartCameraRecor" +
|
||||
"dingCommand.Feedback\"\000\022n\n\rStopRecording\022" +
|
||||
",.cmvr.api.StopCameraRecordingCommand.Re" +
|
||||
"quest\032-.cmvr.api.StopCameraRecordingComm" +
|
||||
"and.Feedback\"\000\022Y\n\nControlPtz\022#.cmvr.api." +
|
||||
"ControlPtzCommand.Request\032$.cmvr.api.Con" +
|
||||
"trolPtzCommand.Feedback\"\000\022r\n\021GetRGBImage" +
|
||||
"Stream\022*.cmvr.api.GetRGBImageStreamComma" +
|
||||
"nd.Request\032+.cmvr.api.GetRGBImageStreamC" +
|
||||
"ommand.Feedback\"\000(\0010\001\022x\n\023GetDepthImageSt" +
|
||||
"ream\022,.cmvr.api.GetDepthImageStreamComma" +
|
||||
"nd.Request\032-.cmvr.api.GetDepthImageStrea" +
|
||||
"mCommand.Feedback\"\000(\0010\001\022x\n\023GetRGBDImages" +
|
||||
"Stream\022,.cmvr.api.GetRGBDImagesStreamCom" +
|
||||
"mand.Request\032-.cmvr.api.GetRGBDImagesStr" +
|
||||
"eamCommand.Feedback\"\000(\0010\001b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.CameraCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.CameraCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,790 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/dexhand_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class DexHandServiceGrpc {
|
||||
|
||||
private DexHandServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.DexHandService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetDexHandStateCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> getGetStatusMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetStatus",
|
||||
requestType = cmvr.api.DexhandCommand.GetDexHandStateCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetDexHandStateCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> getGetStatusMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetDexHandStateCommand.Request, cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> getGetStatusMethod;
|
||||
if ((getGetStatusMethod = DexHandServiceGrpc.getGetStatusMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getGetStatusMethod = DexHandServiceGrpc.getGetStatusMethod) == null) {
|
||||
DexHandServiceGrpc.getGetStatusMethod = getGetStatusMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.GetDexHandStateCommand.Request, cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStatus"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("GetStatus"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetStatusMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> getSetDexHandPosMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetDexHandPos",
|
||||
requestType = cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> getSetDexHandPosMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request, cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> getSetDexHandPosMethod;
|
||||
if ((getSetDexHandPosMethod = DexHandServiceGrpc.getSetDexHandPosMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getSetDexHandPosMethod = DexHandServiceGrpc.getSetDexHandPosMethod) == null) {
|
||||
DexHandServiceGrpc.getSetDexHandPosMethod = getSetDexHandPosMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request, cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDexHandPos"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("SetDexHandPos"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetDexHandPosMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> getSetDexHandAngleMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetDexHandAngle",
|
||||
requestType = cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> getSetDexHandAngleMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request, cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> getSetDexHandAngleMethod;
|
||||
if ((getSetDexHandAngleMethod = DexHandServiceGrpc.getSetDexHandAngleMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getSetDexHandAngleMethod = DexHandServiceGrpc.getSetDexHandAngleMethod) == null) {
|
||||
DexHandServiceGrpc.getSetDexHandAngleMethod = getSetDexHandAngleMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request, cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDexHandAngle"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("SetDexHandAngle"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetDexHandAngleMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandForceCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> getSetDexHandForceMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetDexHandForce",
|
||||
requestType = cmvr.api.DexhandCommand.SetDexHandForceCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandForceCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> getSetDexHandForceMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandForceCommand.Request, cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> getSetDexHandForceMethod;
|
||||
if ((getSetDexHandForceMethod = DexHandServiceGrpc.getSetDexHandForceMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getSetDexHandForceMethod = DexHandServiceGrpc.getSetDexHandForceMethod) == null) {
|
||||
DexHandServiceGrpc.getSetDexHandForceMethod = getSetDexHandForceMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.SetDexHandForceCommand.Request, cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDexHandForce"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("SetDexHandForce"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetDexHandForceMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> getSetDexHandSpeedMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetDexHandSpeed",
|
||||
requestType = cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> getSetDexHandSpeedMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request, cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> getSetDexHandSpeedMethod;
|
||||
if ((getSetDexHandSpeedMethod = DexHandServiceGrpc.getSetDexHandSpeedMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getSetDexHandSpeedMethod = DexHandServiceGrpc.getSetDexHandSpeedMethod) == null) {
|
||||
DexHandServiceGrpc.getSetDexHandSpeedMethod = getSetDexHandSpeedMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request, cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDexHandSpeed"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("SetDexHandSpeed"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetDexHandSpeedMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> getSetDexHandPresetActMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetDexHandPresetAct",
|
||||
requestType = cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> getSetDexHandPresetActMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request, cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> getSetDexHandPresetActMethod;
|
||||
if ((getSetDexHandPresetActMethod = DexHandServiceGrpc.getSetDexHandPresetActMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getSetDexHandPresetActMethod = DexHandServiceGrpc.getSetDexHandPresetActMethod) == null) {
|
||||
DexHandServiceGrpc.getSetDexHandPresetActMethod = getSetDexHandPresetActMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request, cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDexHandPresetAct"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("SetDexHandPresetAct"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetDexHandPresetActMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> getGetSensorDataMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetSensorData",
|
||||
requestType = cmvr.api.DexhandCommand.GetSensorDataCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> getGetSensorDataMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataCommand.Request, cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> getGetSensorDataMethod;
|
||||
if ((getGetSensorDataMethod = DexHandServiceGrpc.getGetSensorDataMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getGetSensorDataMethod = DexHandServiceGrpc.getGetSensorDataMethod) == null) {
|
||||
DexHandServiceGrpc.getGetSensorDataMethod = getGetSensorDataMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.GetSensorDataCommand.Request, cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSensorData"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("GetSensorData"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetSensorDataMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback> getGetSensorDataStreamMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetSensorDataStream",
|
||||
requestType = cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request.class,
|
||||
responseType = cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback> getGetSensorDataStreamMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request, cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback> getGetSensorDataStreamMethod;
|
||||
if ((getGetSensorDataStreamMethod = DexHandServiceGrpc.getGetSensorDataStreamMethod) == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
if ((getGetSensorDataStreamMethod = DexHandServiceGrpc.getGetSensorDataStreamMethod) == null) {
|
||||
DexHandServiceGrpc.getGetSensorDataStreamMethod = getGetSensorDataStreamMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request, cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSensorDataStream"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new DexHandServiceMethodDescriptorSupplier("GetSensorDataStream"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetSensorDataStreamMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static DexHandServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<DexHandServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<DexHandServiceStub>() {
|
||||
@java.lang.Override
|
||||
public DexHandServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return DexHandServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static DexHandServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<DexHandServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<DexHandServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public DexHandServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return DexHandServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static DexHandServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<DexHandServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<DexHandServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public DexHandServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return DexHandServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class DexHandServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 基本控制
|
||||
* </pre>
|
||||
*/
|
||||
public void getStatus(cmvr.api.DexhandCommand.GetDexHandStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStatusMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandPos(cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDexHandPosMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandAngle(cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDexHandAngleMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandForce(cmvr.api.DexhandCommand.SetDexHandForceCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDexHandForceMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandSpeed(cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDexHandSpeedMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandPresetAct(cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDexHandPresetActMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSensorData(cmvr.api.DexhandCommand.GetSensorDataCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSensorDataMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request> getSensorDataStream(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback> responseObserver) {
|
||||
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetSensorDataStreamMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetStatusMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback>(
|
||||
this, METHODID_GET_STATUS)))
|
||||
.addMethod(
|
||||
getSetDexHandPosMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback>(
|
||||
this, METHODID_SET_DEX_HAND_POS)))
|
||||
.addMethod(
|
||||
getSetDexHandAngleMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback>(
|
||||
this, METHODID_SET_DEX_HAND_ANGLE)))
|
||||
.addMethod(
|
||||
getSetDexHandForceMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback>(
|
||||
this, METHODID_SET_DEX_HAND_FORCE)))
|
||||
.addMethod(
|
||||
getSetDexHandSpeedMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback>(
|
||||
this, METHODID_SET_DEX_HAND_SPEED)))
|
||||
.addMethod(
|
||||
getSetDexHandPresetActMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request,
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback>(
|
||||
this, METHODID_SET_DEX_HAND_PRESET_ACT)))
|
||||
.addMethod(
|
||||
getGetSensorDataMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback>(
|
||||
this, METHODID_GET_SENSOR_DATA)))
|
||||
.addMethod(
|
||||
getGetSensorDataStreamMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request,
|
||||
cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback>(
|
||||
this, METHODID_GET_SENSOR_DATA_STREAM)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class DexHandServiceStub extends io.grpc.stub.AbstractAsyncStub<DexHandServiceStub> {
|
||||
private DexHandServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected DexHandServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 基本控制
|
||||
* </pre>
|
||||
*/
|
||||
public void getStatus(cmvr.api.DexhandCommand.GetDexHandStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandPos(cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetDexHandPosMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandAngle(cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetDexHandAngleMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandForce(cmvr.api.DexhandCommand.SetDexHandForceCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetDexHandForceMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandSpeed(cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetDexHandSpeedMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setDexHandPresetAct(cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetDexHandPresetActMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSensorData(cmvr.api.DexhandCommand.GetSensorDataCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetSensorDataMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Request> getSensorDataStream(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback> responseObserver) {
|
||||
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
|
||||
getChannel().newCall(getGetSensorDataStreamMethod(), getCallOptions()), responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class DexHandServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DexHandServiceBlockingStub> {
|
||||
private DexHandServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected DexHandServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 基本控制
|
||||
* </pre>
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback getStatus(cmvr.api.DexhandCommand.GetDexHandStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetStatusMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback setDexHandPos(cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetDexHandPosMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback setDexHandAngle(cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetDexHandAngleMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback setDexHandForce(cmvr.api.DexhandCommand.SetDexHandForceCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetDexHandForceMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback setDexHandSpeed(cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetDexHandSpeedMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback setDexHandPresetAct(cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetDexHandPresetActMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback getSensorData(cmvr.api.DexhandCommand.GetSensorDataCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetSensorDataMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class DexHandServiceFutureStub extends io.grpc.stub.AbstractFutureStub<DexHandServiceFutureStub> {
|
||||
private DexHandServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected DexHandServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new DexHandServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 基本控制
|
||||
* </pre>
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback> getStatus(
|
||||
cmvr.api.DexhandCommand.GetDexHandStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback> setDexHandPos(
|
||||
cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetDexHandPosMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback> setDexHandAngle(
|
||||
cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetDexHandAngleMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback> setDexHandForce(
|
||||
cmvr.api.DexhandCommand.SetDexHandForceCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetDexHandForceMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback> setDexHandSpeed(
|
||||
cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetDexHandSpeedMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback> setDexHandPresetAct(
|
||||
cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetDexHandPresetActMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback> getSensorData(
|
||||
cmvr.api.DexhandCommand.GetSensorDataCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetSensorDataMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_STATUS = 0;
|
||||
private static final int METHODID_SET_DEX_HAND_POS = 1;
|
||||
private static final int METHODID_SET_DEX_HAND_ANGLE = 2;
|
||||
private static final int METHODID_SET_DEX_HAND_FORCE = 3;
|
||||
private static final int METHODID_SET_DEX_HAND_SPEED = 4;
|
||||
private static final int METHODID_SET_DEX_HAND_PRESET_ACT = 5;
|
||||
private static final int METHODID_GET_SENSOR_DATA = 6;
|
||||
private static final int METHODID_GET_SENSOR_DATA_STREAM = 7;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final DexHandServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(DexHandServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_STATUS:
|
||||
serviceImpl.getStatus((cmvr.api.DexhandCommand.GetDexHandStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetDexHandStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_DEX_HAND_POS:
|
||||
serviceImpl.setDexHandPos((cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPositionsCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_DEX_HAND_ANGLE:
|
||||
serviceImpl.setDexHandAngle((cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandAnglesCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_DEX_HAND_FORCE:
|
||||
serviceImpl.setDexHandForce((cmvr.api.DexhandCommand.SetDexHandForceCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandForceCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_DEX_HAND_SPEED:
|
||||
serviceImpl.setDexHandSpeed((cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandSpeedCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_DEX_HAND_PRESET_ACT:
|
||||
serviceImpl.setDexHandPresetAct((cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.SetDexHandPresetActCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_SENSOR_DATA:
|
||||
serviceImpl.getSensorData((cmvr.api.DexhandCommand.GetSensorDataCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_SENSOR_DATA_STREAM:
|
||||
return (io.grpc.stub.StreamObserver<Req>) serviceImpl.getSensorDataStream(
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.DexhandCommand.GetSensorDataStreamCommand.Feedback>) responseObserver);
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class DexHandServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
DexHandServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.DexhandService.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("DexHandService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class DexHandServiceFileDescriptorSupplier
|
||||
extends DexHandServiceBaseDescriptorSupplier {
|
||||
DexHandServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class DexHandServiceMethodDescriptorSupplier
|
||||
extends DexHandServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
DexHandServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (DexHandServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new DexHandServiceFileDescriptorSupplier())
|
||||
.addMethod(getGetStatusMethod())
|
||||
.addMethod(getSetDexHandPosMethod())
|
||||
.addMethod(getSetDexHandAngleMethod())
|
||||
.addMethod(getSetDexHandForceMethod())
|
||||
.addMethod(getSetDexHandSpeedMethod())
|
||||
.addMethod(getSetDexHandPresetActMethod())
|
||||
.addMethod(getGetSensorDataMethod())
|
||||
.addMethod(getGetSensorDataStreamMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,60 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/dexhand_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class DexhandService {
|
||||
private DexhandService() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\036cmvr/api/dexhand_service.proto\022\010cmvr.a" +
|
||||
"pi\032\036cmvr/api/dexhand_command.proto2\350\006\n\016D" +
|
||||
"exHandService\022`\n\tGetStatus\022(.cmvr.api.Ge" +
|
||||
"tDexHandStateCommand.Request\032).cmvr.api." +
|
||||
"GetDexHandStateCommand.Feedback\022l\n\rSetDe" +
|
||||
"xHandPos\022,.cmvr.api.SetDexHandPositionsC" +
|
||||
"ommand.Request\032-.cmvr.api.SetDexHandPosi" +
|
||||
"tionsCommand.Feedback\022h\n\017SetDexHandAngle" +
|
||||
"\022).cmvr.api.SetDexHandAnglesCommand.Requ" +
|
||||
"est\032*.cmvr.api.SetDexHandAnglesCommand.F" +
|
||||
"eedback\022f\n\017SetDexHandForce\022(.cmvr.api.Se" +
|
||||
"tDexHandForceCommand.Request\032).cmvr.api." +
|
||||
"SetDexHandForceCommand.Feedback\022f\n\017SetDe" +
|
||||
"xHandSpeed\022(.cmvr.api.SetDexHandSpeedCom" +
|
||||
"mand.Request\032).cmvr.api.SetDexHandSpeedC" +
|
||||
"ommand.Feedback\022r\n\023SetDexHandPresetAct\022," +
|
||||
".cmvr.api.SetDexHandPresetActCommand.Req" +
|
||||
"uest\032-.cmvr.api.SetDexHandPresetActComma" +
|
||||
"nd.Feedback\022`\n\rGetSensorData\022&.cmvr.api." +
|
||||
"GetSensorDataCommand.Request\032\'.cmvr.api." +
|
||||
"GetSensorDataCommand.Feedback\022v\n\023GetSens" +
|
||||
"orDataStream\022,.cmvr.api.GetSensorDataStr" +
|
||||
"eamCommand.Request\032-.cmvr.api.GetSensorD" +
|
||||
"ataStreamCommand.Feedback(\0010\001b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.DexhandCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.DexhandCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,276 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/hlc_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class HlcServiceGrpc {
|
||||
|
||||
private HlcServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.HlcService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.HlcCommand.Touch.Request,
|
||||
cmvr.api.HlcCommand.Touch.Response> getTouchMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "touch",
|
||||
requestType = cmvr.api.HlcCommand.Touch.Request.class,
|
||||
responseType = cmvr.api.HlcCommand.Touch.Response.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.HlcCommand.Touch.Request,
|
||||
cmvr.api.HlcCommand.Touch.Response> getTouchMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.HlcCommand.Touch.Request, cmvr.api.HlcCommand.Touch.Response> getTouchMethod;
|
||||
if ((getTouchMethod = HlcServiceGrpc.getTouchMethod) == null) {
|
||||
synchronized (HlcServiceGrpc.class) {
|
||||
if ((getTouchMethod = HlcServiceGrpc.getTouchMethod) == null) {
|
||||
HlcServiceGrpc.getTouchMethod = getTouchMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.HlcCommand.Touch.Request, cmvr.api.HlcCommand.Touch.Response>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "touch"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.HlcCommand.Touch.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.HlcCommand.Touch.Response.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new HlcServiceMethodDescriptorSupplier("touch"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getTouchMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static HlcServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<HlcServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<HlcServiceStub>() {
|
||||
@java.lang.Override
|
||||
public HlcServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return HlcServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static HlcServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<HlcServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<HlcServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public HlcServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return HlcServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static HlcServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<HlcServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<HlcServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public HlcServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return HlcServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class HlcServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void touch(cmvr.api.HlcCommand.Touch.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.HlcCommand.Touch.Response> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTouchMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getTouchMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.HlcCommand.Touch.Request,
|
||||
cmvr.api.HlcCommand.Touch.Response>(
|
||||
this, METHODID_TOUCH)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class HlcServiceStub extends io.grpc.stub.AbstractAsyncStub<HlcServiceStub> {
|
||||
private HlcServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected HlcServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void touch(cmvr.api.HlcCommand.Touch.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.HlcCommand.Touch.Response> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getTouchMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class HlcServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<HlcServiceBlockingStub> {
|
||||
private HlcServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected HlcServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.HlcCommand.Touch.Response touch(cmvr.api.HlcCommand.Touch.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getTouchMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class HlcServiceFutureStub extends io.grpc.stub.AbstractFutureStub<HlcServiceFutureStub> {
|
||||
private HlcServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected HlcServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new HlcServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.HlcCommand.Touch.Response> touch(
|
||||
cmvr.api.HlcCommand.Touch.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getTouchMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_TOUCH = 0;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final HlcServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(HlcServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_TOUCH:
|
||||
serviceImpl.touch((cmvr.api.HlcCommand.Touch.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.HlcCommand.Touch.Response>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class HlcServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
HlcServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.HlcServiceOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("HlcService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class HlcServiceFileDescriptorSupplier
|
||||
extends HlcServiceBaseDescriptorSupplier {
|
||||
HlcServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class HlcServiceMethodDescriptorSupplier
|
||||
extends HlcServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
HlcServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (HlcServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new HlcServiceFileDescriptorSupplier())
|
||||
.addMethod(getTouchMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,40 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/hlc_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class HlcServiceOuterClass {
|
||||
private HlcServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032cmvr/api/hlc_service.proto\022\010cmvr.api\032\032" +
|
||||
"cmvr/api/hlc_command.proto2H\n\nHlcService" +
|
||||
"\022:\n\005touch\022\027.cmvr.api.Touch.Request\032\030.cmv" +
|
||||
"r.api.Touch.Responseb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.HlcCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.HlcCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
@ -1,787 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/microphone_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class MicPhoneServiceGrpc {
|
||||
|
||||
private MicPhoneServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.MicPhoneService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicStateCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> getGetStatusMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetStatus",
|
||||
requestType = cmvr.api.MicrophoneCommand.GetMicStateCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicStateCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> getGetStatusMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicStateCommand.Request, cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> getGetStatusMethod;
|
||||
if ((getGetStatusMethod = MicPhoneServiceGrpc.getGetStatusMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getGetStatusMethod = MicPhoneServiceGrpc.getGetStatusMethod) == null) {
|
||||
MicPhoneServiceGrpc.getGetStatusMethod = getGetStatusMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.GetMicStateCommand.Request, cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStatus"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("GetStatus"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetStatusMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> getStartRecordMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StartRecord",
|
||||
requestType = cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> getStartRecordMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> getStartRecordMethod;
|
||||
if ((getStartRecordMethod = MicPhoneServiceGrpc.getStartRecordMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getStartRecordMethod = MicPhoneServiceGrpc.getStartRecordMethod) == null) {
|
||||
MicPhoneServiceGrpc.getStartRecordMethod = getStartRecordMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartRecord"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("StartRecord"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStartRecordMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> getStopRecordMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StopRecord",
|
||||
requestType = cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> getStopRecordMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> getStopRecordMethod;
|
||||
if ((getStopRecordMethod = MicPhoneServiceGrpc.getStopRecordMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getStopRecordMethod = MicPhoneServiceGrpc.getStopRecordMethod) == null) {
|
||||
MicPhoneServiceGrpc.getStopRecordMethod = getStopRecordMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopRecord"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("StopRecord"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStopRecordMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> getPauseRecordMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "PauseRecord",
|
||||
requestType = cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> getPauseRecordMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> getPauseRecordMethod;
|
||||
if ((getPauseRecordMethod = MicPhoneServiceGrpc.getPauseRecordMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getPauseRecordMethod = MicPhoneServiceGrpc.getPauseRecordMethod) == null) {
|
||||
MicPhoneServiceGrpc.getPauseRecordMethod = getPauseRecordMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseRecord"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("PauseRecord"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getPauseRecordMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> getResumeRecordMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "ResumeRecord",
|
||||
requestType = cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> getResumeRecordMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> getResumeRecordMethod;
|
||||
if ((getResumeRecordMethod = MicPhoneServiceGrpc.getResumeRecordMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getResumeRecordMethod = MicPhoneServiceGrpc.getResumeRecordMethod) == null) {
|
||||
MicPhoneServiceGrpc.getResumeRecordMethod = getResumeRecordMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request, cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeRecord"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("ResumeRecord"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getResumeRecordMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> getStreamAudioMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StreamAudio",
|
||||
requestType = cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> getStreamAudioMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request, cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> getStreamAudioMethod;
|
||||
if ((getStreamAudioMethod = MicPhoneServiceGrpc.getStreamAudioMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getStreamAudioMethod = MicPhoneServiceGrpc.getStreamAudioMethod) == null) {
|
||||
MicPhoneServiceGrpc.getStreamAudioMethod = getStreamAudioMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request, cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamAudio"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("StreamAudio"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStreamAudioMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> getSetVolumeMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetVolume",
|
||||
requestType = cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> getSetVolumeMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request, cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> getSetVolumeMethod;
|
||||
if ((getSetVolumeMethod = MicPhoneServiceGrpc.getSetVolumeMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getSetVolumeMethod = MicPhoneServiceGrpc.getSetVolumeMethod) == null) {
|
||||
MicPhoneServiceGrpc.getSetVolumeMethod = getSetVolumeMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request, cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetVolume"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("SetVolume"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetVolumeMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> getGetVolumeMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetVolume",
|
||||
requestType = cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request.class,
|
||||
responseType = cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> getGetVolumeMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request, cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> getGetVolumeMethod;
|
||||
if ((getGetVolumeMethod = MicPhoneServiceGrpc.getGetVolumeMethod) == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
if ((getGetVolumeMethod = MicPhoneServiceGrpc.getGetVolumeMethod) == null) {
|
||||
MicPhoneServiceGrpc.getGetVolumeMethod = getGetVolumeMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request, cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MicPhoneServiceMethodDescriptorSupplier("GetVolume"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetVolumeMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static MicPhoneServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceStub>() {
|
||||
@java.lang.Override
|
||||
public MicPhoneServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MicPhoneServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static MicPhoneServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public MicPhoneServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MicPhoneServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static MicPhoneServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MicPhoneServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public MicPhoneServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MicPhoneServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class MicPhoneServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.MicrophoneCommand.GetMicStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStatusMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void startRecord(cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartRecordMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopRecord(cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopRecordMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void pauseRecord(cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseRecordMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void resumeRecord(cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeRecordMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void streamAudio(cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamAudioMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setVolume(cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetVolumeMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getVolume(cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetStatusMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback>(
|
||||
this, METHODID_GET_STATUS)))
|
||||
.addMethod(
|
||||
getStartRecordMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback>(
|
||||
this, METHODID_START_RECORD)))
|
||||
.addMethod(
|
||||
getStopRecordMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback>(
|
||||
this, METHODID_STOP_RECORD)))
|
||||
.addMethod(
|
||||
getPauseRecordMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback>(
|
||||
this, METHODID_PAUSE_RECORD)))
|
||||
.addMethod(
|
||||
getResumeRecordMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback>(
|
||||
this, METHODID_RESUME_RECORD)))
|
||||
.addMethod(
|
||||
getStreamAudioMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback>(
|
||||
this, METHODID_STREAM_AUDIO)))
|
||||
.addMethod(
|
||||
getSetVolumeMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback>(
|
||||
this, METHODID_SET_VOLUME)))
|
||||
.addMethod(
|
||||
getGetVolumeMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request,
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback>(
|
||||
this, METHODID_GET_VOLUME)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MicPhoneServiceStub extends io.grpc.stub.AbstractAsyncStub<MicPhoneServiceStub> {
|
||||
private MicPhoneServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MicPhoneServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.MicrophoneCommand.GetMicStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void startRecord(cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getStartRecordMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopRecord(cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getStopRecordMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void pauseRecord(cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getPauseRecordMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void resumeRecord(cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getResumeRecordMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void streamAudio(cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
|
||||
getChannel().newCall(getStreamAudioMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setVolume(cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetVolumeMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getVolume(cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MicPhoneServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<MicPhoneServiceBlockingStub> {
|
||||
private MicPhoneServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MicPhoneServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback getStatus(cmvr.api.MicrophoneCommand.GetMicStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetStatusMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback startRecord(cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getStartRecordMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback stopRecord(cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getStopRecordMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback pauseRecord(cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getPauseRecordMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback resumeRecord(cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getResumeRecordMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public java.util.Iterator<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback> streamAudio(
|
||||
cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
|
||||
getChannel(), getStreamAudioMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback setVolume(cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetVolumeMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback getVolume(cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetVolumeMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MicPhoneServiceFutureStub extends io.grpc.stub.AbstractFutureStub<MicPhoneServiceFutureStub> {
|
||||
private MicPhoneServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MicPhoneServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MicPhoneServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback> getStatus(
|
||||
cmvr.api.MicrophoneCommand.GetMicStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback> startRecord(
|
||||
cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getStartRecordMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback> stopRecord(
|
||||
cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getStopRecordMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback> pauseRecord(
|
||||
cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getPauseRecordMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback> resumeRecord(
|
||||
cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getResumeRecordMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback> setVolume(
|
||||
cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetVolumeMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback> getVolume(
|
||||
cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_STATUS = 0;
|
||||
private static final int METHODID_START_RECORD = 1;
|
||||
private static final int METHODID_STOP_RECORD = 2;
|
||||
private static final int METHODID_PAUSE_RECORD = 3;
|
||||
private static final int METHODID_RESUME_RECORD = 4;
|
||||
private static final int METHODID_STREAM_AUDIO = 5;
|
||||
private static final int METHODID_SET_VOLUME = 6;
|
||||
private static final int METHODID_GET_VOLUME = 7;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final MicPhoneServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(MicPhoneServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_STATUS:
|
||||
serviceImpl.getStatus((cmvr.api.MicrophoneCommand.GetMicStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_START_RECORD:
|
||||
serviceImpl.startRecord((cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StartMicRecordingCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_STOP_RECORD:
|
||||
serviceImpl.stopRecord((cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StopMicRecordingCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_PAUSE_RECORD:
|
||||
serviceImpl.pauseRecord((cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.PauseMicRecordingCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_RESUME_RECORD:
|
||||
serviceImpl.resumeRecord((cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.ResumeMicRecordingCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_STREAM_AUDIO:
|
||||
serviceImpl.streamAudio((cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.StreamMicAudioCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_VOLUME:
|
||||
serviceImpl.setVolume((cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.SetMicPhoneVolumeCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_VOLUME:
|
||||
serviceImpl.getVolume((cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MicrophoneCommand.GetMicPhoneVolumeCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class MicPhoneServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
MicPhoneServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.MicrophoneService.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("MicPhoneService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class MicPhoneServiceFileDescriptorSupplier
|
||||
extends MicPhoneServiceBaseDescriptorSupplier {
|
||||
MicPhoneServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class MicPhoneServiceMethodDescriptorSupplier
|
||||
extends MicPhoneServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
MicPhoneServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (MicPhoneServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new MicPhoneServiceFileDescriptorSupplier())
|
||||
.addMethod(getGetStatusMethod())
|
||||
.addMethod(getStartRecordMethod())
|
||||
.addMethod(getStopRecordMethod())
|
||||
.addMethod(getPauseRecordMethod())
|
||||
.addMethod(getResumeRecordMethod())
|
||||
.addMethod(getStreamAudioMethod())
|
||||
.addMethod(getSetVolumeMethod())
|
||||
.addMethod(getGetVolumeMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,59 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/microphone_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class MicrophoneService {
|
||||
private MicrophoneService() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n!cmvr/api/microphone_service.proto\022\010cmv" +
|
||||
"r.api\032!cmvr/api/microphone_command.proto" +
|
||||
"2\273\006\n\017MicPhoneService\022X\n\tGetStatus\022$.cmvr" +
|
||||
".api.GetMicStateCommand.Request\032%.cmvr.a" +
|
||||
"pi.GetMicStateCommand.Feedback\022f\n\013StartR" +
|
||||
"ecord\022*.cmvr.api.StartMicRecordingComman" +
|
||||
"d.Request\032+.cmvr.api.StartMicRecordingCo" +
|
||||
"mmand.Feedback\022c\n\nStopRecord\022).cmvr.api." +
|
||||
"StopMicRecordingCommand.Request\032*.cmvr.a" +
|
||||
"pi.StopMicRecordingCommand.Feedback\022f\n\013P" +
|
||||
"auseRecord\022*.cmvr.api.PauseMicRecordingC" +
|
||||
"ommand.Request\032+.cmvr.api.PauseMicRecord" +
|
||||
"ingCommand.Feedback\022i\n\014ResumeRecord\022+.cm" +
|
||||
"vr.api.ResumeMicRecordingCommand.Request" +
|
||||
"\032,.cmvr.api.ResumeMicRecordingCommand.Fe" +
|
||||
"edback\022b\n\013StreamAudio\022\'.cmvr.api.StreamM" +
|
||||
"icAudioCommand.Request\032(.cmvr.api.Stream" +
|
||||
"MicAudioCommand.Feedback0\001\022d\n\tSetVolume\022" +
|
||||
"*.cmvr.api.SetMicPhoneVolumeCommand.Requ" +
|
||||
"est\032+.cmvr.api.SetMicPhoneVolumeCommand." +
|
||||
"Feedback\022d\n\tGetVolume\022*.cmvr.api.GetMicP" +
|
||||
"honeVolumeCommand.Request\032+.cmvr.api.Get" +
|
||||
"MicPhoneVolumeCommand.Feedbackb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.MicrophoneCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.MicrophoneCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,836 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/motor_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class MotorServiceGrpc {
|
||||
|
||||
private MotorServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.MotorService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getSetZeroMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "setZero",
|
||||
requestType = cmvr.api.MotorCommand.SetMotorZeroRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getSetZeroMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorZeroRequest, cmvr.api.MotorCommand.MotorCommandResponse> getSetZeroMethod;
|
||||
if ((getSetZeroMethod = MotorServiceGrpc.getSetZeroMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getSetZeroMethod = MotorServiceGrpc.getSetZeroMethod) == null) {
|
||||
MotorServiceGrpc.getSetZeroMethod = getSetZeroMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.SetMotorZeroRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "setZero"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.SetMotorZeroRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("setZero"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetZeroMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.MoveMotorToZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getMoveToZeroMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "moveToZero",
|
||||
requestType = cmvr.api.MotorCommand.MoveMotorToZeroRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.MoveMotorToZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getMoveToZeroMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.MoveMotorToZeroRequest, cmvr.api.MotorCommand.MotorCommandResponse> getMoveToZeroMethod;
|
||||
if ((getMoveToZeroMethod = MotorServiceGrpc.getMoveToZeroMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getMoveToZeroMethod = MotorServiceGrpc.getMoveToZeroMethod) == null) {
|
||||
MotorServiceGrpc.getMoveToZeroMethod = getMoveToZeroMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.MoveMotorToZeroRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "moveToZero"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MoveMotorToZeroRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("moveToZero"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getMoveToZeroMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfilePositionRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getProfilePositionMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "profilePosition",
|
||||
requestType = cmvr.api.MotorCommand.ProfilePositionRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfilePositionRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getProfilePositionMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfilePositionRequest, cmvr.api.MotorCommand.MotorCommandResponse> getProfilePositionMethod;
|
||||
if ((getProfilePositionMethod = MotorServiceGrpc.getProfilePositionMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getProfilePositionMethod = MotorServiceGrpc.getProfilePositionMethod) == null) {
|
||||
MotorServiceGrpc.getProfilePositionMethod = getProfilePositionMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.ProfilePositionRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "profilePosition"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.ProfilePositionRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("profilePosition"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getProfilePositionMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfileVelocityRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getProfileVelocityMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "profileVelocity",
|
||||
requestType = cmvr.api.MotorCommand.ProfileVelocityRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfileVelocityRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getProfileVelocityMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.ProfileVelocityRequest, cmvr.api.MotorCommand.MotorCommandResponse> getProfileVelocityMethod;
|
||||
if ((getProfileVelocityMethod = MotorServiceGrpc.getProfileVelocityMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getProfileVelocityMethod = MotorServiceGrpc.getProfileVelocityMethod) == null) {
|
||||
MotorServiceGrpc.getProfileVelocityMethod = getProfileVelocityMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.ProfileVelocityRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "profileVelocity"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.ProfileVelocityRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("profileVelocity"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getProfileVelocityMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicPositionRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicPositionMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "streamCyclicPosition",
|
||||
requestType = cmvr.api.MotorCommand.CyclicPositionRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.CyclicControlResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicPositionRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicPositionMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicPositionRequest, cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicPositionMethod;
|
||||
if ((getStreamCyclicPositionMethod = MotorServiceGrpc.getStreamCyclicPositionMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getStreamCyclicPositionMethod = MotorServiceGrpc.getStreamCyclicPositionMethod) == null) {
|
||||
MotorServiceGrpc.getStreamCyclicPositionMethod = getStreamCyclicPositionMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.CyclicPositionRequest, cmvr.api.MotorCommand.CyclicControlResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "streamCyclicPosition"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.CyclicPositionRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.CyclicControlResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("streamCyclicPosition"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStreamCyclicPositionMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicVelocityRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicVelocityMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "streamCyclicVelocity",
|
||||
requestType = cmvr.api.MotorCommand.CyclicVelocityRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.CyclicControlResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicVelocityRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicVelocityMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.CyclicVelocityRequest, cmvr.api.MotorCommand.CyclicControlResponse> getStreamCyclicVelocityMethod;
|
||||
if ((getStreamCyclicVelocityMethod = MotorServiceGrpc.getStreamCyclicVelocityMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getStreamCyclicVelocityMethod = MotorServiceGrpc.getStreamCyclicVelocityMethod) == null) {
|
||||
MotorServiceGrpc.getStreamCyclicVelocityMethod = getStreamCyclicVelocityMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.CyclicVelocityRequest, cmvr.api.MotorCommand.CyclicControlResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "streamCyclicVelocity"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.CyclicVelocityRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.CyclicControlResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("streamCyclicVelocity"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStreamCyclicVelocityMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.EmergencyStopRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getEmergencyStopMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "emergencyStop",
|
||||
requestType = cmvr.api.MotorCommand.EmergencyStopRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.EmergencyStopRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getEmergencyStopMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.EmergencyStopRequest, cmvr.api.MotorCommand.MotorCommandResponse> getEmergencyStopMethod;
|
||||
if ((getEmergencyStopMethod = MotorServiceGrpc.getEmergencyStopMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getEmergencyStopMethod = MotorServiceGrpc.getEmergencyStopMethod) == null) {
|
||||
MotorServiceGrpc.getEmergencyStopMethod = getEmergencyStopMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.EmergencyStopRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "emergencyStop"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.EmergencyStopRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("emergencyStop"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getEmergencyStopMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.GetMotorStatusRequest,
|
||||
cmvr.api.MotorCommand.GetMotorStatusResponse> getGetStatusMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "getStatus",
|
||||
requestType = cmvr.api.MotorCommand.GetMotorStatusRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.GetMotorStatusResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.GetMotorStatusRequest,
|
||||
cmvr.api.MotorCommand.GetMotorStatusResponse> getGetStatusMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.GetMotorStatusRequest, cmvr.api.MotorCommand.GetMotorStatusResponse> getGetStatusMethod;
|
||||
if ((getGetStatusMethod = MotorServiceGrpc.getGetStatusMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getGetStatusMethod = MotorServiceGrpc.getGetStatusMethod) == null) {
|
||||
MotorServiceGrpc.getGetStatusMethod = getGetStatusMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.GetMotorStatusRequest, cmvr.api.MotorCommand.GetMotorStatusResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getStatus"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.GetMotorStatusRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.GetMotorStatusResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("getStatus"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetStatusMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorEnabledRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getSetEnabledMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "setEnabled",
|
||||
requestType = cmvr.api.MotorCommand.SetMotorEnabledRequest.class,
|
||||
responseType = cmvr.api.MotorCommand.MotorCommandResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorEnabledRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse> getSetEnabledMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.MotorCommand.SetMotorEnabledRequest, cmvr.api.MotorCommand.MotorCommandResponse> getSetEnabledMethod;
|
||||
if ((getSetEnabledMethod = MotorServiceGrpc.getSetEnabledMethod) == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
if ((getSetEnabledMethod = MotorServiceGrpc.getSetEnabledMethod) == null) {
|
||||
MotorServiceGrpc.getSetEnabledMethod = getSetEnabledMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.MotorCommand.SetMotorEnabledRequest, cmvr.api.MotorCommand.MotorCommandResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "setEnabled"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.SetMotorEnabledRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.MotorCommand.MotorCommandResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new MotorServiceMethodDescriptorSupplier("setEnabled"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetEnabledMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static MotorServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MotorServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MotorServiceStub>() {
|
||||
@java.lang.Override
|
||||
public MotorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MotorServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static MotorServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MotorServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MotorServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public MotorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MotorServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static MotorServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<MotorServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<MotorServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public MotorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return MotorServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class MotorServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setZero(cmvr.api.MotorCommand.SetMotorZeroRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetZeroMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void moveToZero(cmvr.api.MotorCommand.MoveMotorToZeroRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveToZeroMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void profilePosition(cmvr.api.MotorCommand.ProfilePositionRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProfilePositionMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void profileVelocity(cmvr.api.MotorCommand.ProfileVelocityRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProfileVelocityMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicPositionRequest> streamCyclicPosition(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse> responseObserver) {
|
||||
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamCyclicPositionMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicVelocityRequest> streamCyclicVelocity(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse> responseObserver) {
|
||||
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamCyclicVelocityMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void emergencyStop(cmvr.api.MotorCommand.EmergencyStopRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEmergencyStopMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.MotorCommand.GetMotorStatusRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.GetMotorStatusResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStatusMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setEnabled(cmvr.api.MotorCommand.SetMotorEnabledRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetEnabledMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getSetZeroMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.SetMotorZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_SET_ZERO)))
|
||||
.addMethod(
|
||||
getMoveToZeroMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.MoveMotorToZeroRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_MOVE_TO_ZERO)))
|
||||
.addMethod(
|
||||
getProfilePositionMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.ProfilePositionRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_PROFILE_POSITION)))
|
||||
.addMethod(
|
||||
getProfileVelocityMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.ProfileVelocityRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_PROFILE_VELOCITY)))
|
||||
.addMethod(
|
||||
getStreamCyclicPositionMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.CyclicPositionRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse>(
|
||||
this, METHODID_STREAM_CYCLIC_POSITION)))
|
||||
.addMethod(
|
||||
getStreamCyclicVelocityMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.CyclicVelocityRequest,
|
||||
cmvr.api.MotorCommand.CyclicControlResponse>(
|
||||
this, METHODID_STREAM_CYCLIC_VELOCITY)))
|
||||
.addMethod(
|
||||
getEmergencyStopMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.EmergencyStopRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_EMERGENCY_STOP)))
|
||||
.addMethod(
|
||||
getGetStatusMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.GetMotorStatusRequest,
|
||||
cmvr.api.MotorCommand.GetMotorStatusResponse>(
|
||||
this, METHODID_GET_STATUS)))
|
||||
.addMethod(
|
||||
getSetEnabledMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.MotorCommand.SetMotorEnabledRequest,
|
||||
cmvr.api.MotorCommand.MotorCommandResponse>(
|
||||
this, METHODID_SET_ENABLED)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MotorServiceStub extends io.grpc.stub.AbstractAsyncStub<MotorServiceStub> {
|
||||
private MotorServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MotorServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setZero(cmvr.api.MotorCommand.SetMotorZeroRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetZeroMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void moveToZero(cmvr.api.MotorCommand.MoveMotorToZeroRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getMoveToZeroMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void profilePosition(cmvr.api.MotorCommand.ProfilePositionRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getProfilePositionMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void profileVelocity(cmvr.api.MotorCommand.ProfileVelocityRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getProfileVelocityMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicPositionRequest> streamCyclicPosition(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse> responseObserver) {
|
||||
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
|
||||
getChannel().newCall(getStreamCyclicPositionMethod(), getCallOptions()), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicVelocityRequest> streamCyclicVelocity(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse> responseObserver) {
|
||||
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
|
||||
getChannel().newCall(getStreamCyclicVelocityMethod(), getCallOptions()), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void emergencyStop(cmvr.api.MotorCommand.EmergencyStopRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getEmergencyStopMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.MotorCommand.GetMotorStatusRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.GetMotorStatusResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setEnabled(cmvr.api.MotorCommand.SetMotorEnabledRequest request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetEnabledMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MotorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<MotorServiceBlockingStub> {
|
||||
private MotorServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MotorServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse setZero(cmvr.api.MotorCommand.SetMotorZeroRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetZeroMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse moveToZero(cmvr.api.MotorCommand.MoveMotorToZeroRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getMoveToZeroMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse profilePosition(cmvr.api.MotorCommand.ProfilePositionRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getProfilePositionMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse profileVelocity(cmvr.api.MotorCommand.ProfileVelocityRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getProfileVelocityMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse emergencyStop(cmvr.api.MotorCommand.EmergencyStopRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getEmergencyStopMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.GetMotorStatusResponse getStatus(cmvr.api.MotorCommand.GetMotorStatusRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetStatusMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.MotorCommand.MotorCommandResponse setEnabled(cmvr.api.MotorCommand.SetMotorEnabledRequest request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetEnabledMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class MotorServiceFutureStub extends io.grpc.stub.AbstractFutureStub<MotorServiceFutureStub> {
|
||||
private MotorServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected MotorServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new MotorServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> setZero(
|
||||
cmvr.api.MotorCommand.SetMotorZeroRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetZeroMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> moveToZero(
|
||||
cmvr.api.MotorCommand.MoveMotorToZeroRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getMoveToZeroMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> profilePosition(
|
||||
cmvr.api.MotorCommand.ProfilePositionRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getProfilePositionMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> profileVelocity(
|
||||
cmvr.api.MotorCommand.ProfileVelocityRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getProfileVelocityMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> emergencyStop(
|
||||
cmvr.api.MotorCommand.EmergencyStopRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getEmergencyStopMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.GetMotorStatusResponse> getStatus(
|
||||
cmvr.api.MotorCommand.GetMotorStatusRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.MotorCommand.MotorCommandResponse> setEnabled(
|
||||
cmvr.api.MotorCommand.SetMotorEnabledRequest request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetEnabledMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_SET_ZERO = 0;
|
||||
private static final int METHODID_MOVE_TO_ZERO = 1;
|
||||
private static final int METHODID_PROFILE_POSITION = 2;
|
||||
private static final int METHODID_PROFILE_VELOCITY = 3;
|
||||
private static final int METHODID_EMERGENCY_STOP = 4;
|
||||
private static final int METHODID_GET_STATUS = 5;
|
||||
private static final int METHODID_SET_ENABLED = 6;
|
||||
private static final int METHODID_STREAM_CYCLIC_POSITION = 7;
|
||||
private static final int METHODID_STREAM_CYCLIC_VELOCITY = 8;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final MotorServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(MotorServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_SET_ZERO:
|
||||
serviceImpl.setZero((cmvr.api.MotorCommand.SetMotorZeroRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_MOVE_TO_ZERO:
|
||||
serviceImpl.moveToZero((cmvr.api.MotorCommand.MoveMotorToZeroRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_PROFILE_POSITION:
|
||||
serviceImpl.profilePosition((cmvr.api.MotorCommand.ProfilePositionRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_PROFILE_VELOCITY:
|
||||
serviceImpl.profileVelocity((cmvr.api.MotorCommand.ProfileVelocityRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_EMERGENCY_STOP:
|
||||
serviceImpl.emergencyStop((cmvr.api.MotorCommand.EmergencyStopRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_STATUS:
|
||||
serviceImpl.getStatus((cmvr.api.MotorCommand.GetMotorStatusRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.GetMotorStatusResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_ENABLED:
|
||||
serviceImpl.setEnabled((cmvr.api.MotorCommand.SetMotorEnabledRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.MotorCommandResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_STREAM_CYCLIC_POSITION:
|
||||
return (io.grpc.stub.StreamObserver<Req>) serviceImpl.streamCyclicPosition(
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse>) responseObserver);
|
||||
case METHODID_STREAM_CYCLIC_VELOCITY:
|
||||
return (io.grpc.stub.StreamObserver<Req>) serviceImpl.streamCyclicVelocity(
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.MotorCommand.CyclicControlResponse>) responseObserver);
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class MotorServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
MotorServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.MotorServiceOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("MotorService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class MotorServiceFileDescriptorSupplier
|
||||
extends MotorServiceBaseDescriptorSupplier {
|
||||
MotorServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class MotorServiceMethodDescriptorSupplier
|
||||
extends MotorServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
MotorServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (MotorServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new MotorServiceFileDescriptorSupplier())
|
||||
.addMethod(getSetZeroMethod())
|
||||
.addMethod(getMoveToZeroMethod())
|
||||
.addMethod(getProfilePositionMethod())
|
||||
.addMethod(getProfileVelocityMethod())
|
||||
.addMethod(getStreamCyclicPositionMethod())
|
||||
.addMethod(getStreamCyclicVelocityMethod())
|
||||
.addMethod(getEmergencyStopMethod())
|
||||
.addMethod(getGetStatusMethod())
|
||||
.addMethod(getSetEnabledMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/motor_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class MotorServiceOuterClass {
|
||||
private MotorServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\034cmvr/api/motor_service.proto\022\010cmvr.api" +
|
||||
"\032\034cmvr/api/motor_command.proto2\377\005\n\014Motor" +
|
||||
"Service\022H\n\007setZero\022\035.cmvr.api.SetMotorZe" +
|
||||
"roRequest\032\036.cmvr.api.MotorCommandRespons" +
|
||||
"e\022N\n\nmoveToZero\022 .cmvr.api.MoveMotorToZe" +
|
||||
"roRequest\032\036.cmvr.api.MotorCommandRespons" +
|
||||
"e\022S\n\017profilePosition\022 .cmvr.api.ProfileP" +
|
||||
"ositionRequest\032\036.cmvr.api.MotorCommandRe" +
|
||||
"sponse\022S\n\017profileVelocity\022 .cmvr.api.Pro" +
|
||||
"fileVelocityRequest\032\036.cmvr.api.MotorComm" +
|
||||
"andResponse\022\\\n\024streamCyclicPosition\022\037.cm" +
|
||||
"vr.api.CyclicPositionRequest\032\037.cmvr.api." +
|
||||
"CyclicControlResponse(\0010\001\022\\\n\024streamCycli" +
|
||||
"cVelocity\022\037.cmvr.api.CyclicVelocityReque" +
|
||||
"st\032\037.cmvr.api.CyclicControlResponse(\0010\001\022" +
|
||||
"O\n\remergencyStop\022\036.cmvr.api.EmergencySto" +
|
||||
"pRequest\032\036.cmvr.api.MotorCommandResponse" +
|
||||
"\022N\n\tgetStatus\022\037.cmvr.api.GetMotorStatusR" +
|
||||
"equest\032 .cmvr.api.GetMotorStatusResponse" +
|
||||
"\022N\n\nsetEnabled\022 .cmvr.api.SetMotorEnable" +
|
||||
"dRequest\032\036.cmvr.api.MotorCommandResponse" +
|
||||
"b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.MotorCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.MotorCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,778 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/speaker_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class SpeakerServiceGrpc {
|
||||
|
||||
private SpeakerServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.SpeakerService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> getGetStatusMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetStatus",
|
||||
requestType = cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> getGetStatusMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request, cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> getGetStatusMethod;
|
||||
if ((getGetStatusMethod = SpeakerServiceGrpc.getGetStatusMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getGetStatusMethod = SpeakerServiceGrpc.getGetStatusMethod) == null) {
|
||||
SpeakerServiceGrpc.getGetStatusMethod = getGetStatusMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request, cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStatus"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("GetStatus"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetStatusMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PlayAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> getPlayAudioMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "PlayAudio",
|
||||
requestType = cmvr.api.SpeakerCommand.PlayAudioCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PlayAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> getPlayAudioMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PlayAudioCommand.Request, cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> getPlayAudioMethod;
|
||||
if ((getPlayAudioMethod = SpeakerServiceGrpc.getPlayAudioMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getPlayAudioMethod = SpeakerServiceGrpc.getPlayAudioMethod) == null) {
|
||||
SpeakerServiceGrpc.getPlayAudioMethod = getPlayAudioMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.PlayAudioCommand.Request, cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PlayAudio"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("PlayAudio"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getPlayAudioMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback> getStreamAudioMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StreamAudio",
|
||||
requestType = cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback> getStreamAudioMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request, cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback> getStreamAudioMethod;
|
||||
if ((getStreamAudioMethod = SpeakerServiceGrpc.getStreamAudioMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getStreamAudioMethod = SpeakerServiceGrpc.getStreamAudioMethod) == null) {
|
||||
SpeakerServiceGrpc.getStreamAudioMethod = getStreamAudioMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request, cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamAudio"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("StreamAudio"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStreamAudioMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StopSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> getStopPlaybackMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StopPlayback",
|
||||
requestType = cmvr.api.SpeakerCommand.StopSpeakerCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StopSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> getStopPlaybackMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.StopSpeakerCommand.Request, cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> getStopPlaybackMethod;
|
||||
if ((getStopPlaybackMethod = SpeakerServiceGrpc.getStopPlaybackMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getStopPlaybackMethod = SpeakerServiceGrpc.getStopPlaybackMethod) == null) {
|
||||
SpeakerServiceGrpc.getStopPlaybackMethod = getStopPlaybackMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.StopSpeakerCommand.Request, cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopPlayback"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("StopPlayback"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStopPlaybackMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> getPausePlaybackMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "PausePlayback",
|
||||
requestType = cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> getPausePlaybackMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request, cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> getPausePlaybackMethod;
|
||||
if ((getPausePlaybackMethod = SpeakerServiceGrpc.getPausePlaybackMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getPausePlaybackMethod = SpeakerServiceGrpc.getPausePlaybackMethod) == null) {
|
||||
SpeakerServiceGrpc.getPausePlaybackMethod = getPausePlaybackMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request, cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PausePlayback"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("PausePlayback"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getPausePlaybackMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> getResumePlaybackMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "ResumePlayback",
|
||||
requestType = cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> getResumePlaybackMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request, cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> getResumePlaybackMethod;
|
||||
if ((getResumePlaybackMethod = SpeakerServiceGrpc.getResumePlaybackMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getResumePlaybackMethod = SpeakerServiceGrpc.getResumePlaybackMethod) == null) {
|
||||
SpeakerServiceGrpc.getResumePlaybackMethod = getResumePlaybackMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request, cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumePlayback"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("ResumePlayback"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getResumePlaybackMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> getSetVolumeMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetVolume",
|
||||
requestType = cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> getSetVolumeMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request, cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> getSetVolumeMethod;
|
||||
if ((getSetVolumeMethod = SpeakerServiceGrpc.getSetVolumeMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getSetVolumeMethod = SpeakerServiceGrpc.getSetVolumeMethod) == null) {
|
||||
SpeakerServiceGrpc.getSetVolumeMethod = getSetVolumeMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request, cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetVolume"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("SetVolume"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetVolumeMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> getGetVolumeMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetVolume",
|
||||
requestType = cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request.class,
|
||||
responseType = cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> getGetVolumeMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request, cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> getGetVolumeMethod;
|
||||
if ((getGetVolumeMethod = SpeakerServiceGrpc.getGetVolumeMethod) == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
if ((getGetVolumeMethod = SpeakerServiceGrpc.getGetVolumeMethod) == null) {
|
||||
SpeakerServiceGrpc.getGetVolumeMethod = getGetVolumeMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request, cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SpeakerServiceMethodDescriptorSupplier("GetVolume"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetVolumeMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static SpeakerServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceStub>() {
|
||||
@java.lang.Override
|
||||
public SpeakerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SpeakerServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static SpeakerServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public SpeakerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SpeakerServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static SpeakerServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SpeakerServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public SpeakerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SpeakerServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class SpeakerServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStatusMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void playAudio(cmvr.api.SpeakerCommand.PlayAudioCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPlayAudioMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request> streamAudio(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback> responseObserver) {
|
||||
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamAudioMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopPlayback(cmvr.api.SpeakerCommand.StopSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopPlaybackMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void pausePlayback(cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPausePlaybackMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void resumePlayback(cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumePlaybackMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setVolume(cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetVolumeMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getVolume(cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetStatusMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback>(
|
||||
this, METHODID_GET_STATUS)))
|
||||
.addMethod(
|
||||
getPlayAudioMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback>(
|
||||
this, METHODID_PLAY_AUDIO)))
|
||||
.addMethod(
|
||||
getStreamAudioMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback>(
|
||||
this, METHODID_STREAM_AUDIO)))
|
||||
.addMethod(
|
||||
getStopPlaybackMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback>(
|
||||
this, METHODID_STOP_PLAYBACK)))
|
||||
.addMethod(
|
||||
getPausePlaybackMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback>(
|
||||
this, METHODID_PAUSE_PLAYBACK)))
|
||||
.addMethod(
|
||||
getResumePlaybackMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request,
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback>(
|
||||
this, METHODID_RESUME_PLAYBACK)))
|
||||
.addMethod(
|
||||
getSetVolumeMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback>(
|
||||
this, METHODID_SET_VOLUME)))
|
||||
.addMethod(
|
||||
getGetVolumeMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request,
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback>(
|
||||
this, METHODID_GET_VOLUME)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SpeakerServiceStub extends io.grpc.stub.AbstractAsyncStub<SpeakerServiceStub> {
|
||||
private SpeakerServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SpeakerServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getStatus(cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void playAudio(cmvr.api.SpeakerCommand.PlayAudioCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getPlayAudioMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Request> streamAudio(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback> responseObserver) {
|
||||
return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
|
||||
getChannel().newCall(getStreamAudioMethod(), getCallOptions()), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopPlayback(cmvr.api.SpeakerCommand.StopSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getStopPlaybackMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void pausePlayback(cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getPausePlaybackMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void resumePlayback(cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getResumePlaybackMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setVolume(cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getSetVolumeMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getVolume(cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SpeakerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<SpeakerServiceBlockingStub> {
|
||||
private SpeakerServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SpeakerServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback getStatus(cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetStatusMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback playAudio(cmvr.api.SpeakerCommand.PlayAudioCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getPlayAudioMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback stopPlayback(cmvr.api.SpeakerCommand.StopSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getStopPlaybackMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback pausePlayback(cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getPausePlaybackMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback resumePlayback(cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getResumePlaybackMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback setVolume(cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getSetVolumeMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback getVolume(cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetVolumeMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SpeakerServiceFutureStub extends io.grpc.stub.AbstractFutureStub<SpeakerServiceFutureStub> {
|
||||
private SpeakerServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SpeakerServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SpeakerServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback> getStatus(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetStatusMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback> playAudio(
|
||||
cmvr.api.SpeakerCommand.PlayAudioCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getPlayAudioMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback> stopPlayback(
|
||||
cmvr.api.SpeakerCommand.StopSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getStopPlaybackMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback> pausePlayback(
|
||||
cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getPausePlaybackMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback> resumePlayback(
|
||||
cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getResumePlaybackMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback> setVolume(
|
||||
cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getSetVolumeMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback> getVolume(
|
||||
cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_STATUS = 0;
|
||||
private static final int METHODID_PLAY_AUDIO = 1;
|
||||
private static final int METHODID_STOP_PLAYBACK = 2;
|
||||
private static final int METHODID_PAUSE_PLAYBACK = 3;
|
||||
private static final int METHODID_RESUME_PLAYBACK = 4;
|
||||
private static final int METHODID_SET_VOLUME = 5;
|
||||
private static final int METHODID_GET_VOLUME = 6;
|
||||
private static final int METHODID_STREAM_AUDIO = 7;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final SpeakerServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(SpeakerServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_STATUS:
|
||||
serviceImpl.getStatus((cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_PLAY_AUDIO:
|
||||
serviceImpl.playAudio((cmvr.api.SpeakerCommand.PlayAudioCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PlayAudioCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_STOP_PLAYBACK:
|
||||
serviceImpl.stopPlayback((cmvr.api.SpeakerCommand.StopSpeakerCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StopSpeakerCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_PAUSE_PLAYBACK:
|
||||
serviceImpl.pausePlayback((cmvr.api.SpeakerCommand.PauseSpeakerCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.PauseSpeakerCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_RESUME_PLAYBACK:
|
||||
serviceImpl.resumePlayback((cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.ResumeSpeakerCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_VOLUME:
|
||||
serviceImpl.setVolume((cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.SetSpeakerVolumeCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_VOLUME:
|
||||
serviceImpl.getVolume((cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.GetSpeakerVolumeCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_STREAM_AUDIO:
|
||||
return (io.grpc.stub.StreamObserver<Req>) serviceImpl.streamAudio(
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SpeakerCommand.StreamSpeakerAudioCommand.Feedback>) responseObserver);
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class SpeakerServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
SpeakerServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.SpeakerServiceOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("SpeakerService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SpeakerServiceFileDescriptorSupplier
|
||||
extends SpeakerServiceBaseDescriptorSupplier {
|
||||
SpeakerServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class SpeakerServiceMethodDescriptorSupplier
|
||||
extends SpeakerServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
SpeakerServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (SpeakerServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new SpeakerServiceFileDescriptorSupplier())
|
||||
.addMethod(getGetStatusMethod())
|
||||
.addMethod(getPlayAudioMethod())
|
||||
.addMethod(getStreamAudioMethod())
|
||||
.addMethod(getStopPlaybackMethod())
|
||||
.addMethod(getPausePlaybackMethod())
|
||||
.addMethod(getResumePlaybackMethod())
|
||||
.addMethod(getSetVolumeMethod())
|
||||
.addMethod(getGetVolumeMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,59 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/speaker_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class SpeakerServiceOuterClass {
|
||||
private SpeakerServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\036cmvr/api/speaker_service.proto\022\010cmvr.a" +
|
||||
"pi\032\036cmvr/api/speaker_command.proto2\234\006\n\016S" +
|
||||
"peakerService\022`\n\tGetStatus\022(.cmvr.api.Ge" +
|
||||
"tSpeakerStateCommand.Request\032).cmvr.api." +
|
||||
"GetSpeakerStateCommand.Feedback\022T\n\tPlayA" +
|
||||
"udio\022\".cmvr.api.PlayAudioCommand.Request" +
|
||||
"\032#.cmvr.api.PlayAudioCommand.Feedback\022j\n" +
|
||||
"\013StreamAudio\022+.cmvr.api.StreamSpeakerAud" +
|
||||
"ioCommand.Request\032,.cmvr.api.StreamSpeak" +
|
||||
"erAudioCommand.Feedback(\001\022[\n\014StopPlaybac" +
|
||||
"k\022$.cmvr.api.StopSpeakerCommand.Request\032" +
|
||||
"%.cmvr.api.StopSpeakerCommand.Feedback\022^" +
|
||||
"\n\rPausePlayback\022%.cmvr.api.PauseSpeakerC" +
|
||||
"ommand.Request\032&.cmvr.api.PauseSpeakerCo" +
|
||||
"mmand.Feedback\022a\n\016ResumePlayback\022&.cmvr." +
|
||||
"api.ResumeSpeakerCommand.Request\032\'.cmvr." +
|
||||
"api.ResumeSpeakerCommand.Feedback\022b\n\tSet" +
|
||||
"Volume\022).cmvr.api.SetSpeakerVolumeComman" +
|
||||
"d.Request\032*.cmvr.api.SetSpeakerVolumeCom" +
|
||||
"mand.Feedback\022b\n\tGetVolume\022).cmvr.api.Ge" +
|
||||
"tSpeakerVolumeCommand.Request\032*.cmvr.api" +
|
||||
".GetSpeakerVolumeCommand.Feedbackb\006proto" +
|
||||
"3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.SpeakerCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.SpeakerCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,868 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/system_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class SystemServiceGrpc {
|
||||
|
||||
private SystemServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.SystemService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemInfoCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> getGetSystemInfoMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetSystemInfo",
|
||||
requestType = cmvr.api.SystemCommand.GetSystemInfoCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemInfoCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> getGetSystemInfoMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemInfoCommand.Request, cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> getGetSystemInfoMethod;
|
||||
if ((getGetSystemInfoMethod = SystemServiceGrpc.getGetSystemInfoMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getGetSystemInfoMethod = SystemServiceGrpc.getGetSystemInfoMethod) == null) {
|
||||
SystemServiceGrpc.getGetSystemInfoMethod = getGetSystemInfoMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.GetSystemInfoCommand.Request, cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemInfo"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetSystemInfo"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetSystemInfoMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemStatusCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> getGetSystemStatusMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetSystemStatus",
|
||||
requestType = cmvr.api.SystemCommand.GetSystemStatusCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemStatusCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> getGetSystemStatusMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetSystemStatusCommand.Request, cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> getGetSystemStatusMethod;
|
||||
if ((getGetSystemStatusMethod = SystemServiceGrpc.getGetSystemStatusMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getGetSystemStatusMethod = SystemServiceGrpc.getGetSystemStatusMethod) == null) {
|
||||
SystemServiceGrpc.getGetSystemStatusMethod = getGetSystemStatusMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.GetSystemStatusCommand.Request, cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemStatus"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetSystemStatus"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetSystemStatusMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetDeviceListCommand.Request,
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> getGetDeviceListMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetDeviceList",
|
||||
requestType = cmvr.api.SystemCommand.GetDeviceListCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetDeviceListCommand.Request,
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> getGetDeviceListMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.GetDeviceListCommand.Request, cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> getGetDeviceListMethod;
|
||||
if ((getGetDeviceListMethod = SystemServiceGrpc.getGetDeviceListMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getGetDeviceListMethod = SystemServiceGrpc.getGetDeviceListMethod) == null) {
|
||||
SystemServiceGrpc.getGetDeviceListMethod = getGetDeviceListMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.GetDeviceListCommand.Request, cmvr.api.SystemCommand.GetDeviceListCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceList"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetDeviceList"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetDeviceListMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.UpdateParamsCommand.Request,
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> getUpdateParamsMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "UpdateParams",
|
||||
requestType = cmvr.api.SystemCommand.UpdateParamsCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.UpdateParamsCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.UpdateParamsCommand.Request,
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> getUpdateParamsMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.UpdateParamsCommand.Request, cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> getUpdateParamsMethod;
|
||||
if ((getUpdateParamsMethod = SystemServiceGrpc.getUpdateParamsMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getUpdateParamsMethod = SystemServiceGrpc.getUpdateParamsMethod) == null) {
|
||||
SystemServiceGrpc.getUpdateParamsMethod = getUpdateParamsMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.UpdateParamsCommand.Request, cmvr.api.SystemCommand.UpdateParamsCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParams"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("UpdateParams"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getUpdateParamsMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.StopAllCommand.Request,
|
||||
cmvr.api.SystemCommand.StopAllCommand.Feedback> getStopAllMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "StopAll",
|
||||
requestType = cmvr.api.SystemCommand.StopAllCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.StopAllCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.StopAllCommand.Request,
|
||||
cmvr.api.SystemCommand.StopAllCommand.Feedback> getStopAllMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.StopAllCommand.Request, cmvr.api.SystemCommand.StopAllCommand.Feedback> getStopAllMethod;
|
||||
if ((getStopAllMethod = SystemServiceGrpc.getStopAllMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getStopAllMethod = SystemServiceGrpc.getStopAllMethod) == null) {
|
||||
SystemServiceGrpc.getStopAllMethod = getStopAllMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.StopAllCommand.Request, cmvr.api.SystemCommand.StopAllCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopAll"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.StopAllCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.StopAllCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("StopAll"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getStopAllMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SystemCommand.ActionQueueCommand.Request,
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Feedback> getExecuteActionQueueMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "ExecuteActionQueue",
|
||||
requestType = cmvr.api.SystemCommand.ActionQueueCommand.Request.class,
|
||||
responseType = cmvr.api.SystemCommand.ActionQueueCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SystemCommand.ActionQueueCommand.Request,
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Feedback> getExecuteActionQueueMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SystemCommand.ActionQueueCommand.Request, cmvr.api.SystemCommand.ActionQueueCommand.Feedback> getExecuteActionQueueMethod;
|
||||
if ((getExecuteActionQueueMethod = SystemServiceGrpc.getExecuteActionQueueMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getExecuteActionQueueMethod = SystemServiceGrpc.getExecuteActionQueueMethod) == null) {
|
||||
SystemServiceGrpc.getExecuteActionQueueMethod = getExecuteActionQueueMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SystemCommand.ActionQueueCommand.Request, cmvr.api.SystemCommand.ActionQueueCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteActionQueue"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("ExecuteActionQueue"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getExecuteActionQueueMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.GetSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> getGetSafetyStateMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetSafetyState",
|
||||
requestType = cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.class,
|
||||
responseType = cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.GetSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> getGetSafetyStateMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.GetSafetyStateCommand.Request, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> getGetSafetyStateMethod;
|
||||
if ((getGetSafetyStateMethod = SystemServiceGrpc.getGetSafetyStateMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getGetSafetyStateMethod = SystemServiceGrpc.getGetSafetyStateMethod) == null) {
|
||||
SystemServiceGrpc.getGetSafetyStateMethod = getGetSafetyStateMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SafetyCommand.GetSafetyStateCommand.Request, cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSafetyState"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("GetSafetyState"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetSafetyStateMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> getRecoverSafetyStateMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "RecoverSafetyState",
|
||||
requestType = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.class,
|
||||
responseType = cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> getRecoverSafetyStateMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> getRecoverSafetyStateMethod;
|
||||
if ((getRecoverSafetyStateMethod = SystemServiceGrpc.getRecoverSafetyStateMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getRecoverSafetyStateMethod = SystemServiceGrpc.getRecoverSafetyStateMethod) == null) {
|
||||
SystemServiceGrpc.getRecoverSafetyStateMethod = getRecoverSafetyStateMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request, cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecoverSafetyState"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("RecoverSafetyState"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getRecoverSafetyStateMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> getRestoreOperationalStateMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "RestoreOperationalState",
|
||||
requestType = cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.class,
|
||||
responseType = cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> getRestoreOperationalStateMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> getRestoreOperationalStateMethod;
|
||||
if ((getRestoreOperationalStateMethod = SystemServiceGrpc.getRestoreOperationalStateMethod) == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
if ((getRestoreOperationalStateMethod = SystemServiceGrpc.getRestoreOperationalStateMethod) == null) {
|
||||
SystemServiceGrpc.getRestoreOperationalStateMethod = getRestoreOperationalStateMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request, cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreOperationalState"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SystemServiceMethodDescriptorSupplier("RestoreOperationalState"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getRestoreOperationalStateMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static SystemServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SystemServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SystemServiceStub>() {
|
||||
@java.lang.Override
|
||||
public SystemServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SystemServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static SystemServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SystemServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SystemServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public SystemServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SystemServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static SystemServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<SystemServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<SystemServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public SystemServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return SystemServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class SystemServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSystemInfo(cmvr.api.SystemCommand.GetSystemInfoCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemInfoMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSystemStatus(cmvr.api.SystemCommand.GetSystemStatusCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemStatusMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceListMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParamsMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopAll(cmvr.api.SystemCommand.StopAllCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.StopAllCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopAllMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void executeActionQueue(cmvr.api.SystemCommand.ActionQueueCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.ActionQueueCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecuteActionQueueMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSafetyStateMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecoverSafetyStateMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void restoreOperationalState(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreOperationalStateMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetSystemInfoMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback>(
|
||||
this, METHODID_GET_SYSTEM_INFO)))
|
||||
.addMethod(
|
||||
getGetSystemStatusMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Request,
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback>(
|
||||
this, METHODID_GET_SYSTEM_STATUS)))
|
||||
.addMethod(
|
||||
getGetDeviceListMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Request,
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Feedback>(
|
||||
this, METHODID_GET_DEVICE_LIST)))
|
||||
.addMethod(
|
||||
getUpdateParamsMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Request,
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Feedback>(
|
||||
this, METHODID_UPDATE_PARAMS)))
|
||||
.addMethod(
|
||||
getStopAllMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.StopAllCommand.Request,
|
||||
cmvr.api.SystemCommand.StopAllCommand.Feedback>(
|
||||
this, METHODID_STOP_ALL)))
|
||||
.addMethod(
|
||||
getExecuteActionQueueMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Request,
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Feedback>(
|
||||
this, METHODID_EXECUTE_ACTION_QUEUE)))
|
||||
.addMethod(
|
||||
getGetSafetyStateMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback>(
|
||||
this, METHODID_GET_SAFETY_STATE)))
|
||||
.addMethod(
|
||||
getRecoverSafetyStateMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback>(
|
||||
this, METHODID_RECOVER_SAFETY_STATE)))
|
||||
.addMethod(
|
||||
getRestoreOperationalStateMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request,
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback>(
|
||||
this, METHODID_RESTORE_OPERATIONAL_STATE)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SystemServiceStub extends io.grpc.stub.AbstractAsyncStub<SystemServiceStub> {
|
||||
private SystemServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SystemServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSystemInfo(cmvr.api.SystemCommand.GetSystemInfoCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetSystemInfoMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSystemStatus(cmvr.api.SystemCommand.GetSystemStatusCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetSystemStatusMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetDeviceListMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void stopAll(cmvr.api.SystemCommand.StopAllCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.StopAllCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getStopAllMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void executeActionQueue(cmvr.api.SystemCommand.ActionQueueCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.ActionQueueCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getExecuteActionQueueMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getGetSafetyStateMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getRecoverSafetyStateMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void restoreOperationalState(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getRestoreOperationalStateMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SystemServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<SystemServiceBlockingStub> {
|
||||
private SystemServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SystemServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback getSystemInfo(cmvr.api.SystemCommand.GetSystemInfoCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetSystemInfoMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback getSystemStatus(cmvr.api.SystemCommand.GetSystemStatusCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetSystemStatusMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.GetDeviceListCommand.Feedback getDeviceList(cmvr.api.SystemCommand.GetDeviceListCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetDeviceListMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.UpdateParamsCommand.Feedback updateParams(cmvr.api.SystemCommand.UpdateParamsCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getUpdateParamsMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.StopAllCommand.Feedback stopAll(cmvr.api.SystemCommand.StopAllCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getStopAllMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SystemCommand.ActionQueueCommand.Feedback executeActionQueue(cmvr.api.SystemCommand.ActionQueueCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getExecuteActionQueueMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback getSafetyState(cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getGetSafetyStateMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback recoverSafetyState(cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getRecoverSafetyStateMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback restoreOperationalState(cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getRestoreOperationalStateMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SystemServiceFutureStub extends io.grpc.stub.AbstractFutureStub<SystemServiceFutureStub> {
|
||||
private SystemServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SystemServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new SystemServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback> getSystemInfo(
|
||||
cmvr.api.SystemCommand.GetSystemInfoCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetSystemInfoMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback> getSystemStatus(
|
||||
cmvr.api.SystemCommand.GetSystemStatusCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetSystemStatusMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.GetDeviceListCommand.Feedback> getDeviceList(
|
||||
cmvr.api.SystemCommand.GetDeviceListCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetDeviceListMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.UpdateParamsCommand.Feedback> updateParams(
|
||||
cmvr.api.SystemCommand.UpdateParamsCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getUpdateParamsMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.StopAllCommand.Feedback> stopAll(
|
||||
cmvr.api.SystemCommand.StopAllCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getStopAllMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SystemCommand.ActionQueueCommand.Feedback> executeActionQueue(
|
||||
cmvr.api.SystemCommand.ActionQueueCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getExecuteActionQueueMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback> getSafetyState(
|
||||
cmvr.api.SafetyCommand.GetSafetyStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getGetSafetyStateMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback> recoverSafetyState(
|
||||
cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getRecoverSafetyStateMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback> restoreOperationalState(
|
||||
cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getRestoreOperationalStateMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_SYSTEM_INFO = 0;
|
||||
private static final int METHODID_GET_SYSTEM_STATUS = 1;
|
||||
private static final int METHODID_GET_DEVICE_LIST = 2;
|
||||
private static final int METHODID_UPDATE_PARAMS = 3;
|
||||
private static final int METHODID_STOP_ALL = 4;
|
||||
private static final int METHODID_EXECUTE_ACTION_QUEUE = 5;
|
||||
private static final int METHODID_GET_SAFETY_STATE = 6;
|
||||
private static final int METHODID_RECOVER_SAFETY_STATE = 7;
|
||||
private static final int METHODID_RESTORE_OPERATIONAL_STATE = 8;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final SystemServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(SystemServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_SYSTEM_INFO:
|
||||
serviceImpl.getSystemInfo((cmvr.api.SystemCommand.GetSystemInfoCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemInfoCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_SYSTEM_STATUS:
|
||||
serviceImpl.getSystemStatus((cmvr.api.SystemCommand.GetSystemStatusCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetSystemStatusCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_DEVICE_LIST:
|
||||
serviceImpl.getDeviceList((cmvr.api.SystemCommand.GetDeviceListCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.GetDeviceListCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_UPDATE_PARAMS:
|
||||
serviceImpl.updateParams((cmvr.api.SystemCommand.UpdateParamsCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.UpdateParamsCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_STOP_ALL:
|
||||
serviceImpl.stopAll((cmvr.api.SystemCommand.StopAllCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.StopAllCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_EXECUTE_ACTION_QUEUE:
|
||||
serviceImpl.executeActionQueue((cmvr.api.SystemCommand.ActionQueueCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SystemCommand.ActionQueueCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_SAFETY_STATE:
|
||||
serviceImpl.getSafetyState((cmvr.api.SafetyCommand.GetSafetyStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.GetSafetyStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_RECOVER_SAFETY_STATE:
|
||||
serviceImpl.recoverSafetyState((cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RecoverSafetyStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
case METHODID_RESTORE_OPERATIONAL_STATE:
|
||||
serviceImpl.restoreOperationalState((cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Request) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.SafetyCommand.RestoreOperationalStateCommand.Feedback>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class SystemServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
SystemServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.SystemServiceOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("SystemService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SystemServiceFileDescriptorSupplier
|
||||
extends SystemServiceBaseDescriptorSupplier {
|
||||
SystemServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class SystemServiceMethodDescriptorSupplier
|
||||
extends SystemServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
SystemServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (SystemServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new SystemServiceFileDescriptorSupplier())
|
||||
.addMethod(getGetSystemInfoMethod())
|
||||
.addMethod(getGetSystemStatusMethod())
|
||||
.addMethod(getGetDeviceListMethod())
|
||||
.addMethod(getUpdateParamsMethod())
|
||||
.addMethod(getStopAllMethod())
|
||||
.addMethod(getExecuteActionQueueMethod())
|
||||
.addMethod(getGetSafetyStateMethod())
|
||||
.addMethod(getRecoverSafetyStateMethod())
|
||||
.addMethod(getRestoreOperationalStateMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,65 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/api/system_service.proto
|
||||
|
||||
package cmvr.api;
|
||||
|
||||
public final class SystemServiceOuterClass {
|
||||
private SystemServiceOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\035cmvr/api/system_service.proto\022\010cmvr.ap" +
|
||||
"i\032\035cmvr/api/system_command.proto\032\035cmvr/a" +
|
||||
"pi/safety_command.proto2\266\007\n\rSystemServic" +
|
||||
"e\022b\n\rGetSystemInfo\022&.cmvr.api.GetSystemI" +
|
||||
"nfoCommand.Request\032\'.cmvr.api.GetSystemI" +
|
||||
"nfoCommand.Feedback\"\000\022h\n\017GetSystemStatus" +
|
||||
"\022(.cmvr.api.GetSystemStatusCommand.Reque" +
|
||||
"st\032).cmvr.api.GetSystemStatusCommand.Fee" +
|
||||
"dback\"\000\022b\n\rGetDeviceList\022&.cmvr.api.GetD" +
|
||||
"eviceListCommand.Request\032\'.cmvr.api.GetD" +
|
||||
"eviceListCommand.Feedback\"\000\022_\n\014UpdatePar" +
|
||||
"ams\022%.cmvr.api.UpdateParamsCommand.Reque" +
|
||||
"st\032&.cmvr.api.UpdateParamsCommand.Feedba" +
|
||||
"ck\"\000\022P\n\007StopAll\022 .cmvr.api.StopAllComman" +
|
||||
"d.Request\032!.cmvr.api.StopAllCommand.Feed" +
|
||||
"back\"\000\022c\n\022ExecuteActionQueue\022$.cmvr.api." +
|
||||
"ActionQueueCommand.Request\032%.cmvr.api.Ac" +
|
||||
"tionQueueCommand.Feedback\"\000\022e\n\016GetSafety" +
|
||||
"State\022\'.cmvr.api.GetSafetyStateCommand.R" +
|
||||
"equest\032(.cmvr.api.GetSafetyStateCommand." +
|
||||
"Feedback\"\000\022q\n\022RecoverSafetyState\022+.cmvr." +
|
||||
"api.RecoverSafetyStateCommand.Request\032,." +
|
||||
"cmvr.api.RecoverSafetyStateCommand.Feedb" +
|
||||
"ack\"\000\022\200\001\n\027RestoreOperationalState\0220.cmvr" +
|
||||
".api.RestoreOperationalStateCommand.Requ" +
|
||||
"est\0321.cmvr.api.RestoreOperationalStateCo" +
|
||||
"mmand.Feedback\"\000b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.api.SystemCommand.getDescriptor(),
|
||||
cmvr.api.SafetyCommand.getDescriptor(),
|
||||
});
|
||||
cmvr.api.SystemCommand.getDescriptor();
|
||||
cmvr.api.SafetyCommand.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
@ -1,276 +0,0 @@
|
||||
package cmvr.api;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/test_service.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class TestServiceGrpc {
|
||||
|
||||
private TestServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.TestService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.TestServiceOuterClass.TestReqeust,
|
||||
cmvr.api.TestServiceOuterClass.TestResponse> getCallMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "Call",
|
||||
requestType = cmvr.api.TestServiceOuterClass.TestReqeust.class,
|
||||
responseType = cmvr.api.TestServiceOuterClass.TestResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.TestServiceOuterClass.TestReqeust,
|
||||
cmvr.api.TestServiceOuterClass.TestResponse> getCallMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.TestServiceOuterClass.TestReqeust, cmvr.api.TestServiceOuterClass.TestResponse> getCallMethod;
|
||||
if ((getCallMethod = TestServiceGrpc.getCallMethod) == null) {
|
||||
synchronized (TestServiceGrpc.class) {
|
||||
if ((getCallMethod = TestServiceGrpc.getCallMethod) == null) {
|
||||
TestServiceGrpc.getCallMethod = getCallMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.TestServiceOuterClass.TestReqeust, cmvr.api.TestServiceOuterClass.TestResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Call"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.TestServiceOuterClass.TestReqeust.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.TestServiceOuterClass.TestResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TestServiceMethodDescriptorSupplier("Call"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getCallMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static TestServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TestServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TestServiceStub>() {
|
||||
@java.lang.Override
|
||||
public TestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TestServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static TestServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TestServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public TestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TestServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static TestServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TestServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public TestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TestServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class TestServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void call(cmvr.api.TestServiceOuterClass.TestReqeust request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.TestServiceOuterClass.TestResponse> responseObserver) {
|
||||
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCallMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getCallMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.TestServiceOuterClass.TestReqeust,
|
||||
cmvr.api.TestServiceOuterClass.TestResponse>(
|
||||
this, METHODID_CALL)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TestServiceStub extends io.grpc.stub.AbstractAsyncStub<TestServiceStub> {
|
||||
private TestServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TestServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void call(cmvr.api.TestServiceOuterClass.TestReqeust request,
|
||||
io.grpc.stub.StreamObserver<cmvr.api.TestServiceOuterClass.TestResponse> responseObserver) {
|
||||
io.grpc.stub.ClientCalls.asyncUnaryCall(
|
||||
getChannel().newCall(getCallMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceBlockingStub> {
|
||||
private TestServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TestServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cmvr.api.TestServiceOuterClass.TestResponse call(cmvr.api.TestServiceOuterClass.TestReqeust request) {
|
||||
return io.grpc.stub.ClientCalls.blockingUnaryCall(
|
||||
getChannel(), getCallMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceFutureStub> {
|
||||
private TestServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TestServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TestServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cmvr.api.TestServiceOuterClass.TestResponse> call(
|
||||
cmvr.api.TestServiceOuterClass.TestReqeust request) {
|
||||
return io.grpc.stub.ClientCalls.futureUnaryCall(
|
||||
getChannel().newCall(getCallMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_CALL = 0;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final TestServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_CALL:
|
||||
serviceImpl.call((cmvr.api.TestServiceOuterClass.TestReqeust) request,
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.TestServiceOuterClass.TestResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class TestServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
TestServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.TestServiceOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("TestService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class TestServiceFileDescriptorSupplier
|
||||
extends TestServiceBaseDescriptorSupplier {
|
||||
TestServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class TestServiceMethodDescriptorSupplier
|
||||
extends TestServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
TestServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (TestServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new TestServiceFileDescriptorSupplier())
|
||||
.addMethod(getCallMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,280 +0,0 @@
|
||||
package cmvr.api.armteleop.v1;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Versioned, session-oriented protocol for wired arm teleoperation. Existing
|
||||
* unary ArmService RPCs intentionally remain unchanged.
|
||||
* </pre>
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.52.0)",
|
||||
comments = "Source: cmvr/api/arm_teleop_v1.proto")
|
||||
@io.grpc.stub.annotations.GrpcGenerated
|
||||
public final class ArmTeleopServiceGrpc {
|
||||
|
||||
private ArmTeleopServiceGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cmvr.api.armteleop.v1.ArmTeleopService";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame,
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame> getTeleoperateMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "Teleoperate",
|
||||
requestType = cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame.class,
|
||||
responseType = cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
public static io.grpc.MethodDescriptor<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame,
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame> getTeleoperateMethod() {
|
||||
io.grpc.MethodDescriptor<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame, cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame> getTeleoperateMethod;
|
||||
if ((getTeleoperateMethod = ArmTeleopServiceGrpc.getTeleoperateMethod) == null) {
|
||||
synchronized (ArmTeleopServiceGrpc.class) {
|
||||
if ((getTeleoperateMethod = ArmTeleopServiceGrpc.getTeleoperateMethod) == null) {
|
||||
ArmTeleopServiceGrpc.getTeleoperateMethod = getTeleoperateMethod =
|
||||
io.grpc.MethodDescriptor.<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame, cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Teleoperate"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new ArmTeleopServiceMethodDescriptorSupplier("Teleoperate"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getTeleoperateMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static ArmTeleopServiceStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceStub>() {
|
||||
@java.lang.Override
|
||||
public ArmTeleopServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return ArmTeleopServiceStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static ArmTeleopServiceBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public ArmTeleopServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return ArmTeleopServiceBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static ArmTeleopServiceFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<ArmTeleopServiceFutureStub>() {
|
||||
@java.lang.Override
|
||||
public ArmTeleopServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return ArmTeleopServiceFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Versioned, session-oriented protocol for wired arm teleoperation. Existing
|
||||
* unary ArmService RPCs intentionally remain unchanged.
|
||||
* </pre>
|
||||
*/
|
||||
public static abstract class ArmTeleopServiceImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame> teleoperate(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame> responseObserver) {
|
||||
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTeleoperateMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getTeleoperateMethod(),
|
||||
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
|
||||
new MethodHandlers<
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame,
|
||||
cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame>(
|
||||
this, METHODID_TELEOPERATE)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Versioned, session-oriented protocol for wired arm teleoperation. Existing
|
||||
* unary ArmService RPCs intentionally remain unchanged.
|
||||
* </pre>
|
||||
*/
|
||||
public static final class ArmTeleopServiceStub extends io.grpc.stub.AbstractAsyncStub<ArmTeleopServiceStub> {
|
||||
private ArmTeleopServiceStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected ArmTeleopServiceStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public io.grpc.stub.StreamObserver<cmvr.api.armteleop.v1.ArmTeleopV1.ClientFrame> teleoperate(
|
||||
io.grpc.stub.StreamObserver<cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame> responseObserver) {
|
||||
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
|
||||
getChannel().newCall(getTeleoperateMethod(), getCallOptions()), responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Versioned, session-oriented protocol for wired arm teleoperation. Existing
|
||||
* unary ArmService RPCs intentionally remain unchanged.
|
||||
* </pre>
|
||||
*/
|
||||
public static final class ArmTeleopServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ArmTeleopServiceBlockingStub> {
|
||||
private ArmTeleopServiceBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected ArmTeleopServiceBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceBlockingStub(channel, callOptions);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Versioned, session-oriented protocol for wired arm teleoperation. Existing
|
||||
* unary ArmService RPCs intentionally remain unchanged.
|
||||
* </pre>
|
||||
*/
|
||||
public static final class ArmTeleopServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ArmTeleopServiceFutureStub> {
|
||||
private ArmTeleopServiceFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected ArmTeleopServiceFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new ArmTeleopServiceFutureStub(channel, callOptions);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_TELEOPERATE = 0;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final ArmTeleopServiceImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(ArmTeleopServiceImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_TELEOPERATE:
|
||||
return (io.grpc.stub.StreamObserver<Req>) serviceImpl.teleoperate(
|
||||
(io.grpc.stub.StreamObserver<cmvr.api.armteleop.v1.ArmTeleopV1.ServerFrame>) responseObserver);
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class ArmTeleopServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
ArmTeleopServiceBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cmvr.api.armteleop.v1.ArmTeleopV1.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("ArmTeleopService");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class ArmTeleopServiceFileDescriptorSupplier
|
||||
extends ArmTeleopServiceBaseDescriptorSupplier {
|
||||
ArmTeleopServiceFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class ArmTeleopServiceMethodDescriptorSupplier
|
||||
extends ArmTeleopServiceBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
ArmTeleopServiceMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (ArmTeleopServiceGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new ArmTeleopServiceFileDescriptorSupplier())
|
||||
.addMethod(getTeleoperateMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,586 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/msgs/cia402.proto
|
||||
|
||||
package cmvr.msgs;
|
||||
|
||||
public final class Cia402 {
|
||||
private Cia402() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CiA402 object dictionary indexes shared by CANopen and EtherCAT CoE drives.
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code cmvr.msgs.Cia402ObjectIndex}
|
||||
*/
|
||||
public enum Cia402ObjectIndex
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>CIA402_OBJECT_INDEX_ZERO = 0;</code>
|
||||
*/
|
||||
CIA402_OBJECT_INDEX_ZERO(0),
|
||||
/**
|
||||
* <code>CIA402_ERROR_CODE_603F = 24639;</code>
|
||||
*/
|
||||
CIA402_ERROR_CODE_603F(24639),
|
||||
/**
|
||||
* <code>CIA402_CONTROL_WORD_6040 = 24640;</code>
|
||||
*/
|
||||
CIA402_CONTROL_WORD_6040(24640),
|
||||
/**
|
||||
* <code>CIA402_STATUS_WORD_6041 = 24641;</code>
|
||||
*/
|
||||
CIA402_STATUS_WORD_6041(24641),
|
||||
/**
|
||||
* <code>CIA402_QUICK_STOP_OPTION_605A = 24666;</code>
|
||||
*/
|
||||
CIA402_QUICK_STOP_OPTION_605A(24666),
|
||||
/**
|
||||
* <code>CIA402_SHUTDOWN_OPTION_605B = 24667;</code>
|
||||
*/
|
||||
CIA402_SHUTDOWN_OPTION_605B(24667),
|
||||
/**
|
||||
* <code>CIA402_DISABLE_OPERATION_OPTION_605C = 24668;</code>
|
||||
*/
|
||||
CIA402_DISABLE_OPERATION_OPTION_605C(24668),
|
||||
/**
|
||||
* <code>CIA402_HALT_OPTION_605D = 24669;</code>
|
||||
*/
|
||||
CIA402_HALT_OPTION_605D(24669),
|
||||
/**
|
||||
* <code>CIA402_FAULT_REACTION_OPTION_605E = 24670;</code>
|
||||
*/
|
||||
CIA402_FAULT_REACTION_OPTION_605E(24670),
|
||||
/**
|
||||
* <code>CIA402_OPERATION_MODE_6060 = 24672;</code>
|
||||
*/
|
||||
CIA402_OPERATION_MODE_6060(24672),
|
||||
/**
|
||||
* <code>CIA402_MODE_DISPLAY_6061 = 24673;</code>
|
||||
*/
|
||||
CIA402_MODE_DISPLAY_6061(24673),
|
||||
/**
|
||||
* <code>CIA402_POSITION_DEMAND_VALUE_6062 = 24674;</code>
|
||||
*/
|
||||
CIA402_POSITION_DEMAND_VALUE_6062(24674),
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_POSITION_6064 = 24676;</code>
|
||||
*/
|
||||
CIA402_ACTUAL_POSITION_6064(24676),
|
||||
/**
|
||||
* <code>CIA402_MAX_FOLLOWING_ERROR_6065 = 24677;</code>
|
||||
*/
|
||||
CIA402_MAX_FOLLOWING_ERROR_6065(24677),
|
||||
/**
|
||||
* <code>CIA402_POSITION_WINDOW_6067 = 24679;</code>
|
||||
*/
|
||||
CIA402_POSITION_WINDOW_6067(24679),
|
||||
/**
|
||||
* <code>CIA402_POSITION_WINDOW_TIME_6068 = 24680;</code>
|
||||
*/
|
||||
CIA402_POSITION_WINDOW_TIME_6068(24680),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_DEMAND_VALUE_606B = 24683;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_DEMAND_VALUE_606B(24683),
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_VELOCITY_606C = 24684;</code>
|
||||
*/
|
||||
CIA402_ACTUAL_VELOCITY_606C(24684),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_WINDOW_606D = 24685;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_WINDOW_606D(24685),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_WINDOW_TIME_606E = 24686;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_WINDOW_TIME_606E(24686),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_THRESHOLD_606F = 24687;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_THRESHOLD_606F(24687),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_THRESHOLD_TIME_6070 = 24688;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_THRESHOLD_TIME_6070(24688),
|
||||
/**
|
||||
* <code>CIA402_TARGET_TORQUE_6071 = 24689;</code>
|
||||
*/
|
||||
CIA402_TARGET_TORQUE_6071(24689),
|
||||
/**
|
||||
* <code>CIA402_MAX_TORQUE_6072 = 24690;</code>
|
||||
*/
|
||||
CIA402_MAX_TORQUE_6072(24690),
|
||||
/**
|
||||
* <code>CIA402_TORQUE_DEMAND_VALUE_6074 = 24692;</code>
|
||||
*/
|
||||
CIA402_TORQUE_DEMAND_VALUE_6074(24692),
|
||||
/**
|
||||
* <code>CIA402_MOTOR_RATED_TORQUE_6076 = 24694;</code>
|
||||
*/
|
||||
CIA402_MOTOR_RATED_TORQUE_6076(24694),
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_TORQUE_6077 = 24695;</code>
|
||||
*/
|
||||
CIA402_ACTUAL_TORQUE_6077(24695),
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_CURRENT_6078 = 24696;</code>
|
||||
*/
|
||||
CIA402_ACTUAL_CURRENT_6078(24696),
|
||||
/**
|
||||
* <code>CIA402_DC_LINK_VOLTAGE_6079 = 24697;</code>
|
||||
*/
|
||||
CIA402_DC_LINK_VOLTAGE_6079(24697),
|
||||
/**
|
||||
* <code>CIA402_TARGET_POSITION_607A = 24698;</code>
|
||||
*/
|
||||
CIA402_TARGET_POSITION_607A(24698),
|
||||
/**
|
||||
* <code>CIA402_HOME_OFFSET_607C = 24700;</code>
|
||||
*/
|
||||
CIA402_HOME_OFFSET_607C(24700),
|
||||
/**
|
||||
* <code>CIA402_SOFTWARE_POSITION_LIMIT_607D = 24701;</code>
|
||||
*/
|
||||
CIA402_SOFTWARE_POSITION_LIMIT_607D(24701),
|
||||
/**
|
||||
* <code>CIA402_MAX_PROFILE_VELOCITY_607F = 24703;</code>
|
||||
*/
|
||||
CIA402_MAX_PROFILE_VELOCITY_607F(24703),
|
||||
/**
|
||||
* <code>CIA402_PROFILE_VELOCITY_6081 = 24705;</code>
|
||||
*/
|
||||
CIA402_PROFILE_VELOCITY_6081(24705),
|
||||
/**
|
||||
* <code>CIA402_PROFILE_ACCELERATION_6083 = 24707;</code>
|
||||
*/
|
||||
CIA402_PROFILE_ACCELERATION_6083(24707),
|
||||
/**
|
||||
* <code>CIA402_PROFILE_DECELERATION_6084 = 24708;</code>
|
||||
*/
|
||||
CIA402_PROFILE_DECELERATION_6084(24708),
|
||||
/**
|
||||
* <code>CIA402_QUICK_STOP_DECELERATION_6085 = 24709;</code>
|
||||
*/
|
||||
CIA402_QUICK_STOP_DECELERATION_6085(24709),
|
||||
/**
|
||||
* <code>CIA402_TORQUE_SLOPE_6087 = 24711;</code>
|
||||
*/
|
||||
CIA402_TORQUE_SLOPE_6087(24711),
|
||||
/**
|
||||
* <code>CIA402_GEAR_RATIO_6091 = 24721;</code>
|
||||
*/
|
||||
CIA402_GEAR_RATIO_6091(24721),
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_OFFSET_60B1 = 24753;</code>
|
||||
*/
|
||||
CIA402_VELOCITY_OFFSET_60B1(24753),
|
||||
/**
|
||||
* <code>CIA402_TORQUE_OFFSET_60B2 = 24754;</code>
|
||||
*/
|
||||
CIA402_TORQUE_OFFSET_60B2(24754),
|
||||
/**
|
||||
* <code>CIA402_INTERPOLATION_DATA_RECORD_60C1 = 24769;</code>
|
||||
*/
|
||||
CIA402_INTERPOLATION_DATA_RECORD_60C1(24769),
|
||||
/**
|
||||
* <code>CIA402_INTERPOLATION_TIME_PERIOD_60C2 = 24770;</code>
|
||||
*/
|
||||
CIA402_INTERPOLATION_TIME_PERIOD_60C2(24770),
|
||||
/**
|
||||
* <code>CIA402_FOLLOWING_ERROR_ACTUAL_VALUE_60F4 = 24820;</code>
|
||||
*/
|
||||
CIA402_FOLLOWING_ERROR_ACTUAL_VALUE_60F4(24820),
|
||||
/**
|
||||
* <code>CIA402_TARGET_VELOCITY_60FF = 24831;</code>
|
||||
*/
|
||||
CIA402_TARGET_VELOCITY_60FF(24831),
|
||||
/**
|
||||
* <code>CIA402_SUPPORTED_DRIVE_MODES_6502 = 25858;</code>
|
||||
*/
|
||||
CIA402_SUPPORTED_DRIVE_MODES_6502(25858),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>CIA402_OBJECT_INDEX_ZERO = 0;</code>
|
||||
*/
|
||||
public static final int CIA402_OBJECT_INDEX_ZERO_VALUE = 0;
|
||||
/**
|
||||
* <code>CIA402_ERROR_CODE_603F = 24639;</code>
|
||||
*/
|
||||
public static final int CIA402_ERROR_CODE_603F_VALUE = 24639;
|
||||
/**
|
||||
* <code>CIA402_CONTROL_WORD_6040 = 24640;</code>
|
||||
*/
|
||||
public static final int CIA402_CONTROL_WORD_6040_VALUE = 24640;
|
||||
/**
|
||||
* <code>CIA402_STATUS_WORD_6041 = 24641;</code>
|
||||
*/
|
||||
public static final int CIA402_STATUS_WORD_6041_VALUE = 24641;
|
||||
/**
|
||||
* <code>CIA402_QUICK_STOP_OPTION_605A = 24666;</code>
|
||||
*/
|
||||
public static final int CIA402_QUICK_STOP_OPTION_605A_VALUE = 24666;
|
||||
/**
|
||||
* <code>CIA402_SHUTDOWN_OPTION_605B = 24667;</code>
|
||||
*/
|
||||
public static final int CIA402_SHUTDOWN_OPTION_605B_VALUE = 24667;
|
||||
/**
|
||||
* <code>CIA402_DISABLE_OPERATION_OPTION_605C = 24668;</code>
|
||||
*/
|
||||
public static final int CIA402_DISABLE_OPERATION_OPTION_605C_VALUE = 24668;
|
||||
/**
|
||||
* <code>CIA402_HALT_OPTION_605D = 24669;</code>
|
||||
*/
|
||||
public static final int CIA402_HALT_OPTION_605D_VALUE = 24669;
|
||||
/**
|
||||
* <code>CIA402_FAULT_REACTION_OPTION_605E = 24670;</code>
|
||||
*/
|
||||
public static final int CIA402_FAULT_REACTION_OPTION_605E_VALUE = 24670;
|
||||
/**
|
||||
* <code>CIA402_OPERATION_MODE_6060 = 24672;</code>
|
||||
*/
|
||||
public static final int CIA402_OPERATION_MODE_6060_VALUE = 24672;
|
||||
/**
|
||||
* <code>CIA402_MODE_DISPLAY_6061 = 24673;</code>
|
||||
*/
|
||||
public static final int CIA402_MODE_DISPLAY_6061_VALUE = 24673;
|
||||
/**
|
||||
* <code>CIA402_POSITION_DEMAND_VALUE_6062 = 24674;</code>
|
||||
*/
|
||||
public static final int CIA402_POSITION_DEMAND_VALUE_6062_VALUE = 24674;
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_POSITION_6064 = 24676;</code>
|
||||
*/
|
||||
public static final int CIA402_ACTUAL_POSITION_6064_VALUE = 24676;
|
||||
/**
|
||||
* <code>CIA402_MAX_FOLLOWING_ERROR_6065 = 24677;</code>
|
||||
*/
|
||||
public static final int CIA402_MAX_FOLLOWING_ERROR_6065_VALUE = 24677;
|
||||
/**
|
||||
* <code>CIA402_POSITION_WINDOW_6067 = 24679;</code>
|
||||
*/
|
||||
public static final int CIA402_POSITION_WINDOW_6067_VALUE = 24679;
|
||||
/**
|
||||
* <code>CIA402_POSITION_WINDOW_TIME_6068 = 24680;</code>
|
||||
*/
|
||||
public static final int CIA402_POSITION_WINDOW_TIME_6068_VALUE = 24680;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_DEMAND_VALUE_606B = 24683;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_DEMAND_VALUE_606B_VALUE = 24683;
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_VELOCITY_606C = 24684;</code>
|
||||
*/
|
||||
public static final int CIA402_ACTUAL_VELOCITY_606C_VALUE = 24684;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_WINDOW_606D = 24685;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_WINDOW_606D_VALUE = 24685;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_WINDOW_TIME_606E = 24686;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_WINDOW_TIME_606E_VALUE = 24686;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_THRESHOLD_606F = 24687;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_THRESHOLD_606F_VALUE = 24687;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_THRESHOLD_TIME_6070 = 24688;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_THRESHOLD_TIME_6070_VALUE = 24688;
|
||||
/**
|
||||
* <code>CIA402_TARGET_TORQUE_6071 = 24689;</code>
|
||||
*/
|
||||
public static final int CIA402_TARGET_TORQUE_6071_VALUE = 24689;
|
||||
/**
|
||||
* <code>CIA402_MAX_TORQUE_6072 = 24690;</code>
|
||||
*/
|
||||
public static final int CIA402_MAX_TORQUE_6072_VALUE = 24690;
|
||||
/**
|
||||
* <code>CIA402_TORQUE_DEMAND_VALUE_6074 = 24692;</code>
|
||||
*/
|
||||
public static final int CIA402_TORQUE_DEMAND_VALUE_6074_VALUE = 24692;
|
||||
/**
|
||||
* <code>CIA402_MOTOR_RATED_TORQUE_6076 = 24694;</code>
|
||||
*/
|
||||
public static final int CIA402_MOTOR_RATED_TORQUE_6076_VALUE = 24694;
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_TORQUE_6077 = 24695;</code>
|
||||
*/
|
||||
public static final int CIA402_ACTUAL_TORQUE_6077_VALUE = 24695;
|
||||
/**
|
||||
* <code>CIA402_ACTUAL_CURRENT_6078 = 24696;</code>
|
||||
*/
|
||||
public static final int CIA402_ACTUAL_CURRENT_6078_VALUE = 24696;
|
||||
/**
|
||||
* <code>CIA402_DC_LINK_VOLTAGE_6079 = 24697;</code>
|
||||
*/
|
||||
public static final int CIA402_DC_LINK_VOLTAGE_6079_VALUE = 24697;
|
||||
/**
|
||||
* <code>CIA402_TARGET_POSITION_607A = 24698;</code>
|
||||
*/
|
||||
public static final int CIA402_TARGET_POSITION_607A_VALUE = 24698;
|
||||
/**
|
||||
* <code>CIA402_HOME_OFFSET_607C = 24700;</code>
|
||||
*/
|
||||
public static final int CIA402_HOME_OFFSET_607C_VALUE = 24700;
|
||||
/**
|
||||
* <code>CIA402_SOFTWARE_POSITION_LIMIT_607D = 24701;</code>
|
||||
*/
|
||||
public static final int CIA402_SOFTWARE_POSITION_LIMIT_607D_VALUE = 24701;
|
||||
/**
|
||||
* <code>CIA402_MAX_PROFILE_VELOCITY_607F = 24703;</code>
|
||||
*/
|
||||
public static final int CIA402_MAX_PROFILE_VELOCITY_607F_VALUE = 24703;
|
||||
/**
|
||||
* <code>CIA402_PROFILE_VELOCITY_6081 = 24705;</code>
|
||||
*/
|
||||
public static final int CIA402_PROFILE_VELOCITY_6081_VALUE = 24705;
|
||||
/**
|
||||
* <code>CIA402_PROFILE_ACCELERATION_6083 = 24707;</code>
|
||||
*/
|
||||
public static final int CIA402_PROFILE_ACCELERATION_6083_VALUE = 24707;
|
||||
/**
|
||||
* <code>CIA402_PROFILE_DECELERATION_6084 = 24708;</code>
|
||||
*/
|
||||
public static final int CIA402_PROFILE_DECELERATION_6084_VALUE = 24708;
|
||||
/**
|
||||
* <code>CIA402_QUICK_STOP_DECELERATION_6085 = 24709;</code>
|
||||
*/
|
||||
public static final int CIA402_QUICK_STOP_DECELERATION_6085_VALUE = 24709;
|
||||
/**
|
||||
* <code>CIA402_TORQUE_SLOPE_6087 = 24711;</code>
|
||||
*/
|
||||
public static final int CIA402_TORQUE_SLOPE_6087_VALUE = 24711;
|
||||
/**
|
||||
* <code>CIA402_GEAR_RATIO_6091 = 24721;</code>
|
||||
*/
|
||||
public static final int CIA402_GEAR_RATIO_6091_VALUE = 24721;
|
||||
/**
|
||||
* <code>CIA402_VELOCITY_OFFSET_60B1 = 24753;</code>
|
||||
*/
|
||||
public static final int CIA402_VELOCITY_OFFSET_60B1_VALUE = 24753;
|
||||
/**
|
||||
* <code>CIA402_TORQUE_OFFSET_60B2 = 24754;</code>
|
||||
*/
|
||||
public static final int CIA402_TORQUE_OFFSET_60B2_VALUE = 24754;
|
||||
/**
|
||||
* <code>CIA402_INTERPOLATION_DATA_RECORD_60C1 = 24769;</code>
|
||||
*/
|
||||
public static final int CIA402_INTERPOLATION_DATA_RECORD_60C1_VALUE = 24769;
|
||||
/**
|
||||
* <code>CIA402_INTERPOLATION_TIME_PERIOD_60C2 = 24770;</code>
|
||||
*/
|
||||
public static final int CIA402_INTERPOLATION_TIME_PERIOD_60C2_VALUE = 24770;
|
||||
/**
|
||||
* <code>CIA402_FOLLOWING_ERROR_ACTUAL_VALUE_60F4 = 24820;</code>
|
||||
*/
|
||||
public static final int CIA402_FOLLOWING_ERROR_ACTUAL_VALUE_60F4_VALUE = 24820;
|
||||
/**
|
||||
* <code>CIA402_TARGET_VELOCITY_60FF = 24831;</code>
|
||||
*/
|
||||
public static final int CIA402_TARGET_VELOCITY_60FF_VALUE = 24831;
|
||||
/**
|
||||
* <code>CIA402_SUPPORTED_DRIVE_MODES_6502 = 25858;</code>
|
||||
*/
|
||||
public static final int CIA402_SUPPORTED_DRIVE_MODES_6502_VALUE = 25858;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static Cia402ObjectIndex valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static Cia402ObjectIndex forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return CIA402_OBJECT_INDEX_ZERO;
|
||||
case 24639: return CIA402_ERROR_CODE_603F;
|
||||
case 24640: return CIA402_CONTROL_WORD_6040;
|
||||
case 24641: return CIA402_STATUS_WORD_6041;
|
||||
case 24666: return CIA402_QUICK_STOP_OPTION_605A;
|
||||
case 24667: return CIA402_SHUTDOWN_OPTION_605B;
|
||||
case 24668: return CIA402_DISABLE_OPERATION_OPTION_605C;
|
||||
case 24669: return CIA402_HALT_OPTION_605D;
|
||||
case 24670: return CIA402_FAULT_REACTION_OPTION_605E;
|
||||
case 24672: return CIA402_OPERATION_MODE_6060;
|
||||
case 24673: return CIA402_MODE_DISPLAY_6061;
|
||||
case 24674: return CIA402_POSITION_DEMAND_VALUE_6062;
|
||||
case 24676: return CIA402_ACTUAL_POSITION_6064;
|
||||
case 24677: return CIA402_MAX_FOLLOWING_ERROR_6065;
|
||||
case 24679: return CIA402_POSITION_WINDOW_6067;
|
||||
case 24680: return CIA402_POSITION_WINDOW_TIME_6068;
|
||||
case 24683: return CIA402_VELOCITY_DEMAND_VALUE_606B;
|
||||
case 24684: return CIA402_ACTUAL_VELOCITY_606C;
|
||||
case 24685: return CIA402_VELOCITY_WINDOW_606D;
|
||||
case 24686: return CIA402_VELOCITY_WINDOW_TIME_606E;
|
||||
case 24687: return CIA402_VELOCITY_THRESHOLD_606F;
|
||||
case 24688: return CIA402_VELOCITY_THRESHOLD_TIME_6070;
|
||||
case 24689: return CIA402_TARGET_TORQUE_6071;
|
||||
case 24690: return CIA402_MAX_TORQUE_6072;
|
||||
case 24692: return CIA402_TORQUE_DEMAND_VALUE_6074;
|
||||
case 24694: return CIA402_MOTOR_RATED_TORQUE_6076;
|
||||
case 24695: return CIA402_ACTUAL_TORQUE_6077;
|
||||
case 24696: return CIA402_ACTUAL_CURRENT_6078;
|
||||
case 24697: return CIA402_DC_LINK_VOLTAGE_6079;
|
||||
case 24698: return CIA402_TARGET_POSITION_607A;
|
||||
case 24700: return CIA402_HOME_OFFSET_607C;
|
||||
case 24701: return CIA402_SOFTWARE_POSITION_LIMIT_607D;
|
||||
case 24703: return CIA402_MAX_PROFILE_VELOCITY_607F;
|
||||
case 24705: return CIA402_PROFILE_VELOCITY_6081;
|
||||
case 24707: return CIA402_PROFILE_ACCELERATION_6083;
|
||||
case 24708: return CIA402_PROFILE_DECELERATION_6084;
|
||||
case 24709: return CIA402_QUICK_STOP_DECELERATION_6085;
|
||||
case 24711: return CIA402_TORQUE_SLOPE_6087;
|
||||
case 24721: return CIA402_GEAR_RATIO_6091;
|
||||
case 24753: return CIA402_VELOCITY_OFFSET_60B1;
|
||||
case 24754: return CIA402_TORQUE_OFFSET_60B2;
|
||||
case 24769: return CIA402_INTERPOLATION_DATA_RECORD_60C1;
|
||||
case 24770: return CIA402_INTERPOLATION_TIME_PERIOD_60C2;
|
||||
case 24820: return CIA402_FOLLOWING_ERROR_ACTUAL_VALUE_60F4;
|
||||
case 24831: return CIA402_TARGET_VELOCITY_60FF;
|
||||
case 25858: return CIA402_SUPPORTED_DRIVE_MODES_6502;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<Cia402ObjectIndex>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
Cia402ObjectIndex> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<Cia402ObjectIndex>() {
|
||||
public Cia402ObjectIndex findValueByNumber(int number) {
|
||||
return Cia402ObjectIndex.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.Cia402.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final Cia402ObjectIndex[] VALUES = values();
|
||||
|
||||
public static Cia402ObjectIndex valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private Cia402ObjectIndex(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:cmvr.msgs.Cia402ObjectIndex)
|
||||
}
|
||||
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026cmvr/msgs/cia402.proto\022\tcmvr.msgs*\260\r\n\021" +
|
||||
"Cia402ObjectIndex\022\034\n\030CIA402_OBJECT_INDEX" +
|
||||
"_ZERO\020\000\022\034\n\026CIA402_ERROR_CODE_603F\020\277\300\001\022\036\n" +
|
||||
"\030CIA402_CONTROL_WORD_6040\020\300\300\001\022\035\n\027CIA402_" +
|
||||
"STATUS_WORD_6041\020\301\300\001\022#\n\035CIA402_QUICK_STO" +
|
||||
"P_OPTION_605A\020\332\300\001\022!\n\033CIA402_SHUTDOWN_OPT" +
|
||||
"ION_605B\020\333\300\001\022*\n$CIA402_DISABLE_OPERATION" +
|
||||
"_OPTION_605C\020\334\300\001\022\035\n\027CIA402_HALT_OPTION_6" +
|
||||
"05D\020\335\300\001\022\'\n!CIA402_FAULT_REACTION_OPTION_" +
|
||||
"605E\020\336\300\001\022 \n\032CIA402_OPERATION_MODE_6060\020\340" +
|
||||
"\300\001\022\036\n\030CIA402_MODE_DISPLAY_6061\020\341\300\001\022\'\n!CI" +
|
||||
"A402_POSITION_DEMAND_VALUE_6062\020\342\300\001\022!\n\033C" +
|
||||
"IA402_ACTUAL_POSITION_6064\020\344\300\001\022%\n\037CIA402" +
|
||||
"_MAX_FOLLOWING_ERROR_6065\020\345\300\001\022!\n\033CIA402_" +
|
||||
"POSITION_WINDOW_6067\020\347\300\001\022&\n CIA402_POSIT" +
|
||||
"ION_WINDOW_TIME_6068\020\350\300\001\022\'\n!CIA402_VELOC" +
|
||||
"ITY_DEMAND_VALUE_606B\020\353\300\001\022!\n\033CIA402_ACTU" +
|
||||
"AL_VELOCITY_606C\020\354\300\001\022!\n\033CIA402_VELOCITY_" +
|
||||
"WINDOW_606D\020\355\300\001\022&\n CIA402_VELOCITY_WINDO" +
|
||||
"W_TIME_606E\020\356\300\001\022$\n\036CIA402_VELOCITY_THRES" +
|
||||
"HOLD_606F\020\357\300\001\022)\n#CIA402_VELOCITY_THRESHO" +
|
||||
"LD_TIME_6070\020\360\300\001\022\037\n\031CIA402_TARGET_TORQUE" +
|
||||
"_6071\020\361\300\001\022\034\n\026CIA402_MAX_TORQUE_6072\020\362\300\001\022" +
|
||||
"%\n\037CIA402_TORQUE_DEMAND_VALUE_6074\020\364\300\001\022$" +
|
||||
"\n\036CIA402_MOTOR_RATED_TORQUE_6076\020\366\300\001\022\037\n\031" +
|
||||
"CIA402_ACTUAL_TORQUE_6077\020\367\300\001\022 \n\032CIA402_" +
|
||||
"ACTUAL_CURRENT_6078\020\370\300\001\022!\n\033CIA402_DC_LIN" +
|
||||
"K_VOLTAGE_6079\020\371\300\001\022!\n\033CIA402_TARGET_POSI" +
|
||||
"TION_607A\020\372\300\001\022\035\n\027CIA402_HOME_OFFSET_607C" +
|
||||
"\020\374\300\001\022)\n#CIA402_SOFTWARE_POSITION_LIMIT_6" +
|
||||
"07D\020\375\300\001\022&\n CIA402_MAX_PROFILE_VELOCITY_6" +
|
||||
"07F\020\377\300\001\022\"\n\034CIA402_PROFILE_VELOCITY_6081\020" +
|
||||
"\201\301\001\022&\n CIA402_PROFILE_ACCELERATION_6083\020" +
|
||||
"\203\301\001\022&\n CIA402_PROFILE_DECELERATION_6084\020" +
|
||||
"\204\301\001\022)\n#CIA402_QUICK_STOP_DECELERATION_60" +
|
||||
"85\020\205\301\001\022\036\n\030CIA402_TORQUE_SLOPE_6087\020\207\301\001\022\034" +
|
||||
"\n\026CIA402_GEAR_RATIO_6091\020\221\301\001\022!\n\033CIA402_V" +
|
||||
"ELOCITY_OFFSET_60B1\020\261\301\001\022\037\n\031CIA402_TORQUE" +
|
||||
"_OFFSET_60B2\020\262\301\001\022+\n%CIA402_INTERPOLATION" +
|
||||
"_DATA_RECORD_60C1\020\301\301\001\022+\n%CIA402_INTERPOL" +
|
||||
"ATION_TIME_PERIOD_60C2\020\302\301\001\022.\n(CIA402_FOL" +
|
||||
"LOWING_ERROR_ACTUAL_VALUE_60F4\020\364\301\001\022!\n\033CI" +
|
||||
"A402_TARGET_VELOCITY_60FF\020\377\301\001\022\'\n!CIA402_" +
|
||||
"SUPPORTED_DRIVE_MODES_6502\020\202\312\001b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
@ -1,909 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/msgs/error_code.proto
|
||||
|
||||
package cmvr.msgs;
|
||||
|
||||
public final class ErrorCodeOuterClass {
|
||||
private ErrorCodeOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Error codes enum for API's categorized by modules.
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code cmvr.msgs.ErrorCode}
|
||||
*/
|
||||
public enum ErrorCode
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <pre>
|
||||
* No error, returns on success.
|
||||
* </pre>
|
||||
*
|
||||
* <code>OK = 0;</code>
|
||||
*/
|
||||
OK(0),
|
||||
/**
|
||||
* <pre>
|
||||
* Canbus module error codes start from here.
|
||||
* </pre>
|
||||
*
|
||||
* <code>CANBUS_ERROR = 2000;</code>
|
||||
*/
|
||||
CANBUS_ERROR(2000),
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_BASE = 2100;</code>
|
||||
*/
|
||||
CAN_CLIENT_ERROR_BASE(2100),
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED = 2101;</code>
|
||||
*/
|
||||
CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED(2101),
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_FRAME_NUM = 2102;</code>
|
||||
*/
|
||||
CAN_CLIENT_ERROR_FRAME_NUM(2102),
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_SEND_FAILED = 2103;</code>
|
||||
*/
|
||||
CAN_CLIENT_ERROR_SEND_FAILED(2103),
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_RECV_FAILED = 2104;</code>
|
||||
*/
|
||||
CAN_CLIENT_ERROR_RECV_FAILED(2104),
|
||||
/**
|
||||
* <pre>
|
||||
* motor
|
||||
* </pre>
|
||||
*
|
||||
* <code>MOTOR_ERROR = 3000;</code>
|
||||
*/
|
||||
MOTOR_ERROR(3000),
|
||||
/**
|
||||
* <code>MOTOR_ERROR_SET_ZERO = 3001;</code>
|
||||
*/
|
||||
MOTOR_ERROR_SET_ZERO(3001),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* No error, returns on success.
|
||||
* </pre>
|
||||
*
|
||||
* <code>OK = 0;</code>
|
||||
*/
|
||||
public static final int OK_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* Canbus module error codes start from here.
|
||||
* </pre>
|
||||
*
|
||||
* <code>CANBUS_ERROR = 2000;</code>
|
||||
*/
|
||||
public static final int CANBUS_ERROR_VALUE = 2000;
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_BASE = 2100;</code>
|
||||
*/
|
||||
public static final int CAN_CLIENT_ERROR_BASE_VALUE = 2100;
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED = 2101;</code>
|
||||
*/
|
||||
public static final int CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED_VALUE = 2101;
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_FRAME_NUM = 2102;</code>
|
||||
*/
|
||||
public static final int CAN_CLIENT_ERROR_FRAME_NUM_VALUE = 2102;
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_SEND_FAILED = 2103;</code>
|
||||
*/
|
||||
public static final int CAN_CLIENT_ERROR_SEND_FAILED_VALUE = 2103;
|
||||
/**
|
||||
* <code>CAN_CLIENT_ERROR_RECV_FAILED = 2104;</code>
|
||||
*/
|
||||
public static final int CAN_CLIENT_ERROR_RECV_FAILED_VALUE = 2104;
|
||||
/**
|
||||
* <pre>
|
||||
* motor
|
||||
* </pre>
|
||||
*
|
||||
* <code>MOTOR_ERROR = 3000;</code>
|
||||
*/
|
||||
public static final int MOTOR_ERROR_VALUE = 3000;
|
||||
/**
|
||||
* <code>MOTOR_ERROR_SET_ZERO = 3001;</code>
|
||||
*/
|
||||
public static final int MOTOR_ERROR_SET_ZERO_VALUE = 3001;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static ErrorCode valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static ErrorCode forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return OK;
|
||||
case 2000: return CANBUS_ERROR;
|
||||
case 2100: return CAN_CLIENT_ERROR_BASE;
|
||||
case 2101: return CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED;
|
||||
case 2102: return CAN_CLIENT_ERROR_FRAME_NUM;
|
||||
case 2103: return CAN_CLIENT_ERROR_SEND_FAILED;
|
||||
case 2104: return CAN_CLIENT_ERROR_RECV_FAILED;
|
||||
case 3000: return MOTOR_ERROR;
|
||||
case 3001: return MOTOR_ERROR_SET_ZERO;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<ErrorCode>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
ErrorCode> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<ErrorCode>() {
|
||||
public ErrorCode findValueByNumber(int number) {
|
||||
return ErrorCode.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final ErrorCode[] VALUES = values();
|
||||
|
||||
public static ErrorCode valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private ErrorCode(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:cmvr.msgs.ErrorCode)
|
||||
}
|
||||
|
||||
public interface StatusPbOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cmvr.msgs.StatusPb)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The enum numeric value on the wire for errorCode.
|
||||
*/
|
||||
int getErrorCodeValue();
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The errorCode.
|
||||
*/
|
||||
cmvr.msgs.ErrorCodeOuterClass.ErrorCode getErrorCode();
|
||||
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The msg.
|
||||
*/
|
||||
java.lang.String getMsg();
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The bytes for msg.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getMsgBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cmvr.msgs.StatusPb}
|
||||
*/
|
||||
public static final class StatusPb extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cmvr.msgs.StatusPb)
|
||||
StatusPbOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use StatusPb.newBuilder() to construct.
|
||||
private StatusPb(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private StatusPb() {
|
||||
errorCode_ = 0;
|
||||
msg_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new StatusPb();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.internal_static_cmvr_msgs_StatusPb_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.internal_static_cmvr_msgs_StatusPb_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPb.class, cmvr.msgs.ErrorCodeOuterClass.StatusPb.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ERROR_CODE_FIELD_NUMBER = 1;
|
||||
private int errorCode_;
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The enum numeric value on the wire for errorCode.
|
||||
*/
|
||||
@java.lang.Override public int getErrorCodeValue() {
|
||||
return errorCode_;
|
||||
}
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The errorCode.
|
||||
*/
|
||||
@java.lang.Override public cmvr.msgs.ErrorCodeOuterClass.ErrorCode getErrorCode() {
|
||||
@SuppressWarnings("deprecation")
|
||||
cmvr.msgs.ErrorCodeOuterClass.ErrorCode result = cmvr.msgs.ErrorCodeOuterClass.ErrorCode.valueOf(errorCode_);
|
||||
return result == null ? cmvr.msgs.ErrorCodeOuterClass.ErrorCode.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int MSG_FIELD_NUMBER = 2;
|
||||
private volatile java.lang.Object msg_;
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The msg.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getMsg() {
|
||||
java.lang.Object ref = msg_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
msg_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The bytes for msg.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getMsgBytes() {
|
||||
java.lang.Object ref = msg_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
msg_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (errorCode_ != cmvr.msgs.ErrorCodeOuterClass.ErrorCode.OK.getNumber()) {
|
||||
output.writeEnum(1, errorCode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (errorCode_ != cmvr.msgs.ErrorCodeOuterClass.ErrorCode.OK.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(1, errorCode_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof cmvr.msgs.ErrorCodeOuterClass.StatusPb)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPb other = (cmvr.msgs.ErrorCodeOuterClass.StatusPb) obj;
|
||||
|
||||
if (errorCode_ != other.errorCode_) return false;
|
||||
if (!getMsg()
|
||||
.equals(other.getMsg())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + errorCode_;
|
||||
hash = (37 * hash) + MSG_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMsg().hashCode();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(cmvr.msgs.ErrorCodeOuterClass.StatusPb prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cmvr.msgs.StatusPb}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cmvr.msgs.StatusPb)
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPbOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.internal_static_cmvr_msgs_StatusPb_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.internal_static_cmvr_msgs_StatusPb_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPb.class, cmvr.msgs.ErrorCodeOuterClass.StatusPb.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cmvr.msgs.ErrorCodeOuterClass.StatusPb.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
errorCode_ = 0;
|
||||
|
||||
msg_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.internal_static_cmvr_msgs_StatusPb_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.ErrorCodeOuterClass.StatusPb getDefaultInstanceForType() {
|
||||
return cmvr.msgs.ErrorCodeOuterClass.StatusPb.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.ErrorCodeOuterClass.StatusPb build() {
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPb result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.ErrorCodeOuterClass.StatusPb buildPartial() {
|
||||
cmvr.msgs.ErrorCodeOuterClass.StatusPb result = new cmvr.msgs.ErrorCodeOuterClass.StatusPb(this);
|
||||
result.errorCode_ = errorCode_;
|
||||
result.msg_ = msg_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cmvr.msgs.ErrorCodeOuterClass.StatusPb) {
|
||||
return mergeFrom((cmvr.msgs.ErrorCodeOuterClass.StatusPb)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cmvr.msgs.ErrorCodeOuterClass.StatusPb other) {
|
||||
if (other == cmvr.msgs.ErrorCodeOuterClass.StatusPb.getDefaultInstance()) return this;
|
||||
if (other.errorCode_ != 0) {
|
||||
setErrorCodeValue(other.getErrorCodeValue());
|
||||
}
|
||||
if (!other.getMsg().isEmpty()) {
|
||||
msg_ = other.msg_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
errorCode_ = input.readEnum();
|
||||
|
||||
break;
|
||||
} // case 8
|
||||
case 18: {
|
||||
msg_ = input.readStringRequireUtf8();
|
||||
|
||||
break;
|
||||
} // case 18
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
|
||||
private int errorCode_ = 0;
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The enum numeric value on the wire for errorCode.
|
||||
*/
|
||||
@java.lang.Override public int getErrorCodeValue() {
|
||||
return errorCode_;
|
||||
}
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @param value The enum numeric value on the wire for errorCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setErrorCodeValue(int value) {
|
||||
|
||||
errorCode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return The errorCode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.ErrorCodeOuterClass.ErrorCode getErrorCode() {
|
||||
@SuppressWarnings("deprecation")
|
||||
cmvr.msgs.ErrorCodeOuterClass.ErrorCode result = cmvr.msgs.ErrorCodeOuterClass.ErrorCode.valueOf(errorCode_);
|
||||
return result == null ? cmvr.msgs.ErrorCodeOuterClass.ErrorCode.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @param value The errorCode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setErrorCode(cmvr.msgs.ErrorCodeOuterClass.ErrorCode value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
errorCode_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cmvr.msgs.ErrorCode error_code = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearErrorCode() {
|
||||
|
||||
errorCode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object msg_ = "";
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The msg.
|
||||
*/
|
||||
public java.lang.String getMsg() {
|
||||
java.lang.Object ref = msg_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
msg_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return The bytes for msg.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getMsgBytes() {
|
||||
java.lang.Object ref = msg_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
msg_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @param value The msg to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setMsg(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
msg_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMsg() {
|
||||
|
||||
msg_ = getDefaultInstance().getMsg();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string msg = 2;</code>
|
||||
* @param value The bytes for msg to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setMsgBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
msg_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:cmvr.msgs.StatusPb)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cmvr.msgs.StatusPb)
|
||||
private static final cmvr.msgs.ErrorCodeOuterClass.StatusPb DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cmvr.msgs.ErrorCodeOuterClass.StatusPb();
|
||||
}
|
||||
|
||||
public static cmvr.msgs.ErrorCodeOuterClass.StatusPb getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<StatusPb>
|
||||
PARSER = new com.google.protobuf.AbstractParser<StatusPb>() {
|
||||
@java.lang.Override
|
||||
public StatusPb parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<StatusPb> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<StatusPb> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.ErrorCodeOuterClass.StatusPb getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cmvr_msgs_StatusPb_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cmvr_msgs_StatusPb_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032cmvr/msgs/error_code.proto\022\tcmvr.msgs\"" +
|
||||
"A\n\010StatusPb\022(\n\nerror_code\030\001 \001(\0162\024.cmvr.m" +
|
||||
"sgs.ErrorCode\022\013\n\003msg\030\002 \001(\t*\200\002\n\tErrorCode" +
|
||||
"\022\006\n\002OK\020\000\022\021\n\014CANBUS_ERROR\020\320\017\022\032\n\025CAN_CLIEN" +
|
||||
"T_ERROR_BASE\020\264\020\022(\n#CAN_CLIENT_ERROR_OPEN" +
|
||||
"_DEVICE_FAILED\020\265\020\022\037\n\032CAN_CLIENT_ERROR_FR" +
|
||||
"AME_NUM\020\266\020\022!\n\034CAN_CLIENT_ERROR_SEND_FAIL" +
|
||||
"ED\020\267\020\022!\n\034CAN_CLIENT_ERROR_RECV_FAILED\020\270\020" +
|
||||
"\022\020\n\013MOTOR_ERROR\020\270\027\022\031\n\024MOTOR_ERROR_SET_ZE" +
|
||||
"RO\020\271\027b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_cmvr_msgs_StatusPb_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_cmvr_msgs_StatusPb_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cmvr_msgs_StatusPb_descriptor,
|
||||
new java.lang.String[] { "ErrorCode", "Msg", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,847 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: cmvr/msgs/robot_detail.proto
|
||||
|
||||
package cmvr.msgs;
|
||||
|
||||
public final class RobotDetailOuterClass {
|
||||
private RobotDetailOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface RobotDetailOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cmvr.msgs.RobotDetail)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
int getMotorsCount();
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
boolean containsMotors(
|
||||
int key);
|
||||
/**
|
||||
* Use {@link #getMotorsMap()} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
getMotors();
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
getMotorsMap();
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
/* nullable */
|
||||
cmvr.msgs.Motor.MotorStatus getMotorsOrDefault(
|
||||
int key,
|
||||
/* nullable */
|
||||
cmvr.msgs.Motor.MotorStatus defaultValue);
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
cmvr.msgs.Motor.MotorStatus getMotorsOrThrow(
|
||||
int key);
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cmvr.msgs.RobotDetail}
|
||||
*/
|
||||
public static final class RobotDetail extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cmvr.msgs.RobotDetail)
|
||||
RobotDetailOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use RobotDetail.newBuilder() to construct.
|
||||
private RobotDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private RobotDetail() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new RobotDetail();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetMotors();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetail.class, cmvr.msgs.RobotDetailOuterClass.RobotDetail.Builder.class);
|
||||
}
|
||||
|
||||
public static final int MOTORS_FIELD_NUMBER = 1;
|
||||
private static final class MotorsDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.Integer, cmvr.msgs.Motor.MotorStatus> defaultEntry =
|
||||
com.google.protobuf.MapEntry
|
||||
.<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>newDefaultInstance(
|
||||
cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_MotorsEntry_descriptor,
|
||||
com.google.protobuf.WireFormat.FieldType.UINT32,
|
||||
0,
|
||||
com.google.protobuf.WireFormat.FieldType.MESSAGE,
|
||||
cmvr.msgs.Motor.MotorStatus.getDefaultInstance());
|
||||
}
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.Integer, cmvr.msgs.Motor.MotorStatus> motors_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
internalGetMotors() {
|
||||
if (motors_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
MotorsDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return motors_;
|
||||
}
|
||||
|
||||
public int getMotorsCount() {
|
||||
return internalGetMotors().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
public boolean containsMotors(
|
||||
int key) {
|
||||
|
||||
return internalGetMotors().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getMotorsMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> getMotors() {
|
||||
return getMotorsMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> getMotorsMap() {
|
||||
return internalGetMotors().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public cmvr.msgs.Motor.MotorStatus getMotorsOrDefault(
|
||||
int key,
|
||||
cmvr.msgs.Motor.MotorStatus defaultValue) {
|
||||
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> map =
|
||||
internalGetMotors().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public cmvr.msgs.Motor.MotorStatus getMotorsOrThrow(
|
||||
int key) {
|
||||
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> map =
|
||||
internalGetMotors().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeIntegerMapTo(
|
||||
output,
|
||||
internalGetMotors(),
|
||||
MotorsDefaultEntryHolder.defaultEntry,
|
||||
1);
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (java.util.Map.Entry<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> entry
|
||||
: internalGetMotors().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
motors__ = MotorsDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||
.setKey(entry.getKey())
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, motors__);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof cmvr.msgs.RobotDetailOuterClass.RobotDetail)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetail other = (cmvr.msgs.RobotDetailOuterClass.RobotDetail) obj;
|
||||
|
||||
if (!internalGetMotors().equals(
|
||||
other.internalGetMotors())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (!internalGetMotors().getMap().isEmpty()) {
|
||||
hash = (37 * hash) + MOTORS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetMotors().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(cmvr.msgs.RobotDetailOuterClass.RobotDetail prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cmvr.msgs.RobotDetail}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cmvr.msgs.RobotDetail)
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetailOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetMotors();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetMutableMotors();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetail.class, cmvr.msgs.RobotDetailOuterClass.RobotDetail.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cmvr.msgs.RobotDetailOuterClass.RobotDetail.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
internalGetMutableMotors().clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.internal_static_cmvr_msgs_RobotDetail_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.RobotDetailOuterClass.RobotDetail getDefaultInstanceForType() {
|
||||
return cmvr.msgs.RobotDetailOuterClass.RobotDetail.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.RobotDetailOuterClass.RobotDetail build() {
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetail result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.RobotDetailOuterClass.RobotDetail buildPartial() {
|
||||
cmvr.msgs.RobotDetailOuterClass.RobotDetail result = new cmvr.msgs.RobotDetailOuterClass.RobotDetail(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.motors_ = internalGetMotors();
|
||||
result.motors_.makeImmutable();
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cmvr.msgs.RobotDetailOuterClass.RobotDetail) {
|
||||
return mergeFrom((cmvr.msgs.RobotDetailOuterClass.RobotDetail)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cmvr.msgs.RobotDetailOuterClass.RobotDetail other) {
|
||||
if (other == cmvr.msgs.RobotDetailOuterClass.RobotDetail.getDefaultInstance()) return this;
|
||||
internalGetMutableMotors().mergeFrom(
|
||||
other.internalGetMotors());
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
motors__ = input.readMessage(
|
||||
MotorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||
internalGetMutableMotors().getMutableMap().put(
|
||||
motors__.getKey(), motors__.getValue());
|
||||
break;
|
||||
} // case 10
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.Integer, cmvr.msgs.Motor.MotorStatus> motors_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
internalGetMotors() {
|
||||
if (motors_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
MotorsDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return motors_;
|
||||
}
|
||||
private com.google.protobuf.MapField<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
internalGetMutableMotors() {
|
||||
onChanged();;
|
||||
if (motors_ == null) {
|
||||
motors_ = com.google.protobuf.MapField.newMapField(
|
||||
MotorsDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
if (!motors_.isMutable()) {
|
||||
motors_ = motors_.copy();
|
||||
}
|
||||
return motors_;
|
||||
}
|
||||
|
||||
public int getMotorsCount() {
|
||||
return internalGetMotors().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
public boolean containsMotors(
|
||||
int key) {
|
||||
|
||||
return internalGetMotors().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getMotorsMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> getMotors() {
|
||||
return getMotorsMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> getMotorsMap() {
|
||||
return internalGetMotors().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public cmvr.msgs.Motor.MotorStatus getMotorsOrDefault(
|
||||
int key,
|
||||
cmvr.msgs.Motor.MotorStatus defaultValue) {
|
||||
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> map =
|
||||
internalGetMotors().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
public cmvr.msgs.Motor.MotorStatus getMotorsOrThrow(
|
||||
int key) {
|
||||
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> map =
|
||||
internalGetMotors().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
public Builder clearMotors() {
|
||||
internalGetMutableMotors().getMutableMap()
|
||||
.clear();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
public Builder removeMotors(
|
||||
int key) {
|
||||
|
||||
internalGetMutableMotors().getMutableMap()
|
||||
.remove(key);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Use alternate mutation accessors instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus>
|
||||
getMutableMotors() {
|
||||
return internalGetMutableMotors().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
public Builder putMotors(
|
||||
int key,
|
||||
cmvr.msgs.Motor.MotorStatus value) {
|
||||
|
||||
if (value == null) {
|
||||
throw new NullPointerException("map value");
|
||||
}
|
||||
|
||||
internalGetMutableMotors().getMutableMap()
|
||||
.put(key, value);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* key 电机 nodeid
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<uint32, .cmvr.msgs.MotorStatus> motors = 1;</code>
|
||||
*/
|
||||
|
||||
public Builder putAllMotors(
|
||||
java.util.Map<java.lang.Integer, cmvr.msgs.Motor.MotorStatus> values) {
|
||||
internalGetMutableMotors().getMutableMap()
|
||||
.putAll(values);
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:cmvr.msgs.RobotDetail)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cmvr.msgs.RobotDetail)
|
||||
private static final cmvr.msgs.RobotDetailOuterClass.RobotDetail DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cmvr.msgs.RobotDetailOuterClass.RobotDetail();
|
||||
}
|
||||
|
||||
public static cmvr.msgs.RobotDetailOuterClass.RobotDetail getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<RobotDetail>
|
||||
PARSER = new com.google.protobuf.AbstractParser<RobotDetail>() {
|
||||
@java.lang.Override
|
||||
public RobotDetail parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<RobotDetail> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<RobotDetail> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cmvr.msgs.RobotDetailOuterClass.RobotDetail getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cmvr_msgs_RobotDetail_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cmvr_msgs_RobotDetail_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cmvr_msgs_RobotDetail_MotorsEntry_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cmvr_msgs_RobotDetail_MotorsEntry_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\034cmvr/msgs/robot_detail.proto\022\tcmvr.msg" +
|
||||
"s\032\025cmvr/msgs/motor.proto\"\210\001\n\013RobotDetail" +
|
||||
"\0222\n\006motors\030\001 \003(\0132\".cmvr.msgs.RobotDetail" +
|
||||
".MotorsEntry\032E\n\013MotorsEntry\022\013\n\003key\030\001 \001(\r" +
|
||||
"\022%\n\005value\030\002 \001(\0132\026.cmvr.msgs.MotorStatus:" +
|
||||
"\0028\001b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
cmvr.msgs.Motor.getDescriptor(),
|
||||
});
|
||||
internal_static_cmvr_msgs_RobotDetail_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_cmvr_msgs_RobotDetail_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cmvr_msgs_RobotDetail_descriptor,
|
||||
new java.lang.String[] { "Motors", });
|
||||
internal_static_cmvr_msgs_RobotDetail_MotorsEntry_descriptor =
|
||||
internal_static_cmvr_msgs_RobotDetail_descriptor.getNestedTypes().get(0);
|
||||
internal_static_cmvr_msgs_RobotDetail_MotorsEntry_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cmvr_msgs_RobotDetail_MotorsEntry_descriptor,
|
||||
new java.lang.String[] { "Key", "Value", });
|
||||
cmvr.msgs.Motor.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user