| // Copyright 2021 The LUCI Authors. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.31.0 |
| // protoc v3.21.7 |
| // source: go.chromium.org/luci/server/encryptedcookies/session/sessionpb/sessions.proto |
| |
| package sessionpb |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 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 State int32 |
| |
| const ( |
| State_STATE_UNDEFINED State = 0 |
| State_STATE_OPEN State = 1 // the session is valid and can be used |
| State_STATE_CLOSED State = 2 // the session was explicitly closed (e.g. logout) |
| State_STATE_REVOKED State = 3 // the ID provider refused to refresh tokens |
| ) |
| |
| // Enum value maps for State. |
| var ( |
| State_name = map[int32]string{ |
| 0: "STATE_UNDEFINED", |
| 1: "STATE_OPEN", |
| 2: "STATE_CLOSED", |
| 3: "STATE_REVOKED", |
| } |
| State_value = map[string]int32{ |
| "STATE_UNDEFINED": 0, |
| "STATE_OPEN": 1, |
| "STATE_CLOSED": 2, |
| "STATE_REVOKED": 3, |
| } |
| ) |
| |
| func (x State) Enum() *State { |
| p := new(State) |
| *p = x |
| return p |
| } |
| |
| func (x State) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (State) Descriptor() protoreflect.EnumDescriptor { |
| return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (State) Type() protoreflect.EnumType { |
| return &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes[0] |
| } |
| |
| func (x State) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use State.Descriptor instead. |
| func (State) EnumDescriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{0} |
| } |
| |
| // Session is what is actually stored in the session storage. |
| type Session struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| State State `protobuf:"varint,1,opt,name=state,proto3,enum=luci.server.encryptedcookies.session.State" json:"state,omitempty"` // identifies where the session is in its lifecycle |
| Generation int32 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"` // incremented during each mutation |
| Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"` // when the session was created |
| LastRefresh *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_refresh,json=lastRefresh,proto3" json:"last_refresh,omitempty"` // last time it was refreshed |
| NextRefresh *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=next_refresh,json=nextRefresh,proto3" json:"next_refresh,omitempty"` // next refresh time |
| Closed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=closed,proto3" json:"closed,omitempty"` // when it was closed/revoked |
| Sub string `protobuf:"bytes,7,opt,name=sub,proto3" json:"sub,omitempty"` // user ID from "sub" ID token claim |
| Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` // user email from "email" ID token claim |
| Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` // user name from "name" ID token claim |
| Picture string `protobuf:"bytes,10,opt,name=picture,proto3" json:"picture,omitempty"` // profile picture URL from "picture" ID token claim |
| // the scopes that were requested in the authorization request, in addition |
| // to the default scopes (openid email profile). |
| AdditionalScopes []string `protobuf:"bytes,12,rep,name=additional_scopes,json=additionalScopes,proto3" json:"additional_scopes,omitempty"` |
| EncryptedPrivate []byte `protobuf:"bytes,11,opt,name=encrypted_private,json=encryptedPrivate,proto3" json:"encrypted_private,omitempty"` // wire-serialized and encrypted Private proto |
| } |
| |
| func (x *Session) Reset() { |
| *x = Session{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Session) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Session) ProtoMessage() {} |
| |
| func (x *Session) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_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 Session.ProtoReflect.Descriptor instead. |
| func (*Session) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Session) GetState() State { |
| if x != nil { |
| return x.State |
| } |
| return State_STATE_UNDEFINED |
| } |
| |
| func (x *Session) GetGeneration() int32 { |
| if x != nil { |
| return x.Generation |
| } |
| return 0 |
| } |
| |
| func (x *Session) GetCreated() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Created |
| } |
| return nil |
| } |
| |
| func (x *Session) GetLastRefresh() *timestamppb.Timestamp { |
| if x != nil { |
| return x.LastRefresh |
| } |
| return nil |
| } |
| |
| func (x *Session) GetNextRefresh() *timestamppb.Timestamp { |
| if x != nil { |
| return x.NextRefresh |
| } |
| return nil |
| } |
| |
| func (x *Session) GetClosed() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Closed |
| } |
| return nil |
| } |
| |
| func (x *Session) GetSub() string { |
| if x != nil { |
| return x.Sub |
| } |
| return "" |
| } |
| |
| func (x *Session) GetEmail() string { |
| if x != nil { |
| return x.Email |
| } |
| return "" |
| } |
| |
| func (x *Session) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Session) GetPicture() string { |
| if x != nil { |
| return x.Picture |
| } |
| return "" |
| } |
| |
| func (x *Session) GetAdditionalScopes() []string { |
| if x != nil { |
| return x.AdditionalScopes |
| } |
| return nil |
| } |
| |
| func (x *Session) GetEncryptedPrivate() []byte { |
| if x != nil { |
| return x.EncryptedPrivate |
| } |
| return nil |
| } |
| |
| // Private contains data that is stored in the encrypted form in the session. |
| // |
| // The encryption key is part of the session cookie and not stored in the |
| // backend storage. |
| type Private struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` |
| AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` |
| IdToken string `protobuf:"bytes,3,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| } |
| |
| func (x *Private) Reset() { |
| *x = Private{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Private) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Private) ProtoMessage() {} |
| |
| func (x *Private) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_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 Private.ProtoReflect.Descriptor instead. |
| func (*Private) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *Private) GetRefreshToken() string { |
| if x != nil { |
| return x.RefreshToken |
| } |
| return "" |
| } |
| |
| func (x *Private) GetAccessToken() string { |
| if x != nil { |
| return x.AccessToken |
| } |
| return "" |
| } |
| |
| func (x *Private) GetIdToken() string { |
| if x != nil { |
| return x.IdToken |
| } |
| return "" |
| } |
| |
| var File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto protoreflect.FileDescriptor |
| |
| var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc = []byte{ |
| 0x0a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, |
| 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, |
| 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x73, |
| 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, |
| 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 0x24, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x65, 0x6e, 0x63, |
| 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, |
| 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, |
| 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x04, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, |
| 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, |
| 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, |
| 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, |
| 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, |
| 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, |
| 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, |
| 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, |
| 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x6c, |
| 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x3d, 0x0a, 0x0c, 0x6e, 0x65, |
| 0x78, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x6e, 0x65, |
| 0x78, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x32, 0x0a, 0x06, 0x63, 0x6c, 0x6f, |
| 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, |
| 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x10, 0x0a, |
| 0x03, 0x73, 0x75, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x62, 0x12, |
| 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, |
| 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, 0x63, |
| 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, 0x74, |
| 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, |
| 0x6c, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, |
| 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, |
| 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, |
| 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, |
| 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x6c, 0x0a, |
| 0x07, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, |
| 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, |
| 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, |
| 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x51, 0x0a, 0x05, 0x53, |
| 0x74, 0x61, 0x74, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, |
| 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x41, |
| 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, |
| 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, |
| 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x56, 0x4f, 0x4b, 0x45, 0x44, 0x10, 0x03, 0x42, 0x40, |
| 0x5a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, |
| 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, |
| 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x73, |
| 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, |
| 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescOnce sync.Once |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData = file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc |
| ) |
| |
| func file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData) |
| }) |
| return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes = []interface{}{ |
| (State)(0), // 0: luci.server.encryptedcookies.session.State |
| (*Session)(nil), // 1: luci.server.encryptedcookies.session.Session |
| (*Private)(nil), // 2: luci.server.encryptedcookies.session.Private |
| (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp |
| } |
| var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs = []int32{ |
| 0, // 0: luci.server.encryptedcookies.session.Session.state:type_name -> luci.server.encryptedcookies.session.State |
| 3, // 1: luci.server.encryptedcookies.session.Session.created:type_name -> google.protobuf.Timestamp |
| 3, // 2: luci.server.encryptedcookies.session.Session.last_refresh:type_name -> google.protobuf.Timestamp |
| 3, // 3: luci.server.encryptedcookies.session.Session.next_refresh:type_name -> google.protobuf.Timestamp |
| 3, // 4: luci.server.encryptedcookies.session.Session.closed:type_name -> google.protobuf.Timestamp |
| 5, // [5:5] is the sub-list for method output_type |
| 5, // [5:5] is the sub-list for method input_type |
| 5, // [5:5] is the sub-list for extension type_name |
| 5, // [5:5] is the sub-list for extension extendee |
| 0, // [0:5] is the sub-list for field type_name |
| } |
| |
| func init() { |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_init() |
| } |
| func file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_init() { |
| if File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Session); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Private); 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_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 2, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs, |
| EnumInfos: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes, |
| MessageInfos: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto = out.File |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc = nil |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes = nil |
| file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs = nil |
| } |