Path: blob/main/components/public-api/go/v1/verification.pb.go
2500 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go. DO NOT EDIT.5// versions:6// protoc-gen-go v1.28.17// protoc (unknown)8// source: gitpod/v1/verification.proto910package v11112import (13protoreflect "google.golang.org/protobuf/reflect/protoreflect"14protoimpl "google.golang.org/protobuf/runtime/protoimpl"15reflect "reflect"16sync "sync"17)1819const (20// Verify that this generated code is sufficiently up-to-date.21_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)22// Verify that runtime/protoimpl is sufficiently up-to-date.23_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)24)2526// Required fields:27// - phone_number28type SendPhoneNumberVerificationTokenRequest struct {29state protoimpl.MessageState30sizeCache protoimpl.SizeCache31unknownFields protoimpl.UnknownFields3233// phone_number in E.164 format34PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`35}3637func (x *SendPhoneNumberVerificationTokenRequest) Reset() {38*x = SendPhoneNumberVerificationTokenRequest{}39if protoimpl.UnsafeEnabled {40mi := &file_gitpod_v1_verification_proto_msgTypes[0]41ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))42ms.StoreMessageInfo(mi)43}44}4546func (x *SendPhoneNumberVerificationTokenRequest) String() string {47return protoimpl.X.MessageStringOf(x)48}4950func (*SendPhoneNumberVerificationTokenRequest) ProtoMessage() {}5152func (x *SendPhoneNumberVerificationTokenRequest) ProtoReflect() protoreflect.Message {53mi := &file_gitpod_v1_verification_proto_msgTypes[0]54if protoimpl.UnsafeEnabled && x != nil {55ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))56if ms.LoadMessageInfo() == nil {57ms.StoreMessageInfo(mi)58}59return ms60}61return mi.MessageOf(x)62}6364// Deprecated: Use SendPhoneNumberVerificationTokenRequest.ProtoReflect.Descriptor instead.65func (*SendPhoneNumberVerificationTokenRequest) Descriptor() ([]byte, []int) {66return file_gitpod_v1_verification_proto_rawDescGZIP(), []int{0}67}6869func (x *SendPhoneNumberVerificationTokenRequest) GetPhoneNumber() string {70if x != nil {71return x.PhoneNumber72}73return ""74}7576type SendPhoneNumberVerificationTokenResponse struct {77state protoimpl.MessageState78sizeCache protoimpl.SizeCache79unknownFields protoimpl.UnknownFields8081// verification_id is used to VerifyPhoneNumberVerificationToken82VerificationId string `protobuf:"bytes,1,opt,name=verification_id,json=verificationId,proto3" json:"verification_id,omitempty"`83}8485func (x *SendPhoneNumberVerificationTokenResponse) Reset() {86*x = SendPhoneNumberVerificationTokenResponse{}87if protoimpl.UnsafeEnabled {88mi := &file_gitpod_v1_verification_proto_msgTypes[1]89ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))90ms.StoreMessageInfo(mi)91}92}9394func (x *SendPhoneNumberVerificationTokenResponse) String() string {95return protoimpl.X.MessageStringOf(x)96}9798func (*SendPhoneNumberVerificationTokenResponse) ProtoMessage() {}99100func (x *SendPhoneNumberVerificationTokenResponse) ProtoReflect() protoreflect.Message {101mi := &file_gitpod_v1_verification_proto_msgTypes[1]102if protoimpl.UnsafeEnabled && x != nil {103ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))104if ms.LoadMessageInfo() == nil {105ms.StoreMessageInfo(mi)106}107return ms108}109return mi.MessageOf(x)110}111112// Deprecated: Use SendPhoneNumberVerificationTokenResponse.ProtoReflect.Descriptor instead.113func (*SendPhoneNumberVerificationTokenResponse) Descriptor() ([]byte, []int) {114return file_gitpod_v1_verification_proto_rawDescGZIP(), []int{1}115}116117func (x *SendPhoneNumberVerificationTokenResponse) GetVerificationId() string {118if x != nil {119return x.VerificationId120}121return ""122}123124// Required fields:125// - phone_number126// - verification_id127// - token128type VerifyPhoneNumberVerificationTokenRequest struct {129state protoimpl.MessageState130sizeCache protoimpl.SizeCache131unknownFields protoimpl.UnknownFields132133// phone_number in E.164 format134PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`135// verification_id is returned by SendPhoneNumberVerificationToken136VerificationId string `protobuf:"bytes,2,opt,name=verification_id,json=verificationId,proto3" json:"verification_id,omitempty"`137// token is the verification token from providers138Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`139}140141func (x *VerifyPhoneNumberVerificationTokenRequest) Reset() {142*x = VerifyPhoneNumberVerificationTokenRequest{}143if protoimpl.UnsafeEnabled {144mi := &file_gitpod_v1_verification_proto_msgTypes[2]145ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))146ms.StoreMessageInfo(mi)147}148}149150func (x *VerifyPhoneNumberVerificationTokenRequest) String() string {151return protoimpl.X.MessageStringOf(x)152}153154func (*VerifyPhoneNumberVerificationTokenRequest) ProtoMessage() {}155156func (x *VerifyPhoneNumberVerificationTokenRequest) ProtoReflect() protoreflect.Message {157mi := &file_gitpod_v1_verification_proto_msgTypes[2]158if protoimpl.UnsafeEnabled && x != nil {159ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))160if ms.LoadMessageInfo() == nil {161ms.StoreMessageInfo(mi)162}163return ms164}165return mi.MessageOf(x)166}167168// Deprecated: Use VerifyPhoneNumberVerificationTokenRequest.ProtoReflect.Descriptor instead.169func (*VerifyPhoneNumberVerificationTokenRequest) Descriptor() ([]byte, []int) {170return file_gitpod_v1_verification_proto_rawDescGZIP(), []int{2}171}172173func (x *VerifyPhoneNumberVerificationTokenRequest) GetPhoneNumber() string {174if x != nil {175return x.PhoneNumber176}177return ""178}179180func (x *VerifyPhoneNumberVerificationTokenRequest) GetVerificationId() string {181if x != nil {182return x.VerificationId183}184return ""185}186187func (x *VerifyPhoneNumberVerificationTokenRequest) GetToken() string {188if x != nil {189return x.Token190}191return ""192}193194type VerifyPhoneNumberVerificationTokenResponse struct {195state protoimpl.MessageState196sizeCache protoimpl.SizeCache197unknownFields protoimpl.UnknownFields198199// verified indicates if the verification was successful200Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`201}202203func (x *VerifyPhoneNumberVerificationTokenResponse) Reset() {204*x = VerifyPhoneNumberVerificationTokenResponse{}205if protoimpl.UnsafeEnabled {206mi := &file_gitpod_v1_verification_proto_msgTypes[3]207ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))208ms.StoreMessageInfo(mi)209}210}211212func (x *VerifyPhoneNumberVerificationTokenResponse) String() string {213return protoimpl.X.MessageStringOf(x)214}215216func (*VerifyPhoneNumberVerificationTokenResponse) ProtoMessage() {}217218func (x *VerifyPhoneNumberVerificationTokenResponse) ProtoReflect() protoreflect.Message {219mi := &file_gitpod_v1_verification_proto_msgTypes[3]220if protoimpl.UnsafeEnabled && x != nil {221ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))222if ms.LoadMessageInfo() == nil {223ms.StoreMessageInfo(mi)224}225return ms226}227return mi.MessageOf(x)228}229230// Deprecated: Use VerifyPhoneNumberVerificationTokenResponse.ProtoReflect.Descriptor instead.231func (*VerifyPhoneNumberVerificationTokenResponse) Descriptor() ([]byte, []int) {232return file_gitpod_v1_verification_proto_rawDescGZIP(), []int{3}233}234235func (x *VerifyPhoneNumberVerificationTokenResponse) GetVerified() bool {236if x != nil {237return x.Verified238}239return false240}241242var File_gitpod_v1_verification_proto protoreflect.FileDescriptor243244var file_gitpod_v1_verification_proto_rawDesc = []byte{2450x0a, 0x1c, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x69,2460x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,2470x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x4c, 0x0a, 0x27, 0x53, 0x65, 0x6e,2480x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69,2490x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,2500x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75,2510x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e,2520x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x53, 0x0a, 0x28, 0x53, 0x65, 0x6e, 0x64, 0x50,2530x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69,2540x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,2550x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,2560x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x65,2570x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x8d, 0x01, 0x0a,2580x29, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62,2590x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f,2600x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68,2610x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,2620x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x27, 0x0a,2630x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,2640x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61,2650x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,2660x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x48, 0x0a, 0x2a,2670x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,2680x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b,2690x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65,2700x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x76, 0x65,2710x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x32, 0xbb, 0x02, 0x0a, 0x13, 0x56, 0x65, 0x72, 0x69, 0x66,2720x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d,2730x01, 0x0a, 0x20, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62,2740x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f,2750x6b, 0x65, 0x6e, 0x12, 0x32, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e,2760x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56,2770x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,2780x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64,2790x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d,2800x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,2810x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x93,2820x01, 0x0a, 0x22, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75,2830x6d, 0x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,2840x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76,2850x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d,2860x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,2870x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x69,2880x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x50, 0x68,2890x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63,2900x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,2910x73, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f,2920x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37,2930x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f,2940x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70,2950x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70,2960x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,297}298299var (300file_gitpod_v1_verification_proto_rawDescOnce sync.Once301file_gitpod_v1_verification_proto_rawDescData = file_gitpod_v1_verification_proto_rawDesc302)303304func file_gitpod_v1_verification_proto_rawDescGZIP() []byte {305file_gitpod_v1_verification_proto_rawDescOnce.Do(func() {306file_gitpod_v1_verification_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_verification_proto_rawDescData)307})308return file_gitpod_v1_verification_proto_rawDescData309}310311var file_gitpod_v1_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 4)312var file_gitpod_v1_verification_proto_goTypes = []interface{}{313(*SendPhoneNumberVerificationTokenRequest)(nil), // 0: gitpod.v1.SendPhoneNumberVerificationTokenRequest314(*SendPhoneNumberVerificationTokenResponse)(nil), // 1: gitpod.v1.SendPhoneNumberVerificationTokenResponse315(*VerifyPhoneNumberVerificationTokenRequest)(nil), // 2: gitpod.v1.VerifyPhoneNumberVerificationTokenRequest316(*VerifyPhoneNumberVerificationTokenResponse)(nil), // 3: gitpod.v1.VerifyPhoneNumberVerificationTokenResponse317}318var file_gitpod_v1_verification_proto_depIdxs = []int32{3190, // 0: gitpod.v1.VerificationService.SendPhoneNumberVerificationToken:input_type -> gitpod.v1.SendPhoneNumberVerificationTokenRequest3202, // 1: gitpod.v1.VerificationService.VerifyPhoneNumberVerificationToken:input_type -> gitpod.v1.VerifyPhoneNumberVerificationTokenRequest3211, // 2: gitpod.v1.VerificationService.SendPhoneNumberVerificationToken:output_type -> gitpod.v1.SendPhoneNumberVerificationTokenResponse3223, // 3: gitpod.v1.VerificationService.VerifyPhoneNumberVerificationToken:output_type -> gitpod.v1.VerifyPhoneNumberVerificationTokenResponse3232, // [2:4] is the sub-list for method output_type3240, // [0:2] is the sub-list for method input_type3250, // [0:0] is the sub-list for extension type_name3260, // [0:0] is the sub-list for extension extendee3270, // [0:0] is the sub-list for field type_name328}329330func init() { file_gitpod_v1_verification_proto_init() }331func file_gitpod_v1_verification_proto_init() {332if File_gitpod_v1_verification_proto != nil {333return334}335if !protoimpl.UnsafeEnabled {336file_gitpod_v1_verification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {337switch v := v.(*SendPhoneNumberVerificationTokenRequest); i {338case 0:339return &v.state340case 1:341return &v.sizeCache342case 2:343return &v.unknownFields344default:345return nil346}347}348file_gitpod_v1_verification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {349switch v := v.(*SendPhoneNumberVerificationTokenResponse); i {350case 0:351return &v.state352case 1:353return &v.sizeCache354case 2:355return &v.unknownFields356default:357return nil358}359}360file_gitpod_v1_verification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {361switch v := v.(*VerifyPhoneNumberVerificationTokenRequest); i {362case 0:363return &v.state364case 1:365return &v.sizeCache366case 2:367return &v.unknownFields368default:369return nil370}371}372file_gitpod_v1_verification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {373switch v := v.(*VerifyPhoneNumberVerificationTokenResponse); i {374case 0:375return &v.state376case 1:377return &v.sizeCache378case 2:379return &v.unknownFields380default:381return nil382}383}384}385type x struct{}386out := protoimpl.TypeBuilder{387File: protoimpl.DescBuilder{388GoPackagePath: reflect.TypeOf(x{}).PkgPath(),389RawDescriptor: file_gitpod_v1_verification_proto_rawDesc,390NumEnums: 0,391NumMessages: 4,392NumExtensions: 0,393NumServices: 1,394},395GoTypes: file_gitpod_v1_verification_proto_goTypes,396DependencyIndexes: file_gitpod_v1_verification_proto_depIdxs,397MessageInfos: file_gitpod_v1_verification_proto_msgTypes,398}.Build()399File_gitpod_v1_verification_proto = out.File400file_gitpod_v1_verification_proto_rawDesc = nil401file_gitpod_v1_verification_proto_goTypes = nil402file_gitpod_v1_verification_proto_depIdxs = nil403}404405406