| 1 |
// Copyright 2022 Google LLC |
| 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.26.0 |
| 18 |
// protoc v3.18.1 |
| 19 |
// source: google/cloud/identitytoolkit/v2/account_management_service.proto |
| 20 |
|
| 21 |
package identitytoolkit |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 29 |
grpc "google.golang.org/grpc" |
| 30 |
codes "google.golang.org/grpc/codes" |
| 31 |
status "google.golang.org/grpc/status" |
| 32 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 33 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
// Verify that this generated code is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
// Finishes enrolling a second factor for the user. |
| 44 |
type FinalizeMfaEnrollmentRequest struct { |
| 45 |
state protoimpl.MessageState |
| 46 |
sizeCache protoimpl.SizeCache |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
|
| 49 |
// Required. ID token. |
| 50 |
IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| 51 |
// Display name which is entered by users to distinguish between different |
| 52 |
// second factors with same type or different type. |
| 53 |
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| 54 |
// MFA enrollment information to be verified. |
| 55 |
// |
| 56 |
// Types that are assignable to VerificationInfo: |
| 57 |
// |
| 58 |
// *FinalizeMfaEnrollmentRequest_PhoneVerificationInfo |
| 59 |
VerificationInfo isFinalizeMfaEnrollmentRequest_VerificationInfo `protobuf_oneof:"verification_info"` |
| 60 |
// The ID of the Identity Platform tenant that the user enrolling MFA belongs |
| 61 |
// to. If not set, the user belongs to the default Identity Platform project. |
| 62 |
TenantId string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` |
| 63 |
} |
| 64 |
|
| 65 |
func (x *FinalizeMfaEnrollmentRequest) Reset() { |
| 66 |
*x = FinalizeMfaEnrollmentRequest{} |
| 67 |
if protoimpl.UnsafeEnabled { |
| 68 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[0] |
| 69 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 70 |
ms.StoreMessageInfo(mi) |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
func (x *FinalizeMfaEnrollmentRequest) String() string { |
| 75 |
return protoimpl.X.MessageStringOf(x) |
| 76 |
} |
| 77 |
|
| 78 |
func (*FinalizeMfaEnrollmentRequest) ProtoMessage() {} |
| 79 |
|
| 80 |
func (x *FinalizeMfaEnrollmentRequest) ProtoReflect() protoreflect.Message { |
| 81 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[0] |
| 82 |
if protoimpl.UnsafeEnabled && x != nil { |
| 83 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 84 |
if ms.LoadMessageInfo() == nil { |
| 85 |
ms.StoreMessageInfo(mi) |
| 86 |
} |
| 87 |
return ms |
| 88 |
} |
| 89 |
return mi.MessageOf(x) |
| 90 |
} |
| 91 |
|
| 92 |
// Deprecated: Use FinalizeMfaEnrollmentRequest.ProtoReflect.Descriptor instead. |
| 93 |
func (*FinalizeMfaEnrollmentRequest) Descriptor() ([]byte, []int) { |
| 94 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{0} |
| 95 |
} |
| 96 |
|
| 97 |
func (x *FinalizeMfaEnrollmentRequest) GetIdToken() string { |
| 98 |
if x != nil { |
| 99 |
return x.IdToken |
| 100 |
} |
| 101 |
return "" |
| 102 |
} |
| 103 |
|
| 104 |
func (x *FinalizeMfaEnrollmentRequest) GetDisplayName() string { |
| 105 |
if x != nil { |
| 106 |
return x.DisplayName |
| 107 |
} |
| 108 |
return "" |
| 109 |
} |
| 110 |
|
| 111 |
func (m *FinalizeMfaEnrollmentRequest) GetVerificationInfo() isFinalizeMfaEnrollmentRequest_VerificationInfo { |
| 112 |
if m != nil { |
| 113 |
return m.VerificationInfo |
| 114 |
} |
| 115 |
return nil |
| 116 |
} |
| 117 |
|
| 118 |
func (x *FinalizeMfaEnrollmentRequest) GetPhoneVerificationInfo() *FinalizeMfaPhoneRequestInfo { |
| 119 |
if x, ok := x.GetVerificationInfo().(*FinalizeMfaEnrollmentRequest_PhoneVerificationInfo); ok { |
| 120 |
return x.PhoneVerificationInfo |
| 121 |
} |
| 122 |
return nil |
| 123 |
} |
| 124 |
|
| 125 |
func (x *FinalizeMfaEnrollmentRequest) GetTenantId() string { |
| 126 |
if x != nil { |
| 127 |
return x.TenantId |
| 128 |
} |
| 129 |
return "" |
| 130 |
} |
| 131 |
|
| 132 |
type isFinalizeMfaEnrollmentRequest_VerificationInfo interface { |
| 133 |
isFinalizeMfaEnrollmentRequest_VerificationInfo() |
| 134 |
} |
| 135 |
|
| 136 |
type FinalizeMfaEnrollmentRequest_PhoneVerificationInfo struct { |
| 137 |
// Verification info to authorize sending an SMS for phone verification. |
| 138 |
PhoneVerificationInfo *FinalizeMfaPhoneRequestInfo `protobuf:"bytes,4,opt,name=phone_verification_info,json=phoneVerificationInfo,proto3,oneof"` |
| 139 |
} |
| 140 |
|
| 141 |
func (*FinalizeMfaEnrollmentRequest_PhoneVerificationInfo) isFinalizeMfaEnrollmentRequest_VerificationInfo() { |
| 142 |
} |
| 143 |
|
| 144 |
// FinalizeMfaEnrollment response. |
| 145 |
type FinalizeMfaEnrollmentResponse struct { |
| 146 |
state protoimpl.MessageState |
| 147 |
sizeCache protoimpl.SizeCache |
| 148 |
unknownFields protoimpl.UnknownFields |
| 149 |
|
| 150 |
// ID token updated to reflect MFA enrollment. |
| 151 |
IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| 152 |
// Refresh token updated to reflect MFA enrollment. |
| 153 |
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` |
| 154 |
// MFA verified enrollment information. |
| 155 |
// |
| 156 |
// Types that are assignable to AuxiliaryAuthInfo: |
| 157 |
// |
| 158 |
// *FinalizeMfaEnrollmentResponse_PhoneAuthInfo |
| 159 |
AuxiliaryAuthInfo isFinalizeMfaEnrollmentResponse_AuxiliaryAuthInfo `protobuf_oneof:"auxiliary_auth_info"` |
| 160 |
} |
| 161 |
|
| 162 |
func (x *FinalizeMfaEnrollmentResponse) Reset() { |
| 163 |
*x = FinalizeMfaEnrollmentResponse{} |
| 164 |
if protoimpl.UnsafeEnabled { |
| 165 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[1] |
| 166 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 167 |
ms.StoreMessageInfo(mi) |
| 168 |
} |
| 169 |
} |
| 170 |
|
| 171 |
func (x *FinalizeMfaEnrollmentResponse) String() string { |
| 172 |
return protoimpl.X.MessageStringOf(x) |
| 173 |
} |
| 174 |
|
| 175 |
func (*FinalizeMfaEnrollmentResponse) ProtoMessage() {} |
| 176 |
|
| 177 |
func (x *FinalizeMfaEnrollmentResponse) ProtoReflect() protoreflect.Message { |
| 178 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[1] |
| 179 |
if protoimpl.UnsafeEnabled && x != nil { |
| 180 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 181 |
if ms.LoadMessageInfo() == nil { |
| 182 |
ms.StoreMessageInfo(mi) |
| 183 |
} |
| 184 |
return ms |
| 185 |
} |
| 186 |
return mi.MessageOf(x) |
| 187 |
} |
| 188 |
|
| 189 |
// Deprecated: Use FinalizeMfaEnrollmentResponse.ProtoReflect.Descriptor instead. |
| 190 |
func (*FinalizeMfaEnrollmentResponse) Descriptor() ([]byte, []int) { |
| 191 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{1} |
| 192 |
} |
| 193 |
|
| 194 |
func (x *FinalizeMfaEnrollmentResponse) GetIdToken() string { |
| 195 |
if x != nil { |
| 196 |
return x.IdToken |
| 197 |
} |
| 198 |
return "" |
| 199 |
} |
| 200 |
|
| 201 |
func (x *FinalizeMfaEnrollmentResponse) GetRefreshToken() string { |
| 202 |
if x != nil { |
| 203 |
return x.RefreshToken |
| 204 |
} |
| 205 |
return "" |
| 206 |
} |
| 207 |
|
| 208 |
func (m *FinalizeMfaEnrollmentResponse) GetAuxiliaryAuthInfo() isFinalizeMfaEnrollmentResponse_AuxiliaryAuthInfo { |
| 209 |
if m != nil { |
| 210 |
return m.AuxiliaryAuthInfo |
| 211 |
} |
| 212 |
return nil |
| 213 |
} |
| 214 |
|
| 215 |
func (x *FinalizeMfaEnrollmentResponse) GetPhoneAuthInfo() *FinalizeMfaPhoneResponseInfo { |
| 216 |
if x, ok := x.GetAuxiliaryAuthInfo().(*FinalizeMfaEnrollmentResponse_PhoneAuthInfo); ok { |
| 217 |
return x.PhoneAuthInfo |
| 218 |
} |
| 219 |
return nil |
| 220 |
} |
| 221 |
|
| 222 |
type isFinalizeMfaEnrollmentResponse_AuxiliaryAuthInfo interface { |
| 223 |
isFinalizeMfaEnrollmentResponse_AuxiliaryAuthInfo() |
| 224 |
} |
| 225 |
|
| 226 |
type FinalizeMfaEnrollmentResponse_PhoneAuthInfo struct { |
| 227 |
// Auxiliary auth info specific to phone auth. |
| 228 |
PhoneAuthInfo *FinalizeMfaPhoneResponseInfo `protobuf:"bytes,3,opt,name=phone_auth_info,json=phoneAuthInfo,proto3,oneof"` |
| 229 |
} |
| 230 |
|
| 231 |
func (*FinalizeMfaEnrollmentResponse_PhoneAuthInfo) isFinalizeMfaEnrollmentResponse_AuxiliaryAuthInfo() { |
| 232 |
} |
| 233 |
|
| 234 |
// Sends MFA enrollment verification SMS for a user. |
| 235 |
type StartMfaEnrollmentRequest struct { |
| 236 |
state protoimpl.MessageState |
| 237 |
sizeCache protoimpl.SizeCache |
| 238 |
unknownFields protoimpl.UnknownFields |
| 239 |
|
| 240 |
// Required. User's ID token. |
| 241 |
IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| 242 |
// MFA information by type of 2nd factor. |
| 243 |
// |
| 244 |
// Types that are assignable to EnrollmentInfo: |
| 245 |
// |
| 246 |
// *StartMfaEnrollmentRequest_PhoneEnrollmentInfo |
| 247 |
EnrollmentInfo isStartMfaEnrollmentRequest_EnrollmentInfo `protobuf_oneof:"enrollment_info"` |
| 248 |
// The ID of the Identity Platform tenant that the user enrolling MFA belongs |
| 249 |
// to. If not set, the user belongs to the default Identity Platform project. |
| 250 |
TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` |
| 251 |
} |
| 252 |
|
| 253 |
func (x *StartMfaEnrollmentRequest) Reset() { |
| 254 |
*x = StartMfaEnrollmentRequest{} |
| 255 |
if protoimpl.UnsafeEnabled { |
| 256 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[2] |
| 257 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 258 |
ms.StoreMessageInfo(mi) |
| 259 |
} |
| 260 |
} |
| 261 |
|
| 262 |
func (x *StartMfaEnrollmentRequest) String() string { |
| 263 |
return protoimpl.X.MessageStringOf(x) |
| 264 |
} |
| 265 |
|
| 266 |
func (*StartMfaEnrollmentRequest) ProtoMessage() {} |
| 267 |
|
| 268 |
func (x *StartMfaEnrollmentRequest) ProtoReflect() protoreflect.Message { |
| 269 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[2] |
| 270 |
if protoimpl.UnsafeEnabled && x != nil { |
| 271 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 272 |
if ms.LoadMessageInfo() == nil { |
| 273 |
ms.StoreMessageInfo(mi) |
| 274 |
} |
| 275 |
return ms |
| 276 |
} |
| 277 |
return mi.MessageOf(x) |
| 278 |
} |
| 279 |
|
| 280 |
// Deprecated: Use StartMfaEnrollmentRequest.ProtoReflect.Descriptor instead. |
| 281 |
func (*StartMfaEnrollmentRequest) Descriptor() ([]byte, []int) { |
| 282 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{2} |
| 283 |
} |
| 284 |
|
| 285 |
func (x *StartMfaEnrollmentRequest) GetIdToken() string { |
| 286 |
if x != nil { |
| 287 |
return x.IdToken |
| 288 |
} |
| 289 |
return "" |
| 290 |
} |
| 291 |
|
| 292 |
func (m *StartMfaEnrollmentRequest) GetEnrollmentInfo() isStartMfaEnrollmentRequest_EnrollmentInfo { |
| 293 |
if m != nil { |
| 294 |
return m.EnrollmentInfo |
| 295 |
} |
| 296 |
return nil |
| 297 |
} |
| 298 |
|
| 299 |
func (x *StartMfaEnrollmentRequest) GetPhoneEnrollmentInfo() *StartMfaPhoneRequestInfo { |
| 300 |
if x, ok := x.GetEnrollmentInfo().(*StartMfaEnrollmentRequest_PhoneEnrollmentInfo); ok { |
| 301 |
return x.PhoneEnrollmentInfo |
| 302 |
} |
| 303 |
return nil |
| 304 |
} |
| 305 |
|
| 306 |
func (x *StartMfaEnrollmentRequest) GetTenantId() string { |
| 307 |
if x != nil { |
| 308 |
return x.TenantId |
| 309 |
} |
| 310 |
return "" |
| 311 |
} |
| 312 |
|
| 313 |
type isStartMfaEnrollmentRequest_EnrollmentInfo interface { |
| 314 |
isStartMfaEnrollmentRequest_EnrollmentInfo() |
| 315 |
} |
| 316 |
|
| 317 |
type StartMfaEnrollmentRequest_PhoneEnrollmentInfo struct { |
| 318 |
// Verification info to authorize sending an SMS for phone verification. |
| 319 |
PhoneEnrollmentInfo *StartMfaPhoneRequestInfo `protobuf:"bytes,3,opt,name=phone_enrollment_info,json=phoneEnrollmentInfo,proto3,oneof"` |
| 320 |
} |
| 321 |
|
| 322 |
func (*StartMfaEnrollmentRequest_PhoneEnrollmentInfo) isStartMfaEnrollmentRequest_EnrollmentInfo() {} |
| 323 |
|
| 324 |
// StartMfaEnrollment response. |
| 325 |
type StartMfaEnrollmentResponse struct { |
| 326 |
state protoimpl.MessageState |
| 327 |
sizeCache protoimpl.SizeCache |
| 328 |
unknownFields protoimpl.UnknownFields |
| 329 |
|
| 330 |
// MFA start enrollment response by 2nd factor type. |
| 331 |
// |
| 332 |
// Types that are assignable to EnrollmentResponse: |
| 333 |
// |
| 334 |
// *StartMfaEnrollmentResponse_PhoneSessionInfo |
| 335 |
EnrollmentResponse isStartMfaEnrollmentResponse_EnrollmentResponse `protobuf_oneof:"enrollment_response"` |
| 336 |
} |
| 337 |
|
| 338 |
func (x *StartMfaEnrollmentResponse) Reset() { |
| 339 |
*x = StartMfaEnrollmentResponse{} |
| 340 |
if protoimpl.UnsafeEnabled { |
| 341 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[3] |
| 342 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 343 |
ms.StoreMessageInfo(mi) |
| 344 |
} |
| 345 |
} |
| 346 |
|
| 347 |
func (x *StartMfaEnrollmentResponse) String() string { |
| 348 |
return protoimpl.X.MessageStringOf(x) |
| 349 |
} |
| 350 |
|
| 351 |
func (*StartMfaEnrollmentResponse) ProtoMessage() {} |
| 352 |
|
| 353 |
func (x *StartMfaEnrollmentResponse) ProtoReflect() protoreflect.Message { |
| 354 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[3] |
| 355 |
if protoimpl.UnsafeEnabled && x != nil { |
| 356 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 357 |
if ms.LoadMessageInfo() == nil { |
| 358 |
ms.StoreMessageInfo(mi) |
| 359 |
} |
| 360 |
return ms |
| 361 |
} |
| 362 |
return mi.MessageOf(x) |
| 363 |
} |
| 364 |
|
| 365 |
// Deprecated: Use StartMfaEnrollmentResponse.ProtoReflect.Descriptor instead. |
| 366 |
func (*StartMfaEnrollmentResponse) Descriptor() ([]byte, []int) { |
| 367 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{3} |
| 368 |
} |
| 369 |
|
| 370 |
func (m *StartMfaEnrollmentResponse) GetEnrollmentResponse() isStartMfaEnrollmentResponse_EnrollmentResponse { |
| 371 |
if m != nil { |
| 372 |
return m.EnrollmentResponse |
| 373 |
} |
| 374 |
return nil |
| 375 |
} |
| 376 |
|
| 377 |
func (x *StartMfaEnrollmentResponse) GetPhoneSessionInfo() *StartMfaPhoneResponseInfo { |
| 378 |
if x, ok := x.GetEnrollmentResponse().(*StartMfaEnrollmentResponse_PhoneSessionInfo); ok { |
| 379 |
return x.PhoneSessionInfo |
| 380 |
} |
| 381 |
return nil |
| 382 |
} |
| 383 |
|
| 384 |
type isStartMfaEnrollmentResponse_EnrollmentResponse interface { |
| 385 |
isStartMfaEnrollmentResponse_EnrollmentResponse() |
| 386 |
} |
| 387 |
|
| 388 |
type StartMfaEnrollmentResponse_PhoneSessionInfo struct { |
| 389 |
// Verification info to authorize sending an SMS for phone verification. |
| 390 |
PhoneSessionInfo *StartMfaPhoneResponseInfo `protobuf:"bytes,1,opt,name=phone_session_info,json=phoneSessionInfo,proto3,oneof"` |
| 391 |
} |
| 392 |
|
| 393 |
func (*StartMfaEnrollmentResponse_PhoneSessionInfo) isStartMfaEnrollmentResponse_EnrollmentResponse() { |
| 394 |
} |
| 395 |
|
| 396 |
// Withdraws MFA. |
| 397 |
type WithdrawMfaRequest struct { |
| 398 |
state protoimpl.MessageState |
| 399 |
sizeCache protoimpl.SizeCache |
| 400 |
unknownFields protoimpl.UnknownFields |
| 401 |
|
| 402 |
// Required. User's ID token. |
| 403 |
IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| 404 |
// Required. MFA enrollment id from a current MFA enrollment. |
| 405 |
MfaEnrollmentId string `protobuf:"bytes,2,opt,name=mfa_enrollment_id,json=mfaEnrollmentId,proto3" json:"mfa_enrollment_id,omitempty"` |
| 406 |
// The ID of the Identity Platform tenant that the user unenrolling MFA |
| 407 |
// belongs to. If not set, the user belongs to the default Identity Platform |
| 408 |
// project. |
| 409 |
TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` |
| 410 |
} |
| 411 |
|
| 412 |
func (x *WithdrawMfaRequest) Reset() { |
| 413 |
*x = WithdrawMfaRequest{} |
| 414 |
if protoimpl.UnsafeEnabled { |
| 415 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[4] |
| 416 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 417 |
ms.StoreMessageInfo(mi) |
| 418 |
} |
| 419 |
} |
| 420 |
|
| 421 |
func (x *WithdrawMfaRequest) String() string { |
| 422 |
return protoimpl.X.MessageStringOf(x) |
| 423 |
} |
| 424 |
|
| 425 |
func (*WithdrawMfaRequest) ProtoMessage() {} |
| 426 |
|
| 427 |
func (x *WithdrawMfaRequest) ProtoReflect() protoreflect.Message { |
| 428 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[4] |
| 429 |
if protoimpl.UnsafeEnabled && x != nil { |
| 430 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 431 |
if ms.LoadMessageInfo() == nil { |
| 432 |
ms.StoreMessageInfo(mi) |
| 433 |
} |
| 434 |
return ms |
| 435 |
} |
| 436 |
return mi.MessageOf(x) |
| 437 |
} |
| 438 |
|
| 439 |
// Deprecated: Use WithdrawMfaRequest.ProtoReflect.Descriptor instead. |
| 440 |
func (*WithdrawMfaRequest) Descriptor() ([]byte, []int) { |
| 441 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{4} |
| 442 |
} |
| 443 |
|
| 444 |
func (x *WithdrawMfaRequest) GetIdToken() string { |
| 445 |
if x != nil { |
| 446 |
return x.IdToken |
| 447 |
} |
| 448 |
return "" |
| 449 |
} |
| 450 |
|
| 451 |
func (x *WithdrawMfaRequest) GetMfaEnrollmentId() string { |
| 452 |
if x != nil { |
| 453 |
return x.MfaEnrollmentId |
| 454 |
} |
| 455 |
return "" |
| 456 |
} |
| 457 |
|
| 458 |
func (x *WithdrawMfaRequest) GetTenantId() string { |
| 459 |
if x != nil { |
| 460 |
return x.TenantId |
| 461 |
} |
| 462 |
return "" |
| 463 |
} |
| 464 |
|
| 465 |
// Withdraws MultiFactorAuth response. |
| 466 |
type WithdrawMfaResponse struct { |
| 467 |
state protoimpl.MessageState |
| 468 |
sizeCache protoimpl.SizeCache |
| 469 |
unknownFields protoimpl.UnknownFields |
| 470 |
|
| 471 |
// ID token updated to reflect removal of the second factor. |
| 472 |
IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` |
| 473 |
// Refresh token updated to reflect removal of the second factor. |
| 474 |
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` |
| 475 |
} |
| 476 |
|
| 477 |
func (x *WithdrawMfaResponse) Reset() { |
| 478 |
*x = WithdrawMfaResponse{} |
| 479 |
if protoimpl.UnsafeEnabled { |
| 480 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[5] |
| 481 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 482 |
ms.StoreMessageInfo(mi) |
| 483 |
} |
| 484 |
} |
| 485 |
|
| 486 |
func (x *WithdrawMfaResponse) String() string { |
| 487 |
return protoimpl.X.MessageStringOf(x) |
| 488 |
} |
| 489 |
|
| 490 |
func (*WithdrawMfaResponse) ProtoMessage() {} |
| 491 |
|
| 492 |
func (x *WithdrawMfaResponse) ProtoReflect() protoreflect.Message { |
| 493 |
mi := &file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[5] |
| 494 |
if protoimpl.UnsafeEnabled && x != nil { |
| 495 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 496 |
if ms.LoadMessageInfo() == nil { |
| 497 |
ms.StoreMessageInfo(mi) |
| 498 |
} |
| 499 |
return ms |
| 500 |
} |
| 501 |
return mi.MessageOf(x) |
| 502 |
} |
| 503 |
|
| 504 |
// Deprecated: Use WithdrawMfaResponse.ProtoReflect.Descriptor instead. |
| 505 |
func (*WithdrawMfaResponse) Descriptor() ([]byte, []int) { |
| 506 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP(), []int{5} |
| 507 |
} |
| 508 |
|
| 509 |
func (x *WithdrawMfaResponse) GetIdToken() string { |
| 510 |
if x != nil { |
| 511 |
return x.IdToken |
| 512 |
} |
| 513 |
return "" |
| 514 |
} |
| 515 |
|
| 516 |
func (x *WithdrawMfaResponse) GetRefreshToken() string { |
| 517 |
if x != nil { |
| 518 |
return x.RefreshToken |
| 519 |
} |
| 520 |
return "" |
| 521 |
} |
| 522 |
|
| 523 |
var File_google_cloud_identitytoolkit_v2_account_management_service_proto protoreflect.FileDescriptor |
| 524 |
|
| 525 |
var file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDesc = []byte{ |
| 526 |
0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, |
| 527 |
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x76, |
| 528 |
0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, |
| 529 |
0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
| 530 |
0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 531 |
0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, |
| 532 |
0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 533 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 534 |
0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, |
| 535 |
0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, |
| 536 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, |
| 537 |
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, |
| 538 |
0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 539 |
0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x66, 0x61, |
| 540 |
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x1c, |
| 541 |
0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, |
| 542 |
0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, |
| 543 |
0x69, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, |
| 544 |
0xe0, 0x41, 0x02, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, |
| 545 |
0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, |
| 546 |
0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, |
| 547 |
0x76, 0x0a, 0x17, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, |
| 548 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, |
| 549 |
0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 550 |
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, |
| 551 |
0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x50, 0x68, |
| 552 |
0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, |
| 553 |
0x52, 0x15, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, |
| 554 |
0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e, |
| 555 |
0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, |
| 556 |
0x6e, 0x74, 0x49, 0x64, 0x42, 0x13, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, |
| 557 |
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x1d, 0x46, 0x69, |
| 558 |
0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, |
| 559 |
0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, |
| 560 |
0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, |
| 561 |
0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, |
| 562 |
0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, |
| 563 |
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x67, 0x0a, 0x0f, 0x70, |
| 564 |
0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, |
| 565 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 566 |
0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, |
| 567 |
0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, |
| 568 |
0x66, 0x61, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, |
| 569 |
0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x41, 0x75, 0x74, 0x68, |
| 570 |
0x49, 0x6e, 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x61, 0x75, 0x78, 0x69, 0x6c, 0x69, 0x61, 0x72, |
| 571 |
0x79, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x19, |
| 572 |
0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, |
| 573 |
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x64, 0x5f, |
| 574 |
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 575 |
0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x6f, 0x0a, 0x15, 0x70, 0x68, 0x6f, |
| 576 |
0x6e, 0x65, 0x5f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, |
| 577 |
0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 578 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, |
| 579 |
0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, |
| 580 |
0x4d, 0x66, 0x61, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, |
| 581 |
0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x13, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x45, 0x6e, 0x72, 0x6f, |
| 582 |
0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, |
| 583 |
0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, |
| 584 |
0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, |
| 585 |
0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x9f, 0x01, 0x0a, 0x1a, 0x53, |
| 586 |
0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, |
| 587 |
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x12, 0x70, 0x68, 0x6f, |
| 588 |
0x6e, 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, |
| 589 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 590 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, |
| 591 |
0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, |
| 592 |
0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, |
| 593 |
0x6f, 0x48, 0x00, 0x52, 0x10, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, |
| 594 |
0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, |
| 595 |
0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x0a, |
| 596 |
0x12, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, |
| 597 |
0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, |
| 598 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, |
| 599 |
0x6b, 0x65, 0x6e, 0x12, 0x2f, 0x0a, 0x11, 0x6d, 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, |
| 600 |
0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, |
| 601 |
0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, |
| 602 |
0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, |
| 603 |
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, |
| 604 |
0x64, 0x22, 0x55, 0x0a, 0x13, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x66, 0x61, |
| 605 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x74, |
| 606 |
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, |
| 607 |
0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, |
| 608 |
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, |
| 609 |
0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x9f, 0x05, 0x0a, 0x18, 0x41, 0x63, 0x63, |
| 610 |
0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, |
| 611 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc6, 0x01, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, |
| 612 |
0x7a, 0x65, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, |
| 613 |
0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, |
| 614 |
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, |
| 615 |
0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, |
| 616 |
0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, |
| 617 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, |
| 618 |
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, |
| 619 |
0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, |
| 620 |
0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, |
| 621 |
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, |
| 622 |
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, |
| 623 |
0x6e, 0x74, 0x3a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0xba, |
| 624 |
0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, |
| 625 |
0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 626 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, |
| 627 |
0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, |
| 628 |
0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 629 |
0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 630 |
0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, |
| 631 |
0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, |
| 632 |
0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, |
| 633 |
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, |
| 634 |
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, |
| 635 |
0x6e, 0x74, 0x3a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0xa8, 0x01, 0x0a, 0x0b, |
| 636 |
0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x66, 0x61, 0x12, 0x33, 0x2e, 0x67, 0x6f, |
| 637 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, |
| 638 |
0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, |
| 639 |
0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 640 |
0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 641 |
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, |
| 642 |
0x76, 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x66, 0x61, 0x52, 0x65, |
| 643 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, |
| 644 |
0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x66, 0x61, |
| 645 |
0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x77, 0x69, 0x74, 0x68, 0x64, |
| 646 |
0x72, 0x61, 0x77, 0x3a, 0x01, 0x2a, 0x1a, 0x52, 0xca, 0x41, 0x1e, 0x69, 0x64, 0x65, 0x6e, 0x74, |
| 647 |
0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 648 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, |
| 649 |
0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 650 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, |
| 651 |
0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xe0, 0x01, 0x0a, 0x23, 0x63, |
| 652 |
0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 653 |
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, |
| 654 |
0x76, 0x32, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, |
| 655 |
0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 656 |
0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, |
| 657 |
0x64, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, |
| 658 |
0x74, 0x2f, 0x76, 0x32, 0x3b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, |
| 659 |
0x6c, 0x6b, 0x69, 0x74, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, |
| 660 |
0x6f, 0x75, 0x64, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6f, 0x6c, |
| 661 |
0x6b, 0x69, 0x74, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, |
| 662 |
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x6f, |
| 663 |
0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 664 |
0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 665 |
0x74, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, |
| 666 |
0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 667 |
} |
| 668 |
|
| 669 |
var ( |
| 670 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescOnce sync.Once |
| 671 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescData = file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDesc |
| 672 |
) |
| 673 |
|
| 674 |
func file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescGZIP() []byte { |
| 675 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescOnce.Do(func() { |
| 676 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescData) |
| 677 |
}) |
| 678 |
return file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDescData |
| 679 |
} |
| 680 |
|
| 681 |
var file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 682 |
var file_google_cloud_identitytoolkit_v2_account_management_service_proto_goTypes = []interface{}{ |
| 683 |
(*FinalizeMfaEnrollmentRequest)(nil), // 0: google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentRequest |
| 684 |
(*FinalizeMfaEnrollmentResponse)(nil), // 1: google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentResponse |
| 685 |
(*StartMfaEnrollmentRequest)(nil), // 2: google.cloud.identitytoolkit.v2.StartMfaEnrollmentRequest |
| 686 |
(*StartMfaEnrollmentResponse)(nil), // 3: google.cloud.identitytoolkit.v2.StartMfaEnrollmentResponse |
| 687 |
(*WithdrawMfaRequest)(nil), // 4: google.cloud.identitytoolkit.v2.WithdrawMfaRequest |
| 688 |
(*WithdrawMfaResponse)(nil), // 5: google.cloud.identitytoolkit.v2.WithdrawMfaResponse |
| 689 |
(*FinalizeMfaPhoneRequestInfo)(nil), // 6: google.cloud.identitytoolkit.v2.FinalizeMfaPhoneRequestInfo |
| 690 |
(*FinalizeMfaPhoneResponseInfo)(nil), // 7: google.cloud.identitytoolkit.v2.FinalizeMfaPhoneResponseInfo |
| 691 |
(*StartMfaPhoneRequestInfo)(nil), // 8: google.cloud.identitytoolkit.v2.StartMfaPhoneRequestInfo |
| 692 |
(*StartMfaPhoneResponseInfo)(nil), // 9: google.cloud.identitytoolkit.v2.StartMfaPhoneResponseInfo |
| 693 |
} |
| 694 |
var file_google_cloud_identitytoolkit_v2_account_management_service_proto_depIdxs = []int32{ |
| 695 |
6, // 0: google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentRequest.phone_verification_info:type_name -> google.cloud.identitytoolkit.v2.FinalizeMfaPhoneRequestInfo |
| 696 |
7, // 1: google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentResponse.phone_auth_info:type_name -> google.cloud.identitytoolkit.v2.FinalizeMfaPhoneResponseInfo |
| 697 |
8, // 2: google.cloud.identitytoolkit.v2.StartMfaEnrollmentRequest.phone_enrollment_info:type_name -> google.cloud.identitytoolkit.v2.StartMfaPhoneRequestInfo |
| 698 |
9, // 3: google.cloud.identitytoolkit.v2.StartMfaEnrollmentResponse.phone_session_info:type_name -> google.cloud.identitytoolkit.v2.StartMfaPhoneResponseInfo |
| 699 |
0, // 4: google.cloud.identitytoolkit.v2.AccountManagementService.FinalizeMfaEnrollment:input_type -> google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentRequest |
| 700 |
2, // 5: google.cloud.identitytoolkit.v2.AccountManagementService.StartMfaEnrollment:input_type -> google.cloud.identitytoolkit.v2.StartMfaEnrollmentRequest |
| 701 |
4, // 6: google.cloud.identitytoolkit.v2.AccountManagementService.WithdrawMfa:input_type -> google.cloud.identitytoolkit.v2.WithdrawMfaRequest |
| 702 |
1, // 7: google.cloud.identitytoolkit.v2.AccountManagementService.FinalizeMfaEnrollment:output_type -> google.cloud.identitytoolkit.v2.FinalizeMfaEnrollmentResponse |
| 703 |
3, // 8: google.cloud.identitytoolkit.v2.AccountManagementService.StartMfaEnrollment:output_type -> google.cloud.identitytoolkit.v2.StartMfaEnrollmentResponse |
| 704 |
5, // 9: google.cloud.identitytoolkit.v2.AccountManagementService.WithdrawMfa:output_type -> google.cloud.identitytoolkit.v2.WithdrawMfaResponse |
| 705 |
7, // [7:10] is the sub-list for method output_type |
| 706 |
4, // [4:7] is the sub-list for method input_type |
| 707 |
4, // [4:4] is the sub-list for extension type_name |
| 708 |
4, // [4:4] is the sub-list for extension extendee |
| 709 |
0, // [0:4] is the sub-list for field type_name |
| 710 |
} |
| 711 |
|
| 712 |
func init() { file_google_cloud_identitytoolkit_v2_account_management_service_proto_init() } |
| 713 |
func file_google_cloud_identitytoolkit_v2_account_management_service_proto_init() { |
| 714 |
if File_google_cloud_identitytoolkit_v2_account_management_service_proto != nil { |
| 715 |
return |
| 716 |
} |
| 717 |
file_google_cloud_identitytoolkit_v2_mfa_info_proto_init() |
| 718 |
if !protoimpl.UnsafeEnabled { |
| 719 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 720 |
switch v := v.(*FinalizeMfaEnrollmentRequest); i { |
| 721 |
case 0: |
| 722 |
return &v.state |
| 723 |
case 1: |
| 724 |
return &v.sizeCache |
| 725 |
case 2: |
| 726 |
return &v.unknownFields |
| 727 |
default: |
| 728 |
return nil |
| 729 |
} |
| 730 |
} |
| 731 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 732 |
switch v := v.(*FinalizeMfaEnrollmentResponse); i { |
| 733 |
case 0: |
| 734 |
return &v.state |
| 735 |
case 1: |
| 736 |
return &v.sizeCache |
| 737 |
case 2: |
| 738 |
return &v.unknownFields |
| 739 |
default: |
| 740 |
return nil |
| 741 |
} |
| 742 |
} |
| 743 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 744 |
switch v := v.(*StartMfaEnrollmentRequest); i { |
| 745 |
case 0: |
| 746 |
return &v.state |
| 747 |
case 1: |
| 748 |
return &v.sizeCache |
| 749 |
case 2: |
| 750 |
return &v.unknownFields |
| 751 |
default: |
| 752 |
return nil |
| 753 |
} |
| 754 |
} |
| 755 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 756 |
switch v := v.(*StartMfaEnrollmentResponse); i { |
| 757 |
case 0: |
| 758 |
return &v.state |
| 759 |
case 1: |
| 760 |
return &v.sizeCache |
| 761 |
case 2: |
| 762 |
return &v.unknownFields |
| 763 |
default: |
| 764 |
return nil |
| 765 |
} |
| 766 |
} |
| 767 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 768 |
switch v := v.(*WithdrawMfaRequest); i { |
| 769 |
case 0: |
| 770 |
return &v.state |
| 771 |
case 1: |
| 772 |
return &v.sizeCache |
| 773 |
case 2: |
| 774 |
return &v.unknownFields |
| 775 |
default: |
| 776 |
return nil |
| 777 |
} |
| 778 |
} |
| 779 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 780 |
switch v := v.(*WithdrawMfaResponse); i { |
| 781 |
case 0: |
| 782 |
return &v.state |
| 783 |
case 1: |
| 784 |
return &v.sizeCache |
| 785 |
case 2: |
| 786 |
return &v.unknownFields |
| 787 |
default: |
| 788 |
return nil |
| 789 |
} |
| 790 |
} |
| 791 |
} |
| 792 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 793 |
(*FinalizeMfaEnrollmentRequest_PhoneVerificationInfo)(nil), |
| 794 |
} |
| 795 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 796 |
(*FinalizeMfaEnrollmentResponse_PhoneAuthInfo)(nil), |
| 797 |
} |
| 798 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[2].OneofWrappers = []interface{}{ |
| 799 |
(*StartMfaEnrollmentRequest_PhoneEnrollmentInfo)(nil), |
| 800 |
} |
| 801 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes[3].OneofWrappers = []interface{}{ |
| 802 |
(*StartMfaEnrollmentResponse_PhoneSessionInfo)(nil), |
| 803 |
} |
| 804 |
type x struct{} |
| 805 |
out := protoimpl.TypeBuilder{ |
| 806 |
File: protoimpl.DescBuilder{ |
| 807 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 808 |
RawDescriptor: file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDesc, |
| 809 |
NumEnums: 0, |
| 810 |
NumMessages: 6, |
| 811 |
NumExtensions: 0, |
| 812 |
NumServices: 1, |
| 813 |
}, |
| 814 |
GoTypes: file_google_cloud_identitytoolkit_v2_account_management_service_proto_goTypes, |
| 815 |
DependencyIndexes: file_google_cloud_identitytoolkit_v2_account_management_service_proto_depIdxs, |
| 816 |
MessageInfos: file_google_cloud_identitytoolkit_v2_account_management_service_proto_msgTypes, |
| 817 |
}.Build() |
| 818 |
File_google_cloud_identitytoolkit_v2_account_management_service_proto = out.File |
| 819 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_rawDesc = nil |
| 820 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_goTypes = nil |
| 821 |
file_google_cloud_identitytoolkit_v2_account_management_service_proto_depIdxs = nil |
| 822 |
} |
| 823 |
|
| 824 |
// Reference imports to suppress errors if they are not otherwise used. |
| 825 |
var _ context.Context |
| 826 |
var _ grpc.ClientConnInterface |
| 827 |
|
| 828 |
// This is a compile-time assertion to ensure that this generated file |
| 829 |
// is compatible with the grpc package it is being compiled against. |
| 830 |
const _ = grpc.SupportPackageIsVersion6 |
| 831 |
|
| 832 |
// AccountManagementServiceClient is the client API for AccountManagementService service. |
| 833 |
// |
| 834 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 835 |
type AccountManagementServiceClient interface { |
| 836 |
// Finishes enrolling a second factor for the user. |
| 837 |
FinalizeMfaEnrollment(ctx context.Context, in *FinalizeMfaEnrollmentRequest, opts ...grpc.CallOption) (*FinalizeMfaEnrollmentResponse, error) |
| 838 |
// Step one of the MFA enrollment process. In SMS case, this sends an |
| 839 |
// SMS verification code to the user. |
| 840 |
StartMfaEnrollment(ctx context.Context, in *StartMfaEnrollmentRequest, opts ...grpc.CallOption) (*StartMfaEnrollmentResponse, error) |
| 841 |
// Revokes one second factor from the enrolled second factors for an account. |
| 842 |
WithdrawMfa(ctx context.Context, in *WithdrawMfaRequest, opts ...grpc.CallOption) (*WithdrawMfaResponse, error) |
| 843 |
} |
| 844 |
|
| 845 |
type accountManagementServiceClient struct { |
| 846 |
cc grpc.ClientConnInterface |
| 847 |
} |
| 848 |
|
| 849 |
func NewAccountManagementServiceClient(cc grpc.ClientConnInterface) AccountManagementServiceClient { |
| 850 |
return &accountManagementServiceClient{cc} |
| 851 |
} |
| 852 |
|
| 853 |
func (c *accountManagementServiceClient) FinalizeMfaEnrollment(ctx context.Context, in *FinalizeMfaEnrollmentRequest, opts ...grpc.CallOption) (*FinalizeMfaEnrollmentResponse, error) { |
| 854 |
out := new(FinalizeMfaEnrollmentResponse) |
| 855 |
err := c.cc.Invoke(ctx, "/google.cloud.identitytoolkit.v2.AccountManagementService/FinalizeMfaEnrollment", in, out, opts...) |
| 856 |
if err != nil { |
| 857 |
return nil, err |
| 858 |
} |
| 859 |
return out, nil |
| 860 |
} |
| 861 |
|
| 862 |
func (c *accountManagementServiceClient) StartMfaEnrollment(ctx context.Context, in *StartMfaEnrollmentRequest, opts ...grpc.CallOption) (*StartMfaEnrollmentResponse, error) { |
| 863 |
out := new(StartMfaEnrollmentResponse) |
| 864 |
err := c.cc.Invoke(ctx, "/google.cloud.identitytoolkit.v2.AccountManagementService/StartMfaEnrollment", in, out, opts...) |
| 865 |
if err != nil { |
| 866 |
return nil, err |
| 867 |
} |
| 868 |
return out, nil |
| 869 |
} |
| 870 |
|
| 871 |
func (c *accountManagementServiceClient) WithdrawMfa(ctx context.Context, in *WithdrawMfaRequest, opts ...grpc.CallOption) (*WithdrawMfaResponse, error) { |
| 872 |
out := new(WithdrawMfaResponse) |
| 873 |
err := c.cc.Invoke(ctx, "/google.cloud.identitytoolkit.v2.AccountManagementService/WithdrawMfa", in, out, opts...) |
| 874 |
if err != nil { |
| 875 |
return nil, err |
| 876 |
} |
| 877 |
return out, nil |
| 878 |
} |
| 879 |
|
| 880 |
// AccountManagementServiceServer is the server API for AccountManagementService service. |
| 881 |
type AccountManagementServiceServer interface { |
| 882 |
// Finishes enrolling a second factor for the user. |
| 883 |
FinalizeMfaEnrollment(context.Context, *FinalizeMfaEnrollmentRequest) (*FinalizeMfaEnrollmentResponse, error) |
| 884 |
// Step one of the MFA enrollment process. In SMS case, this sends an |
| 885 |
// SMS verification code to the user. |
| 886 |
StartMfaEnrollment(context.Context, *StartMfaEnrollmentRequest) (*StartMfaEnrollmentResponse, error) |
| 887 |
// Revokes one second factor from the enrolled second factors for an account. |
| 888 |
WithdrawMfa(context.Context, *WithdrawMfaRequest) (*WithdrawMfaResponse, error) |
| 889 |
} |
| 890 |
|
| 891 |
// UnimplementedAccountManagementServiceServer can be embedded to have forward compatible implementations. |
| 892 |
type UnimplementedAccountManagementServiceServer struct { |
| 893 |
} |
| 894 |
|
| 895 |
func (*UnimplementedAccountManagementServiceServer) FinalizeMfaEnrollment(context.Context, *FinalizeMfaEnrollmentRequest) (*FinalizeMfaEnrollmentResponse, error) { |
| 896 |
return nil, status.Errorf(codes.Unimplemented, "method FinalizeMfaEnrollment not implemented") |
| 897 |
} |
| 898 |
func (*UnimplementedAccountManagementServiceServer) StartMfaEnrollment(context.Context, *StartMfaEnrollmentRequest) (*StartMfaEnrollmentResponse, error) { |
| 899 |
return nil, status.Errorf(codes.Unimplemented, "method StartMfaEnrollment not implemented") |
| 900 |
} |
| 901 |
func (*UnimplementedAccountManagementServiceServer) WithdrawMfa(context.Context, *WithdrawMfaRequest) (*WithdrawMfaResponse, error) { |
| 902 |
return nil, status.Errorf(codes.Unimplemented, "method WithdrawMfa not implemented") |
| 903 |
} |
| 904 |
|
| 905 |
func RegisterAccountManagementServiceServer(s *grpc.Server, srv AccountManagementServiceServer) { |
| 906 |
s.RegisterService(&_AccountManagementService_serviceDesc, srv) |
| 907 |
} |
| 908 |
|
| 909 |
func _AccountManagementService_FinalizeMfaEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 910 |
in := new(FinalizeMfaEnrollmentRequest) |
| 911 |
if err := dec(in); err != nil { |
| 912 |
return nil, err |
| 913 |
} |
| 914 |
if interceptor == nil { |
| 915 |
return srv.(AccountManagementServiceServer).FinalizeMfaEnrollment(ctx, in) |
| 916 |
} |
| 917 |
info := &grpc.UnaryServerInfo{ |
| 918 |
Server: srv, |
| 919 |
FullMethod: "/google.cloud.identitytoolkit.v2.AccountManagementService/FinalizeMfaEnrollment", |
| 920 |
} |
| 921 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 922 |
return srv.(AccountManagementServiceServer).FinalizeMfaEnrollment(ctx, req.(*FinalizeMfaEnrollmentRequest)) |
| 923 |
} |
| 924 |
return interceptor(ctx, in, info, handler) |
| 925 |
} |
| 926 |
|
| 927 |
func _AccountManagementService_StartMfaEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 928 |
in := new(StartMfaEnrollmentRequest) |
| 929 |
if err := dec(in); err != nil { |
| 930 |
return nil, err |
| 931 |
} |
| 932 |
if interceptor == nil { |
| 933 |
return srv.(AccountManagementServiceServer).StartMfaEnrollment(ctx, in) |
| 934 |
} |
| 935 |
info := &grpc.UnaryServerInfo{ |
| 936 |
Server: srv, |
| 937 |
FullMethod: "/google.cloud.identitytoolkit.v2.AccountManagementService/StartMfaEnrollment", |
| 938 |
} |
| 939 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 940 |
return srv.(AccountManagementServiceServer).StartMfaEnrollment(ctx, req.(*StartMfaEnrollmentRequest)) |
| 941 |
} |
| 942 |
return interceptor(ctx, in, info, handler) |
| 943 |
} |
| 944 |
|
| 945 |
func _AccountManagementService_WithdrawMfa_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 946 |
in := new(WithdrawMfaRequest) |
| 947 |
if err := dec(in); err != nil { |
| 948 |
return nil, err |
| 949 |
} |
| 950 |
if interceptor == nil { |
| 951 |
return srv.(AccountManagementServiceServer).WithdrawMfa(ctx, in) |
| 952 |
} |
| 953 |
info := &grpc.UnaryServerInfo{ |
| 954 |
Server: srv, |
| 955 |
FullMethod: "/google.cloud.identitytoolkit.v2.AccountManagementService/WithdrawMfa", |
| 956 |
} |
| 957 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 958 |
return srv.(AccountManagementServiceServer).WithdrawMfa(ctx, req.(*WithdrawMfaRequest)) |
| 959 |
} |
| 960 |
return interceptor(ctx, in, info, handler) |
| 961 |
} |
| 962 |
|
| 963 |
var _AccountManagementService_serviceDesc = grpc.ServiceDesc{ |
| 964 |
ServiceName: "google.cloud.identitytoolkit.v2.AccountManagementService", |
| 965 |
HandlerType: (*AccountManagementServiceServer)(nil), |
| 966 |
Methods: []grpc.MethodDesc{ |
| 967 |
{ |
| 968 |
MethodName: "FinalizeMfaEnrollment", |
| 969 |
Handler: _AccountManagementService_FinalizeMfaEnrollment_Handler, |
| 970 |
}, |
| 971 |
{ |
| 972 |
MethodName: "StartMfaEnrollment", |
| 973 |
Handler: _AccountManagementService_StartMfaEnrollment_Handler, |
| 974 |
}, |
| 975 |
{ |
| 976 |
MethodName: "WithdrawMfa", |
| 977 |
Handler: _AccountManagementService_WithdrawMfa_Handler, |
| 978 |
}, |
| 979 |
}, |
| 980 |
Streams: []grpc.StreamDesc{}, |
| 981 |
Metadata: "google/cloud/identitytoolkit/v2/account_management_service.proto", |
| 982 |
} |