Path: blob/main/components/public-api/go/v1/token.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/token.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)2526type CreateTemporaryAccessTokenRequest struct {27state protoimpl.MessageState28sizeCache protoimpl.SizeCache29unknownFields protoimpl.UnknownFields3031// user_id is the identifier of the user for which the token is created.32UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`33// expiry_seconds is the number of seconds the token is valid for.34// value should in the range [1, 600]35ExpirySeconds int32 `protobuf:"varint,2,opt,name=expiry_seconds,json=expirySeconds,proto3" json:"expiry_seconds,omitempty"`36}3738func (x *CreateTemporaryAccessTokenRequest) Reset() {39*x = CreateTemporaryAccessTokenRequest{}40if protoimpl.UnsafeEnabled {41mi := &file_gitpod_v1_token_proto_msgTypes[0]42ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))43ms.StoreMessageInfo(mi)44}45}4647func (x *CreateTemporaryAccessTokenRequest) String() string {48return protoimpl.X.MessageStringOf(x)49}5051func (*CreateTemporaryAccessTokenRequest) ProtoMessage() {}5253func (x *CreateTemporaryAccessTokenRequest) ProtoReflect() protoreflect.Message {54mi := &file_gitpod_v1_token_proto_msgTypes[0]55if protoimpl.UnsafeEnabled && x != nil {56ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))57if ms.LoadMessageInfo() == nil {58ms.StoreMessageInfo(mi)59}60return ms61}62return mi.MessageOf(x)63}6465// Deprecated: Use CreateTemporaryAccessTokenRequest.ProtoReflect.Descriptor instead.66func (*CreateTemporaryAccessTokenRequest) Descriptor() ([]byte, []int) {67return file_gitpod_v1_token_proto_rawDescGZIP(), []int{0}68}6970func (x *CreateTemporaryAccessTokenRequest) GetUserId() string {71if x != nil {72return x.UserId73}74return ""75}7677func (x *CreateTemporaryAccessTokenRequest) GetExpirySeconds() int32 {78if x != nil {79return x.ExpirySeconds80}81return 082}8384type CreateTemporaryAccessTokenResponse struct {85state protoimpl.MessageState86sizeCache protoimpl.SizeCache87unknownFields protoimpl.UnknownFields8889// cookie_name is the name of the cookie to use for the token.90CookieName string `protobuf:"bytes,1,opt,name=cookie_name,json=cookieName,proto3" json:"cookie_name,omitempty"`91Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`92}9394func (x *CreateTemporaryAccessTokenResponse) Reset() {95*x = CreateTemporaryAccessTokenResponse{}96if protoimpl.UnsafeEnabled {97mi := &file_gitpod_v1_token_proto_msgTypes[1]98ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))99ms.StoreMessageInfo(mi)100}101}102103func (x *CreateTemporaryAccessTokenResponse) String() string {104return protoimpl.X.MessageStringOf(x)105}106107func (*CreateTemporaryAccessTokenResponse) ProtoMessage() {}108109func (x *CreateTemporaryAccessTokenResponse) ProtoReflect() protoreflect.Message {110mi := &file_gitpod_v1_token_proto_msgTypes[1]111if protoimpl.UnsafeEnabled && x != nil {112ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))113if ms.LoadMessageInfo() == nil {114ms.StoreMessageInfo(mi)115}116return ms117}118return mi.MessageOf(x)119}120121// Deprecated: Use CreateTemporaryAccessTokenResponse.ProtoReflect.Descriptor instead.122func (*CreateTemporaryAccessTokenResponse) Descriptor() ([]byte, []int) {123return file_gitpod_v1_token_proto_rawDescGZIP(), []int{1}124}125126func (x *CreateTemporaryAccessTokenResponse) GetCookieName() string {127if x != nil {128return x.CookieName129}130return ""131}132133func (x *CreateTemporaryAccessTokenResponse) GetToken() string {134if x != nil {135return x.Token136}137return ""138}139140var File_gitpod_v1_token_proto protoreflect.FileDescriptor141142var file_gitpod_v1_token_proto_rawDesc = []byte{1430x0a, 0x15, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65,1440x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e,1450x76, 0x31, 0x22, 0x63, 0x0a, 0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70,1460x6f, 0x72, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e,1470x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,1480x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,1490x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e,1500x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79,1510x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x5b, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74,1520x65, 0x54, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,1530x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a,1540x0b, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,1550x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14,1560x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,1570x6f, 0x6b, 0x65, 0x6e, 0x32, 0x8b, 0x01, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65,1580x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,1590x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,1600x6b, 0x65, 0x6e, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e,1610x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x41,1620x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,1630x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,1640x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63,1650x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,1660x22, 0x00, 0x42, 0x51, 0x0a, 0x16, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e,1670x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x5a, 0x37, 0x67, 0x69,1680x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d,1690x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,1700x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f,1710x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,172}173174var (175file_gitpod_v1_token_proto_rawDescOnce sync.Once176file_gitpod_v1_token_proto_rawDescData = file_gitpod_v1_token_proto_rawDesc177)178179func file_gitpod_v1_token_proto_rawDescGZIP() []byte {180file_gitpod_v1_token_proto_rawDescOnce.Do(func() {181file_gitpod_v1_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_gitpod_v1_token_proto_rawDescData)182})183return file_gitpod_v1_token_proto_rawDescData184}185186var file_gitpod_v1_token_proto_msgTypes = make([]protoimpl.MessageInfo, 2)187var file_gitpod_v1_token_proto_goTypes = []interface{}{188(*CreateTemporaryAccessTokenRequest)(nil), // 0: gitpod.v1.CreateTemporaryAccessTokenRequest189(*CreateTemporaryAccessTokenResponse)(nil), // 1: gitpod.v1.CreateTemporaryAccessTokenResponse190}191var file_gitpod_v1_token_proto_depIdxs = []int32{1920, // 0: gitpod.v1.TokenService.CreateTemporaryAccessToken:input_type -> gitpod.v1.CreateTemporaryAccessTokenRequest1931, // 1: gitpod.v1.TokenService.CreateTemporaryAccessToken:output_type -> gitpod.v1.CreateTemporaryAccessTokenResponse1941, // [1:2] is the sub-list for method output_type1950, // [0:1] is the sub-list for method input_type1960, // [0:0] is the sub-list for extension type_name1970, // [0:0] is the sub-list for extension extendee1980, // [0:0] is the sub-list for field type_name199}200201func init() { file_gitpod_v1_token_proto_init() }202func file_gitpod_v1_token_proto_init() {203if File_gitpod_v1_token_proto != nil {204return205}206if !protoimpl.UnsafeEnabled {207file_gitpod_v1_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {208switch v := v.(*CreateTemporaryAccessTokenRequest); i {209case 0:210return &v.state211case 1:212return &v.sizeCache213case 2:214return &v.unknownFields215default:216return nil217}218}219file_gitpod_v1_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {220switch v := v.(*CreateTemporaryAccessTokenResponse); i {221case 0:222return &v.state223case 1:224return &v.sizeCache225case 2:226return &v.unknownFields227default:228return nil229}230}231}232type x struct{}233out := protoimpl.TypeBuilder{234File: protoimpl.DescBuilder{235GoPackagePath: reflect.TypeOf(x{}).PkgPath(),236RawDescriptor: file_gitpod_v1_token_proto_rawDesc,237NumEnums: 0,238NumMessages: 2,239NumExtensions: 0,240NumServices: 1,241},242GoTypes: file_gitpod_v1_token_proto_goTypes,243DependencyIndexes: file_gitpod_v1_token_proto_depIdxs,244MessageInfos: file_gitpod_v1_token_proto_msgTypes,245}.Build()246File_gitpod_v1_token_proto = out.File247file_gitpod_v1_token_proto_rawDesc = nil248file_gitpod_v1_token_proto_goTypes = nil249file_gitpod_v1_token_proto_depIdxs = nil250}251252253