go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/loginsessions/internal/statepb/state.pb.go (about) 1 // Copyright 2022 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/loginsessions/internal/statepb/state.proto 20 21 package statepb 22 23 import ( 24 loginsessionspb "go.chromium.org/luci/auth/loginsessionspb" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // LoginSession is stored in the datastore. 40 // 41 // It is a superset of luci.auth.loginsessions.LoginSession from the public API 42 // that has additional internal fields. 43 type LoginSession struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 48 // Unique ID of the session, matches luci.auth.loginsessions.LoginSession. 49 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 50 // Password protecting access to GetLoginSession RPC. 51 Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 52 // The current session state. 53 State loginsessionspb.LoginSession_State `protobuf:"varint,3,opt,name=state,proto3,enum=luci.auth.loginsessions.LoginSession_State" json:"state,omitempty"` 54 // When the session was created. Always populated. 55 Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` 56 // When the session will expire. Always populated. 57 Expiry *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiry,proto3" json:"expiry,omitempty"` 58 // When the session moved to a final state. Populated for finished sessions. 59 Completed *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed,proto3" json:"completed,omitempty"` 60 // Details provided in CreateLoginSessionRequest. Always populated. 61 OauthClientId string `protobuf:"bytes,7,opt,name=oauth_client_id,json=oauthClientId,proto3" json:"oauth_client_id,omitempty"` 62 OauthScopes []string `protobuf:"bytes,8,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"` 63 OauthS256CodeChallenge string `protobuf:"bytes,9,opt,name=oauth_s256_code_challenge,json=oauthS256CodeChallenge,proto3" json:"oauth_s256_code_challenge,omitempty"` 64 ExecutableName string `protobuf:"bytes,10,opt,name=executable_name,json=executableName,proto3" json:"executable_name,omitempty"` 65 ClientHostname string `protobuf:"bytes,11,opt,name=client_hostname,json=clientHostname,proto3" json:"client_hostname,omitempty"` 66 ConfirmationCodes []*LoginSession_ConfirmationCode `protobuf:"bytes,12,rep,name=confirmation_codes,json=confirmationCodes,proto3" json:"confirmation_codes,omitempty"` 67 // The outcome of the protocol. 68 OauthAuthorizationCode string `protobuf:"bytes,13,opt,name=oauth_authorization_code,json=oauthAuthorizationCode,proto3" json:"oauth_authorization_code,omitempty"` 69 OauthRedirectUrl string `protobuf:"bytes,14,opt,name=oauth_redirect_url,json=oauthRedirectUrl,proto3" json:"oauth_redirect_url,omitempty"` 70 OauthError string `protobuf:"bytes,15,opt,name=oauth_error,json=oauthError,proto3" json:"oauth_error,omitempty"` 71 } 72 73 func (x *LoginSession) Reset() { 74 *x = LoginSession{} 75 if protoimpl.UnsafeEnabled { 76 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[0] 77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 78 ms.StoreMessageInfo(mi) 79 } 80 } 81 82 func (x *LoginSession) String() string { 83 return protoimpl.X.MessageStringOf(x) 84 } 85 86 func (*LoginSession) ProtoMessage() {} 87 88 func (x *LoginSession) ProtoReflect() protoreflect.Message { 89 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[0] 90 if protoimpl.UnsafeEnabled && x != nil { 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 if ms.LoadMessageInfo() == nil { 93 ms.StoreMessageInfo(mi) 94 } 95 return ms 96 } 97 return mi.MessageOf(x) 98 } 99 100 // Deprecated: Use LoginSession.ProtoReflect.Descriptor instead. 101 func (*LoginSession) Descriptor() ([]byte, []int) { 102 return file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescGZIP(), []int{0} 103 } 104 105 func (x *LoginSession) GetId() string { 106 if x != nil { 107 return x.Id 108 } 109 return "" 110 } 111 112 func (x *LoginSession) GetPassword() []byte { 113 if x != nil { 114 return x.Password 115 } 116 return nil 117 } 118 119 func (x *LoginSession) GetState() loginsessionspb.LoginSession_State { 120 if x != nil { 121 return x.State 122 } 123 return loginsessionspb.LoginSession_State(0) 124 } 125 126 func (x *LoginSession) GetCreated() *timestamppb.Timestamp { 127 if x != nil { 128 return x.Created 129 } 130 return nil 131 } 132 133 func (x *LoginSession) GetExpiry() *timestamppb.Timestamp { 134 if x != nil { 135 return x.Expiry 136 } 137 return nil 138 } 139 140 func (x *LoginSession) GetCompleted() *timestamppb.Timestamp { 141 if x != nil { 142 return x.Completed 143 } 144 return nil 145 } 146 147 func (x *LoginSession) GetOauthClientId() string { 148 if x != nil { 149 return x.OauthClientId 150 } 151 return "" 152 } 153 154 func (x *LoginSession) GetOauthScopes() []string { 155 if x != nil { 156 return x.OauthScopes 157 } 158 return nil 159 } 160 161 func (x *LoginSession) GetOauthS256CodeChallenge() string { 162 if x != nil { 163 return x.OauthS256CodeChallenge 164 } 165 return "" 166 } 167 168 func (x *LoginSession) GetExecutableName() string { 169 if x != nil { 170 return x.ExecutableName 171 } 172 return "" 173 } 174 175 func (x *LoginSession) GetClientHostname() string { 176 if x != nil { 177 return x.ClientHostname 178 } 179 return "" 180 } 181 182 func (x *LoginSession) GetConfirmationCodes() []*LoginSession_ConfirmationCode { 183 if x != nil { 184 return x.ConfirmationCodes 185 } 186 return nil 187 } 188 189 func (x *LoginSession) GetOauthAuthorizationCode() string { 190 if x != nil { 191 return x.OauthAuthorizationCode 192 } 193 return "" 194 } 195 196 func (x *LoginSession) GetOauthRedirectUrl() string { 197 if x != nil { 198 return x.OauthRedirectUrl 199 } 200 return "" 201 } 202 203 func (x *LoginSession) GetOauthError() string { 204 if x != nil { 205 return x.OauthError 206 } 207 return "" 208 } 209 210 // OpenIDState is encrypted and used as `state` in OpenID Connect protocol. 211 type OpenIDState struct { 212 state protoimpl.MessageState 213 sizeCache protoimpl.SizeCache 214 unknownFields protoimpl.UnknownFields 215 216 LoginSessionId string `protobuf:"bytes,1,opt,name=login_session_id,json=loginSessionId,proto3" json:"login_session_id,omitempty"` 217 LoginCookieValue string `protobuf:"bytes,2,opt,name=login_cookie_value,json=loginCookieValue,proto3" json:"login_cookie_value,omitempty"` 218 } 219 220 func (x *OpenIDState) Reset() { 221 *x = OpenIDState{} 222 if protoimpl.UnsafeEnabled { 223 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[1] 224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 225 ms.StoreMessageInfo(mi) 226 } 227 } 228 229 func (x *OpenIDState) String() string { 230 return protoimpl.X.MessageStringOf(x) 231 } 232 233 func (*OpenIDState) ProtoMessage() {} 234 235 func (x *OpenIDState) ProtoReflect() protoreflect.Message { 236 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[1] 237 if protoimpl.UnsafeEnabled && x != nil { 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 if ms.LoadMessageInfo() == nil { 240 ms.StoreMessageInfo(mi) 241 } 242 return ms 243 } 244 return mi.MessageOf(x) 245 } 246 247 // Deprecated: Use OpenIDState.ProtoReflect.Descriptor instead. 248 func (*OpenIDState) Descriptor() ([]byte, []int) { 249 return file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescGZIP(), []int{1} 250 } 251 252 func (x *OpenIDState) GetLoginSessionId() string { 253 if x != nil { 254 return x.LoginSessionId 255 } 256 return "" 257 } 258 259 func (x *OpenIDState) GetLoginCookieValue() string { 260 if x != nil { 261 return x.LoginCookieValue 262 } 263 return "" 264 } 265 266 // Active (non-expired) confirmation codes. 267 type LoginSession_ConfirmationCode struct { 268 state protoimpl.MessageState 269 sizeCache protoimpl.SizeCache 270 unknownFields protoimpl.UnknownFields 271 272 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` 273 Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` 274 Refresh *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=refresh,proto3" json:"refresh,omitempty"` 275 } 276 277 func (x *LoginSession_ConfirmationCode) Reset() { 278 *x = LoginSession_ConfirmationCode{} 279 if protoimpl.UnsafeEnabled { 280 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[2] 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 ms.StoreMessageInfo(mi) 283 } 284 } 285 286 func (x *LoginSession_ConfirmationCode) String() string { 287 return protoimpl.X.MessageStringOf(x) 288 } 289 290 func (*LoginSession_ConfirmationCode) ProtoMessage() {} 291 292 func (x *LoginSession_ConfirmationCode) ProtoReflect() protoreflect.Message { 293 mi := &file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[2] 294 if protoimpl.UnsafeEnabled && x != nil { 295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 296 if ms.LoadMessageInfo() == nil { 297 ms.StoreMessageInfo(mi) 298 } 299 return ms 300 } 301 return mi.MessageOf(x) 302 } 303 304 // Deprecated: Use LoginSession_ConfirmationCode.ProtoReflect.Descriptor instead. 305 func (*LoginSession_ConfirmationCode) Descriptor() ([]byte, []int) { 306 return file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescGZIP(), []int{0, 0} 307 } 308 309 func (x *LoginSession_ConfirmationCode) GetCode() string { 310 if x != nil { 311 return x.Code 312 } 313 return "" 314 } 315 316 func (x *LoginSession_ConfirmationCode) GetExpiry() *timestamppb.Timestamp { 317 if x != nil { 318 return x.Expiry 319 } 320 return nil 321 } 322 323 func (x *LoginSession_ConfirmationCode) GetRefresh() *timestamppb.Timestamp { 324 if x != nil { 325 return x.Refresh 326 } 327 return nil 328 } 329 330 var File_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto protoreflect.FileDescriptor 331 332 var file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDesc = []byte{ 333 0x0a, 0x46, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 334 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 335 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 336 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x70, 0x62, 0x2f, 0x73, 0x74, 0x61, 337 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 338 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 339 0x6f, 0x6e, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 340 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 341 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 342 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 343 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0x62, 0x2f, 344 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x06, 345 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 346 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 347 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 348 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 349 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x75, 0x63, 0x69, 350 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 351 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 352 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 353 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 354 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 355 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 356 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x05, 0x20, 357 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 358 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 359 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 360 0x65, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 361 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 362 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 363 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 364 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x61, 0x75, 0x74, 365 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x61, 0x75, 366 0x74, 0x68, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 367 0x0b, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x19, 368 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x32, 0x35, 0x36, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 369 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 370 0x16, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x53, 0x32, 0x35, 0x36, 0x43, 0x6f, 0x64, 0x65, 0x43, 0x68, 371 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 372 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 373 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 374 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x6e, 375 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 376 0x74, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x67, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 377 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 378 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 379 0x76, 0x65, 0x72, 0x2e, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 380 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 381 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 382 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 383 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x61, 0x75, 0x74, 0x68, 384 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0d, 385 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x41, 0x75, 0x74, 0x68, 0x6f, 386 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x12, 387 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 388 0x72, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x52, 389 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x61, 390 0x75, 0x74, 0x68, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 391 0x0a, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x90, 0x01, 0x0a, 0x10, 392 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 393 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 394 0x63, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x02, 395 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 396 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 397 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x66, 0x72, 398 0x65, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 399 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 400 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x22, 0x65, 401 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x44, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 402 0x10, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 403 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x65, 404 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 405 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 406 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 407 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 408 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 409 0x72, 0x76, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 410 0x6e, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 411 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 412 } 413 414 var ( 415 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescOnce sync.Once 416 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescData = file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDesc 417 ) 418 419 func file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescGZIP() []byte { 420 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescOnce.Do(func() { 421 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescData) 422 }) 423 return file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDescData 424 } 425 426 var file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 427 var file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_goTypes = []interface{}{ 428 (*LoginSession)(nil), // 0: luci.server.loginsessions.LoginSession 429 (*OpenIDState)(nil), // 1: luci.server.loginsessions.OpenIDState 430 (*LoginSession_ConfirmationCode)(nil), // 2: luci.server.loginsessions.LoginSession.ConfirmationCode 431 (loginsessionspb.LoginSession_State)(0), // 3: luci.auth.loginsessions.LoginSession.State 432 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp 433 } 434 var file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_depIdxs = []int32{ 435 3, // 0: luci.server.loginsessions.LoginSession.state:type_name -> luci.auth.loginsessions.LoginSession.State 436 4, // 1: luci.server.loginsessions.LoginSession.created:type_name -> google.protobuf.Timestamp 437 4, // 2: luci.server.loginsessions.LoginSession.expiry:type_name -> google.protobuf.Timestamp 438 4, // 3: luci.server.loginsessions.LoginSession.completed:type_name -> google.protobuf.Timestamp 439 2, // 4: luci.server.loginsessions.LoginSession.confirmation_codes:type_name -> luci.server.loginsessions.LoginSession.ConfirmationCode 440 4, // 5: luci.server.loginsessions.LoginSession.ConfirmationCode.expiry:type_name -> google.protobuf.Timestamp 441 4, // 6: luci.server.loginsessions.LoginSession.ConfirmationCode.refresh:type_name -> google.protobuf.Timestamp 442 7, // [7:7] is the sub-list for method output_type 443 7, // [7:7] is the sub-list for method input_type 444 7, // [7:7] is the sub-list for extension type_name 445 7, // [7:7] is the sub-list for extension extendee 446 0, // [0:7] is the sub-list for field type_name 447 } 448 449 func init() { file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_init() } 450 func file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_init() { 451 if File_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto != nil { 452 return 453 } 454 if !protoimpl.UnsafeEnabled { 455 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 456 switch v := v.(*LoginSession); i { 457 case 0: 458 return &v.state 459 case 1: 460 return &v.sizeCache 461 case 2: 462 return &v.unknownFields 463 default: 464 return nil 465 } 466 } 467 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 468 switch v := v.(*OpenIDState); i { 469 case 0: 470 return &v.state 471 case 1: 472 return &v.sizeCache 473 case 2: 474 return &v.unknownFields 475 default: 476 return nil 477 } 478 } 479 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 480 switch v := v.(*LoginSession_ConfirmationCode); i { 481 case 0: 482 return &v.state 483 case 1: 484 return &v.sizeCache 485 case 2: 486 return &v.unknownFields 487 default: 488 return nil 489 } 490 } 491 } 492 type x struct{} 493 out := protoimpl.TypeBuilder{ 494 File: protoimpl.DescBuilder{ 495 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 496 RawDescriptor: file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDesc, 497 NumEnums: 0, 498 NumMessages: 3, 499 NumExtensions: 0, 500 NumServices: 0, 501 }, 502 GoTypes: file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_goTypes, 503 DependencyIndexes: file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_depIdxs, 504 MessageInfos: file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_msgTypes, 505 }.Build() 506 File_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto = out.File 507 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_rawDesc = nil 508 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_goTypes = nil 509 file_go_chromium_org_luci_server_loginsessions_internal_statepb_state_proto_depIdxs = nil 510 }