515 lines
17 KiB
Go

// 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.1
// source: ideplugin.proto
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type PluginUploadURLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *PluginUploadURLRequest) Reset() {
*x = PluginUploadURLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginUploadURLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginUploadURLRequest) ProtoMessage() {}
func (x *PluginUploadURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginUploadURLRequest.ProtoReflect.Descriptor instead.
func (*PluginUploadURLRequest) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{0}
}
func (x *PluginUploadURLRequest) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *PluginUploadURLRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type PluginUploadURLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *PluginUploadURLResponse) Reset() {
*x = PluginUploadURLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginUploadURLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginUploadURLResponse) ProtoMessage() {}
func (x *PluginUploadURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginUploadURLResponse.ProtoReflect.Descriptor instead.
func (*PluginUploadURLResponse) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{1}
}
func (x *PluginUploadURLResponse) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type PluginDownloadURLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *PluginDownloadURLRequest) Reset() {
*x = PluginDownloadURLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginDownloadURLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginDownloadURLRequest) ProtoMessage() {}
func (x *PluginDownloadURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginDownloadURLRequest.ProtoReflect.Descriptor instead.
func (*PluginDownloadURLRequest) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{2}
}
func (x *PluginDownloadURLRequest) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *PluginDownloadURLRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type PluginDownloadURLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *PluginDownloadURLResponse) Reset() {
*x = PluginDownloadURLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginDownloadURLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginDownloadURLResponse) ProtoMessage() {}
func (x *PluginDownloadURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginDownloadURLResponse.ProtoReflect.Descriptor instead.
func (*PluginDownloadURLResponse) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{3}
}
func (x *PluginDownloadURLResponse) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type PluginHashRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *PluginHashRequest) Reset() {
*x = PluginHashRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginHashRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginHashRequest) ProtoMessage() {}
func (x *PluginHashRequest) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginHashRequest.ProtoReflect.Descriptor instead.
func (*PluginHashRequest) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{4}
}
func (x *PluginHashRequest) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *PluginHashRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type PluginHashResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (x *PluginHashResponse) Reset() {
*x = PluginHashResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_ideplugin_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginHashResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginHashResponse) ProtoMessage() {}
func (x *PluginHashResponse) ProtoReflect() protoreflect.Message {
mi := &file_ideplugin_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PluginHashResponse.ProtoReflect.Descriptor instead.
func (*PluginHashResponse) Descriptor() ([]byte, []int) {
return file_ideplugin_proto_rawDescGZIP(), []int{5}
}
func (x *PluginHashResponse) GetHash() string {
if x != nil {
return x.Hash
}
return ""
}
var File_ideplugin_proto protoreflect.FileDescriptor
var file_ideplugin_proto_rawDesc = []byte{
0x0a, 0x0f, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x09, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0x44, 0x0a, 0x16,
0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x17, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x55, 0x70, 0x6c, 0x6f,
0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a,
0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22,
0x46, 0x0a, 0x18, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61,
0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62,
0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63,
0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2d, 0x0a, 0x19, 0x50, 0x6c, 0x75, 0x67, 0x69,
0x6e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x3f, 0x0a, 0x11, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e,
0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62,
0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63,
0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x12, 0x50, 0x6c, 0x75, 0x67, 0x69,
0x6e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73,
0x68, 0x32, 0x91, 0x02, 0x0a, 0x10, 0x49, 0x44, 0x45, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x54, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
0x55, 0x52, 0x4c, 0x12, 0x21, 0x2e, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67,
0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55,
0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0b,
0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x12, 0x23, 0x2e, 0x69, 0x64,
0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x6f,
0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x24, 0x2e, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75,
0x67, 0x69, 0x6e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x50, 0x6c, 0x75, 0x67,
0x69, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x2e, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67,
0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x69, 0x64, 0x65, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69,
0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_ideplugin_proto_rawDescOnce sync.Once
file_ideplugin_proto_rawDescData = file_ideplugin_proto_rawDesc
)
func file_ideplugin_proto_rawDescGZIP() []byte {
file_ideplugin_proto_rawDescOnce.Do(func() {
file_ideplugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_ideplugin_proto_rawDescData)
})
return file_ideplugin_proto_rawDescData
}
var file_ideplugin_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_ideplugin_proto_goTypes = []interface{}{
(*PluginUploadURLRequest)(nil), // 0: ideplugin.PluginUploadURLRequest
(*PluginUploadURLResponse)(nil), // 1: ideplugin.PluginUploadURLResponse
(*PluginDownloadURLRequest)(nil), // 2: ideplugin.PluginDownloadURLRequest
(*PluginDownloadURLResponse)(nil), // 3: ideplugin.PluginDownloadURLResponse
(*PluginHashRequest)(nil), // 4: ideplugin.PluginHashRequest
(*PluginHashResponse)(nil), // 5: ideplugin.PluginHashResponse
}
var file_ideplugin_proto_depIdxs = []int32{
0, // 0: ideplugin.IDEPluginService.UploadURL:input_type -> ideplugin.PluginUploadURLRequest
2, // 1: ideplugin.IDEPluginService.DownloadURL:input_type -> ideplugin.PluginDownloadURLRequest
4, // 2: ideplugin.IDEPluginService.PluginHash:input_type -> ideplugin.PluginHashRequest
1, // 3: ideplugin.IDEPluginService.UploadURL:output_type -> ideplugin.PluginUploadURLResponse
3, // 4: ideplugin.IDEPluginService.DownloadURL:output_type -> ideplugin.PluginDownloadURLResponse
5, // 5: ideplugin.IDEPluginService.PluginHash:output_type -> ideplugin.PluginHashResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_ideplugin_proto_init() }
func file_ideplugin_proto_init() {
if File_ideplugin_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_ideplugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginUploadURLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ideplugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginUploadURLResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ideplugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginDownloadURLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ideplugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginDownloadURLResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ideplugin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginHashRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ideplugin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PluginHashResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ideplugin_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_ideplugin_proto_goTypes,
DependencyIndexes: file_ideplugin_proto_depIdxs,
MessageInfos: file_ideplugin_proto_msgTypes,
}.Build()
File_ideplugin_proto = out.File
file_ideplugin_proto_rawDesc = nil
file_ideplugin_proto_goTypes = nil
file_ideplugin_proto_depIdxs = nil
}