Switch license to AGPL

This commit is contained in:
Christian Weichel 2022-12-07 15:06:13 +00:00 committed by Robo Quat
parent 3c4b6676ee
commit 478a75e744
2397 changed files with 30616 additions and 30885 deletions

View File

@ -1,6 +1,6 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved. # Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information. # See License.AGPL.txt in the project root for license information.
packages: packages:
- name: all - name: all
@ -140,23 +140,10 @@ scripts:
deps: deps:
- dev/addlicense:app - dev/addlicense:app
script: | script: |
tmpdir=$(mktemp -d)
echo "Temp Dir: $tmpdir"
leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/all
leeway collect files --variant oss --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/oss
grep -v -f $tmpdir/oss $tmpdir/all > $tmpdir/ee
grep -E "^components\/ee\/" $tmpdir/oss >> $tmpdir/ee
grep -v -E "^chart\/" $tmpdir/oss | grep -v -E "^install\/" > $tmpdir/agpl
grep -v -f $tmpdir/agpl $tmpdir/oss > $tmpdir/mit
# set `export LICENCE_HEADER_CHECK_ONLY=true` to just check if all headers are there (and exit with status code 1 if not) # set `export LICENCE_HEADER_CHECK_ONLY=true` to just check if all headers are there (and exit with status code 1 if not)
check=$([ "$LICENCE_HEADER_CHECK_ONLY" = true ] && printf "%s" '-check') check=$([ "$LICENCE_HEADER_CHECK_ONLY" = true ] && printf "%s" '-check')
cat $tmpdir/ee | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l gpshf . || exit 1 leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | sort | uniq | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
cat $tmpdir/agpl | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
cat $tmpdir/mit | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l mit . || exit 1
- name: dejson-log-output - name: dejson-log-output
script: |- script: |-
jq -Rr '. as $line | jq -Rr '. as $line |

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cmd package cmd

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cmd package cmd

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. # Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information. # See License.AGPL.txt in the project root for license information.
set -Eeuo pipefail set -Eeuo pipefail
source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information. # See License.AGPL.txt in the project root for license information.
FROM alpine:3.16 FROM alpine:3.16

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package main package main

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package blobserve package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package blobserve package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package blobserve package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package blobserve package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package blobserve package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package config package config

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information. # See License.AGPL.txt in the project root for license information.
packages: packages:
- name: lib - name: lib

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package analytics package analytics

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver_test package baseserver_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package baseserver package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups package cgroups

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups package cgroups

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v1 package cgroups_v1

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v1 package cgroups_v1

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v2 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v2 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v2 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package cgroups_v2 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experiments package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experimentstest package experimentstest

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experimentstest package experimentstest

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experiments package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experiments package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experiments package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package experiments package experiments

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information. # See License.AGPL.txt in the project root for license information.
# based on https://github.com/kubernetes/kubernetes/issues/79384 # based on https://github.com/kubernetes/kubernetes/issues/79384

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package grpc package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package grpc package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package grpc package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package kubernetes package kubernetes

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package kubernetes package kubernetes

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package log package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package namegen package namegen

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package namegen_test package namegen_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
//go:build linux //go:build linux
// +build linux // +build linux

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package pprof package pprof

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package process package process

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package process package process

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package testing package testing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package tracing package tracing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package tracing package tracing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package util package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package util package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package util_test package util_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package util package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package watch package watch

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
syntax = "proto3"; syntax = "proto3";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
syntax = "proto3"; syntax = "proto3";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package config package config

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package api package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package api package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package api_test package api_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
package api package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
syntax = "proto3"; syntax = "proto3";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
syntax = "proto3"; syntax = "proto3";

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -19,7 +19,8 @@ interface IBlobServiceService extends grpc.ServiceDefinition<grpc.UntypedService
delete: IBlobServiceService_IDelete; delete: IBlobServiceService_IDelete;
} }
interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.UploadUrlRequest, blobs_pb.UploadUrlResponse> { interface IBlobServiceService_IUploadUrl
extends grpc.MethodDefinition<blobs_pb.UploadUrlRequest, blobs_pb.UploadUrlResponse> {
path: "/contentservice.BlobService/UploadUrl"; path: "/contentservice.BlobService/UploadUrl";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -28,7 +29,8 @@ interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.
responseSerialize: grpc.serialize<blobs_pb.UploadUrlResponse>; responseSerialize: grpc.serialize<blobs_pb.UploadUrlResponse>;
responseDeserialize: grpc.deserialize<blobs_pb.UploadUrlResponse>; responseDeserialize: grpc.deserialize<blobs_pb.UploadUrlResponse>;
} }
interface IBlobServiceService_IDownloadUrl extends grpc.MethodDefinition<blobs_pb.DownloadUrlRequest, blobs_pb.DownloadUrlResponse> { interface IBlobServiceService_IDownloadUrl
extends grpc.MethodDefinition<blobs_pb.DownloadUrlRequest, blobs_pb.DownloadUrlResponse> {
path: "/contentservice.BlobService/DownloadUrl"; path: "/contentservice.BlobService/DownloadUrl";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -56,26 +58,98 @@ export interface IBlobServiceServer extends grpc.UntypedServiceImplementation {
} }
export interface IBlobServiceClient { export interface IBlobServiceClient {
uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; uploadUrl(
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; uploadUrl(
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
uploadUrl(
request: blobs_pb.UploadUrlRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): grpc.ClientUnaryCall;
downloadUrl(
request: blobs_pb.DownloadUrlRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
downloadUrl(
request: blobs_pb.DownloadUrlRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
downloadUrl(
request: blobs_pb.DownloadUrlRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
delete(
request: blobs_pb.DeleteRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
delete(
request: blobs_pb.DeleteRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
delete(
request: blobs_pb.DeleteRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
} }
export class BlobServiceClient extends grpc.Client implements IBlobServiceClient { export class BlobServiceClient extends grpc.Client implements IBlobServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; public uploadUrl(
public uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
public uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
public downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; public uploadUrl(
public downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
public delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
public delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
public delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public uploadUrl(
request: blobs_pb.UploadUrlRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): grpc.ClientUnaryCall;
public downloadUrl(
request: blobs_pb.DownloadUrlRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
public downloadUrl(
request: blobs_pb.DownloadUrlRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
public downloadUrl(
request: blobs_pb.DownloadUrlRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
): grpc.ClientUnaryCall;
public delete(
request: blobs_pb.DeleteRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
public delete(
request: blobs_pb.DeleteRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
public delete(
request: blobs_pb.DeleteRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
): grpc.ClientUnaryCall;
} }

View File

@ -3,15 +3,15 @@
// Original file comments: // Original file comments:
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// //
'use strict'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var blobs_pb = require('./blobs_pb.js'); var blobs_pb = require("./blobs_pb.js");
function serialize_contentservice_DeleteRequest(arg) { function serialize_contentservice_DeleteRequest(arg) {
if (!(arg instanceof blobs_pb.DeleteRequest)) { if (!(arg instanceof blobs_pb.DeleteRequest)) {
throw new Error('Expected argument of type contentservice.DeleteRequest'); throw new Error("Expected argument of type contentservice.DeleteRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -22,7 +22,7 @@ function deserialize_contentservice_DeleteRequest(buffer_arg) {
function serialize_contentservice_DeleteResponse(arg) { function serialize_contentservice_DeleteResponse(arg) {
if (!(arg instanceof blobs_pb.DeleteResponse)) { if (!(arg instanceof blobs_pb.DeleteResponse)) {
throw new Error('Expected argument of type contentservice.DeleteResponse'); throw new Error("Expected argument of type contentservice.DeleteResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -33,7 +33,7 @@ function deserialize_contentservice_DeleteResponse(buffer_arg) {
function serialize_contentservice_DownloadUrlRequest(arg) { function serialize_contentservice_DownloadUrlRequest(arg) {
if (!(arg instanceof blobs_pb.DownloadUrlRequest)) { if (!(arg instanceof blobs_pb.DownloadUrlRequest)) {
throw new Error('Expected argument of type contentservice.DownloadUrlRequest'); throw new Error("Expected argument of type contentservice.DownloadUrlRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -44,7 +44,7 @@ function deserialize_contentservice_DownloadUrlRequest(buffer_arg) {
function serialize_contentservice_DownloadUrlResponse(arg) { function serialize_contentservice_DownloadUrlResponse(arg) {
if (!(arg instanceof blobs_pb.DownloadUrlResponse)) { if (!(arg instanceof blobs_pb.DownloadUrlResponse)) {
throw new Error('Expected argument of type contentservice.DownloadUrlResponse'); throw new Error("Expected argument of type contentservice.DownloadUrlResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -55,7 +55,7 @@ function deserialize_contentservice_DownloadUrlResponse(buffer_arg) {
function serialize_contentservice_UploadUrlRequest(arg) { function serialize_contentservice_UploadUrlRequest(arg) {
if (!(arg instanceof blobs_pb.UploadUrlRequest)) { if (!(arg instanceof blobs_pb.UploadUrlRequest)) {
throw new Error('Expected argument of type contentservice.UploadUrlRequest'); throw new Error("Expected argument of type contentservice.UploadUrlRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -66,7 +66,7 @@ function deserialize_contentservice_UploadUrlRequest(buffer_arg) {
function serialize_contentservice_UploadUrlResponse(arg) { function serialize_contentservice_UploadUrlResponse(arg) {
if (!(arg instanceof blobs_pb.UploadUrlResponse)) { if (!(arg instanceof blobs_pb.UploadUrlResponse)) {
throw new Error('Expected argument of type contentservice.UploadUrlResponse'); throw new Error("Expected argument of type contentservice.UploadUrlResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -75,11 +75,10 @@ function deserialize_contentservice_UploadUrlResponse(buffer_arg) {
return blobs_pb.UploadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg)); return blobs_pb.UploadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
} }
var BlobServiceService = (exports.BlobServiceService = {
var BlobServiceService = exports.BlobServiceService = {
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT. // UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
uploadUrl: { uploadUrl: {
path: '/contentservice.BlobService/UploadUrl', path: "/contentservice.BlobService/UploadUrl",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: blobs_pb.UploadUrlRequest, requestType: blobs_pb.UploadUrlRequest,
@ -91,7 +90,7 @@ uploadUrl: {
}, },
// DownloadUrl provides a URL from which clients can download the content via HTTP GET. // DownloadUrl provides a URL from which clients can download the content via HTTP GET.
downloadUrl: { downloadUrl: {
path: '/contentservice.BlobService/DownloadUrl', path: "/contentservice.BlobService/DownloadUrl",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: blobs_pb.DownloadUrlRequest, requestType: blobs_pb.DownloadUrlRequest,
@ -103,7 +102,7 @@ downloadUrl: {
}, },
// Delete deletes the uploaded content. // Delete deletes the uploaded content.
delete: { delete: {
path: '/contentservice.BlobService/Delete', path: "/contentservice.BlobService/Delete",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: blobs_pb.DeleteRequest, requestType: blobs_pb.DeleteRequest,
@ -113,6 +112,6 @@ delete: {
responseSerialize: serialize_contentservice_DeleteResponse, responseSerialize: serialize_contentservice_DeleteResponse,
responseDeserialize: deserialize_contentservice_DeleteResponse, responseDeserialize: deserialize_contentservice_DeleteResponse,
}, },
}; });
exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService); exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -32,10 +32,10 @@ export class UploadUrlRequest extends jspb.Message {
export namespace UploadUrlRequest { export namespace UploadUrlRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
name: string, name: string;
contentType: string, contentType: string;
} };
} }
export class UploadUrlResponse extends jspb.Message { export class UploadUrlResponse extends jspb.Message {
@ -54,8 +54,8 @@ export class UploadUrlResponse extends jspb.Message {
export namespace UploadUrlResponse { export namespace UploadUrlResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class DownloadUrlRequest extends jspb.Message { export class DownloadUrlRequest extends jspb.Message {
@ -78,10 +78,10 @@ export class DownloadUrlRequest extends jspb.Message {
export namespace DownloadUrlRequest { export namespace DownloadUrlRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
name: string, name: string;
contentType: string, contentType: string;
} };
} }
export class DownloadUrlResponse extends jspb.Message { export class DownloadUrlResponse extends jspb.Message {
@ -100,8 +100,8 @@ export class DownloadUrlResponse extends jspb.Message {
export namespace DownloadUrlResponse { export namespace DownloadUrlResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class DeleteRequest extends jspb.Message { export class DeleteRequest extends jspb.Message {
@ -132,21 +132,19 @@ export class DeleteRequest extends jspb.Message {
export namespace DeleteRequest { export namespace DeleteRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
exact: string, exact: string;
prefix: string, prefix: string;
} };
export enum NameCase { export enum NameCase {
NAME_NOT_SET = 0, NAME_NOT_SET = 0,
EXACT = 2, EXACT = 2,
PREFIX = 3, PREFIX = 3,
} }
} }
export class DeleteResponse extends jspb.Message { export class DeleteResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteResponse.AsObject; toObject(includeInstance?: boolean): DeleteResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject; static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject;
@ -158,6 +156,5 @@ export class DeleteResponse extends jspb.Message {
} }
export namespace DeleteResponse { export namespace DeleteResponse {
export type AsObject = { export type AsObject = {};
}
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// source: blobs.proto // source: blobs.proto
@ -17,17 +17,19 @@
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
var jspb = require('google-protobuf'); var jspb = require("google-protobuf");
var goog = jspb; var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol('proto.contentservice.DeleteRequest', null, global); goog.exportSymbol("proto.contentservice.DeleteRequest", null, global);
goog.exportSymbol('proto.contentservice.DeleteRequest.NameCase', null, global); goog.exportSymbol("proto.contentservice.DeleteRequest.NameCase", null, global);
goog.exportSymbol('proto.contentservice.DeleteResponse', null, global); goog.exportSymbol("proto.contentservice.DeleteResponse", null, global);
goog.exportSymbol('proto.contentservice.DownloadUrlRequest', null, global); goog.exportSymbol("proto.contentservice.DownloadUrlRequest", null, global);
goog.exportSymbol('proto.contentservice.DownloadUrlResponse', null, global); goog.exportSymbol("proto.contentservice.DownloadUrlResponse", null, global);
goog.exportSymbol('proto.contentservice.UploadUrlRequest', null, global); goog.exportSymbol("proto.contentservice.UploadUrlRequest", null, global);
goog.exportSymbol('proto.contentservice.UploadUrlResponse', null, global); goog.exportSymbol("proto.contentservice.UploadUrlResponse", null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -47,7 +49,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.UploadUrlRequest.displayName = 'proto.contentservice.UploadUrlRequest'; proto.contentservice.UploadUrlRequest.displayName = "proto.contentservice.UploadUrlRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -68,7 +70,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.UploadUrlResponse.displayName = 'proto.contentservice.UploadUrlResponse'; proto.contentservice.UploadUrlResponse.displayName = "proto.contentservice.UploadUrlResponse";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -89,7 +91,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DownloadUrlRequest.displayName = 'proto.contentservice.DownloadUrlRequest'; proto.contentservice.DownloadUrlRequest.displayName = "proto.contentservice.DownloadUrlRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -110,7 +112,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DownloadUrlResponse.displayName = 'proto.contentservice.DownloadUrlResponse'; proto.contentservice.DownloadUrlResponse.displayName = "proto.contentservice.DownloadUrlResponse";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -131,7 +133,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteRequest.displayName = 'proto.contentservice.DeleteRequest'; proto.contentservice.DeleteRequest.displayName = "proto.contentservice.DeleteRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -152,11 +154,9 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteResponse.displayName = 'proto.contentservice.DeleteResponse'; proto.contentservice.DeleteResponse.displayName = "proto.contentservice.DeleteResponse";
} }
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -174,7 +174,6 @@ proto.contentservice.UploadUrlRequest.prototype.toObject = function(opt_includeI
return proto.contentservice.UploadUrlRequest.toObject(opt_includeInstance, this); return proto.contentservice.UploadUrlRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -185,10 +184,11 @@ proto.contentservice.UploadUrlRequest.prototype.toObject = function(opt_includeI
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.UploadUrlRequest.toObject = function (includeInstance, msg) { proto.contentservice.UploadUrlRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""),
contentType: jspb.Message.getFieldWithDefault(msg, 3, "") contentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -198,7 +198,6 @@ proto.contentservice.UploadUrlRequest.toObject = function(includeInstance, msg)
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -206,11 +205,10 @@ proto.contentservice.UploadUrlRequest.toObject = function(includeInstance, msg)
*/ */
proto.contentservice.UploadUrlRequest.deserializeBinary = function (bytes) { proto.contentservice.UploadUrlRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.UploadUrlRequest; var msg = new proto.contentservice.UploadUrlRequest();
return proto.contentservice.UploadUrlRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.UploadUrlRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -245,7 +243,6 @@ proto.contentservice.UploadUrlRequest.deserializeBinaryFromReader = function(msg
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -256,7 +253,6 @@ proto.contentservice.UploadUrlRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -268,28 +264,18 @@ proto.contentservice.UploadUrlRequest.serializeBinaryToWriter = function(message
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getName(); f = message.getName();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
f = message.getContentType(); f = message.getContentType();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(3, f);
3,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -298,7 +284,6 @@ proto.contentservice.UploadUrlRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.UploadUrlRequest} returns this * @return {!proto.contentservice.UploadUrlRequest} returns this
@ -307,7 +292,6 @@ proto.contentservice.UploadUrlRequest.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string name = 2; * optional string name = 2;
* @return {string} * @return {string}
@ -316,7 +300,6 @@ proto.contentservice.UploadUrlRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.UploadUrlRequest} returns this * @return {!proto.contentservice.UploadUrlRequest} returns this
@ -325,7 +308,6 @@ proto.contentservice.UploadUrlRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
/** /**
* optional string content_type = 3; * optional string content_type = 3;
* @return {string} * @return {string}
@ -334,7 +316,6 @@ proto.contentservice.UploadUrlRequest.prototype.getContentType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.UploadUrlRequest} returns this * @return {!proto.contentservice.UploadUrlRequest} returns this
@ -343,10 +324,6 @@ proto.contentservice.UploadUrlRequest.prototype.setContentType = function(value)
return jspb.Message.setProto3StringField(this, 3, value); return jspb.Message.setProto3StringField(this, 3, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -364,7 +341,6 @@ proto.contentservice.UploadUrlResponse.prototype.toObject = function(opt_include
return proto.contentservice.UploadUrlResponse.toObject(opt_includeInstance, this); return proto.contentservice.UploadUrlResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -375,8 +351,9 @@ proto.contentservice.UploadUrlResponse.prototype.toObject = function(opt_include
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.UploadUrlResponse.toObject = function (includeInstance, msg) { proto.contentservice.UploadUrlResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
url: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -386,7 +363,6 @@ proto.contentservice.UploadUrlResponse.toObject = function(includeInstance, msg)
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -394,11 +370,10 @@ proto.contentservice.UploadUrlResponse.toObject = function(includeInstance, msg)
*/ */
proto.contentservice.UploadUrlResponse.deserializeBinary = function (bytes) { proto.contentservice.UploadUrlResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.UploadUrlResponse; var msg = new proto.contentservice.UploadUrlResponse();
return proto.contentservice.UploadUrlResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.UploadUrlResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -425,7 +400,6 @@ proto.contentservice.UploadUrlResponse.deserializeBinaryFromReader = function(ms
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -436,7 +410,6 @@ proto.contentservice.UploadUrlResponse.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -448,14 +421,10 @@ proto.contentservice.UploadUrlResponse.serializeBinaryToWriter = function(messag
var f = undefined; var f = undefined;
f = message.getUrl(); f = message.getUrl();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string url = 1; * optional string url = 1;
* @return {string} * @return {string}
@ -464,7 +433,6 @@ proto.contentservice.UploadUrlResponse.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.UploadUrlResponse} returns this * @return {!proto.contentservice.UploadUrlResponse} returns this
@ -473,10 +441,6 @@ proto.contentservice.UploadUrlResponse.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -494,7 +458,6 @@ proto.contentservice.DownloadUrlRequest.prototype.toObject = function(opt_includ
return proto.contentservice.DownloadUrlRequest.toObject(opt_includeInstance, this); return proto.contentservice.DownloadUrlRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -505,10 +468,11 @@ proto.contentservice.DownloadUrlRequest.prototype.toObject = function(opt_includ
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DownloadUrlRequest.toObject = function (includeInstance, msg) { proto.contentservice.DownloadUrlRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""),
contentType: jspb.Message.getFieldWithDefault(msg, 3, "") contentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -518,7 +482,6 @@ proto.contentservice.DownloadUrlRequest.toObject = function(includeInstance, msg
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -526,11 +489,10 @@ proto.contentservice.DownloadUrlRequest.toObject = function(includeInstance, msg
*/ */
proto.contentservice.DownloadUrlRequest.deserializeBinary = function (bytes) { proto.contentservice.DownloadUrlRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DownloadUrlRequest; var msg = new proto.contentservice.DownloadUrlRequest();
return proto.contentservice.DownloadUrlRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DownloadUrlRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -565,7 +527,6 @@ proto.contentservice.DownloadUrlRequest.deserializeBinaryFromReader = function(m
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -576,7 +537,6 @@ proto.contentservice.DownloadUrlRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -588,28 +548,18 @@ proto.contentservice.DownloadUrlRequest.serializeBinaryToWriter = function(messa
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getName(); f = message.getName();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
f = message.getContentType(); f = message.getContentType();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(3, f);
3,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -618,7 +568,6 @@ proto.contentservice.DownloadUrlRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DownloadUrlRequest} returns this * @return {!proto.contentservice.DownloadUrlRequest} returns this
@ -627,7 +576,6 @@ proto.contentservice.DownloadUrlRequest.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string name = 2; * optional string name = 2;
* @return {string} * @return {string}
@ -636,7 +584,6 @@ proto.contentservice.DownloadUrlRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DownloadUrlRequest} returns this * @return {!proto.contentservice.DownloadUrlRequest} returns this
@ -645,7 +592,6 @@ proto.contentservice.DownloadUrlRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
/** /**
* optional string content_type = 3; * optional string content_type = 3;
* @return {string} * @return {string}
@ -654,7 +600,6 @@ proto.contentservice.DownloadUrlRequest.prototype.getContentType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DownloadUrlRequest} returns this * @return {!proto.contentservice.DownloadUrlRequest} returns this
@ -663,10 +608,6 @@ proto.contentservice.DownloadUrlRequest.prototype.setContentType = function(valu
return jspb.Message.setProto3StringField(this, 3, value); return jspb.Message.setProto3StringField(this, 3, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -684,7 +625,6 @@ proto.contentservice.DownloadUrlResponse.prototype.toObject = function(opt_inclu
return proto.contentservice.DownloadUrlResponse.toObject(opt_includeInstance, this); return proto.contentservice.DownloadUrlResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -695,8 +635,9 @@ proto.contentservice.DownloadUrlResponse.prototype.toObject = function(opt_inclu
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DownloadUrlResponse.toObject = function (includeInstance, msg) { proto.contentservice.DownloadUrlResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
url: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -706,7 +647,6 @@ proto.contentservice.DownloadUrlResponse.toObject = function(includeInstance, ms
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -714,11 +654,10 @@ proto.contentservice.DownloadUrlResponse.toObject = function(includeInstance, ms
*/ */
proto.contentservice.DownloadUrlResponse.deserializeBinary = function (bytes) { proto.contentservice.DownloadUrlResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DownloadUrlResponse; var msg = new proto.contentservice.DownloadUrlResponse();
return proto.contentservice.DownloadUrlResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DownloadUrlResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -745,7 +684,6 @@ proto.contentservice.DownloadUrlResponse.deserializeBinaryFromReader = function(
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -756,7 +694,6 @@ proto.contentservice.DownloadUrlResponse.prototype.serializeBinary = function()
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -768,14 +705,10 @@ proto.contentservice.DownloadUrlResponse.serializeBinaryToWriter = function(mess
var f = undefined; var f = undefined;
f = message.getUrl(); f = message.getUrl();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string url = 1; * optional string url = 1;
* @return {string} * @return {string}
@ -784,7 +717,6 @@ proto.contentservice.DownloadUrlResponse.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DownloadUrlResponse} returns this * @return {!proto.contentservice.DownloadUrlResponse} returns this
@ -793,8 +725,6 @@ proto.contentservice.DownloadUrlResponse.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* Oneof group definitions for this message. Each group defines the field * Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all * numbers belonging to that group. When of these fields' value is set, all
@ -811,18 +741,18 @@ proto.contentservice.DeleteRequest.oneofGroups_ = [[2,3]];
proto.contentservice.DeleteRequest.NameCase = { proto.contentservice.DeleteRequest.NameCase = {
NAME_NOT_SET: 0, NAME_NOT_SET: 0,
EXACT: 2, EXACT: 2,
PREFIX: 3 PREFIX: 3,
}; };
/** /**
* @return {proto.contentservice.DeleteRequest.NameCase} * @return {proto.contentservice.DeleteRequest.NameCase}
*/ */
proto.contentservice.DeleteRequest.prototype.getNameCase = function () { proto.contentservice.DeleteRequest.prototype.getNameCase = function () {
return /** @type {proto.contentservice.DeleteRequest.NameCase} */(jspb.Message.computeOneofCase(this, proto.contentservice.DeleteRequest.oneofGroups_[0])); return /** @type {proto.contentservice.DeleteRequest.NameCase} */ (
jspb.Message.computeOneofCase(this, proto.contentservice.DeleteRequest.oneofGroups_[0])
);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -840,7 +770,6 @@ proto.contentservice.DeleteRequest.prototype.toObject = function(opt_includeInst
return proto.contentservice.DeleteRequest.toObject(opt_includeInstance, this); return proto.contentservice.DeleteRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -851,10 +780,11 @@ proto.contentservice.DeleteRequest.prototype.toObject = function(opt_includeInst
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteRequest.toObject = function (includeInstance, msg) { proto.contentservice.DeleteRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
exact: jspb.Message.getFieldWithDefault(msg, 2, ""), exact: jspb.Message.getFieldWithDefault(msg, 2, ""),
prefix: jspb.Message.getFieldWithDefault(msg, 3, "") prefix: jspb.Message.getFieldWithDefault(msg, 3, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -864,7 +794,6 @@ proto.contentservice.DeleteRequest.toObject = function(includeInstance, msg) {
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -872,11 +801,10 @@ proto.contentservice.DeleteRequest.toObject = function(includeInstance, msg) {
*/ */
proto.contentservice.DeleteRequest.deserializeBinary = function (bytes) { proto.contentservice.DeleteRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteRequest; var msg = new proto.contentservice.DeleteRequest();
return proto.contentservice.DeleteRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -911,7 +839,6 @@ proto.contentservice.DeleteRequest.deserializeBinaryFromReader = function(msg, r
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -922,7 +849,6 @@ proto.contentservice.DeleteRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -934,28 +860,18 @@ proto.contentservice.DeleteRequest.serializeBinaryToWriter = function(message, w
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = /** @type {string} */ (jspb.Message.getField(message, 2)); f = /** @type {string} */ (jspb.Message.getField(message, 2));
if (f != null) { if (f != null) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
f = /** @type {string} */ (jspb.Message.getField(message, 3)); f = /** @type {string} */ (jspb.Message.getField(message, 3));
if (f != null) { if (f != null) {
writer.writeString( writer.writeString(3, f);
3,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -964,7 +880,6 @@ proto.contentservice.DeleteRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DeleteRequest} returns this * @return {!proto.contentservice.DeleteRequest} returns this
@ -973,7 +888,6 @@ proto.contentservice.DeleteRequest.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string exact = 2; * optional string exact = 2;
* @return {string} * @return {string}
@ -982,7 +896,6 @@ proto.contentservice.DeleteRequest.prototype.getExact = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DeleteRequest} returns this * @return {!proto.contentservice.DeleteRequest} returns this
@ -991,7 +904,6 @@ proto.contentservice.DeleteRequest.prototype.setExact = function(value) {
return jspb.Message.setOneofField(this, 2, proto.contentservice.DeleteRequest.oneofGroups_[0], value); return jspb.Message.setOneofField(this, 2, proto.contentservice.DeleteRequest.oneofGroups_[0], value);
}; };
/** /**
* Clears the field making it undefined. * Clears the field making it undefined.
* @return {!proto.contentservice.DeleteRequest} returns this * @return {!proto.contentservice.DeleteRequest} returns this
@ -1000,7 +912,6 @@ proto.contentservice.DeleteRequest.prototype.clearExact = function() {
return jspb.Message.setOneofField(this, 2, proto.contentservice.DeleteRequest.oneofGroups_[0], undefined); return jspb.Message.setOneofField(this, 2, proto.contentservice.DeleteRequest.oneofGroups_[0], undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
@ -1009,7 +920,6 @@ proto.contentservice.DeleteRequest.prototype.hasExact = function() {
return jspb.Message.getField(this, 2) != null; return jspb.Message.getField(this, 2) != null;
}; };
/** /**
* optional string prefix = 3; * optional string prefix = 3;
* @return {string} * @return {string}
@ -1018,7 +928,6 @@ proto.contentservice.DeleteRequest.prototype.getPrefix = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DeleteRequest} returns this * @return {!proto.contentservice.DeleteRequest} returns this
@ -1027,7 +936,6 @@ proto.contentservice.DeleteRequest.prototype.setPrefix = function(value) {
return jspb.Message.setOneofField(this, 3, proto.contentservice.DeleteRequest.oneofGroups_[0], value); return jspb.Message.setOneofField(this, 3, proto.contentservice.DeleteRequest.oneofGroups_[0], value);
}; };
/** /**
* Clears the field making it undefined. * Clears the field making it undefined.
* @return {!proto.contentservice.DeleteRequest} returns this * @return {!proto.contentservice.DeleteRequest} returns this
@ -1036,7 +944,6 @@ proto.contentservice.DeleteRequest.prototype.clearPrefix = function() {
return jspb.Message.setOneofField(this, 3, proto.contentservice.DeleteRequest.oneofGroups_[0], undefined); return jspb.Message.setOneofField(this, 3, proto.contentservice.DeleteRequest.oneofGroups_[0], undefined);
}; };
/** /**
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
@ -1045,10 +952,6 @@ proto.contentservice.DeleteRequest.prototype.hasPrefix = function() {
return jspb.Message.getField(this, 3) != null; return jspb.Message.getField(this, 3) != null;
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -1066,7 +969,6 @@ proto.contentservice.DeleteResponse.prototype.toObject = function(opt_includeIns
return proto.contentservice.DeleteResponse.toObject(opt_includeInstance, this); return proto.contentservice.DeleteResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -1077,9 +979,8 @@ proto.contentservice.DeleteResponse.prototype.toObject = function(opt_includeIns
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteResponse.toObject = function (includeInstance, msg) { proto.contentservice.DeleteResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {};
};
if (includeInstance) { if (includeInstance) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
@ -1088,7 +989,6 @@ proto.contentservice.DeleteResponse.toObject = function(includeInstance, msg) {
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -1096,11 +996,10 @@ proto.contentservice.DeleteResponse.toObject = function(includeInstance, msg) {
*/ */
proto.contentservice.DeleteResponse.deserializeBinary = function (bytes) { proto.contentservice.DeleteResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteResponse; var msg = new proto.contentservice.DeleteResponse();
return proto.contentservice.DeleteResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -1123,7 +1022,6 @@ proto.contentservice.DeleteResponse.deserializeBinaryFromReader = function(msg,
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -1134,7 +1032,6 @@ proto.contentservice.DeleteResponse.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -1146,5 +1043,4 @@ proto.contentservice.DeleteResponse.serializeBinaryToWriter = function(message,
var f = undefined; var f = undefined;
}; };
goog.object.extend(exports, proto.contentservice); goog.object.extend(exports, proto.contentservice);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -17,7 +17,8 @@ interface IContentServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
deleteUserContent: IContentServiceService_IDeleteUserContent; deleteUserContent: IContentServiceService_IDeleteUserContent;
} }
interface IContentServiceService_IDeleteUserContent extends grpc.MethodDefinition<content_pb.DeleteUserContentRequest, content_pb.DeleteUserContentResponse> { interface IContentServiceService_IDeleteUserContent
extends grpc.MethodDefinition<content_pb.DeleteUserContentRequest, content_pb.DeleteUserContentResponse> {
path: "/contentservice.ContentService/DeleteUserContent"; path: "/contentservice.ContentService/DeleteUserContent";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -34,14 +35,38 @@ export interface IContentServiceServer extends grpc.UntypedServiceImplementation
} }
export interface IContentServiceClient { export interface IContentServiceClient {
deleteUserContent(request: content_pb.DeleteUserContentRequest, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; deleteUserContent(
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; request: content_pb.DeleteUserContentRequest,
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
deleteUserContent(
request: content_pb.DeleteUserContentRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
deleteUserContent(
request: content_pb.DeleteUserContentRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
} }
export class ContentServiceClient extends grpc.Client implements IContentServiceClient { export class ContentServiceClient extends grpc.Client implements IContentServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public deleteUserContent(request: content_pb.DeleteUserContentRequest, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; public deleteUserContent(
public deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; request: content_pb.DeleteUserContentRequest,
public deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
public deleteUserContent(
request: content_pb.DeleteUserContentRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
public deleteUserContent(
request: content_pb.DeleteUserContentRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
): grpc.ClientUnaryCall;
} }

View File

@ -3,15 +3,15 @@
// Original file comments: // Original file comments:
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// //
'use strict'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var content_pb = require('./content_pb.js'); var content_pb = require("./content_pb.js");
function serialize_contentservice_DeleteUserContentRequest(arg) { function serialize_contentservice_DeleteUserContentRequest(arg) {
if (!(arg instanceof content_pb.DeleteUserContentRequest)) { if (!(arg instanceof content_pb.DeleteUserContentRequest)) {
throw new Error('Expected argument of type contentservice.DeleteUserContentRequest'); throw new Error("Expected argument of type contentservice.DeleteUserContentRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -22,7 +22,7 @@ function deserialize_contentservice_DeleteUserContentRequest(buffer_arg) {
function serialize_contentservice_DeleteUserContentResponse(arg) { function serialize_contentservice_DeleteUserContentResponse(arg) {
if (!(arg instanceof content_pb.DeleteUserContentResponse)) { if (!(arg instanceof content_pb.DeleteUserContentResponse)) {
throw new Error('Expected argument of type contentservice.DeleteUserContentResponse'); throw new Error("Expected argument of type contentservice.DeleteUserContentResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -31,11 +31,10 @@ function deserialize_contentservice_DeleteUserContentResponse(buffer_arg) {
return content_pb.DeleteUserContentResponse.deserializeBinary(new Uint8Array(buffer_arg)); return content_pb.DeleteUserContentResponse.deserializeBinary(new Uint8Array(buffer_arg));
} }
var ContentServiceService = (exports.ContentServiceService = {
var ContentServiceService = exports.ContentServiceService = {
// DeleteUserContent deletes all content associated with a user. // DeleteUserContent deletes all content associated with a user.
deleteUserContent: { deleteUserContent: {
path: '/contentservice.ContentService/DeleteUserContent', path: "/contentservice.ContentService/DeleteUserContent",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: content_pb.DeleteUserContentRequest, requestType: content_pb.DeleteUserContentRequest,
@ -45,6 +44,6 @@ deleteUserContent: {
responseSerialize: serialize_contentservice_DeleteUserContentResponse, responseSerialize: serialize_contentservice_DeleteUserContentResponse,
responseDeserialize: deserialize_contentservice_DeleteUserContentResponse, responseDeserialize: deserialize_contentservice_DeleteUserContentResponse,
}, },
}; });
exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService); exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -23,17 +23,19 @@ export class DeleteUserContentRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteUserContentRequest; static deserializeBinary(bytes: Uint8Array): DeleteUserContentRequest;
static deserializeBinaryFromReader(message: DeleteUserContentRequest, reader: jspb.BinaryReader): DeleteUserContentRequest; static deserializeBinaryFromReader(
message: DeleteUserContentRequest,
reader: jspb.BinaryReader,
): DeleteUserContentRequest;
} }
export namespace DeleteUserContentRequest { export namespace DeleteUserContentRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
} };
} }
export class DeleteUserContentResponse extends jspb.Message { export class DeleteUserContentResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject; toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject; static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject;
@ -41,10 +43,12 @@ export class DeleteUserContentResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteUserContentResponse; static deserializeBinary(bytes: Uint8Array): DeleteUserContentResponse;
static deserializeBinaryFromReader(message: DeleteUserContentResponse, reader: jspb.BinaryReader): DeleteUserContentResponse; static deserializeBinaryFromReader(
message: DeleteUserContentResponse,
reader: jspb.BinaryReader,
): DeleteUserContentResponse;
} }
export namespace DeleteUserContentResponse { export namespace DeleteUserContentResponse {
export type AsObject = { export type AsObject = {};
}
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// source: content.proto // source: content.proto
@ -17,12 +17,14 @@
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
var jspb = require('google-protobuf'); var jspb = require("google-protobuf");
var goog = jspb; var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol('proto.contentservice.DeleteUserContentRequest', null, global); goog.exportSymbol("proto.contentservice.DeleteUserContentRequest", null, global);
goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global); goog.exportSymbol("proto.contentservice.DeleteUserContentResponse", null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -42,7 +44,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteUserContentRequest.displayName = 'proto.contentservice.DeleteUserContentRequest'; proto.contentservice.DeleteUserContentRequest.displayName = "proto.contentservice.DeleteUserContentRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -63,11 +65,9 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteUserContentResponse.displayName = 'proto.contentservice.DeleteUserContentResponse'; proto.contentservice.DeleteUserContentResponse.displayName = "proto.contentservice.DeleteUserContentResponse";
} }
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -85,7 +85,6 @@ proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_
return proto.contentservice.DeleteUserContentRequest.toObject(opt_includeInstance, this); return proto.contentservice.DeleteUserContentRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -96,8 +95,9 @@ proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentRequest.toObject = function (includeInstance, msg) { proto.contentservice.DeleteUserContentRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
ownerId: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -107,7 +107,6 @@ proto.contentservice.DeleteUserContentRequest.toObject = function(includeInstanc
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -115,11 +114,10 @@ proto.contentservice.DeleteUserContentRequest.toObject = function(includeInstanc
*/ */
proto.contentservice.DeleteUserContentRequest.deserializeBinary = function (bytes) { proto.contentservice.DeleteUserContentRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteUserContentRequest; var msg = new proto.contentservice.DeleteUserContentRequest();
return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -146,7 +144,6 @@ proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = func
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -157,7 +154,6 @@ proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = functi
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -169,14 +165,10 @@ proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -185,7 +177,6 @@ proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function()
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DeleteUserContentRequest} returns this * @return {!proto.contentservice.DeleteUserContentRequest} returns this
@ -194,10 +185,6 @@ proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function(va
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -215,7 +202,6 @@ proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt
return proto.contentservice.DeleteUserContentResponse.toObject(opt_includeInstance, this); return proto.contentservice.DeleteUserContentResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -226,9 +212,8 @@ proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentResponse.toObject = function (includeInstance, msg) { proto.contentservice.DeleteUserContentResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {};
};
if (includeInstance) { if (includeInstance) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
@ -237,7 +222,6 @@ proto.contentservice.DeleteUserContentResponse.toObject = function(includeInstan
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -245,11 +229,10 @@ proto.contentservice.DeleteUserContentResponse.toObject = function(includeInstan
*/ */
proto.contentservice.DeleteUserContentResponse.deserializeBinary = function (bytes) { proto.contentservice.DeleteUserContentResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteUserContentResponse; var msg = new proto.contentservice.DeleteUserContentResponse();
return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -272,7 +255,6 @@ proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = fun
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -283,7 +265,6 @@ proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = funct
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -295,5 +276,4 @@ proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = functio
var f = undefined; var f = undefined;
}; };
goog.object.extend(exports, proto.contentservice); goog.object.extend(exports, proto.contentservice);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -18,7 +18,8 @@ interface IHeadlessLogServiceService extends grpc.ServiceDefinition<grpc.Untyped
listLogs: IHeadlessLogServiceService_IListLogs; listLogs: IHeadlessLogServiceService_IListLogs;
} }
interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefinition<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse> { interface IHeadlessLogServiceService_ILogDownloadURL
extends grpc.MethodDefinition<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse> {
path: "/contentservice.HeadlessLogService/LogDownloadURL"; path: "/contentservice.HeadlessLogService/LogDownloadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -27,7 +28,8 @@ interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefiniti
responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>; responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>;
responseDeserialize: grpc.deserialize<headless_log_pb.LogDownloadURLResponse>; responseDeserialize: grpc.deserialize<headless_log_pb.LogDownloadURLResponse>;
} }
interface IHeadlessLogServiceService_IListLogs extends grpc.MethodDefinition<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse> { interface IHeadlessLogServiceService_IListLogs
extends grpc.MethodDefinition<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse> {
path: "/contentservice.HeadlessLogService/ListLogs"; path: "/contentservice.HeadlessLogService/ListLogs";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -45,20 +47,68 @@ export interface IHeadlessLogServiceServer extends grpc.UntypedServiceImplementa
} }
export interface IHeadlessLogServiceClient { export interface IHeadlessLogServiceClient {
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; logDownloadURL(
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; logDownloadURL(
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
logDownloadURL(
request: headless_log_pb.LogDownloadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
listLogs(
request: headless_log_pb.ListLogsRequest,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
listLogs(
request: headless_log_pb.ListLogsRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
listLogs(
request: headless_log_pb.ListLogsRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
} }
export class HeadlessLogServiceClient extends grpc.Client implements IHeadlessLogServiceClient { export class HeadlessLogServiceClient extends grpc.Client implements IHeadlessLogServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; public logDownloadURL(
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
public listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; public logDownloadURL(
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public logDownloadURL(
request: headless_log_pb.LogDownloadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public listLogs(
request: headless_log_pb.ListLogsRequest,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
public listLogs(
request: headless_log_pb.ListLogsRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
public listLogs(
request: headless_log_pb.ListLogsRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
): grpc.ClientUnaryCall;
} }

View File

@ -3,15 +3,15 @@
// Original file comments: // Original file comments:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// //
'use strict'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var headless$log_pb = require('./headless-log_pb.js'); var headless$log_pb = require("./headless-log_pb.js");
function serialize_contentservice_ListLogsRequest(arg) { function serialize_contentservice_ListLogsRequest(arg) {
if (!(arg instanceof headless$log_pb.ListLogsRequest)) { if (!(arg instanceof headless$log_pb.ListLogsRequest)) {
throw new Error('Expected argument of type contentservice.ListLogsRequest'); throw new Error("Expected argument of type contentservice.ListLogsRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -22,7 +22,7 @@ function deserialize_contentservice_ListLogsRequest(buffer_arg) {
function serialize_contentservice_ListLogsResponse(arg) { function serialize_contentservice_ListLogsResponse(arg) {
if (!(arg instanceof headless$log_pb.ListLogsResponse)) { if (!(arg instanceof headless$log_pb.ListLogsResponse)) {
throw new Error('Expected argument of type contentservice.ListLogsResponse'); throw new Error("Expected argument of type contentservice.ListLogsResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -33,7 +33,7 @@ function deserialize_contentservice_ListLogsResponse(buffer_arg) {
function serialize_contentservice_LogDownloadURLRequest(arg) { function serialize_contentservice_LogDownloadURLRequest(arg) {
if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) { if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) {
throw new Error('Expected argument of type contentservice.LogDownloadURLRequest'); throw new Error("Expected argument of type contentservice.LogDownloadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -44,7 +44,7 @@ function deserialize_contentservice_LogDownloadURLRequest(buffer_arg) {
function serialize_contentservice_LogDownloadURLResponse(arg) { function serialize_contentservice_LogDownloadURLResponse(arg) {
if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) { if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) {
throw new Error('Expected argument of type contentservice.LogDownloadURLResponse'); throw new Error("Expected argument of type contentservice.LogDownloadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -53,11 +53,10 @@ function deserialize_contentservice_LogDownloadURLResponse(buffer_arg) {
return headless$log_pb.LogDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg)); return headless$log_pb.LogDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
} }
var HeadlessLogServiceService = (exports.HeadlessLogServiceService = {
var HeadlessLogServiceService = exports.HeadlessLogServiceService = {
// LogDownloadURL provides a URL from where the content of a workspace can be downloaded from // LogDownloadURL provides a URL from where the content of a workspace can be downloaded from
logDownloadURL: { logDownloadURL: {
path: '/contentservice.HeadlessLogService/LogDownloadURL', path: "/contentservice.HeadlessLogService/LogDownloadURL",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: headless$log_pb.LogDownloadURLRequest, requestType: headless$log_pb.LogDownloadURLRequest,
@ -69,7 +68,7 @@ logDownloadURL: {
}, },
// ListLogs returns a list of taskIds for the specified workspace instance // ListLogs returns a list of taskIds for the specified workspace instance
listLogs: { listLogs: {
path: '/contentservice.HeadlessLogService/ListLogs', path: "/contentservice.HeadlessLogService/ListLogs",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: headless$log_pb.ListLogsRequest, requestType: headless$log_pb.ListLogsRequest,
@ -79,6 +78,6 @@ listLogs: {
responseSerialize: serialize_contentservice_ListLogsResponse, responseSerialize: serialize_contentservice_ListLogsResponse,
responseDeserialize: deserialize_contentservice_ListLogsResponse, responseDeserialize: deserialize_contentservice_ListLogsResponse,
}, },
}; });
exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService); exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: contentservice // package: contentservice
@ -29,16 +29,19 @@ export class LogDownloadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LogDownloadURLRequest; static deserializeBinary(bytes: Uint8Array): LogDownloadURLRequest;
static deserializeBinaryFromReader(message: LogDownloadURLRequest, reader: jspb.BinaryReader): LogDownloadURLRequest; static deserializeBinaryFromReader(
message: LogDownloadURLRequest,
reader: jspb.BinaryReader,
): LogDownloadURLRequest;
} }
export namespace LogDownloadURLRequest { export namespace LogDownloadURLRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
workspaceId: string, workspaceId: string;
instanceId: string, instanceId: string;
taskId: string, taskId: string;
} };
} }
export class LogDownloadURLResponse extends jspb.Message { export class LogDownloadURLResponse extends jspb.Message {
@ -52,13 +55,16 @@ export class LogDownloadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LogDownloadURLResponse; static deserializeBinary(bytes: Uint8Array): LogDownloadURLResponse;
static deserializeBinaryFromReader(message: LogDownloadURLResponse, reader: jspb.BinaryReader): LogDownloadURLResponse; static deserializeBinaryFromReader(
message: LogDownloadURLResponse,
reader: jspb.BinaryReader,
): LogDownloadURLResponse;
} }
export namespace LogDownloadURLResponse { export namespace LogDownloadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class ListLogsRequest extends jspb.Message { export class ListLogsRequest extends jspb.Message {
@ -81,10 +87,10 @@ export class ListLogsRequest extends jspb.Message {
export namespace ListLogsRequest { export namespace ListLogsRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
workspaceId: string, workspaceId: string;
instanceId: string, instanceId: string;
} };
} }
export class ListLogsResponse extends jspb.Message { export class ListLogsResponse extends jspb.Message {
@ -105,6 +111,6 @@ export class ListLogsResponse extends jspb.Message {
export namespace ListLogsResponse { export namespace ListLogsResponse {
export type AsObject = { export type AsObject = {
taskIdList: Array<string>, taskIdList: Array<string>;
} };
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// source: headless-log.proto // source: headless-log.proto
@ -17,14 +17,16 @@
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
var jspb = require('google-protobuf'); var jspb = require("google-protobuf");
var goog = jspb; var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol('proto.contentservice.ListLogsRequest', null, global); goog.exportSymbol("proto.contentservice.ListLogsRequest", null, global);
goog.exportSymbol('proto.contentservice.ListLogsResponse', null, global); goog.exportSymbol("proto.contentservice.ListLogsResponse", null, global);
goog.exportSymbol('proto.contentservice.LogDownloadURLRequest', null, global); goog.exportSymbol("proto.contentservice.LogDownloadURLRequest", null, global);
goog.exportSymbol('proto.contentservice.LogDownloadURLResponse', null, global); goog.exportSymbol("proto.contentservice.LogDownloadURLResponse", null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -44,7 +46,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.LogDownloadURLRequest.displayName = 'proto.contentservice.LogDownloadURLRequest'; proto.contentservice.LogDownloadURLRequest.displayName = "proto.contentservice.LogDownloadURLRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -65,7 +67,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.LogDownloadURLResponse.displayName = 'proto.contentservice.LogDownloadURLResponse'; proto.contentservice.LogDownloadURLResponse.displayName = "proto.contentservice.LogDownloadURLResponse";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -86,7 +88,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.ListLogsRequest.displayName = 'proto.contentservice.ListLogsRequest'; proto.contentservice.ListLogsRequest.displayName = "proto.contentservice.ListLogsRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -107,11 +109,9 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.contentservice.ListLogsResponse.displayName = 'proto.contentservice.ListLogsResponse'; proto.contentservice.ListLogsResponse.displayName = "proto.contentservice.ListLogsResponse";
} }
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -129,7 +129,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.toObject = function(opt_inc
return proto.contentservice.LogDownloadURLRequest.toObject(opt_includeInstance, this); return proto.contentservice.LogDownloadURLRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -140,11 +139,12 @@ proto.contentservice.LogDownloadURLRequest.prototype.toObject = function(opt_inc
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.LogDownloadURLRequest.toObject = function (includeInstance, msg) { proto.contentservice.LogDownloadURLRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
workspaceId: jspb.Message.getFieldWithDefault(msg, 2, ""), workspaceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
instanceId: jspb.Message.getFieldWithDefault(msg, 3, ""), instanceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
taskId: jspb.Message.getFieldWithDefault(msg, 4, "") taskId: jspb.Message.getFieldWithDefault(msg, 4, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -154,7 +154,6 @@ proto.contentservice.LogDownloadURLRequest.toObject = function(includeInstance,
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -162,11 +161,10 @@ proto.contentservice.LogDownloadURLRequest.toObject = function(includeInstance,
*/ */
proto.contentservice.LogDownloadURLRequest.deserializeBinary = function (bytes) { proto.contentservice.LogDownloadURLRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.LogDownloadURLRequest; var msg = new proto.contentservice.LogDownloadURLRequest();
return proto.contentservice.LogDownloadURLRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.LogDownloadURLRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -205,7 +203,6 @@ proto.contentservice.LogDownloadURLRequest.deserializeBinaryFromReader = functio
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -216,7 +213,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.serializeBinary = function(
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -228,35 +224,22 @@ proto.contentservice.LogDownloadURLRequest.serializeBinaryToWriter = function(me
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getWorkspaceId(); f = message.getWorkspaceId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
f = message.getInstanceId(); f = message.getInstanceId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(3, f);
3,
f
);
} }
f = message.getTaskId(); f = message.getTaskId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(4, f);
4,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -265,7 +248,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.LogDownloadURLRequest} returns this * @return {!proto.contentservice.LogDownloadURLRequest} returns this
@ -274,7 +256,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.setOwnerId = function(value
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string workspace_id = 2; * optional string workspace_id = 2;
* @return {string} * @return {string}
@ -283,7 +264,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.getWorkspaceId = function()
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.LogDownloadURLRequest} returns this * @return {!proto.contentservice.LogDownloadURLRequest} returns this
@ -292,7 +272,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.setWorkspaceId = function(v
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
/** /**
* optional string instance_id = 3; * optional string instance_id = 3;
* @return {string} * @return {string}
@ -301,7 +280,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.getInstanceId = function()
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.LogDownloadURLRequest} returns this * @return {!proto.contentservice.LogDownloadURLRequest} returns this
@ -310,7 +288,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.setInstanceId = function(va
return jspb.Message.setProto3StringField(this, 3, value); return jspb.Message.setProto3StringField(this, 3, value);
}; };
/** /**
* optional string task_id = 4; * optional string task_id = 4;
* @return {string} * @return {string}
@ -319,7 +296,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.getTaskId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.LogDownloadURLRequest} returns this * @return {!proto.contentservice.LogDownloadURLRequest} returns this
@ -328,10 +304,6 @@ proto.contentservice.LogDownloadURLRequest.prototype.setTaskId = function(value)
return jspb.Message.setProto3StringField(this, 4, value); return jspb.Message.setProto3StringField(this, 4, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -349,7 +321,6 @@ proto.contentservice.LogDownloadURLResponse.prototype.toObject = function(opt_in
return proto.contentservice.LogDownloadURLResponse.toObject(opt_includeInstance, this); return proto.contentservice.LogDownloadURLResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -360,8 +331,9 @@ proto.contentservice.LogDownloadURLResponse.prototype.toObject = function(opt_in
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.LogDownloadURLResponse.toObject = function (includeInstance, msg) { proto.contentservice.LogDownloadURLResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
url: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -371,7 +343,6 @@ proto.contentservice.LogDownloadURLResponse.toObject = function(includeInstance,
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -379,11 +350,10 @@ proto.contentservice.LogDownloadURLResponse.toObject = function(includeInstance,
*/ */
proto.contentservice.LogDownloadURLResponse.deserializeBinary = function (bytes) { proto.contentservice.LogDownloadURLResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.LogDownloadURLResponse; var msg = new proto.contentservice.LogDownloadURLResponse();
return proto.contentservice.LogDownloadURLResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.LogDownloadURLResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -410,7 +380,6 @@ proto.contentservice.LogDownloadURLResponse.deserializeBinaryFromReader = functi
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -421,7 +390,6 @@ proto.contentservice.LogDownloadURLResponse.prototype.serializeBinary = function
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -433,14 +401,10 @@ proto.contentservice.LogDownloadURLResponse.serializeBinaryToWriter = function(m
var f = undefined; var f = undefined;
f = message.getUrl(); f = message.getUrl();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string url = 1; * optional string url = 1;
* @return {string} * @return {string}
@ -449,7 +413,6 @@ proto.contentservice.LogDownloadURLResponse.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.LogDownloadURLResponse} returns this * @return {!proto.contentservice.LogDownloadURLResponse} returns this
@ -458,10 +421,6 @@ proto.contentservice.LogDownloadURLResponse.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -479,7 +438,6 @@ proto.contentservice.ListLogsRequest.prototype.toObject = function(opt_includeIn
return proto.contentservice.ListLogsRequest.toObject(opt_includeInstance, this); return proto.contentservice.ListLogsRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -490,10 +448,11 @@ proto.contentservice.ListLogsRequest.prototype.toObject = function(opt_includeIn
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.ListLogsRequest.toObject = function (includeInstance, msg) { proto.contentservice.ListLogsRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
workspaceId: jspb.Message.getFieldWithDefault(msg, 2, ""), workspaceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
instanceId: jspb.Message.getFieldWithDefault(msg, 3, "") instanceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -503,7 +462,6 @@ proto.contentservice.ListLogsRequest.toObject = function(includeInstance, msg) {
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -511,11 +469,10 @@ proto.contentservice.ListLogsRequest.toObject = function(includeInstance, msg) {
*/ */
proto.contentservice.ListLogsRequest.deserializeBinary = function (bytes) { proto.contentservice.ListLogsRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.ListLogsRequest; var msg = new proto.contentservice.ListLogsRequest();
return proto.contentservice.ListLogsRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.ListLogsRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -550,7 +507,6 @@ proto.contentservice.ListLogsRequest.deserializeBinaryFromReader = function(msg,
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -561,7 +517,6 @@ proto.contentservice.ListLogsRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -573,28 +528,18 @@ proto.contentservice.ListLogsRequest.serializeBinaryToWriter = function(message,
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getWorkspaceId(); f = message.getWorkspaceId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
f = message.getInstanceId(); f = message.getInstanceId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(3, f);
3,
f
);
} }
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
@ -603,7 +548,6 @@ proto.contentservice.ListLogsRequest.prototype.getOwnerId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.ListLogsRequest} returns this * @return {!proto.contentservice.ListLogsRequest} returns this
@ -612,7 +556,6 @@ proto.contentservice.ListLogsRequest.prototype.setOwnerId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string workspace_id = 2; * optional string workspace_id = 2;
* @return {string} * @return {string}
@ -621,7 +564,6 @@ proto.contentservice.ListLogsRequest.prototype.getWorkspaceId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.ListLogsRequest} returns this * @return {!proto.contentservice.ListLogsRequest} returns this
@ -630,7 +572,6 @@ proto.contentservice.ListLogsRequest.prototype.setWorkspaceId = function(value)
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
/** /**
* optional string instance_id = 3; * optional string instance_id = 3;
* @return {string} * @return {string}
@ -639,7 +580,6 @@ proto.contentservice.ListLogsRequest.prototype.getInstanceId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.ListLogsRequest} returns this * @return {!proto.contentservice.ListLogsRequest} returns this
@ -648,8 +588,6 @@ proto.contentservice.ListLogsRequest.prototype.setInstanceId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value); return jspb.Message.setProto3StringField(this, 3, value);
}; };
/** /**
* List of repeated fields within this message type. * List of repeated fields within this message type.
* @private {!Array<number>} * @private {!Array<number>}
@ -657,8 +595,6 @@ proto.contentservice.ListLogsRequest.prototype.setInstanceId = function(value) {
*/ */
proto.contentservice.ListLogsResponse.repeatedFields_ = [1]; proto.contentservice.ListLogsResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -676,7 +612,6 @@ proto.contentservice.ListLogsResponse.prototype.toObject = function(opt_includeI
return proto.contentservice.ListLogsResponse.toObject(opt_includeInstance, this); return proto.contentservice.ListLogsResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -687,8 +622,9 @@ proto.contentservice.ListLogsResponse.prototype.toObject = function(opt_includeI
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.ListLogsResponse.toObject = function (includeInstance, msg) { proto.contentservice.ListLogsResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
taskIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f obj = {
taskIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
}; };
if (includeInstance) { if (includeInstance) {
@ -698,7 +634,6 @@ proto.contentservice.ListLogsResponse.toObject = function(includeInstance, msg)
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -706,11 +641,10 @@ proto.contentservice.ListLogsResponse.toObject = function(includeInstance, msg)
*/ */
proto.contentservice.ListLogsResponse.deserializeBinary = function (bytes) { proto.contentservice.ListLogsResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.ListLogsResponse; var msg = new proto.contentservice.ListLogsResponse();
return proto.contentservice.ListLogsResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.ListLogsResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -737,7 +671,6 @@ proto.contentservice.ListLogsResponse.deserializeBinaryFromReader = function(msg
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -748,7 +681,6 @@ proto.contentservice.ListLogsResponse.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -760,14 +692,10 @@ proto.contentservice.ListLogsResponse.serializeBinaryToWriter = function(message
var f = undefined; var f = undefined;
f = message.getTaskIdList(); f = message.getTaskIdList();
if (f.length > 0) { if (f.length > 0) {
writer.writeRepeatedString( writer.writeRepeatedString(1, f);
1,
f
);
} }
}; };
/** /**
* repeated string task_id = 1; * repeated string task_id = 1;
* @return {!Array<string>} * @return {!Array<string>}
@ -776,7 +704,6 @@ proto.contentservice.ListLogsResponse.prototype.getTaskIdList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
}; };
/** /**
* @param {!Array<string>} value * @param {!Array<string>} value
* @return {!proto.contentservice.ListLogsResponse} returns this * @return {!proto.contentservice.ListLogsResponse} returns this
@ -785,7 +712,6 @@ proto.contentservice.ListLogsResponse.prototype.setTaskIdList = function(value)
return jspb.Message.setField(this, 1, value || []); return jspb.Message.setField(this, 1, value || []);
}; };
/** /**
* @param {string} value * @param {string} value
* @param {number=} opt_index * @param {number=} opt_index
@ -795,7 +721,6 @@ proto.contentservice.ListLogsResponse.prototype.addTaskId = function(value, opt_
return jspb.Message.addToRepeatedField(this, 1, value, opt_index); return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
}; };
/** /**
* Clears the list making it empty but non-null. * Clears the list making it empty but non-null.
* @return {!proto.contentservice.ListLogsResponse} returns this * @return {!proto.contentservice.ListLogsResponse} returns this
@ -804,5 +729,4 @@ proto.contentservice.ListLogsResponse.prototype.clearTaskIdList = function() {
return this.setTaskIdList([]); return this.setTaskIdList([]);
}; };
goog.object.extend(exports, proto.contentservice); goog.object.extend(exports, proto.contentservice);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: ideplugin // package: ideplugin
@ -19,7 +19,8 @@ interface IIDEPluginServiceService extends grpc.ServiceDefinition<grpc.UntypedSe
pluginHash: IIDEPluginServiceService_IPluginHash; pluginHash: IIDEPluginServiceService_IPluginHash;
} }
interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<ideplugin_pb.PluginUploadURLRequest, ideplugin_pb.PluginUploadURLResponse> { interface IIDEPluginServiceService_IUploadURL
extends grpc.MethodDefinition<ideplugin_pb.PluginUploadURLRequest, ideplugin_pb.PluginUploadURLResponse> {
path: "/ideplugin.IDEPluginService/UploadURL"; path: "/ideplugin.IDEPluginService/UploadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -28,7 +29,8 @@ interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<idep
responseSerialize: grpc.serialize<ideplugin_pb.PluginUploadURLResponse>; responseSerialize: grpc.serialize<ideplugin_pb.PluginUploadURLResponse>;
responseDeserialize: grpc.deserialize<ideplugin_pb.PluginUploadURLResponse>; responseDeserialize: grpc.deserialize<ideplugin_pb.PluginUploadURLResponse>;
} }
interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<ideplugin_pb.PluginDownloadURLRequest, ideplugin_pb.PluginDownloadURLResponse> { interface IIDEPluginServiceService_IDownloadURL
extends grpc.MethodDefinition<ideplugin_pb.PluginDownloadURLRequest, ideplugin_pb.PluginDownloadURLResponse> {
path: "/ideplugin.IDEPluginService/DownloadURL"; path: "/ideplugin.IDEPluginService/DownloadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -37,7 +39,8 @@ interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<id
responseSerialize: grpc.serialize<ideplugin_pb.PluginDownloadURLResponse>; responseSerialize: grpc.serialize<ideplugin_pb.PluginDownloadURLResponse>;
responseDeserialize: grpc.deserialize<ideplugin_pb.PluginDownloadURLResponse>; responseDeserialize: grpc.deserialize<ideplugin_pb.PluginDownloadURLResponse>;
} }
interface IIDEPluginServiceService_IPluginHash extends grpc.MethodDefinition<ideplugin_pb.PluginHashRequest, ideplugin_pb.PluginHashResponse> { interface IIDEPluginServiceService_IPluginHash
extends grpc.MethodDefinition<ideplugin_pb.PluginHashRequest, ideplugin_pb.PluginHashResponse> {
path: "/ideplugin.IDEPluginService/PluginHash"; path: "/ideplugin.IDEPluginService/PluginHash";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -56,26 +59,98 @@ export interface IIDEPluginServiceServer extends grpc.UntypedServiceImplementati
} }
export interface IIDEPluginServiceClient { export interface IIDEPluginServiceClient {
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; uploadURL(
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; uploadURL(
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): grpc.ClientUnaryCall;
downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
pluginHash(
request: ideplugin_pb.PluginHashRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
pluginHash(
request: ideplugin_pb.PluginHashRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
pluginHash(
request: ideplugin_pb.PluginHashRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
} }
export class IDEPluginServiceClient extends grpc.Client implements IIDEPluginServiceClient { export class IDEPluginServiceClient extends grpc.Client implements IIDEPluginServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; public uploadURL(
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; public uploadURL(
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
public pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
public pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
public pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): grpc.ClientUnaryCall;
public downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public downloadURL(
request: ideplugin_pb.PluginDownloadURLRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public pluginHash(
request: ideplugin_pb.PluginHashRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
public pluginHash(
request: ideplugin_pb.PluginHashRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
public pluginHash(
request: ideplugin_pb.PluginHashRequest,
metadata: grpc.Metadata,
options: Partial<grpc.CallOptions>,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
): grpc.ClientUnaryCall;
} }

View File

@ -3,15 +3,15 @@
// Original file comments: // Original file comments:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information. // See License.AGPL.txt in the project root for license information.
// //
'use strict'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var ideplugin_pb = require('./ideplugin_pb.js'); var ideplugin_pb = require("./ideplugin_pb.js");
function serialize_ideplugin_PluginDownloadURLRequest(arg) { function serialize_ideplugin_PluginDownloadURLRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) { if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) {
throw new Error('Expected argument of type ideplugin.PluginDownloadURLRequest'); throw new Error("Expected argument of type ideplugin.PluginDownloadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -22,7 +22,7 @@ function deserialize_ideplugin_PluginDownloadURLRequest(buffer_arg) {
function serialize_ideplugin_PluginDownloadURLResponse(arg) { function serialize_ideplugin_PluginDownloadURLResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) { if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) {
throw new Error('Expected argument of type ideplugin.PluginDownloadURLResponse'); throw new Error("Expected argument of type ideplugin.PluginDownloadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -33,7 +33,7 @@ function deserialize_ideplugin_PluginDownloadURLResponse(buffer_arg) {
function serialize_ideplugin_PluginHashRequest(arg) { function serialize_ideplugin_PluginHashRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginHashRequest)) { if (!(arg instanceof ideplugin_pb.PluginHashRequest)) {
throw new Error('Expected argument of type ideplugin.PluginHashRequest'); throw new Error("Expected argument of type ideplugin.PluginHashRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -44,7 +44,7 @@ function deserialize_ideplugin_PluginHashRequest(buffer_arg) {
function serialize_ideplugin_PluginHashResponse(arg) { function serialize_ideplugin_PluginHashResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginHashResponse)) { if (!(arg instanceof ideplugin_pb.PluginHashResponse)) {
throw new Error('Expected argument of type ideplugin.PluginHashResponse'); throw new Error("Expected argument of type ideplugin.PluginHashResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -55,7 +55,7 @@ function deserialize_ideplugin_PluginHashResponse(buffer_arg) {
function serialize_ideplugin_PluginUploadURLRequest(arg) { function serialize_ideplugin_PluginUploadURLRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) { if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) {
throw new Error('Expected argument of type ideplugin.PluginUploadURLRequest'); throw new Error("Expected argument of type ideplugin.PluginUploadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -66,7 +66,7 @@ function deserialize_ideplugin_PluginUploadURLRequest(buffer_arg) {
function serialize_ideplugin_PluginUploadURLResponse(arg) { function serialize_ideplugin_PluginUploadURLResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) { if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) {
throw new Error('Expected argument of type ideplugin.PluginUploadURLResponse'); throw new Error("Expected argument of type ideplugin.PluginUploadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
@ -75,11 +75,10 @@ function deserialize_ideplugin_PluginUploadURLResponse(buffer_arg) {
return ideplugin_pb.PluginUploadURLResponse.deserializeBinary(new Uint8Array(buffer_arg)); return ideplugin_pb.PluginUploadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
} }
var IDEPluginServiceService = (exports.IDEPluginServiceService = {
var IDEPluginServiceService = exports.IDEPluginServiceService = {
// UploadURL provides a URL to which clients can upload the content via HTTP PUT. // UploadURL provides a URL to which clients can upload the content via HTTP PUT.
uploadURL: { uploadURL: {
path: '/ideplugin.IDEPluginService/UploadURL', path: "/ideplugin.IDEPluginService/UploadURL",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: ideplugin_pb.PluginUploadURLRequest, requestType: ideplugin_pb.PluginUploadURLRequest,
@ -91,7 +90,7 @@ uploadURL: {
}, },
// DownloadURL provides a URL from which clients can download the content via HTTP GET. // DownloadURL provides a URL from which clients can download the content via HTTP GET.
downloadURL: { downloadURL: {
path: '/ideplugin.IDEPluginService/DownloadURL', path: "/ideplugin.IDEPluginService/DownloadURL",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: ideplugin_pb.PluginDownloadURLRequest, requestType: ideplugin_pb.PluginDownloadURLRequest,
@ -103,7 +102,7 @@ downloadURL: {
}, },
// PluginHash provides a hash of the plugin // PluginHash provides a hash of the plugin
pluginHash: { pluginHash: {
path: '/ideplugin.IDEPluginService/PluginHash', path: "/ideplugin.IDEPluginService/PluginHash",
requestStream: false, requestStream: false,
responseStream: false, responseStream: false,
requestType: ideplugin_pb.PluginHashRequest, requestType: ideplugin_pb.PluginHashRequest,
@ -113,6 +112,6 @@ pluginHash: {
responseSerialize: serialize_ideplugin_PluginHashResponse, responseSerialize: serialize_ideplugin_PluginHashResponse,
responseDeserialize: deserialize_ideplugin_PluginHashResponse, responseDeserialize: deserialize_ideplugin_PluginHashResponse,
}, },
}; });
exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService); exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// package: ideplugin // package: ideplugin
@ -25,14 +25,17 @@ export class PluginUploadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginUploadURLRequest; static deserializeBinary(bytes: Uint8Array): PluginUploadURLRequest;
static deserializeBinaryFromReader(message: PluginUploadURLRequest, reader: jspb.BinaryReader): PluginUploadURLRequest; static deserializeBinaryFromReader(
message: PluginUploadURLRequest,
reader: jspb.BinaryReader,
): PluginUploadURLRequest;
} }
export namespace PluginUploadURLRequest { export namespace PluginUploadURLRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginUploadURLResponse extends jspb.Message { export class PluginUploadURLResponse extends jspb.Message {
@ -46,13 +49,16 @@ export class PluginUploadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginUploadURLResponse; static deserializeBinary(bytes: Uint8Array): PluginUploadURLResponse;
static deserializeBinaryFromReader(message: PluginUploadURLResponse, reader: jspb.BinaryReader): PluginUploadURLResponse; static deserializeBinaryFromReader(
message: PluginUploadURLResponse,
reader: jspb.BinaryReader,
): PluginUploadURLResponse;
} }
export namespace PluginUploadURLResponse { export namespace PluginUploadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class PluginDownloadURLRequest extends jspb.Message { export class PluginDownloadURLRequest extends jspb.Message {
@ -68,14 +74,17 @@ export class PluginDownloadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLRequest; static deserializeBinary(bytes: Uint8Array): PluginDownloadURLRequest;
static deserializeBinaryFromReader(message: PluginDownloadURLRequest, reader: jspb.BinaryReader): PluginDownloadURLRequest; static deserializeBinaryFromReader(
message: PluginDownloadURLRequest,
reader: jspb.BinaryReader,
): PluginDownloadURLRequest;
} }
export namespace PluginDownloadURLRequest { export namespace PluginDownloadURLRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginDownloadURLResponse extends jspb.Message { export class PluginDownloadURLResponse extends jspb.Message {
@ -89,13 +98,16 @@ export class PluginDownloadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> }; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLResponse; static deserializeBinary(bytes: Uint8Array): PluginDownloadURLResponse;
static deserializeBinaryFromReader(message: PluginDownloadURLResponse, reader: jspb.BinaryReader): PluginDownloadURLResponse; static deserializeBinaryFromReader(
message: PluginDownloadURLResponse,
reader: jspb.BinaryReader,
): PluginDownloadURLResponse;
} }
export namespace PluginDownloadURLResponse { export namespace PluginDownloadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class PluginHashRequest extends jspb.Message { export class PluginHashRequest extends jspb.Message {
@ -116,9 +128,9 @@ export class PluginHashRequest extends jspb.Message {
export namespace PluginHashRequest { export namespace PluginHashRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginHashResponse extends jspb.Message { export class PluginHashResponse extends jspb.Message {
@ -137,6 +149,6 @@ export class PluginHashResponse extends jspb.Message {
export namespace PluginHashResponse { export namespace PluginHashResponse {
export type AsObject = { export type AsObject = {
hash: string, hash: string;
} };
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
// source: ideplugin.proto // source: ideplugin.proto
@ -17,16 +17,18 @@
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
var jspb = require('google-protobuf'); var jspb = require("google-protobuf");
var goog = jspb; var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol('proto.ideplugin.PluginDownloadURLRequest', null, global); goog.exportSymbol("proto.ideplugin.PluginDownloadURLRequest", null, global);
goog.exportSymbol('proto.ideplugin.PluginDownloadURLResponse', null, global); goog.exportSymbol("proto.ideplugin.PluginDownloadURLResponse", null, global);
goog.exportSymbol('proto.ideplugin.PluginHashRequest', null, global); goog.exportSymbol("proto.ideplugin.PluginHashRequest", null, global);
goog.exportSymbol('proto.ideplugin.PluginHashResponse', null, global); goog.exportSymbol("proto.ideplugin.PluginHashResponse", null, global);
goog.exportSymbol('proto.ideplugin.PluginUploadURLRequest', null, global); goog.exportSymbol("proto.ideplugin.PluginUploadURLRequest", null, global);
goog.exportSymbol('proto.ideplugin.PluginUploadURLResponse', null, global); goog.exportSymbol("proto.ideplugin.PluginUploadURLResponse", null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @param {Array=} opt_data Optional initial data array, typically from a
@ -46,7 +48,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginUploadURLRequest.displayName = 'proto.ideplugin.PluginUploadURLRequest'; proto.ideplugin.PluginUploadURLRequest.displayName = "proto.ideplugin.PluginUploadURLRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -67,7 +69,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginUploadURLResponse.displayName = 'proto.ideplugin.PluginUploadURLResponse'; proto.ideplugin.PluginUploadURLResponse.displayName = "proto.ideplugin.PluginUploadURLResponse";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -88,7 +90,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginDownloadURLRequest.displayName = 'proto.ideplugin.PluginDownloadURLRequest'; proto.ideplugin.PluginDownloadURLRequest.displayName = "proto.ideplugin.PluginDownloadURLRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -109,7 +111,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginDownloadURLResponse.displayName = 'proto.ideplugin.PluginDownloadURLResponse'; proto.ideplugin.PluginDownloadURLResponse.displayName = "proto.ideplugin.PluginDownloadURLResponse";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -130,7 +132,7 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginHashRequest.displayName = 'proto.ideplugin.PluginHashRequest'; proto.ideplugin.PluginHashRequest.displayName = "proto.ideplugin.PluginHashRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -151,11 +153,9 @@ if (goog.DEBUG && !COMPILED) {
* @public * @public
* @override * @override
*/ */
proto.ideplugin.PluginHashResponse.displayName = 'proto.ideplugin.PluginHashResponse'; proto.ideplugin.PluginHashResponse.displayName = "proto.ideplugin.PluginHashResponse";
} }
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -173,7 +173,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.toObject = function(opt_include
return proto.ideplugin.PluginUploadURLRequest.toObject(opt_includeInstance, this); return proto.ideplugin.PluginUploadURLRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -184,9 +183,10 @@ proto.ideplugin.PluginUploadURLRequest.prototype.toObject = function(opt_include
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginUploadURLRequest.toObject = function (includeInstance, msg) { proto.ideplugin.PluginUploadURLRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
bucket: jspb.Message.getFieldWithDefault(msg, 1, ""), bucket: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, "") name: jspb.Message.getFieldWithDefault(msg, 2, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -196,7 +196,6 @@ proto.ideplugin.PluginUploadURLRequest.toObject = function(includeInstance, msg)
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -204,11 +203,10 @@ proto.ideplugin.PluginUploadURLRequest.toObject = function(includeInstance, msg)
*/ */
proto.ideplugin.PluginUploadURLRequest.deserializeBinary = function (bytes) { proto.ideplugin.PluginUploadURLRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginUploadURLRequest; var msg = new proto.ideplugin.PluginUploadURLRequest();
return proto.ideplugin.PluginUploadURLRequest.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginUploadURLRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -239,7 +237,6 @@ proto.ideplugin.PluginUploadURLRequest.deserializeBinaryFromReader = function(ms
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -250,7 +247,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -262,21 +258,14 @@ proto.ideplugin.PluginUploadURLRequest.serializeBinaryToWriter = function(messag
var f = undefined; var f = undefined;
f = message.getBucket(); f = message.getBucket();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getName(); f = message.getName();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
}; };
/** /**
* optional string bucket = 1; * optional string bucket = 1;
* @return {string} * @return {string}
@ -285,7 +274,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.getBucket = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginUploadURLRequest} returns this * @return {!proto.ideplugin.PluginUploadURLRequest} returns this
@ -294,7 +282,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.setBucket = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string name = 2; * optional string name = 2;
* @return {string} * @return {string}
@ -303,7 +290,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginUploadURLRequest} returns this * @return {!proto.ideplugin.PluginUploadURLRequest} returns this
@ -312,10 +298,6 @@ proto.ideplugin.PluginUploadURLRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -333,7 +315,6 @@ proto.ideplugin.PluginUploadURLResponse.prototype.toObject = function(opt_includ
return proto.ideplugin.PluginUploadURLResponse.toObject(opt_includeInstance, this); return proto.ideplugin.PluginUploadURLResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -344,8 +325,9 @@ proto.ideplugin.PluginUploadURLResponse.prototype.toObject = function(opt_includ
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginUploadURLResponse.toObject = function (includeInstance, msg) { proto.ideplugin.PluginUploadURLResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
url: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -355,7 +337,6 @@ proto.ideplugin.PluginUploadURLResponse.toObject = function(includeInstance, msg
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -363,11 +344,10 @@ proto.ideplugin.PluginUploadURLResponse.toObject = function(includeInstance, msg
*/ */
proto.ideplugin.PluginUploadURLResponse.deserializeBinary = function (bytes) { proto.ideplugin.PluginUploadURLResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginUploadURLResponse; var msg = new proto.ideplugin.PluginUploadURLResponse();
return proto.ideplugin.PluginUploadURLResponse.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginUploadURLResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -394,7 +374,6 @@ proto.ideplugin.PluginUploadURLResponse.deserializeBinaryFromReader = function(m
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -405,7 +384,6 @@ proto.ideplugin.PluginUploadURLResponse.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -417,14 +395,10 @@ proto.ideplugin.PluginUploadURLResponse.serializeBinaryToWriter = function(messa
var f = undefined; var f = undefined;
f = message.getUrl(); f = message.getUrl();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string url = 1; * optional string url = 1;
* @return {string} * @return {string}
@ -433,7 +407,6 @@ proto.ideplugin.PluginUploadURLResponse.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginUploadURLResponse} returns this * @return {!proto.ideplugin.PluginUploadURLResponse} returns this
@ -442,10 +415,6 @@ proto.ideplugin.PluginUploadURLResponse.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -463,7 +432,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.toObject = function(opt_inclu
return proto.ideplugin.PluginDownloadURLRequest.toObject(opt_includeInstance, this); return proto.ideplugin.PluginDownloadURLRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -474,9 +442,10 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.toObject = function(opt_inclu
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginDownloadURLRequest.toObject = function (includeInstance, msg) { proto.ideplugin.PluginDownloadURLRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
bucket: jspb.Message.getFieldWithDefault(msg, 1, ""), bucket: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, "") name: jspb.Message.getFieldWithDefault(msg, 2, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -486,7 +455,6 @@ proto.ideplugin.PluginDownloadURLRequest.toObject = function(includeInstance, ms
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -494,11 +462,10 @@ proto.ideplugin.PluginDownloadURLRequest.toObject = function(includeInstance, ms
*/ */
proto.ideplugin.PluginDownloadURLRequest.deserializeBinary = function (bytes) { proto.ideplugin.PluginDownloadURLRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginDownloadURLRequest; var msg = new proto.ideplugin.PluginDownloadURLRequest();
return proto.ideplugin.PluginDownloadURLRequest.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginDownloadURLRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -529,7 +496,6 @@ proto.ideplugin.PluginDownloadURLRequest.deserializeBinaryFromReader = function(
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -540,7 +506,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.serializeBinary = function()
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -552,21 +517,14 @@ proto.ideplugin.PluginDownloadURLRequest.serializeBinaryToWriter = function(mess
var f = undefined; var f = undefined;
f = message.getBucket(); f = message.getBucket();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getName(); f = message.getName();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
}; };
/** /**
* optional string bucket = 1; * optional string bucket = 1;
* @return {string} * @return {string}
@ -575,7 +533,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.getBucket = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginDownloadURLRequest} returns this * @return {!proto.ideplugin.PluginDownloadURLRequest} returns this
@ -584,7 +541,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.setBucket = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string name = 2; * optional string name = 2;
* @return {string} * @return {string}
@ -593,7 +549,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginDownloadURLRequest} returns this * @return {!proto.ideplugin.PluginDownloadURLRequest} returns this
@ -602,10 +557,6 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -623,7 +574,6 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.toObject = function(opt_incl
return proto.ideplugin.PluginDownloadURLResponse.toObject(opt_includeInstance, this); return proto.ideplugin.PluginDownloadURLResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -634,8 +584,9 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.toObject = function(opt_incl
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginDownloadURLResponse.toObject = function (includeInstance, msg) { proto.ideplugin.PluginDownloadURLResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
url: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -645,7 +596,6 @@ proto.ideplugin.PluginDownloadURLResponse.toObject = function(includeInstance, m
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -653,11 +603,10 @@ proto.ideplugin.PluginDownloadURLResponse.toObject = function(includeInstance, m
*/ */
proto.ideplugin.PluginDownloadURLResponse.deserializeBinary = function (bytes) { proto.ideplugin.PluginDownloadURLResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginDownloadURLResponse; var msg = new proto.ideplugin.PluginDownloadURLResponse();
return proto.ideplugin.PluginDownloadURLResponse.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginDownloadURLResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -684,7 +633,6 @@ proto.ideplugin.PluginDownloadURLResponse.deserializeBinaryFromReader = function
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -695,7 +643,6 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.serializeBinary = function()
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -707,14 +654,10 @@ proto.ideplugin.PluginDownloadURLResponse.serializeBinaryToWriter = function(mes
var f = undefined; var f = undefined;
f = message.getUrl(); f = message.getUrl();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string url = 1; * optional string url = 1;
* @return {string} * @return {string}
@ -723,7 +666,6 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginDownloadURLResponse} returns this * @return {!proto.ideplugin.PluginDownloadURLResponse} returns this
@ -732,10 +674,6 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -753,7 +691,6 @@ proto.ideplugin.PluginHashRequest.prototype.toObject = function(opt_includeInsta
return proto.ideplugin.PluginHashRequest.toObject(opt_includeInstance, this); return proto.ideplugin.PluginHashRequest.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -764,9 +701,10 @@ proto.ideplugin.PluginHashRequest.prototype.toObject = function(opt_includeInsta
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginHashRequest.toObject = function (includeInstance, msg) { proto.ideplugin.PluginHashRequest.toObject = function (includeInstance, msg) {
var f, obj = { var f,
obj = {
bucket: jspb.Message.getFieldWithDefault(msg, 1, ""), bucket: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, "") name: jspb.Message.getFieldWithDefault(msg, 2, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -776,7 +714,6 @@ proto.ideplugin.PluginHashRequest.toObject = function(includeInstance, msg) {
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -784,11 +721,10 @@ proto.ideplugin.PluginHashRequest.toObject = function(includeInstance, msg) {
*/ */
proto.ideplugin.PluginHashRequest.deserializeBinary = function (bytes) { proto.ideplugin.PluginHashRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginHashRequest; var msg = new proto.ideplugin.PluginHashRequest();
return proto.ideplugin.PluginHashRequest.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginHashRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -819,7 +755,6 @@ proto.ideplugin.PluginHashRequest.deserializeBinaryFromReader = function(msg, re
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -830,7 +765,6 @@ proto.ideplugin.PluginHashRequest.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -842,21 +776,14 @@ proto.ideplugin.PluginHashRequest.serializeBinaryToWriter = function(message, wr
var f = undefined; var f = undefined;
f = message.getBucket(); f = message.getBucket();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
f = message.getName(); f = message.getName();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(2, f);
2,
f
);
} }
}; };
/** /**
* optional string bucket = 1; * optional string bucket = 1;
* @return {string} * @return {string}
@ -865,7 +792,6 @@ proto.ideplugin.PluginHashRequest.prototype.getBucket = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginHashRequest} returns this * @return {!proto.ideplugin.PluginHashRequest} returns this
@ -874,7 +800,6 @@ proto.ideplugin.PluginHashRequest.prototype.setBucket = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
/** /**
* optional string name = 2; * optional string name = 2;
* @return {string} * @return {string}
@ -883,7 +808,6 @@ proto.ideplugin.PluginHashRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginHashRequest} returns this * @return {!proto.ideplugin.PluginHashRequest} returns this
@ -892,10 +816,6 @@ proto.ideplugin.PluginHashRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
@ -913,7 +833,6 @@ proto.ideplugin.PluginHashResponse.prototype.toObject = function(opt_includeInst
return proto.ideplugin.PluginHashResponse.toObject(opt_includeInstance, this); return proto.ideplugin.PluginHashResponse.toObject(opt_includeInstance, this);
}; };
/** /**
* Static version of the {@see toObject} method. * Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@ -924,8 +843,9 @@ proto.ideplugin.PluginHashResponse.prototype.toObject = function(opt_includeInst
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginHashResponse.toObject = function (includeInstance, msg) { proto.ideplugin.PluginHashResponse.toObject = function (includeInstance, msg) {
var f, obj = { var f,
hash: jspb.Message.getFieldWithDefault(msg, 1, "") obj = {
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
}; };
if (includeInstance) { if (includeInstance) {
@ -935,7 +855,6 @@ proto.ideplugin.PluginHashResponse.toObject = function(includeInstance, msg) {
}; };
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
@ -943,11 +862,10 @@ proto.ideplugin.PluginHashResponse.toObject = function(includeInstance, msg) {
*/ */
proto.ideplugin.PluginHashResponse.deserializeBinary = function (bytes) { proto.ideplugin.PluginHashResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ideplugin.PluginHashResponse; var msg = new proto.ideplugin.PluginHashResponse();
return proto.ideplugin.PluginHashResponse.deserializeBinaryFromReader(msg, reader); return proto.ideplugin.PluginHashResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
@ -974,7 +892,6 @@ proto.ideplugin.PluginHashResponse.deserializeBinaryFromReader = function(msg, r
return msg; return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
@ -985,7 +902,6 @@ proto.ideplugin.PluginHashResponse.prototype.serializeBinary = function() {
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -997,14 +913,10 @@ proto.ideplugin.PluginHashResponse.serializeBinaryToWriter = function(message, w
var f = undefined; var f = undefined;
f = message.getHash(); f = message.getHash();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1,
f
);
} }
}; };
/** /**
* optional string hash = 1; * optional string hash = 1;
* @return {string} * @return {string}
@ -1013,7 +925,6 @@ proto.ideplugin.PluginHashResponse.prototype.getHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.ideplugin.PluginHashResponse} returns this * @return {!proto.ideplugin.PluginHashResponse} returns this
@ -1022,5 +933,4 @@ proto.ideplugin.PluginHashResponse.prototype.setHash = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
goog.object.extend(exports, proto.ideplugin); goog.object.extend(exports, proto.ideplugin);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2020 Gitpod GmbH. All rights reserved. * Copyright (c) 2020 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information. * See License.AGPL.txt in the project root for license information.
*/ */
export * from './initializer_pb'; export * from "./initializer_pb";

Some files were not shown because too many files have changed in this diff Show More