mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +00:00
151 lines
5.0 KiB
Go
151 lines
5.0 KiB
Go
// Copyright (c) 2022 Proton Technologies AG
|
|
//
|
|
// This file is part of ProtonMail Bridge.
|
|
//
|
|
// ProtonMail Bridge is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// ProtonMail Bridge is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with ProtonMail Bridge. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v5.29.5
|
|
// source: focus.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 VersionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VersionResponse) Reset() {
|
|
*x = VersionResponse{}
|
|
mi := &file_focus_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VersionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VersionResponse) ProtoMessage() {}
|
|
|
|
func (x *VersionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_focus_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
|
|
func (*VersionResponse) Descriptor() ([]byte, []int) {
|
|
return file_focus_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *VersionResponse) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_focus_proto protoreflect.FileDescriptor
|
|
|
|
const file_focus_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\vfocus.proto\x12\x05focus\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto\"+\n" +
|
|
"\x0fVersionResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\tR\aversion2\x81\x01\n" +
|
|
"\x05Focus\x12=\n" +
|
|
"\x05Raise\x12\x1c.google.protobuf.StringValue\x1a\x16.google.protobuf.Empty\x129\n" +
|
|
"\aVersion\x12\x16.google.protobuf.Empty\x1a\x16.focus.VersionResponseB=Z;github.com/ProtonMail/proton-bridge/v3/internal/focus/protob\x06proto3"
|
|
|
|
var (
|
|
file_focus_proto_rawDescOnce sync.Once
|
|
file_focus_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_focus_proto_rawDescGZIP() []byte {
|
|
file_focus_proto_rawDescOnce.Do(func() {
|
|
file_focus_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_focus_proto_rawDesc), len(file_focus_proto_rawDesc)))
|
|
})
|
|
return file_focus_proto_rawDescData
|
|
}
|
|
|
|
var file_focus_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_focus_proto_goTypes = []any{
|
|
(*VersionResponse)(nil), // 0: focus.VersionResponse
|
|
(*wrapperspb.StringValue)(nil), // 1: google.protobuf.StringValue
|
|
(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
|
|
}
|
|
var file_focus_proto_depIdxs = []int32{
|
|
1, // 0: focus.Focus.Raise:input_type -> google.protobuf.StringValue
|
|
2, // 1: focus.Focus.Version:input_type -> google.protobuf.Empty
|
|
2, // 2: focus.Focus.Raise:output_type -> google.protobuf.Empty
|
|
0, // 3: focus.Focus.Version:output_type -> focus.VersionResponse
|
|
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_focus_proto_init() }
|
|
func file_focus_proto_init() {
|
|
if File_focus_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_focus_proto_rawDesc), len(file_focus_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_focus_proto_goTypes,
|
|
DependencyIndexes: file_focus_proto_depIdxs,
|
|
MessageInfos: file_focus_proto_msgTypes,
|
|
}.Build()
|
|
File_focus_proto = out.File
|
|
file_focus_proto_goTypes = nil
|
|
file_focus_proto_depIdxs = nil
|
|
}
|