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.
# 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:
- name: all
@ -140,23 +140,10 @@ scripts:
deps:
- dev/addlicense:app
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)
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
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
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
- name: dejson-log-output
script: |-
jq -Rr '. as $line |

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# 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
source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# 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:
- name: lib

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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
// +build linux

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// 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";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// 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.
// versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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";

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -19,7 +19,8 @@ interface IBlobServiceService extends grpc.ServiceDefinition<grpc.UntypedService
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";
requestStream: false;
responseStream: false;
@ -28,7 +29,8 @@ interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.
responseSerialize: grpc.serialize<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";
requestStream: false;
responseStream: false;
@ -56,26 +58,98 @@ export interface IBlobServiceServer extends grpc.UntypedServiceImplementation {
}
export interface IBlobServiceClient {
uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): 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;
uploadUrl(
request: blobs_pb.UploadUrlRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): grpc.ClientUnaryCall;
uploadUrl(
request: blobs_pb.UploadUrlRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): 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 {
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(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): 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;
public uploadUrl(
request: blobs_pb.UploadUrlRequest,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): grpc.ClientUnaryCall;
public uploadUrl(
request: blobs_pb.UploadUrlRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
): 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:
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// 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';
var grpc = require('@grpc/grpc-js');
var blobs_pb = require('./blobs_pb.js');
"use strict";
var grpc = require("@grpc/grpc-js");
var blobs_pb = require("./blobs_pb.js");
function serialize_contentservice_DeleteRequest(arg) {
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());
}
@ -22,7 +22,7 @@ function deserialize_contentservice_DeleteRequest(buffer_arg) {
function serialize_contentservice_DeleteResponse(arg) {
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());
}
@ -33,7 +33,7 @@ function deserialize_contentservice_DeleteResponse(buffer_arg) {
function serialize_contentservice_DownloadUrlRequest(arg) {
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());
}
@ -44,7 +44,7 @@ function deserialize_contentservice_DownloadUrlRequest(buffer_arg) {
function serialize_contentservice_DownloadUrlResponse(arg) {
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());
}
@ -55,7 +55,7 @@ function deserialize_contentservice_DownloadUrlResponse(buffer_arg) {
function serialize_contentservice_UploadUrlRequest(arg) {
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());
}
@ -66,7 +66,7 @@ function deserialize_contentservice_UploadUrlRequest(buffer_arg) {
function serialize_contentservice_UploadUrlResponse(arg) {
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());
}
@ -75,11 +75,10 @@ function deserialize_contentservice_UploadUrlResponse(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: {
path: '/contentservice.BlobService/UploadUrl',
path: "/contentservice.BlobService/UploadUrl",
requestStream: false,
responseStream: false,
requestType: blobs_pb.UploadUrlRequest,
@ -91,7 +90,7 @@ uploadUrl: {
},
// DownloadUrl provides a URL from which clients can download the content via HTTP GET.
downloadUrl: {
path: '/contentservice.BlobService/DownloadUrl',
path: "/contentservice.BlobService/DownloadUrl",
requestStream: false,
responseStream: false,
requestType: blobs_pb.DownloadUrlRequest,
@ -103,7 +102,7 @@ downloadUrl: {
},
// Delete deletes the uploaded content.
delete: {
path: '/contentservice.BlobService/Delete',
path: "/contentservice.BlobService/Delete",
requestStream: false,
responseStream: false,
requestType: blobs_pb.DeleteRequest,
@ -113,6 +112,6 @@ delete: {
responseSerialize: serialize_contentservice_DeleteResponse,
responseDeserialize: deserialize_contentservice_DeleteResponse,
},
};
});
exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService);

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -32,10 +32,10 @@ export class UploadUrlRequest extends jspb.Message {
export namespace UploadUrlRequest {
export type AsObject = {
ownerId: string,
name: string,
contentType: string,
}
ownerId: string;
name: string;
contentType: string;
};
}
export class UploadUrlResponse extends jspb.Message {
@ -54,8 +54,8 @@ export class UploadUrlResponse extends jspb.Message {
export namespace UploadUrlResponse {
export type AsObject = {
url: string,
}
url: string;
};
}
export class DownloadUrlRequest extends jspb.Message {
@ -78,10 +78,10 @@ export class DownloadUrlRequest extends jspb.Message {
export namespace DownloadUrlRequest {
export type AsObject = {
ownerId: string,
name: string,
contentType: string,
}
ownerId: string;
name: string;
contentType: string;
};
}
export class DownloadUrlResponse extends jspb.Message {
@ -100,8 +100,8 @@ export class DownloadUrlResponse extends jspb.Message {
export namespace DownloadUrlResponse {
export type AsObject = {
url: string,
}
url: string;
};
}
export class DeleteRequest extends jspb.Message {
@ -132,21 +132,19 @@ export class DeleteRequest extends jspb.Message {
export namespace DeleteRequest {
export type AsObject = {
ownerId: string,
exact: string,
prefix: string,
}
ownerId: string;
exact: string;
prefix: string;
};
export enum NameCase {
NAME_NOT_SET = 0,
EXACT = 2,
PREFIX = 3,
}
}
export class DeleteResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject;
@ -158,6 +156,5 @@ export class DeleteResponse extends jspb.Message {
}
export namespace DeleteResponse {
export type AsObject = {
}
export type AsObject = {};
}

View File

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

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -17,7 +17,8 @@ interface IContentServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
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";
requestStream: false;
responseStream: false;
@ -34,14 +35,38 @@ export interface IContentServiceServer extends grpc.UntypedServiceImplementation
}
export interface IContentServiceClient {
deleteUserContent(request: content_pb.DeleteUserContentRequest, 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;
deleteUserContent(
request: content_pb.DeleteUserContentRequest,
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 {
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(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;
public deleteUserContent(
request: content_pb.DeleteUserContentRequest,
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:
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// 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';
var grpc = require('@grpc/grpc-js');
var content_pb = require('./content_pb.js');
"use strict";
var grpc = require("@grpc/grpc-js");
var content_pb = require("./content_pb.js");
function serialize_contentservice_DeleteUserContentRequest(arg) {
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());
}
@ -22,7 +22,7 @@ function deserialize_contentservice_DeleteUserContentRequest(buffer_arg) {
function serialize_contentservice_DeleteUserContentResponse(arg) {
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());
}
@ -31,11 +31,10 @@ function deserialize_contentservice_DeleteUserContentResponse(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: {
path: '/contentservice.ContentService/DeleteUserContent',
path: "/contentservice.ContentService/DeleteUserContent",
requestStream: false,
responseStream: false,
requestType: content_pb.DeleteUserContentRequest,
@ -45,6 +44,6 @@ deleteUserContent: {
responseSerialize: serialize_contentservice_DeleteUserContentResponse,
responseDeserialize: deserialize_contentservice_DeleteUserContentResponse,
},
};
});
exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService);

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -23,17 +23,19 @@ export class DeleteUserContentRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void;
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 type AsObject = {
ownerId: string,
}
ownerId: string;
};
}
export class DeleteUserContentResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject;
@ -41,10 +43,12 @@ export class DeleteUserContentResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void;
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 type AsObject = {
}
export type AsObject = {};
}

View File

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

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -18,7 +18,8 @@ interface IHeadlessLogServiceService extends grpc.ServiceDefinition<grpc.Untyped
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";
requestStream: false;
responseStream: false;
@ -27,7 +28,8 @@ interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefiniti
responseSerialize: grpc.serialize<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";
requestStream: false;
responseStream: false;
@ -45,20 +47,68 @@ export interface IHeadlessLogServiceServer extends grpc.UntypedServiceImplementa
}
export interface IHeadlessLogServiceClient {
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
logDownloadURL(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;
logDownloadURL(
request: headless_log_pb.LogDownloadURLRequest,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
logDownloadURL(
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 {
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(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;
public logDownloadURL(
request: headless_log_pb.LogDownloadURLRequest,
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
): grpc.ClientUnaryCall;
public logDownloadURL(
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:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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';
var grpc = require('@grpc/grpc-js');
var headless$log_pb = require('./headless-log_pb.js');
"use strict";
var grpc = require("@grpc/grpc-js");
var headless$log_pb = require("./headless-log_pb.js");
function serialize_contentservice_ListLogsRequest(arg) {
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());
}
@ -22,7 +22,7 @@ function deserialize_contentservice_ListLogsRequest(buffer_arg) {
function serialize_contentservice_ListLogsResponse(arg) {
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());
}
@ -33,7 +33,7 @@ function deserialize_contentservice_ListLogsResponse(buffer_arg) {
function serialize_contentservice_LogDownloadURLRequest(arg) {
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());
}
@ -44,7 +44,7 @@ function deserialize_contentservice_LogDownloadURLRequest(buffer_arg) {
function serialize_contentservice_LogDownloadURLResponse(arg) {
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());
}
@ -53,11 +53,10 @@ function deserialize_contentservice_LogDownloadURLResponse(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: {
path: '/contentservice.HeadlessLogService/LogDownloadURL',
path: "/contentservice.HeadlessLogService/LogDownloadURL",
requestStream: false,
responseStream: false,
requestType: headless$log_pb.LogDownloadURLRequest,
@ -69,7 +68,7 @@ logDownloadURL: {
},
// ListLogs returns a list of taskIds for the specified workspace instance
listLogs: {
path: '/contentservice.HeadlessLogService/ListLogs',
path: "/contentservice.HeadlessLogService/ListLogs",
requestStream: false,
responseStream: false,
requestType: headless$log_pb.ListLogsRequest,
@ -79,6 +78,6 @@ listLogs: {
responseSerialize: serialize_contentservice_ListLogsResponse,
responseDeserialize: deserialize_contentservice_ListLogsResponse,
},
};
});
exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService);

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -29,16 +29,19 @@ export class LogDownloadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void;
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 type AsObject = {
ownerId: string,
workspaceId: string,
instanceId: string,
taskId: string,
}
ownerId: string;
workspaceId: string;
instanceId: string;
taskId: string;
};
}
export class LogDownloadURLResponse extends jspb.Message {
@ -52,13 +55,16 @@ export class LogDownloadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void;
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 type AsObject = {
url: string,
}
url: string;
};
}
export class ListLogsRequest extends jspb.Message {
@ -81,10 +87,10 @@ export class ListLogsRequest extends jspb.Message {
export namespace ListLogsRequest {
export type AsObject = {
ownerId: string,
workspaceId: string,
instanceId: string,
}
ownerId: string;
workspaceId: string;
instanceId: string;
};
}
export class ListLogsResponse extends jspb.Message {
@ -105,6 +111,6 @@ export class ListLogsResponse extends jspb.Message {
export namespace ListLogsResponse {
export type AsObject = {
taskIdList: Array<string>,
}
taskIdList: Array<string>;
};
}

View File

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

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -19,7 +19,8 @@ interface IIDEPluginServiceService extends grpc.ServiceDefinition<grpc.UntypedSe
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";
requestStream: false;
responseStream: false;
@ -28,7 +29,8 @@ interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<idep
responseSerialize: grpc.serialize<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";
requestStream: false;
responseStream: false;
@ -37,7 +39,8 @@ interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<id
responseSerialize: grpc.serialize<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";
requestStream: false;
responseStream: false;
@ -56,26 +59,98 @@ export interface IIDEPluginServiceServer extends grpc.UntypedServiceImplementati
}
export interface IIDEPluginServiceClient {
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): 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;
uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): grpc.ClientUnaryCall;
uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): 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 {
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(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): 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;
public uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): grpc.ClientUnaryCall;
public uploadURL(
request: ideplugin_pb.PluginUploadURLRequest,
metadata: grpc.Metadata,
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
): 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:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// 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';
var grpc = require('@grpc/grpc-js');
var ideplugin_pb = require('./ideplugin_pb.js');
"use strict";
var grpc = require("@grpc/grpc-js");
var ideplugin_pb = require("./ideplugin_pb.js");
function serialize_ideplugin_PluginDownloadURLRequest(arg) {
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());
}
@ -22,7 +22,7 @@ function deserialize_ideplugin_PluginDownloadURLRequest(buffer_arg) {
function serialize_ideplugin_PluginDownloadURLResponse(arg) {
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());
}
@ -33,7 +33,7 @@ function deserialize_ideplugin_PluginDownloadURLResponse(buffer_arg) {
function serialize_ideplugin_PluginHashRequest(arg) {
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());
}
@ -44,7 +44,7 @@ function deserialize_ideplugin_PluginHashRequest(buffer_arg) {
function serialize_ideplugin_PluginHashResponse(arg) {
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());
}
@ -55,7 +55,7 @@ function deserialize_ideplugin_PluginHashResponse(buffer_arg) {
function serialize_ideplugin_PluginUploadURLRequest(arg) {
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());
}
@ -66,7 +66,7 @@ function deserialize_ideplugin_PluginUploadURLRequest(buffer_arg) {
function serialize_ideplugin_PluginUploadURLResponse(arg) {
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());
}
@ -75,11 +75,10 @@ function deserialize_ideplugin_PluginUploadURLResponse(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: {
path: '/ideplugin.IDEPluginService/UploadURL',
path: "/ideplugin.IDEPluginService/UploadURL",
requestStream: false,
responseStream: false,
requestType: ideplugin_pb.PluginUploadURLRequest,
@ -91,7 +90,7 @@ uploadURL: {
},
// DownloadURL provides a URL from which clients can download the content via HTTP GET.
downloadURL: {
path: '/ideplugin.IDEPluginService/DownloadURL',
path: "/ideplugin.IDEPluginService/DownloadURL",
requestStream: false,
responseStream: false,
requestType: ideplugin_pb.PluginDownloadURLRequest,
@ -103,7 +102,7 @@ downloadURL: {
},
// PluginHash provides a hash of the plugin
pluginHash: {
path: '/ideplugin.IDEPluginService/PluginHash',
path: "/ideplugin.IDEPluginService/PluginHash",
requestStream: false,
responseStream: false,
requestType: ideplugin_pb.PluginHashRequest,
@ -113,6 +112,6 @@ pluginHash: {
responseSerialize: serialize_ideplugin_PluginHashResponse,
responseDeserialize: deserialize_ideplugin_PluginHashResponse,
},
};
});
exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService);

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* 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
@ -25,14 +25,17 @@ export class PluginUploadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void;
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 type AsObject = {
bucket: string,
name: string,
}
bucket: string;
name: string;
};
}
export class PluginUploadURLResponse extends jspb.Message {
@ -46,13 +49,16 @@ export class PluginUploadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void;
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 type AsObject = {
url: string,
}
url: string;
};
}
export class PluginDownloadURLRequest extends jspb.Message {
@ -68,14 +74,17 @@ export class PluginDownloadURLRequest extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void;
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 type AsObject = {
bucket: string,
name: string,
}
bucket: string;
name: string;
};
}
export class PluginDownloadURLResponse extends jspb.Message {
@ -89,13 +98,16 @@ export class PluginDownloadURLResponse extends jspb.Message {
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void;
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 type AsObject = {
url: string,
}
url: string;
};
}
export class PluginHashRequest extends jspb.Message {
@ -116,9 +128,9 @@ export class PluginHashRequest extends jspb.Message {
export namespace PluginHashRequest {
export type AsObject = {
bucket: string,
name: string,
}
bucket: string;
name: string;
};
}
export class PluginHashResponse extends jspb.Message {
@ -137,6 +149,6 @@ export class PluginHashResponse extends jspb.Message {
export namespace PluginHashResponse {
export type AsObject = {
hash: string,
}
hash: string;
};
}

View File

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

View File

@ -1,7 +1,7 @@
/**
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
* 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