2022-08-26 13:37:11 +02:00

359 lines
12 KiB
Go

// 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.1
// source: usage.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 UsageReportUploadURLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *UsageReportUploadURLRequest) Reset() {
*x = UsageReportUploadURLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageReportUploadURLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageReportUploadURLRequest) ProtoMessage() {}
func (x *UsageReportUploadURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_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 UsageReportUploadURLRequest.ProtoReflect.Descriptor instead.
func (*UsageReportUploadURLRequest) Descriptor() ([]byte, []int) {
return file_usage_proto_rawDescGZIP(), []int{0}
}
func (x *UsageReportUploadURLRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type UsageReportUploadURLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *UsageReportUploadURLResponse) Reset() {
*x = UsageReportUploadURLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageReportUploadURLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageReportUploadURLResponse) ProtoMessage() {}
func (x *UsageReportUploadURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_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 UsageReportUploadURLResponse.ProtoReflect.Descriptor instead.
func (*UsageReportUploadURLResponse) Descriptor() ([]byte, []int) {
return file_usage_proto_rawDescGZIP(), []int{1}
}
func (x *UsageReportUploadURLResponse) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type UsageReportDownloadURLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *UsageReportDownloadURLRequest) Reset() {
*x = UsageReportDownloadURLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageReportDownloadURLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageReportDownloadURLRequest) ProtoMessage() {}
func (x *UsageReportDownloadURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_usage_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 UsageReportDownloadURLRequest.ProtoReflect.Descriptor instead.
func (*UsageReportDownloadURLRequest) Descriptor() ([]byte, []int) {
return file_usage_proto_rawDescGZIP(), []int{2}
}
func (x *UsageReportDownloadURLRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type UsageReportDownloadURLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *UsageReportDownloadURLResponse) Reset() {
*x = UsageReportDownloadURLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_usage_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageReportDownloadURLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageReportDownloadURLResponse) ProtoMessage() {}
func (x *UsageReportDownloadURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_usage_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 UsageReportDownloadURLResponse.ProtoReflect.Descriptor instead.
func (*UsageReportDownloadURLResponse) Descriptor() ([]byte, []int) {
return file_usage_proto_rawDescGZIP(), []int{3}
}
func (x *UsageReportDownloadURLResponse) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
var File_usage_proto protoreflect.FileDescriptor
var file_usage_proto_rawDesc = []byte{
0x0a, 0x0b, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x31, 0x0a,
0x1b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f,
0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x30, 0x0a, 0x1c, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 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, 0x33, 0x0a, 0x1d, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x1e, 0x55, 0x73, 0x61, 0x67, 0x65,
0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 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, 0x32, 0xee, 0x01, 0x0a, 0x12,
0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x68, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x12,
0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f,
0x61, 0x64, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x73,
0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55,
0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0b,
0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x52, 0x4c, 0x12, 0x2d, 0x2e, 0x63, 0x6f,
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x73, 0x61,
0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64,
0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6e,
0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x73, 0x61, 0x67,
0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55,
0x52, 0x4c, 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_usage_proto_rawDescOnce sync.Once
file_usage_proto_rawDescData = file_usage_proto_rawDesc
)
func file_usage_proto_rawDescGZIP() []byte {
file_usage_proto_rawDescOnce.Do(func() {
file_usage_proto_rawDescData = protoimpl.X.CompressGZIP(file_usage_proto_rawDescData)
})
return file_usage_proto_rawDescData
}
var file_usage_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_usage_proto_goTypes = []interface{}{
(*UsageReportUploadURLRequest)(nil), // 0: contentservice.UsageReportUploadURLRequest
(*UsageReportUploadURLResponse)(nil), // 1: contentservice.UsageReportUploadURLResponse
(*UsageReportDownloadURLRequest)(nil), // 2: contentservice.UsageReportDownloadURLRequest
(*UsageReportDownloadURLResponse)(nil), // 3: contentservice.UsageReportDownloadURLResponse
}
var file_usage_proto_depIdxs = []int32{
0, // 0: contentservice.UsageReportService.UploadURL:input_type -> contentservice.UsageReportUploadURLRequest
2, // 1: contentservice.UsageReportService.DownloadURL:input_type -> contentservice.UsageReportDownloadURLRequest
1, // 2: contentservice.UsageReportService.UploadURL:output_type -> contentservice.UsageReportUploadURLResponse
3, // 3: contentservice.UsageReportService.DownloadURL:output_type -> contentservice.UsageReportDownloadURLResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] 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_usage_proto_init() }
func file_usage_proto_init() {
if File_usage_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_usage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UsageReportUploadURLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UsageReportUploadURLResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UsageReportDownloadURLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_usage_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UsageReportDownloadURLResponse); 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_usage_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_usage_proto_goTypes,
DependencyIndexes: file_usage_proto_depIdxs,
MessageInfos: file_usage_proto_msgTypes,
}.Build()
File_usage_proto = out.File
file_usage_proto_rawDesc = nil
file_usage_proto_goTypes = nil
file_usage_proto_depIdxs = nil
}