// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v6.33.2 // source: user.proto package gen import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 AuthorizationResponse int32 const ( AuthorizationResponse_MESSAGE_TYPE_AUTHORIZED AuthorizationResponse = 0 AuthorizationResponse_MESSAGE_TYPE_UNAUTHORIZED AuthorizationResponse = 1 ) // Enum value maps for AuthorizationResponse. var ( AuthorizationResponse_name = map[int32]string{ 0: "MESSAGE_TYPE_AUTHORIZED", 1: "MESSAGE_TYPE_UNAUTHORIZED", } AuthorizationResponse_value = map[string]int32{ "MESSAGE_TYPE_AUTHORIZED": 0, "MESSAGE_TYPE_UNAUTHORIZED": 1, } ) func (x AuthorizationResponse) Enum() *AuthorizationResponse { p := new(AuthorizationResponse) *p = x return p } func (x AuthorizationResponse) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (AuthorizationResponse) Descriptor() protoreflect.EnumDescriptor { return file_user_proto_enumTypes[0].Descriptor() } func (AuthorizationResponse) Type() protoreflect.EnumType { return &file_user_proto_enumTypes[0] } func (x AuthorizationResponse) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use AuthorizationResponse.Descriptor instead. func (AuthorizationResponse) EnumDescriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{0} } type CheckRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CheckRequest) Reset() { *x = CheckRequest{} mi := &file_user_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CheckRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CheckRequest) ProtoMessage() {} func (x *CheckRequest) ProtoReflect() protoreflect.Message { mi := &file_user_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 CheckRequest.ProtoReflect.Descriptor instead. func (*CheckRequest) Descriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{0} } func (x *CheckRequest) GetAuthToken() string { if x != nil { return x.AuthToken } return "" } type CheckResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Response AuthorizationResponse `protobuf:"varint,1,opt,name=response,proto3,enum=user.AuthorizationResponse" json:"response,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CheckResponse) Reset() { *x = CheckResponse{} mi := &file_user_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CheckResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CheckResponse) ProtoMessage() {} func (x *CheckResponse) ProtoReflect() protoreflect.Message { mi := &file_user_proto_msgTypes[1] 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 CheckResponse.ProtoReflect.Descriptor instead. func (*CheckResponse) Descriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{1} } func (x *CheckResponse) GetResponse() AuthorizationResponse { if x != nil { return x.Response } return AuthorizationResponse_MESSAGE_TYPE_AUTHORIZED } func (x *CheckResponse) GetUser() string { if x != nil { return x.User } return "" } var File_user_proto protoreflect.FileDescriptor const file_user_proto_rawDesc = "" + "\n" + "\n" + "user.proto\x12\x04user\"-\n" + "\fCheckRequest\x12\x1d\n" + "\n" + "auth_token\x18\x01 \x01(\tR\tauthToken\"\\\n" + "\rCheckResponse\x127\n" + "\bresponse\x18\x01 \x01(\x0e2\x1b.user.AuthorizationResponseR\bresponse\x12\x12\n" + "\x04user\x18\x02 \x01(\tR\x04user*S\n" + "\x15AuthorizationResponse\x12\x1b\n" + "\x17MESSAGE_TYPE_AUTHORIZED\x10\x00\x12\x1d\n" + "\x19MESSAGE_TYPE_UNAUTHORIZED\x10\x012?\n" + "\vUserService\x120\n" + "\x05Check\x12\x12.user.CheckRequest\x1a\x13.user.CheckResponseB\aZ\x05./genb\x06proto3" var ( file_user_proto_rawDescOnce sync.Once file_user_proto_rawDescData []byte ) func file_user_proto_rawDescGZIP() []byte { file_user_proto_rawDescOnce.Do(func() { file_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_proto_rawDesc), len(file_user_proto_rawDesc))) }) return file_user_proto_rawDescData } var file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_user_proto_goTypes = []any{ (AuthorizationResponse)(0), // 0: user.AuthorizationResponse (*CheckRequest)(nil), // 1: user.CheckRequest (*CheckResponse)(nil), // 2: user.CheckResponse } var file_user_proto_depIdxs = []int32{ 0, // 0: user.CheckResponse.response:type_name -> user.AuthorizationResponse 1, // 1: user.UserService.Check:input_type -> user.CheckRequest 2, // 2: user.UserService.Check:output_type -> user.CheckResponse 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_user_proto_init() } func file_user_proto_init() { if File_user_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_proto_rawDesc), len(file_user_proto_rawDesc)), NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_user_proto_goTypes, DependencyIndexes: file_user_proto_depIdxs, EnumInfos: file_user_proto_enumTypes, MessageInfos: file_user_proto_msgTypes, }.Build() File_user_proto = out.File file_user_proto_goTypes = nil file_user_proto_depIdxs = nil }