go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/encryptedcookies/session/sessionpb/sessions.pb.go (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/server/encryptedcookies/session/sessionpb/sessions.proto 20 21 package sessionpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 type State int32 39 40 const ( 41 State_STATE_UNDEFINED State = 0 42 State_STATE_OPEN State = 1 // the session is valid and can be used 43 State_STATE_CLOSED State = 2 // the session was explicitly closed (e.g. logout) 44 State_STATE_REVOKED State = 3 // the ID provider refused to refresh tokens 45 ) 46 47 // Enum value maps for State. 48 var ( 49 State_name = map[int32]string{ 50 0: "STATE_UNDEFINED", 51 1: "STATE_OPEN", 52 2: "STATE_CLOSED", 53 3: "STATE_REVOKED", 54 } 55 State_value = map[string]int32{ 56 "STATE_UNDEFINED": 0, 57 "STATE_OPEN": 1, 58 "STATE_CLOSED": 2, 59 "STATE_REVOKED": 3, 60 } 61 ) 62 63 func (x State) Enum() *State { 64 p := new(State) 65 *p = x 66 return p 67 } 68 69 func (x State) String() string { 70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 71 } 72 73 func (State) Descriptor() protoreflect.EnumDescriptor { 74 return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes[0].Descriptor() 75 } 76 77 func (State) Type() protoreflect.EnumType { 78 return &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes[0] 79 } 80 81 func (x State) Number() protoreflect.EnumNumber { 82 return protoreflect.EnumNumber(x) 83 } 84 85 // Deprecated: Use State.Descriptor instead. 86 func (State) EnumDescriptor() ([]byte, []int) { 87 return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{0} 88 } 89 90 // Session is what is actually stored in the session storage. 91 type Session struct { 92 state protoimpl.MessageState 93 sizeCache protoimpl.SizeCache 94 unknownFields protoimpl.UnknownFields 95 96 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 97 Generation int32 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"` // incremented during each mutation 98 Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"` // when the session was created 99 LastRefresh *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_refresh,json=lastRefresh,proto3" json:"last_refresh,omitempty"` // last time it was refreshed 100 NextRefresh *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=next_refresh,json=nextRefresh,proto3" json:"next_refresh,omitempty"` // next refresh time 101 Closed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=closed,proto3" json:"closed,omitempty"` // when it was closed/revoked 102 Sub string `protobuf:"bytes,7,opt,name=sub,proto3" json:"sub,omitempty"` // user ID from "sub" ID token claim 103 Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` // user email from "email" ID token claim 104 Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` // user name from "name" ID token claim 105 Picture string `protobuf:"bytes,10,opt,name=picture,proto3" json:"picture,omitempty"` // profile picture URL from "picture" ID token claim 106 // the scopes that were requested in the authorization request, in addition 107 // to the default scopes (openid email profile). 108 AdditionalScopes []string `protobuf:"bytes,12,rep,name=additional_scopes,json=additionalScopes,proto3" json:"additional_scopes,omitempty"` 109 EncryptedPrivate []byte `protobuf:"bytes,11,opt,name=encrypted_private,json=encryptedPrivate,proto3" json:"encrypted_private,omitempty"` // wire-serialized and encrypted Private proto 110 } 111 112 func (x *Session) Reset() { 113 *x = Session{} 114 if protoimpl.UnsafeEnabled { 115 mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[0] 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 ms.StoreMessageInfo(mi) 118 } 119 } 120 121 func (x *Session) String() string { 122 return protoimpl.X.MessageStringOf(x) 123 } 124 125 func (*Session) ProtoMessage() {} 126 127 func (x *Session) ProtoReflect() protoreflect.Message { 128 mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[0] 129 if protoimpl.UnsafeEnabled && x != nil { 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 if ms.LoadMessageInfo() == nil { 132 ms.StoreMessageInfo(mi) 133 } 134 return ms 135 } 136 return mi.MessageOf(x) 137 } 138 139 // Deprecated: Use Session.ProtoReflect.Descriptor instead. 140 func (*Session) Descriptor() ([]byte, []int) { 141 return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{0} 142 } 143 144 func (x *Session) GetState() State { 145 if x != nil { 146 return x.State 147 } 148 return State_STATE_UNDEFINED 149 } 150 151 func (x *Session) GetGeneration() int32 { 152 if x != nil { 153 return x.Generation 154 } 155 return 0 156 } 157 158 func (x *Session) GetCreated() *timestamppb.Timestamp { 159 if x != nil { 160 return x.Created 161 } 162 return nil 163 } 164 165 func (x *Session) GetLastRefresh() *timestamppb.Timestamp { 166 if x != nil { 167 return x.LastRefresh 168 } 169 return nil 170 } 171 172 func (x *Session) GetNextRefresh() *timestamppb.Timestamp { 173 if x != nil { 174 return x.NextRefresh 175 } 176 return nil 177 } 178 179 func (x *Session) GetClosed() *timestamppb.Timestamp { 180 if x != nil { 181 return x.Closed 182 } 183 return nil 184 } 185 186 func (x *Session) GetSub() string { 187 if x != nil { 188 return x.Sub 189 } 190 return "" 191 } 192 193 func (x *Session) GetEmail() string { 194 if x != nil { 195 return x.Email 196 } 197 return "" 198 } 199 200 func (x *Session) GetName() string { 201 if x != nil { 202 return x.Name 203 } 204 return "" 205 } 206 207 func (x *Session) GetPicture() string { 208 if x != nil { 209 return x.Picture 210 } 211 return "" 212 } 213 214 func (x *Session) GetAdditionalScopes() []string { 215 if x != nil { 216 return x.AdditionalScopes 217 } 218 return nil 219 } 220 221 func (x *Session) GetEncryptedPrivate() []byte { 222 if x != nil { 223 return x.EncryptedPrivate 224 } 225 return nil 226 } 227 228 // Private contains data that is stored in the encrypted form in the session. 229 // 230 // The encryption key is part of the session cookie and not stored in the 231 // backend storage. 232 type Private struct { 233 state protoimpl.MessageState 234 sizeCache protoimpl.SizeCache 235 unknownFields protoimpl.UnknownFields 236 237 RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` 238 AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 239 IdToken string `protobuf:"bytes,3,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` 240 } 241 242 func (x *Private) Reset() { 243 *x = Private{} 244 if protoimpl.UnsafeEnabled { 245 mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[1] 246 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 247 ms.StoreMessageInfo(mi) 248 } 249 } 250 251 func (x *Private) String() string { 252 return protoimpl.X.MessageStringOf(x) 253 } 254 255 func (*Private) ProtoMessage() {} 256 257 func (x *Private) ProtoReflect() protoreflect.Message { 258 mi := &file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[1] 259 if protoimpl.UnsafeEnabled && x != nil { 260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 if ms.LoadMessageInfo() == nil { 262 ms.StoreMessageInfo(mi) 263 } 264 return ms 265 } 266 return mi.MessageOf(x) 267 } 268 269 // Deprecated: Use Private.ProtoReflect.Descriptor instead. 270 func (*Private) Descriptor() ([]byte, []int) { 271 return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP(), []int{1} 272 } 273 274 func (x *Private) GetRefreshToken() string { 275 if x != nil { 276 return x.RefreshToken 277 } 278 return "" 279 } 280 281 func (x *Private) GetAccessToken() string { 282 if x != nil { 283 return x.AccessToken 284 } 285 return "" 286 } 287 288 func (x *Private) GetIdToken() string { 289 if x != nil { 290 return x.IdToken 291 } 292 return "" 293 } 294 295 var File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto protoreflect.FileDescriptor 296 297 var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc = []byte{ 298 0x0a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 299 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, 300 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x73, 301 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 302 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 303 0x24, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x65, 0x6e, 0x63, 304 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2e, 0x73, 0x65, 305 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 306 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 307 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x04, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 308 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 309 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 310 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 311 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 312 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 313 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 314 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 315 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 316 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 317 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 318 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 319 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 320 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x6c, 321 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x3d, 0x0a, 0x0c, 0x6e, 0x65, 322 0x78, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 323 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 324 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x6e, 0x65, 325 0x78, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x32, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 326 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 327 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 328 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x10, 0x0a, 329 0x03, 0x73, 0x75, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x62, 0x12, 330 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 331 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 332 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, 0x63, 333 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, 0x74, 334 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 335 0x6c, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 336 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 337 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 338 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, 339 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x6c, 0x0a, 340 0x07, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 341 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 342 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 343 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 344 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 345 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 346 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x51, 0x0a, 0x05, 0x53, 347 0x74, 0x61, 0x74, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 348 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x41, 349 0x54, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 350 0x54, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 351 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x56, 0x4f, 0x4b, 0x45, 0x44, 0x10, 0x03, 0x42, 0x40, 352 0x5a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 353 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x65, 0x6e, 354 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x2f, 0x73, 355 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x70, 0x62, 356 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 357 } 358 359 var ( 360 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescOnce sync.Once 361 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData = file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc 362 ) 363 364 func file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescGZIP() []byte { 365 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescOnce.Do(func() { 366 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) 367 }) 368 return file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDescData 369 } 370 371 var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 372 var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 373 var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes = []interface{}{ 374 (State)(0), // 0: luci.server.encryptedcookies.session.State 375 (*Session)(nil), // 1: luci.server.encryptedcookies.session.Session 376 (*Private)(nil), // 2: luci.server.encryptedcookies.session.Private 377 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp 378 } 379 var file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs = []int32{ 380 0, // 0: luci.server.encryptedcookies.session.Session.state:type_name -> luci.server.encryptedcookies.session.State 381 3, // 1: luci.server.encryptedcookies.session.Session.created:type_name -> google.protobuf.Timestamp 382 3, // 2: luci.server.encryptedcookies.session.Session.last_refresh:type_name -> google.protobuf.Timestamp 383 3, // 3: luci.server.encryptedcookies.session.Session.next_refresh:type_name -> google.protobuf.Timestamp 384 3, // 4: luci.server.encryptedcookies.session.Session.closed:type_name -> google.protobuf.Timestamp 385 5, // [5:5] is the sub-list for method output_type 386 5, // [5:5] is the sub-list for method input_type 387 5, // [5:5] is the sub-list for extension type_name 388 5, // [5:5] is the sub-list for extension extendee 389 0, // [0:5] is the sub-list for field type_name 390 } 391 392 func init() { 393 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_init() 394 } 395 func file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_init() { 396 if File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto != nil { 397 return 398 } 399 if !protoimpl.UnsafeEnabled { 400 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 401 switch v := v.(*Session); i { 402 case 0: 403 return &v.state 404 case 1: 405 return &v.sizeCache 406 case 2: 407 return &v.unknownFields 408 default: 409 return nil 410 } 411 } 412 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 413 switch v := v.(*Private); i { 414 case 0: 415 return &v.state 416 case 1: 417 return &v.sizeCache 418 case 2: 419 return &v.unknownFields 420 default: 421 return nil 422 } 423 } 424 } 425 type x struct{} 426 out := protoimpl.TypeBuilder{ 427 File: protoimpl.DescBuilder{ 428 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 429 RawDescriptor: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc, 430 NumEnums: 1, 431 NumMessages: 2, 432 NumExtensions: 0, 433 NumServices: 0, 434 }, 435 GoTypes: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes, 436 DependencyIndexes: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs, 437 EnumInfos: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_enumTypes, 438 MessageInfos: file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_msgTypes, 439 }.Build() 440 File_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto = out.File 441 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_rawDesc = nil 442 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_goTypes = nil 443 file_go_chromium_org_luci_server_encryptedcookies_session_sessionpb_sessions_proto_depIdxs = nil 444 }