To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit a84109e1 authored by Andrea Raguso's avatar Andrea Raguso
Browse files

update

parent 4f46c023
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.7
// source: vseth/vis/lists/lists.proto
package lists
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 Subscription struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
List string `protobuf:"bytes,3,opt,name=list,proto3" json:"list,omitempty"` // (e.g. testliste)
}
func (x *Subscription) Reset() {
*x = Subscription{}
if protoimpl.UnsafeEnabled {
mi := &file_vseth_vis_lists_lists_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Subscription) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subscription) ProtoMessage() {}
func (x *Subscription) ProtoReflect() protoreflect.Message {
mi := &file_vseth_vis_lists_lists_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 Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) Descriptor() ([]byte, []int) {
return file_vseth_vis_lists_lists_proto_rawDescGZIP(), []int{0}
}
func (x *Subscription) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Subscription) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *Subscription) GetList() string {
if x != nil {
return x.List
}
return ""
}
type CreateSubscriptionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
}
func (x *CreateSubscriptionRequest) Reset() {
*x = CreateSubscriptionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_vseth_vis_lists_lists_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateSubscriptionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateSubscriptionRequest) ProtoMessage() {}
func (x *CreateSubscriptionRequest) ProtoReflect() protoreflect.Message {
mi := &file_vseth_vis_lists_lists_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 CreateSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*CreateSubscriptionRequest) Descriptor() ([]byte, []int) {
return file_vseth_vis_lists_lists_proto_rawDescGZIP(), []int{1}
}
func (x *CreateSubscriptionRequest) GetSubscription() *Subscription {
if x != nil {
return x.Subscription
}
return nil
}
var File_vseth_vis_lists_lists_proto protoreflect.FileDescriptor
var file_vseth_vis_lists_lists_proto_rawDesc = []byte{
0x0a, 0x1b, 0x76, 0x73, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x69, 0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74,
0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x76,
0x73, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x69, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x22, 0x4c,
0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x19,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x73, 0x75, 0x62,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1d, 0x2e, 0x76, 0x73, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x69, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74,
0x73, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c,
0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x68, 0x0a, 0x05,
0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x5f, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x76, 0x73,
0x65, 0x74, 0x68, 0x2e, 0x76, 0x69, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x73, 0x65, 0x74, 0x68, 0x2e,
0x76, 0x69, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x46, 0x0a, 0x12, 0x63, 0x68, 0x2e, 0x76, 0x73, 0x65,
0x74, 0x68, 0x2e, 0x76, 0x69, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x5a, 0x30, 0x67, 0x69,
0x74, 0x6c, 0x61, 0x62, 0x2e, 0x65, 0x74, 0x68, 0x7a, 0x2e, 0x63, 0x68, 0x2f, 0x61, 0x72, 0x61,
0x67, 0x75, 0x73, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x73, 0x2d, 0x67, 0x6f, 0x2f, 0x76,
0x73, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x69, 0x73, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_vseth_vis_lists_lists_proto_rawDescOnce sync.Once
file_vseth_vis_lists_lists_proto_rawDescData = file_vseth_vis_lists_lists_proto_rawDesc
)
func file_vseth_vis_lists_lists_proto_rawDescGZIP() []byte {
file_vseth_vis_lists_lists_proto_rawDescOnce.Do(func() {
file_vseth_vis_lists_lists_proto_rawDescData = protoimpl.X.CompressGZIP(file_vseth_vis_lists_lists_proto_rawDescData)
})
return file_vseth_vis_lists_lists_proto_rawDescData
}
var file_vseth_vis_lists_lists_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_vseth_vis_lists_lists_proto_goTypes = []interface{}{
(*Subscription)(nil), // 0: vseth.vis.lists.Subscription
(*CreateSubscriptionRequest)(nil), // 1: vseth.vis.lists.CreateSubscriptionRequest
}
var file_vseth_vis_lists_lists_proto_depIdxs = []int32{
0, // 0: vseth.vis.lists.CreateSubscriptionRequest.subscription:type_name -> vseth.vis.lists.Subscription
1, // 1: vseth.vis.lists.Lists.CreateSubscription:input_type -> vseth.vis.lists.CreateSubscriptionRequest
0, // 2: vseth.vis.lists.Lists.CreateSubscription:output_type -> vseth.vis.lists.Subscription
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_vseth_vis_lists_lists_proto_init() }
func file_vseth_vis_lists_lists_proto_init() {
if File_vseth_vis_lists_lists_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_vseth_vis_lists_lists_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Subscription); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_vseth_vis_lists_lists_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateSubscriptionRequest); 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_vseth_vis_lists_lists_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_vseth_vis_lists_lists_proto_goTypes,
DependencyIndexes: file_vseth_vis_lists_lists_proto_depIdxs,
MessageInfos: file_vseth_vis_lists_lists_proto_msgTypes,
}.Build()
File_vseth_vis_lists_lists_proto = out.File
file_vseth_vis_lists_lists_proto_rawDesc = nil
file_vseth_vis_lists_lists_proto_goTypes = nil
file_vseth_vis_lists_lists_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package lists
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// ListsClient is the client API for Lists service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ListsClient interface {
// CreateSubscription subscribes the provided person to the mailinglist.
CreateSubscription(ctx context.Context, in *CreateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
}
type listsClient struct {
cc grpc.ClientConnInterface
}
func NewListsClient(cc grpc.ClientConnInterface) ListsClient {
return &listsClient{cc}
}
func (c *listsClient) CreateSubscription(ctx context.Context, in *CreateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) {
out := new(Subscription)
err := c.cc.Invoke(ctx, "/vseth.vis.lists.Lists/CreateSubscription", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ListsServer is the server API for Lists service.
// All implementations must embed UnimplementedListsServer
// for forward compatibility
type ListsServer interface {
// CreateSubscription subscribes the provided person to the mailinglist.
CreateSubscription(context.Context, *CreateSubscriptionRequest) (*Subscription, error)
mustEmbedUnimplementedListsServer()
}
// UnimplementedListsServer must be embedded to have forward compatible implementations.
type UnimplementedListsServer struct {
}
func (UnimplementedListsServer) CreateSubscription(context.Context, *CreateSubscriptionRequest) (*Subscription, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateSubscription not implemented")
}
func (UnimplementedListsServer) mustEmbedUnimplementedListsServer() {}
// UnsafeListsServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ListsServer will
// result in compilation errors.
type UnsafeListsServer interface {
mustEmbedUnimplementedListsServer()
}
func RegisterListsServer(s grpc.ServiceRegistrar, srv ListsServer) {
s.RegisterService(&Lists_ServiceDesc, srv)
}
func _Lists_CreateSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateSubscriptionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ListsServer).CreateSubscription(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.vis.lists.Lists/CreateSubscription",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ListsServer).CreateSubscription(ctx, req.(*CreateSubscriptionRequest))
}
return interceptor(ctx, in, info, handler)
}
// Lists_ServiceDesc is the grpc.ServiceDesc for Lists service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Lists_ServiceDesc = grpc.ServiceDesc{
ServiceName: "vseth.vis.lists.Lists",
HandlerType: (*ListsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateSubscription",
Handler: _Lists_CreateSubscription_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "vseth/vis/lists/lists.proto",
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment