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,
@ -90,8 +89,8 @@ uploadUrl: {
responseDeserialize: deserialize_contentservice_UploadUrlResponse, responseDeserialize: deserialize_contentservice_UploadUrlResponse,
}, },
// 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,
@ -102,8 +101,8 @@ downloadUrl: {
responseDeserialize: deserialize_contentservice_DownloadUrlResponse, responseDeserialize: deserialize_contentservice_DownloadUrlResponse,
}, },
// 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
@ -23,8 +23,8 @@ export class UploadUrlRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UploadUrlRequest.AsObject; toObject(includeInstance?: boolean): UploadUrlRequest.AsObject;
static toObject(includeInstance: boolean, msg: UploadUrlRequest): UploadUrlRequest.AsObject; static toObject(includeInstance: boolean, msg: UploadUrlRequest): UploadUrlRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: UploadUrlRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: UploadUrlRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UploadUrlRequest; static deserializeBinary(bytes: Uint8Array): UploadUrlRequest;
static deserializeBinaryFromReader(message: UploadUrlRequest, reader: jspb.BinaryReader): UploadUrlRequest; static deserializeBinaryFromReader(message: UploadUrlRequest, reader: jspb.BinaryReader): UploadUrlRequest;
@ -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 {
@ -45,8 +45,8 @@ export class UploadUrlResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UploadUrlResponse.AsObject; toObject(includeInstance?: boolean): UploadUrlResponse.AsObject;
static toObject(includeInstance: boolean, msg: UploadUrlResponse): UploadUrlResponse.AsObject; static toObject(includeInstance: boolean, msg: UploadUrlResponse): UploadUrlResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: UploadUrlResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: UploadUrlResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UploadUrlResponse; static deserializeBinary(bytes: Uint8Array): UploadUrlResponse;
static deserializeBinaryFromReader(message: UploadUrlResponse, reader: jspb.BinaryReader): UploadUrlResponse; static deserializeBinaryFromReader(message: UploadUrlResponse, reader: jspb.BinaryReader): UploadUrlResponse;
@ -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 {
@ -69,8 +69,8 @@ export class DownloadUrlRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownloadUrlRequest.AsObject; toObject(includeInstance?: boolean): DownloadUrlRequest.AsObject;
static toObject(includeInstance: boolean, msg: DownloadUrlRequest): DownloadUrlRequest.AsObject; static toObject(includeInstance: boolean, msg: DownloadUrlRequest): DownloadUrlRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DownloadUrlRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DownloadUrlRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DownloadUrlRequest; static deserializeBinary(bytes: Uint8Array): DownloadUrlRequest;
static deserializeBinaryFromReader(message: DownloadUrlRequest, reader: jspb.BinaryReader): DownloadUrlRequest; static deserializeBinaryFromReader(message: DownloadUrlRequest, reader: jspb.BinaryReader): DownloadUrlRequest;
@ -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 {
@ -91,8 +91,8 @@ export class DownloadUrlResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownloadUrlResponse.AsObject; toObject(includeInstance?: boolean): DownloadUrlResponse.AsObject;
static toObject(includeInstance: boolean, msg: DownloadUrlResponse): DownloadUrlResponse.AsObject; static toObject(includeInstance: boolean, msg: DownloadUrlResponse): DownloadUrlResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DownloadUrlResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DownloadUrlResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DownloadUrlResponse; static deserializeBinary(bytes: Uint8Array): DownloadUrlResponse;
static deserializeBinaryFromReader(message: DownloadUrlResponse, reader: jspb.BinaryReader): DownloadUrlResponse; static deserializeBinaryFromReader(message: DownloadUrlResponse, reader: jspb.BinaryReader): DownloadUrlResponse;
@ -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 {
@ -123,8 +123,8 @@ export class DeleteRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteRequest.AsObject; toObject(includeInstance?: boolean): DeleteRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteRequest; static deserializeBinary(bytes: Uint8Array): DeleteRequest;
static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest; static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest;
@ -132,32 +132,29 @@ 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;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteResponse; static deserializeBinary(bytes: Uint8Array): DeleteResponse;
static deserializeBinaryFromReader(message: DeleteResponse, reader: jspb.BinaryReader): DeleteResponse; static deserializeBinaryFromReader(message: DeleteResponse, reader: jspb.BinaryReader): DeleteResponse;
} }
export namespace DeleteResponse { export namespace DeleteResponse {
export type AsObject = { export type AsObject = {};
}
} }

File diff suppressed because it is too large Load Diff

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
@ -19,32 +19,36 @@ export class DeleteUserContentRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserContentRequest.AsObject; toObject(includeInstance?: boolean): DeleteUserContentRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserContentRequest): DeleteUserContentRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteUserContentRequest): DeleteUserContentRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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
@ -33,7 +35,7 @@ goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.DeleteUserContentRequest = function(opt_data) { proto.contentservice.DeleteUserContentRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.DeleteUserContentRequest, jspb.Message); goog.inherits(proto.contentservice.DeleteUserContentRequest, jspb.Message);
@ -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.
@ -54,7 +56,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.DeleteUserContentResponse = function(opt_data) { proto.contentservice.DeleteUserContentResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.DeleteUserContentResponse, jspb.Message); goog.inherits(proto.contentservice.DeleteUserContentResponse, jspb.Message);
@ -63,13 +65,11 @@ 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -81,12 +81,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_includeInstance) { proto.contentservice.DeleteUserContentRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -95,31 +94,30 @@ proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.DeleteUserContentRequest} * @return {!proto.contentservice.DeleteUserContentRequest}
*/ */
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.
@ -127,7 +125,7 @@ proto.contentservice.DeleteUserContentRequest.deserializeBinary = function(bytes
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.DeleteUserContentRequest} * @return {!proto.contentservice.DeleteUserContentRequest}
*/ */
proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -146,18 +144,16 @@ 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}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function() { proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer); proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer);
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.
@ -165,41 +161,32 @@ proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = functi
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function(message, writer) { proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function() { 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
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function(value) { proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -211,12 +198,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt_includeInstance) { proto.contentservice.DeleteUserContentResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -225,31 +211,28 @@ proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt
* @return {!Object} * @return {!Object}
* @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;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.DeleteUserContentResponse} * @return {!proto.contentservice.DeleteUserContentResponse}
*/ */
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.
@ -257,7 +240,7 @@ proto.contentservice.DeleteUserContentResponse.deserializeBinary = function(byte
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.DeleteUserContentResponse} * @return {!proto.contentservice.DeleteUserContentResponse}
*/ */
proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -272,18 +255,16 @@ 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}
*/ */
proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function() { proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer); proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer);
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.
@ -291,9 +272,8 @@ proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = funct
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function(message, writer) { proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function (message, writer) {
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,
@ -68,8 +67,8 @@ logDownloadURL: {
responseDeserialize: deserialize_contentservice_LogDownloadURLResponse, responseDeserialize: deserialize_contentservice_LogDownloadURLResponse,
}, },
// 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
@ -25,20 +25,23 @@ export class LogDownloadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogDownloadURLRequest.AsObject; toObject(includeInstance?: boolean): LogDownloadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: LogDownloadURLRequest): LogDownloadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: LogDownloadURLRequest): LogDownloadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -48,17 +51,20 @@ export class LogDownloadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogDownloadURLResponse.AsObject; toObject(includeInstance?: boolean): LogDownloadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: LogDownloadURLResponse): LogDownloadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: LogDownloadURLResponse): LogDownloadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -72,8 +78,8 @@ export class ListLogsRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListLogsRequest.AsObject; toObject(includeInstance?: boolean): ListLogsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListLogsRequest): ListLogsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListLogsRequest): ListLogsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: ListLogsRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: ListLogsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListLogsRequest; static deserializeBinary(bytes: Uint8Array): ListLogsRequest;
static deserializeBinaryFromReader(message: ListLogsRequest, reader: jspb.BinaryReader): ListLogsRequest; static deserializeBinaryFromReader(message: ListLogsRequest, reader: jspb.BinaryReader): ListLogsRequest;
@ -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 {
@ -96,8 +102,8 @@ export class ListLogsResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListLogsResponse.AsObject; toObject(includeInstance?: boolean): ListLogsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListLogsResponse): ListLogsResponse.AsObject; static toObject(includeInstance: boolean, msg: ListLogsResponse): ListLogsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: ListLogsResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: ListLogsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListLogsResponse; static deserializeBinary(bytes: Uint8Array): ListLogsResponse;
static deserializeBinaryFromReader(message: ListLogsResponse, reader: jspb.BinaryReader): ListLogsResponse; static deserializeBinaryFromReader(message: ListLogsResponse, reader: jspb.BinaryReader): ListLogsResponse;
@ -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
@ -35,7 +37,7 @@ goog.exportSymbol('proto.contentservice.LogDownloadURLResponse', null, global);
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.LogDownloadURLRequest = function(opt_data) { proto.contentservice.LogDownloadURLRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.LogDownloadURLRequest, jspb.Message); goog.inherits(proto.contentservice.LogDownloadURLRequest, jspb.Message);
@ -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.
@ -56,7 +58,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.LogDownloadURLResponse = function(opt_data) { proto.contentservice.LogDownloadURLResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.LogDownloadURLResponse, jspb.Message); goog.inherits(proto.contentservice.LogDownloadURLResponse, jspb.Message);
@ -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.
@ -77,7 +79,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.ListLogsRequest = function(opt_data) { proto.contentservice.ListLogsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.ListLogsRequest, jspb.Message); goog.inherits(proto.contentservice.ListLogsRequest, jspb.Message);
@ -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.
@ -98,7 +100,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.ListLogsResponse = function(opt_data) { proto.contentservice.ListLogsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.contentservice.ListLogsResponse.repeatedFields_, null); jspb.Message.initialize(this, opt_data, 0, -1, proto.contentservice.ListLogsResponse.repeatedFields_, null);
}; };
goog.inherits(proto.contentservice.ListLogsResponse, jspb.Message); goog.inherits(proto.contentservice.ListLogsResponse, jspb.Message);
@ -107,13 +109,11 @@ 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -125,12 +125,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.toObject = function(opt_includeInstance) { proto.contentservice.LogDownloadURLRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -139,34 +138,33 @@ proto.contentservice.LogDownloadURLRequest.prototype.toObject = function(opt_inc
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.LogDownloadURLRequest} * @return {!proto.contentservice.LogDownloadURLRequest}
*/ */
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.
@ -174,7 +172,7 @@ proto.contentservice.LogDownloadURLRequest.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.LogDownloadURLRequest} * @return {!proto.contentservice.LogDownloadURLRequest}
*/ */
proto.contentservice.LogDownloadURLRequest.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.LogDownloadURLRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -205,18 +203,16 @@ 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}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.serializeBinary = function() { proto.contentservice.LogDownloadURLRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.LogDownloadURLRequest.serializeBinaryToWriter(this, writer); proto.contentservice.LogDownloadURLRequest.serializeBinaryToWriter(this, writer);
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.
@ -224,116 +220,92 @@ proto.contentservice.LogDownloadURLRequest.prototype.serializeBinary = function(
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.LogDownloadURLRequest.serializeBinaryToWriter = function(message, writer) { proto.contentservice.LogDownloadURLRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.getOwnerId = function() { 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
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.setOwnerId = function(value) { 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}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.getWorkspaceId = function() { 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
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.setWorkspaceId = function(value) { proto.contentservice.LogDownloadURLRequest.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}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.getInstanceId = function() { 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
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.setInstanceId = function(value) { proto.contentservice.LogDownloadURLRequest.prototype.setInstanceId = function (value) {
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}
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.getTaskId = function() { 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
*/ */
proto.contentservice.LogDownloadURLRequest.prototype.setTaskId = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -345,12 +317,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.LogDownloadURLResponse.prototype.toObject = function(opt_includeInstance) { proto.contentservice.LogDownloadURLResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -359,31 +330,30 @@ proto.contentservice.LogDownloadURLResponse.prototype.toObject = function(opt_in
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.LogDownloadURLResponse} * @return {!proto.contentservice.LogDownloadURLResponse}
*/ */
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.
@ -391,7 +361,7 @@ proto.contentservice.LogDownloadURLResponse.deserializeBinary = function(bytes)
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.LogDownloadURLResponse} * @return {!proto.contentservice.LogDownloadURLResponse}
*/ */
proto.contentservice.LogDownloadURLResponse.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.LogDownloadURLResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -410,18 +380,16 @@ 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}
*/ */
proto.contentservice.LogDownloadURLResponse.prototype.serializeBinary = function() { proto.contentservice.LogDownloadURLResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.LogDownloadURLResponse.serializeBinaryToWriter(this, writer); proto.contentservice.LogDownloadURLResponse.serializeBinaryToWriter(this, writer);
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.
@ -429,41 +397,32 @@ proto.contentservice.LogDownloadURLResponse.prototype.serializeBinary = function
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.LogDownloadURLResponse.serializeBinaryToWriter = function(message, writer) { proto.contentservice.LogDownloadURLResponse.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.contentservice.LogDownloadURLResponse.prototype.getUrl = function() { 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
*/ */
proto.contentservice.LogDownloadURLResponse.prototype.setUrl = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -475,12 +434,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.ListLogsRequest.prototype.toObject = function(opt_includeInstance) { proto.contentservice.ListLogsRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -489,33 +447,32 @@ proto.contentservice.ListLogsRequest.prototype.toObject = function(opt_includeIn
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.ListLogsRequest} * @return {!proto.contentservice.ListLogsRequest}
*/ */
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.
@ -523,7 +480,7 @@ proto.contentservice.ListLogsRequest.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.ListLogsRequest} * @return {!proto.contentservice.ListLogsRequest}
*/ */
proto.contentservice.ListLogsRequest.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.ListLogsRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -550,18 +507,16 @@ 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}
*/ */
proto.contentservice.ListLogsRequest.prototype.serializeBinary = function() { proto.contentservice.ListLogsRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.ListLogsRequest.serializeBinaryToWriter(this, writer); proto.contentservice.ListLogsRequest.serializeBinaryToWriter(this, writer);
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.
@ -569,87 +524,70 @@ proto.contentservice.ListLogsRequest.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.ListLogsRequest.serializeBinaryToWriter = function(message, writer) { proto.contentservice.ListLogsRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.contentservice.ListLogsRequest.prototype.getOwnerId = function() { 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
*/ */
proto.contentservice.ListLogsRequest.prototype.setOwnerId = function(value) { 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}
*/ */
proto.contentservice.ListLogsRequest.prototype.getWorkspaceId = function() { 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
*/ */
proto.contentservice.ListLogsRequest.prototype.setWorkspaceId = function(value) { 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}
*/ */
proto.contentservice.ListLogsRequest.prototype.getInstanceId = function() { 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
*/ */
proto.contentservice.ListLogsRequest.prototype.setInstanceId = function(value) { 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,10 +595,8 @@ 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -672,12 +608,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.ListLogsResponse.prototype.toObject = function(opt_includeInstance) { proto.contentservice.ListLogsResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -686,31 +621,30 @@ proto.contentservice.ListLogsResponse.prototype.toObject = function(opt_includeI
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.contentservice.ListLogsResponse} * @return {!proto.contentservice.ListLogsResponse}
*/ */
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.
@ -718,7 +652,7 @@ proto.contentservice.ListLogsResponse.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.ListLogsResponse} * @return {!proto.contentservice.ListLogsResponse}
*/ */
proto.contentservice.ListLogsResponse.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.ListLogsResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -737,18 +671,16 @@ 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}
*/ */
proto.contentservice.ListLogsResponse.prototype.serializeBinary = function() { proto.contentservice.ListLogsResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.ListLogsResponse.serializeBinaryToWriter(this, writer); proto.contentservice.ListLogsResponse.serializeBinaryToWriter(this, writer);
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.
@ -756,53 +688,45 @@ proto.contentservice.ListLogsResponse.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.ListLogsResponse.serializeBinaryToWriter = function(message, writer) { proto.contentservice.ListLogsResponse.serializeBinaryToWriter = function (message, writer) {
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>}
*/ */
proto.contentservice.ListLogsResponse.prototype.getTaskIdList = function() { 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
*/ */
proto.contentservice.ListLogsResponse.prototype.setTaskIdList = function(value) { 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
* @return {!proto.contentservice.ListLogsResponse} returns this * @return {!proto.contentservice.ListLogsResponse} returns this
*/ */
proto.contentservice.ListLogsResponse.prototype.addTaskId = function(value, opt_index) { proto.contentservice.ListLogsResponse.prototype.addTaskId = function (value, opt_index) {
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
*/ */
proto.contentservice.ListLogsResponse.prototype.clearTaskIdList = function() { 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,
@ -90,8 +89,8 @@ uploadURL: {
responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse, responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse,
}, },
// 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,
@ -102,8 +101,8 @@ downloadURL: {
responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse, responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse,
}, },
// 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
@ -21,18 +21,21 @@ export class PluginUploadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginUploadURLRequest.AsObject; toObject(includeInstance?: boolean): PluginUploadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginUploadURLRequest): PluginUploadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginUploadURLRequest): PluginUploadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -42,17 +45,20 @@ export class PluginUploadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginUploadURLResponse.AsObject; toObject(includeInstance?: boolean): PluginUploadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginUploadURLResponse): PluginUploadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginUploadURLResponse): PluginUploadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -64,18 +70,21 @@ export class PluginDownloadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginDownloadURLRequest.AsObject; toObject(includeInstance?: boolean): PluginDownloadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginDownloadURLRequest): PluginDownloadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginDownloadURLRequest): PluginDownloadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -85,17 +94,20 @@ export class PluginDownloadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginDownloadURLResponse.AsObject; toObject(includeInstance?: boolean): PluginDownloadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginDownloadURLResponse): PluginDownloadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginDownloadURLResponse): PluginDownloadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<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 {
@ -107,8 +119,8 @@ export class PluginHashRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginHashRequest.AsObject; toObject(includeInstance?: boolean): PluginHashRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginHashRequest): PluginHashRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginHashRequest): PluginHashRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginHashRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginHashRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginHashRequest; static deserializeBinary(bytes: Uint8Array): PluginHashRequest;
static deserializeBinaryFromReader(message: PluginHashRequest, reader: jspb.BinaryReader): PluginHashRequest; static deserializeBinaryFromReader(message: PluginHashRequest, reader: jspb.BinaryReader): PluginHashRequest;
@ -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 {
@ -128,8 +140,8 @@ export class PluginHashResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginHashResponse.AsObject; toObject(includeInstance?: boolean): PluginHashResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginHashResponse): PluginHashResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginHashResponse): PluginHashResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginHashResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginHashResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginHashResponse; static deserializeBinary(bytes: Uint8Array): PluginHashResponse;
static deserializeBinaryFromReader(message: PluginHashResponse, reader: jspb.BinaryReader): PluginHashResponse; static deserializeBinaryFromReader(message: PluginHashResponse, reader: jspb.BinaryReader): PluginHashResponse;
@ -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
@ -37,7 +39,7 @@ goog.exportSymbol('proto.ideplugin.PluginUploadURLResponse', null, global);
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginUploadURLRequest = function(opt_data) { proto.ideplugin.PluginUploadURLRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginUploadURLRequest, jspb.Message); goog.inherits(proto.ideplugin.PluginUploadURLRequest, jspb.Message);
@ -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.
@ -58,7 +60,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginUploadURLResponse = function(opt_data) { proto.ideplugin.PluginUploadURLResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginUploadURLResponse, jspb.Message); goog.inherits(proto.ideplugin.PluginUploadURLResponse, jspb.Message);
@ -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.
@ -79,7 +81,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginDownloadURLRequest = function(opt_data) { proto.ideplugin.PluginDownloadURLRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginDownloadURLRequest, jspb.Message); goog.inherits(proto.ideplugin.PluginDownloadURLRequest, jspb.Message);
@ -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.
@ -100,7 +102,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginDownloadURLResponse = function(opt_data) { proto.ideplugin.PluginDownloadURLResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginDownloadURLResponse, jspb.Message); goog.inherits(proto.ideplugin.PluginDownloadURLResponse, jspb.Message);
@ -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.
@ -121,7 +123,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginHashRequest = function(opt_data) { proto.ideplugin.PluginHashRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginHashRequest, jspb.Message); goog.inherits(proto.ideplugin.PluginHashRequest, jspb.Message);
@ -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.
@ -142,7 +144,7 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.ideplugin.PluginHashResponse = function(opt_data) { proto.ideplugin.PluginHashResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.ideplugin.PluginHashResponse, jspb.Message); goog.inherits(proto.ideplugin.PluginHashResponse, jspb.Message);
@ -151,13 +153,11 @@ 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -169,12 +169,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginUploadURLRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -183,32 +182,31 @@ proto.ideplugin.PluginUploadURLRequest.prototype.toObject = function(opt_include
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginUploadURLRequest} * @return {!proto.ideplugin.PluginUploadURLRequest}
*/ */
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.
@ -216,7 +214,7 @@ proto.ideplugin.PluginUploadURLRequest.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginUploadURLRequest} * @return {!proto.ideplugin.PluginUploadURLRequest}
*/ */
proto.ideplugin.PluginUploadURLRequest.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginUploadURLRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -239,18 +237,16 @@ 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}
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.serializeBinary = function() { proto.ideplugin.PluginUploadURLRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginUploadURLRequest.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginUploadURLRequest.serializeBinaryToWriter(this, writer);
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.
@ -258,66 +254,52 @@ proto.ideplugin.PluginUploadURLRequest.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginUploadURLRequest.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginUploadURLRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.getBucket = function() { 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
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.setBucket = function(value) { 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}
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.getName = function() { 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
*/ */
proto.ideplugin.PluginUploadURLRequest.prototype.setName = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -329,12 +311,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginUploadURLResponse.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginUploadURLResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -343,31 +324,30 @@ proto.ideplugin.PluginUploadURLResponse.prototype.toObject = function(opt_includ
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginUploadURLResponse} * @return {!proto.ideplugin.PluginUploadURLResponse}
*/ */
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.
@ -375,7 +355,7 @@ proto.ideplugin.PluginUploadURLResponse.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginUploadURLResponse} * @return {!proto.ideplugin.PluginUploadURLResponse}
*/ */
proto.ideplugin.PluginUploadURLResponse.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginUploadURLResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -394,18 +374,16 @@ 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}
*/ */
proto.ideplugin.PluginUploadURLResponse.prototype.serializeBinary = function() { proto.ideplugin.PluginUploadURLResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginUploadURLResponse.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginUploadURLResponse.serializeBinaryToWriter(this, writer);
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.
@ -413,41 +391,32 @@ proto.ideplugin.PluginUploadURLResponse.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginUploadURLResponse.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginUploadURLResponse.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginUploadURLResponse.prototype.getUrl = function() { 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
*/ */
proto.ideplugin.PluginUploadURLResponse.prototype.setUrl = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -459,12 +428,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginDownloadURLRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -473,32 +441,31 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.toObject = function(opt_inclu
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginDownloadURLRequest} * @return {!proto.ideplugin.PluginDownloadURLRequest}
*/ */
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.
@ -506,7 +473,7 @@ proto.ideplugin.PluginDownloadURLRequest.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginDownloadURLRequest} * @return {!proto.ideplugin.PluginDownloadURLRequest}
*/ */
proto.ideplugin.PluginDownloadURLRequest.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginDownloadURLRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -529,18 +496,16 @@ 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}
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.serializeBinary = function() { proto.ideplugin.PluginDownloadURLRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginDownloadURLRequest.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginDownloadURLRequest.serializeBinaryToWriter(this, writer);
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.
@ -548,66 +513,52 @@ proto.ideplugin.PluginDownloadURLRequest.prototype.serializeBinary = function()
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginDownloadURLRequest.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginDownloadURLRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.getBucket = function() { 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
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.setBucket = function(value) { 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}
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.getName = function() { 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
*/ */
proto.ideplugin.PluginDownloadURLRequest.prototype.setName = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -619,12 +570,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginDownloadURLResponse.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginDownloadURLResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -633,31 +583,30 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.toObject = function(opt_incl
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginDownloadURLResponse} * @return {!proto.ideplugin.PluginDownloadURLResponse}
*/ */
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.
@ -665,7 +614,7 @@ proto.ideplugin.PluginDownloadURLResponse.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginDownloadURLResponse} * @return {!proto.ideplugin.PluginDownloadURLResponse}
*/ */
proto.ideplugin.PluginDownloadURLResponse.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginDownloadURLResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -684,18 +633,16 @@ 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}
*/ */
proto.ideplugin.PluginDownloadURLResponse.prototype.serializeBinary = function() { proto.ideplugin.PluginDownloadURLResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginDownloadURLResponse.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginDownloadURLResponse.serializeBinaryToWriter(this, writer);
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.
@ -703,41 +650,32 @@ proto.ideplugin.PluginDownloadURLResponse.prototype.serializeBinary = function()
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginDownloadURLResponse.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginDownloadURLResponse.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginDownloadURLResponse.prototype.getUrl = function() { 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
*/ */
proto.ideplugin.PluginDownloadURLResponse.prototype.setUrl = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -749,12 +687,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginHashRequest.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginHashRequest.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -763,32 +700,31 @@ proto.ideplugin.PluginHashRequest.prototype.toObject = function(opt_includeInsta
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginHashRequest} * @return {!proto.ideplugin.PluginHashRequest}
*/ */
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.
@ -796,7 +732,7 @@ proto.ideplugin.PluginHashRequest.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginHashRequest} * @return {!proto.ideplugin.PluginHashRequest}
*/ */
proto.ideplugin.PluginHashRequest.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginHashRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -819,18 +755,16 @@ 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}
*/ */
proto.ideplugin.PluginHashRequest.prototype.serializeBinary = function() { proto.ideplugin.PluginHashRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginHashRequest.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginHashRequest.serializeBinaryToWriter(this, writer);
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.
@ -838,66 +772,52 @@ proto.ideplugin.PluginHashRequest.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginHashRequest.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginHashRequest.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginHashRequest.prototype.getBucket = function() { 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
*/ */
proto.ideplugin.PluginHashRequest.prototype.setBucket = function(value) { 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}
*/ */
proto.ideplugin.PluginHashRequest.prototype.getName = function() { 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
*/ */
proto.ideplugin.PluginHashRequest.prototype.setName = function(value) { 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.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined. * Optional fields that are not set will be set to undefined.
@ -909,12 +829,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.ideplugin.PluginHashResponse.prototype.toObject = function(opt_includeInstance) { proto.ideplugin.PluginHashResponse.prototype.toObject = function (opt_includeInstance) {
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
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
@ -923,31 +842,30 @@ proto.ideplugin.PluginHashResponse.prototype.toObject = function(opt_includeInst
* @return {!Object} * @return {!Object}
* @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) {
obj.$jspbMessageInstance = msg; obj.$jspbMessageInstance = msg;
} }
return obj; return obj;
}; };
} }
/** /**
* 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.
* @return {!proto.ideplugin.PluginHashResponse} * @return {!proto.ideplugin.PluginHashResponse}
*/ */
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.
@ -955,7 +873,7 @@ proto.ideplugin.PluginHashResponse.deserializeBinary = function(bytes) {
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ideplugin.PluginHashResponse} * @return {!proto.ideplugin.PluginHashResponse}
*/ */
proto.ideplugin.PluginHashResponse.deserializeBinaryFromReader = function(msg, reader) { proto.ideplugin.PluginHashResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -974,18 +892,16 @@ 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}
*/ */
proto.ideplugin.PluginHashResponse.prototype.serializeBinary = function() { proto.ideplugin.PluginHashResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.ideplugin.PluginHashResponse.serializeBinaryToWriter(this, writer); proto.ideplugin.PluginHashResponse.serializeBinaryToWriter(this, writer);
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.
@ -993,34 +909,28 @@ proto.ideplugin.PluginHashResponse.prototype.serializeBinary = function() {
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.ideplugin.PluginHashResponse.serializeBinaryToWriter = function(message, writer) { proto.ideplugin.PluginHashResponse.serializeBinaryToWriter = function (message, writer) {
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}
*/ */
proto.ideplugin.PluginHashResponse.prototype.getHash = function() { 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
*/ */
proto.ideplugin.PluginHashResponse.prototype.setHash = function(value) { 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