Path: blob/main/components/supervisor-api/go/token.pb.go
2498 views
// Copyright (c) 2020 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 v3.20.18// source: token.proto910package api1112import (13_ "google.golang.org/genproto/googleapis/api/annotations"14protoreflect "google.golang.org/protobuf/reflect/protoreflect"15protoimpl "google.golang.org/protobuf/runtime/protoimpl"16timestamppb "google.golang.org/protobuf/types/known/timestamppb"17reflect "reflect"18sync "sync"19)2021const (22// Verify that this generated code is sufficiently up-to-date.23_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)24// Verify that runtime/protoimpl is sufficiently up-to-date.25_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)26)2728type TokenReuse int322930const (31// REUSE_NEVER means the token can never be re-used.32// This mode only makes sense when providing a token in response to a request.33TokenReuse_REUSE_NEVER TokenReuse = 034// REUSE_EXACTLY means the token can only be reused when the requested scopes35// exactly match those of the token.36TokenReuse_REUSE_EXACTLY TokenReuse = 137// REUSE_WHEN_POSSIBLE means the token can be reused when the requested scopes38// are a subset of the token's scopes.39TokenReuse_REUSE_WHEN_POSSIBLE TokenReuse = 240)4142// Enum value maps for TokenReuse.43var (44TokenReuse_name = map[int32]string{450: "REUSE_NEVER",461: "REUSE_EXACTLY",472: "REUSE_WHEN_POSSIBLE",48}49TokenReuse_value = map[string]int32{50"REUSE_NEVER": 0,51"REUSE_EXACTLY": 1,52"REUSE_WHEN_POSSIBLE": 2,53}54)5556func (x TokenReuse) Enum() *TokenReuse {57p := new(TokenReuse)58*p = x59return p60}6162func (x TokenReuse) String() string {63return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))64}6566func (TokenReuse) Descriptor() protoreflect.EnumDescriptor {67return file_token_proto_enumTypes[0].Descriptor()68}6970func (TokenReuse) Type() protoreflect.EnumType {71return &file_token_proto_enumTypes[0]72}7374func (x TokenReuse) Number() protoreflect.EnumNumber {75return protoreflect.EnumNumber(x)76}7778// Deprecated: Use TokenReuse.Descriptor instead.79func (TokenReuse) EnumDescriptor() ([]byte, []int) {80return file_token_proto_rawDescGZIP(), []int{0}81}8283type GetTokenRequest struct {84state protoimpl.MessageState85sizeCache protoimpl.SizeCache86unknownFields protoimpl.UnknownFields8788Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`89Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`90Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`91Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`92}9394func (x *GetTokenRequest) Reset() {95*x = GetTokenRequest{}96if protoimpl.UnsafeEnabled {97mi := &file_token_proto_msgTypes[0]98ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))99ms.StoreMessageInfo(mi)100}101}102103func (x *GetTokenRequest) String() string {104return protoimpl.X.MessageStringOf(x)105}106107func (*GetTokenRequest) ProtoMessage() {}108109func (x *GetTokenRequest) ProtoReflect() protoreflect.Message {110mi := &file_token_proto_msgTypes[0]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 GetTokenRequest.ProtoReflect.Descriptor instead.122func (*GetTokenRequest) Descriptor() ([]byte, []int) {123return file_token_proto_rawDescGZIP(), []int{0}124}125126func (x *GetTokenRequest) GetHost() string {127if x != nil {128return x.Host129}130return ""131}132133func (x *GetTokenRequest) GetScope() []string {134if x != nil {135return x.Scope136}137return nil138}139140func (x *GetTokenRequest) GetDescription() string {141if x != nil {142return x.Description143}144return ""145}146147func (x *GetTokenRequest) GetKind() string {148if x != nil {149return x.Kind150}151return ""152}153154type GetTokenResponse struct {155state protoimpl.MessageState156sizeCache protoimpl.SizeCache157unknownFields protoimpl.UnknownFields158159Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`160// * The username of the account associated with the token.161User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`162Scope []string `protobuf:"bytes,3,rep,name=scope,proto3" json:"scope,omitempty"`163}164165func (x *GetTokenResponse) Reset() {166*x = GetTokenResponse{}167if protoimpl.UnsafeEnabled {168mi := &file_token_proto_msgTypes[1]169ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))170ms.StoreMessageInfo(mi)171}172}173174func (x *GetTokenResponse) String() string {175return protoimpl.X.MessageStringOf(x)176}177178func (*GetTokenResponse) ProtoMessage() {}179180func (x *GetTokenResponse) ProtoReflect() protoreflect.Message {181mi := &file_token_proto_msgTypes[1]182if protoimpl.UnsafeEnabled && x != nil {183ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))184if ms.LoadMessageInfo() == nil {185ms.StoreMessageInfo(mi)186}187return ms188}189return mi.MessageOf(x)190}191192// Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.193func (*GetTokenResponse) Descriptor() ([]byte, []int) {194return file_token_proto_rawDescGZIP(), []int{1}195}196197func (x *GetTokenResponse) GetToken() string {198if x != nil {199return x.Token200}201return ""202}203204func (x *GetTokenResponse) GetUser() string {205if x != nil {206return x.User207}208return ""209}210211func (x *GetTokenResponse) GetScope() []string {212if x != nil {213return x.Scope214}215return nil216}217218type SetTokenRequest struct {219state protoimpl.MessageState220sizeCache protoimpl.SizeCache221unknownFields protoimpl.UnknownFields222223Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`224Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`225Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`226ExpiryDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry_date,json=expiryDate,proto3" json:"expiry_date,omitempty"`227Reuse TokenReuse `protobuf:"varint,5,opt,name=reuse,proto3,enum=supervisor.TokenReuse" json:"reuse,omitempty"`228Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`229}230231func (x *SetTokenRequest) Reset() {232*x = SetTokenRequest{}233if protoimpl.UnsafeEnabled {234mi := &file_token_proto_msgTypes[2]235ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))236ms.StoreMessageInfo(mi)237}238}239240func (x *SetTokenRequest) String() string {241return protoimpl.X.MessageStringOf(x)242}243244func (*SetTokenRequest) ProtoMessage() {}245246func (x *SetTokenRequest) ProtoReflect() protoreflect.Message {247mi := &file_token_proto_msgTypes[2]248if protoimpl.UnsafeEnabled && x != nil {249ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))250if ms.LoadMessageInfo() == nil {251ms.StoreMessageInfo(mi)252}253return ms254}255return mi.MessageOf(x)256}257258// Deprecated: Use SetTokenRequest.ProtoReflect.Descriptor instead.259func (*SetTokenRequest) Descriptor() ([]byte, []int) {260return file_token_proto_rawDescGZIP(), []int{2}261}262263func (x *SetTokenRequest) GetHost() string {264if x != nil {265return x.Host266}267return ""268}269270func (x *SetTokenRequest) GetScope() []string {271if x != nil {272return x.Scope273}274return nil275}276277func (x *SetTokenRequest) GetToken() string {278if x != nil {279return x.Token280}281return ""282}283284func (x *SetTokenRequest) GetExpiryDate() *timestamppb.Timestamp {285if x != nil {286return x.ExpiryDate287}288return nil289}290291func (x *SetTokenRequest) GetReuse() TokenReuse {292if x != nil {293return x.Reuse294}295return TokenReuse_REUSE_NEVER296}297298func (x *SetTokenRequest) GetKind() string {299if x != nil {300return x.Kind301}302return ""303}304305type SetTokenResponse struct {306state protoimpl.MessageState307sizeCache protoimpl.SizeCache308unknownFields protoimpl.UnknownFields309}310311func (x *SetTokenResponse) Reset() {312*x = SetTokenResponse{}313if protoimpl.UnsafeEnabled {314mi := &file_token_proto_msgTypes[3]315ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))316ms.StoreMessageInfo(mi)317}318}319320func (x *SetTokenResponse) String() string {321return protoimpl.X.MessageStringOf(x)322}323324func (*SetTokenResponse) ProtoMessage() {}325326func (x *SetTokenResponse) ProtoReflect() protoreflect.Message {327mi := &file_token_proto_msgTypes[3]328if protoimpl.UnsafeEnabled && x != nil {329ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))330if ms.LoadMessageInfo() == nil {331ms.StoreMessageInfo(mi)332}333return ms334}335return mi.MessageOf(x)336}337338// Deprecated: Use SetTokenResponse.ProtoReflect.Descriptor instead.339func (*SetTokenResponse) Descriptor() ([]byte, []int) {340return file_token_proto_rawDescGZIP(), []int{3}341}342343type ClearTokenRequest struct {344state protoimpl.MessageState345sizeCache protoimpl.SizeCache346unknownFields protoimpl.UnknownFields347348// Types that are assignable to Token:349//350// *ClearTokenRequest_Value351// *ClearTokenRequest_All352Token isClearTokenRequest_Token `protobuf_oneof:"token"`353Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`354}355356func (x *ClearTokenRequest) Reset() {357*x = ClearTokenRequest{}358if protoimpl.UnsafeEnabled {359mi := &file_token_proto_msgTypes[4]360ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))361ms.StoreMessageInfo(mi)362}363}364365func (x *ClearTokenRequest) String() string {366return protoimpl.X.MessageStringOf(x)367}368369func (*ClearTokenRequest) ProtoMessage() {}370371func (x *ClearTokenRequest) ProtoReflect() protoreflect.Message {372mi := &file_token_proto_msgTypes[4]373if protoimpl.UnsafeEnabled && x != nil {374ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))375if ms.LoadMessageInfo() == nil {376ms.StoreMessageInfo(mi)377}378return ms379}380return mi.MessageOf(x)381}382383// Deprecated: Use ClearTokenRequest.ProtoReflect.Descriptor instead.384func (*ClearTokenRequest) Descriptor() ([]byte, []int) {385return file_token_proto_rawDescGZIP(), []int{4}386}387388func (m *ClearTokenRequest) GetToken() isClearTokenRequest_Token {389if m != nil {390return m.Token391}392return nil393}394395func (x *ClearTokenRequest) GetValue() string {396if x, ok := x.GetToken().(*ClearTokenRequest_Value); ok {397return x.Value398}399return ""400}401402func (x *ClearTokenRequest) GetAll() bool {403if x, ok := x.GetToken().(*ClearTokenRequest_All); ok {404return x.All405}406return false407}408409func (x *ClearTokenRequest) GetKind() string {410if x != nil {411return x.Kind412}413return ""414}415416type isClearTokenRequest_Token interface {417isClearTokenRequest_Token()418}419420type ClearTokenRequest_Value struct {421Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`422}423424type ClearTokenRequest_All struct {425All bool `protobuf:"varint,2,opt,name=all,proto3,oneof"`426}427428func (*ClearTokenRequest_Value) isClearTokenRequest_Token() {}429430func (*ClearTokenRequest_All) isClearTokenRequest_Token() {}431432type ClearTokenResponse struct {433state protoimpl.MessageState434sizeCache protoimpl.SizeCache435unknownFields protoimpl.UnknownFields436}437438func (x *ClearTokenResponse) Reset() {439*x = ClearTokenResponse{}440if protoimpl.UnsafeEnabled {441mi := &file_token_proto_msgTypes[5]442ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))443ms.StoreMessageInfo(mi)444}445}446447func (x *ClearTokenResponse) String() string {448return protoimpl.X.MessageStringOf(x)449}450451func (*ClearTokenResponse) ProtoMessage() {}452453func (x *ClearTokenResponse) ProtoReflect() protoreflect.Message {454mi := &file_token_proto_msgTypes[5]455if protoimpl.UnsafeEnabled && x != nil {456ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))457if ms.LoadMessageInfo() == nil {458ms.StoreMessageInfo(mi)459}460return ms461}462return mi.MessageOf(x)463}464465// Deprecated: Use ClearTokenResponse.ProtoReflect.Descriptor instead.466func (*ClearTokenResponse) Descriptor() ([]byte, []int) {467return file_token_proto_rawDescGZIP(), []int{5}468}469470type ProvideTokenRequest struct {471state protoimpl.MessageState472sizeCache protoimpl.SizeCache473unknownFields protoimpl.UnknownFields474475// Types that are assignable to Message:476//477// *ProvideTokenRequest_Registration478// *ProvideTokenRequest_Answer479Message isProvideTokenRequest_Message `protobuf_oneof:"message"`480}481482func (x *ProvideTokenRequest) Reset() {483*x = ProvideTokenRequest{}484if protoimpl.UnsafeEnabled {485mi := &file_token_proto_msgTypes[6]486ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))487ms.StoreMessageInfo(mi)488}489}490491func (x *ProvideTokenRequest) String() string {492return protoimpl.X.MessageStringOf(x)493}494495func (*ProvideTokenRequest) ProtoMessage() {}496497func (x *ProvideTokenRequest) ProtoReflect() protoreflect.Message {498mi := &file_token_proto_msgTypes[6]499if protoimpl.UnsafeEnabled && x != nil {500ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))501if ms.LoadMessageInfo() == nil {502ms.StoreMessageInfo(mi)503}504return ms505}506return mi.MessageOf(x)507}508509// Deprecated: Use ProvideTokenRequest.ProtoReflect.Descriptor instead.510func (*ProvideTokenRequest) Descriptor() ([]byte, []int) {511return file_token_proto_rawDescGZIP(), []int{6}512}513514func (m *ProvideTokenRequest) GetMessage() isProvideTokenRequest_Message {515if m != nil {516return m.Message517}518return nil519}520521func (x *ProvideTokenRequest) GetRegistration() *ProvideTokenRequest_RegisterProvider {522if x, ok := x.GetMessage().(*ProvideTokenRequest_Registration); ok {523return x.Registration524}525return nil526}527528func (x *ProvideTokenRequest) GetAnswer() *SetTokenRequest {529if x, ok := x.GetMessage().(*ProvideTokenRequest_Answer); ok {530return x.Answer531}532return nil533}534535type isProvideTokenRequest_Message interface {536isProvideTokenRequest_Message()537}538539type ProvideTokenRequest_Registration struct {540Registration *ProvideTokenRequest_RegisterProvider `protobuf:"bytes,1,opt,name=registration,proto3,oneof"`541}542543type ProvideTokenRequest_Answer struct {544Answer *SetTokenRequest `protobuf:"bytes,2,opt,name=answer,proto3,oneof"`545}546547func (*ProvideTokenRequest_Registration) isProvideTokenRequest_Message() {}548549func (*ProvideTokenRequest_Answer) isProvideTokenRequest_Message() {}550551type ProvideTokenResponse struct {552state protoimpl.MessageState553sizeCache protoimpl.SizeCache554unknownFields protoimpl.UnknownFields555556Request *GetTokenRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`557}558559func (x *ProvideTokenResponse) Reset() {560*x = ProvideTokenResponse{}561if protoimpl.UnsafeEnabled {562mi := &file_token_proto_msgTypes[7]563ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))564ms.StoreMessageInfo(mi)565}566}567568func (x *ProvideTokenResponse) String() string {569return protoimpl.X.MessageStringOf(x)570}571572func (*ProvideTokenResponse) ProtoMessage() {}573574func (x *ProvideTokenResponse) ProtoReflect() protoreflect.Message {575mi := &file_token_proto_msgTypes[7]576if protoimpl.UnsafeEnabled && x != nil {577ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))578if ms.LoadMessageInfo() == nil {579ms.StoreMessageInfo(mi)580}581return ms582}583return mi.MessageOf(x)584}585586// Deprecated: Use ProvideTokenResponse.ProtoReflect.Descriptor instead.587func (*ProvideTokenResponse) Descriptor() ([]byte, []int) {588return file_token_proto_rawDescGZIP(), []int{7}589}590591func (x *ProvideTokenResponse) GetRequest() *GetTokenRequest {592if x != nil {593return x.Request594}595return nil596}597598type ProvideTokenRequest_RegisterProvider struct {599state protoimpl.MessageState600sizeCache protoimpl.SizeCache601unknownFields protoimpl.UnknownFields602603Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`604}605606func (x *ProvideTokenRequest_RegisterProvider) Reset() {607*x = ProvideTokenRequest_RegisterProvider{}608if protoimpl.UnsafeEnabled {609mi := &file_token_proto_msgTypes[8]610ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))611ms.StoreMessageInfo(mi)612}613}614615func (x *ProvideTokenRequest_RegisterProvider) String() string {616return protoimpl.X.MessageStringOf(x)617}618619func (*ProvideTokenRequest_RegisterProvider) ProtoMessage() {}620621func (x *ProvideTokenRequest_RegisterProvider) ProtoReflect() protoreflect.Message {622mi := &file_token_proto_msgTypes[8]623if protoimpl.UnsafeEnabled && x != nil {624ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))625if ms.LoadMessageInfo() == nil {626ms.StoreMessageInfo(mi)627}628return ms629}630return mi.MessageOf(x)631}632633// Deprecated: Use ProvideTokenRequest_RegisterProvider.ProtoReflect.Descriptor instead.634func (*ProvideTokenRequest_RegisterProvider) Descriptor() ([]byte, []int) {635return file_token_proto_rawDescGZIP(), []int{6, 0}636}637638func (x *ProvideTokenRequest_RegisterProvider) GetKind() string {639if x != nil {640return x.Kind641}642return ""643}644645var File_token_proto protoreflect.FileDescriptor646647var file_token_proto_rawDesc = []byte{6480x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x73,6490x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,6500x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,6510x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,6520x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,6530x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54,6540x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68,6550x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12,6560x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,6570x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,6580x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,6590x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,6600x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x52, 0x0a, 0x10, 0x47,6610x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,6620x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,6630x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20,6640x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f,6650x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22,6660xd0, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,6670x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,6680x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65,6690x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a,6700x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,6710x6b, 0x65, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x64, 0x61,6720x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,6730x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,6740x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x44, 0x61, 0x74, 0x65,6750x12, 0x2c, 0x0a, 0x05, 0x72, 0x65, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,6760x16, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x54, 0x6f, 0x6b,6770x65, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x52, 0x05, 0x72, 0x65, 0x75, 0x73, 0x65, 0x12, 0x12,6780x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69,6790x6e, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,6800x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x11, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54,6810x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x76,6820x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61,6830x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,6840x48, 0x00, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,6850x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x74,6860x6f, 0x6b, 0x65, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b,6870x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x13, 0x50,6880x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,6890x73, 0x74, 0x12, 0x56, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,6900x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,6910x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b,6920x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,6930x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65,6940x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6e,6950x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x75, 0x70,6960x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,6970x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65,6980x72, 0x1a, 0x26, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f,6990x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20,7000x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73,7010x73, 0x61, 0x67, 0x65, 0x22, 0x4d, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54,7020x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07,7030x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,7040x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f,7050x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75,7060x65, 0x73, 0x74, 0x2a, 0x49, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x75, 0x73,7070x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x4e, 0x45, 0x56, 0x45, 0x52,7080x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x45, 0x58, 0x41, 0x43,7090x54, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x57,7100x48, 0x45, 0x4e, 0x5f, 0x50, 0x4f, 0x53, 0x53, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x32, 0xdb,7110x03, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,7120x6e, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x73, 0x75,7130x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65,7140x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,7150x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,7160x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f,7170x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d,7180x2f, 0x7b, 0x68, 0x6f, 0x73, 0x74, 0x7d, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x7d, 0x12,7190x69, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x73, 0x75,7200x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65,7210x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,7220x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,7230x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17,7240x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d,7250x2f, 0x7b, 0x68, 0x6f, 0x73, 0x74, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x96, 0x01, 0x0a, 0x0a, 0x43,7260x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x2e, 0x73, 0x75, 0x70, 0x65,7270x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65,7280x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,7290x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e,7300x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43,7310x2a, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e,7320x64, 0x7d, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x5a, 0x27, 0x2a, 0x25, 0x2f, 0x76,7330x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d, 0x2f, 0x63,7340x6c, 0x65, 0x61, 0x72, 0x2f, 0x61, 0x6c, 0x6c, 0x2f, 0x7b, 0x61, 0x6c, 0x6c, 0x3d, 0x74, 0x72,7350x75, 0x65, 0x7d, 0x12, 0x57, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f,7360x6b, 0x65, 0x6e, 0x12, 0x1f, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,7370x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,7380x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f,7390x72, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,7400x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x46, 0x0a, 0x18,7410x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76,7420x69, 0x73, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,7430x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67,7440x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,7450x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,746}747748var (749file_token_proto_rawDescOnce sync.Once750file_token_proto_rawDescData = file_token_proto_rawDesc751)752753func file_token_proto_rawDescGZIP() []byte {754file_token_proto_rawDescOnce.Do(func() {755file_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_proto_rawDescData)756})757return file_token_proto_rawDescData758}759760var file_token_proto_enumTypes = make([]protoimpl.EnumInfo, 1)761var file_token_proto_msgTypes = make([]protoimpl.MessageInfo, 9)762var file_token_proto_goTypes = []interface{}{763(TokenReuse)(0), // 0: supervisor.TokenReuse764(*GetTokenRequest)(nil), // 1: supervisor.GetTokenRequest765(*GetTokenResponse)(nil), // 2: supervisor.GetTokenResponse766(*SetTokenRequest)(nil), // 3: supervisor.SetTokenRequest767(*SetTokenResponse)(nil), // 4: supervisor.SetTokenResponse768(*ClearTokenRequest)(nil), // 5: supervisor.ClearTokenRequest769(*ClearTokenResponse)(nil), // 6: supervisor.ClearTokenResponse770(*ProvideTokenRequest)(nil), // 7: supervisor.ProvideTokenRequest771(*ProvideTokenResponse)(nil), // 8: supervisor.ProvideTokenResponse772(*ProvideTokenRequest_RegisterProvider)(nil), // 9: supervisor.ProvideTokenRequest.RegisterProvider773(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp774}775var file_token_proto_depIdxs = []int32{77610, // 0: supervisor.SetTokenRequest.expiry_date:type_name -> google.protobuf.Timestamp7770, // 1: supervisor.SetTokenRequest.reuse:type_name -> supervisor.TokenReuse7789, // 2: supervisor.ProvideTokenRequest.registration:type_name -> supervisor.ProvideTokenRequest.RegisterProvider7793, // 3: supervisor.ProvideTokenRequest.answer:type_name -> supervisor.SetTokenRequest7801, // 4: supervisor.ProvideTokenResponse.request:type_name -> supervisor.GetTokenRequest7811, // 5: supervisor.TokenService.GetToken:input_type -> supervisor.GetTokenRequest7823, // 6: supervisor.TokenService.SetToken:input_type -> supervisor.SetTokenRequest7835, // 7: supervisor.TokenService.ClearToken:input_type -> supervisor.ClearTokenRequest7847, // 8: supervisor.TokenService.ProvideToken:input_type -> supervisor.ProvideTokenRequest7852, // 9: supervisor.TokenService.GetToken:output_type -> supervisor.GetTokenResponse7864, // 10: supervisor.TokenService.SetToken:output_type -> supervisor.SetTokenResponse7876, // 11: supervisor.TokenService.ClearToken:output_type -> supervisor.ClearTokenResponse7888, // 12: supervisor.TokenService.ProvideToken:output_type -> supervisor.ProvideTokenResponse7899, // [9:13] is the sub-list for method output_type7905, // [5:9] is the sub-list for method input_type7915, // [5:5] is the sub-list for extension type_name7925, // [5:5] is the sub-list for extension extendee7930, // [0:5] is the sub-list for field type_name794}795796func init() { file_token_proto_init() }797func file_token_proto_init() {798if File_token_proto != nil {799return800}801if !protoimpl.UnsafeEnabled {802file_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {803switch v := v.(*GetTokenRequest); i {804case 0:805return &v.state806case 1:807return &v.sizeCache808case 2:809return &v.unknownFields810default:811return nil812}813}814file_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {815switch v := v.(*GetTokenResponse); i {816case 0:817return &v.state818case 1:819return &v.sizeCache820case 2:821return &v.unknownFields822default:823return nil824}825}826file_token_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {827switch v := v.(*SetTokenRequest); i {828case 0:829return &v.state830case 1:831return &v.sizeCache832case 2:833return &v.unknownFields834default:835return nil836}837}838file_token_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {839switch v := v.(*SetTokenResponse); i {840case 0:841return &v.state842case 1:843return &v.sizeCache844case 2:845return &v.unknownFields846default:847return nil848}849}850file_token_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {851switch v := v.(*ClearTokenRequest); i {852case 0:853return &v.state854case 1:855return &v.sizeCache856case 2:857return &v.unknownFields858default:859return nil860}861}862file_token_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {863switch v := v.(*ClearTokenResponse); i {864case 0:865return &v.state866case 1:867return &v.sizeCache868case 2:869return &v.unknownFields870default:871return nil872}873}874file_token_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {875switch v := v.(*ProvideTokenRequest); i {876case 0:877return &v.state878case 1:879return &v.sizeCache880case 2:881return &v.unknownFields882default:883return nil884}885}886file_token_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {887switch v := v.(*ProvideTokenResponse); i {888case 0:889return &v.state890case 1:891return &v.sizeCache892case 2:893return &v.unknownFields894default:895return nil896}897}898file_token_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {899switch v := v.(*ProvideTokenRequest_RegisterProvider); i {900case 0:901return &v.state902case 1:903return &v.sizeCache904case 2:905return &v.unknownFields906default:907return nil908}909}910}911file_token_proto_msgTypes[4].OneofWrappers = []interface{}{912(*ClearTokenRequest_Value)(nil),913(*ClearTokenRequest_All)(nil),914}915file_token_proto_msgTypes[6].OneofWrappers = []interface{}{916(*ProvideTokenRequest_Registration)(nil),917(*ProvideTokenRequest_Answer)(nil),918}919type x struct{}920out := protoimpl.TypeBuilder{921File: protoimpl.DescBuilder{922GoPackagePath: reflect.TypeOf(x{}).PkgPath(),923RawDescriptor: file_token_proto_rawDesc,924NumEnums: 1,925NumMessages: 9,926NumExtensions: 0,927NumServices: 1,928},929GoTypes: file_token_proto_goTypes,930DependencyIndexes: file_token_proto_depIdxs,931EnumInfos: file_token_proto_enumTypes,932MessageInfos: file_token_proto_msgTypes,933}.Build()934File_token_proto = out.File935file_token_proto_rawDesc = nil936file_token_proto_goTypes = nil937file_token_proto_depIdxs = nil938}939940941