...

Source file src/google.golang.org/genproto/googleapis/cloud/identitytoolkit/v2/authentication_service.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/identitytoolkit/v2

     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/authentication_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  // Finalizes sign-in by verifying MFA challenge.
    44  type FinalizeMfaSignInRequest struct {
    45  	state         protoimpl.MessageState
    46  	sizeCache     protoimpl.SizeCache
    47  	unknownFields protoimpl.UnknownFields
    48  
    49  	// Required. Pending credential from first factor sign-in.
    50  	MfaPendingCredential string `protobuf:"bytes,2,opt,name=mfa_pending_credential,json=mfaPendingCredential,proto3" json:"mfa_pending_credential,omitempty"`
    51  	// Proof of completion of the MFA challenge.
    52  	//
    53  	// Types that are assignable to VerificationInfo:
    54  	//
    55  	//	*FinalizeMfaSignInRequest_PhoneVerificationInfo
    56  	VerificationInfo isFinalizeMfaSignInRequest_VerificationInfo `protobuf_oneof:"verification_info"`
    57  	// The ID of the Identity Platform tenant the user is signing in to. If not
    58  	// set, the user will sign in to the default Identity Platform project.
    59  	TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
    60  }
    61  
    62  func (x *FinalizeMfaSignInRequest) Reset() {
    63  	*x = FinalizeMfaSignInRequest{}
    64  	if protoimpl.UnsafeEnabled {
    65  		mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[0]
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		ms.StoreMessageInfo(mi)
    68  	}
    69  }
    70  
    71  func (x *FinalizeMfaSignInRequest) String() string {
    72  	return protoimpl.X.MessageStringOf(x)
    73  }
    74  
    75  func (*FinalizeMfaSignInRequest) ProtoMessage() {}
    76  
    77  func (x *FinalizeMfaSignInRequest) ProtoReflect() protoreflect.Message {
    78  	mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[0]
    79  	if protoimpl.UnsafeEnabled && x != nil {
    80  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    81  		if ms.LoadMessageInfo() == nil {
    82  			ms.StoreMessageInfo(mi)
    83  		}
    84  		return ms
    85  	}
    86  	return mi.MessageOf(x)
    87  }
    88  
    89  // Deprecated: Use FinalizeMfaSignInRequest.ProtoReflect.Descriptor instead.
    90  func (*FinalizeMfaSignInRequest) Descriptor() ([]byte, []int) {
    91  	return file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescGZIP(), []int{0}
    92  }
    93  
    94  func (x *FinalizeMfaSignInRequest) GetMfaPendingCredential() string {
    95  	if x != nil {
    96  		return x.MfaPendingCredential
    97  	}
    98  	return ""
    99  }
   100  
   101  func (m *FinalizeMfaSignInRequest) GetVerificationInfo() isFinalizeMfaSignInRequest_VerificationInfo {
   102  	if m != nil {
   103  		return m.VerificationInfo
   104  	}
   105  	return nil
   106  }
   107  
   108  func (x *FinalizeMfaSignInRequest) GetPhoneVerificationInfo() *FinalizeMfaPhoneRequestInfo {
   109  	if x, ok := x.GetVerificationInfo().(*FinalizeMfaSignInRequest_PhoneVerificationInfo); ok {
   110  		return x.PhoneVerificationInfo
   111  	}
   112  	return nil
   113  }
   114  
   115  func (x *FinalizeMfaSignInRequest) GetTenantId() string {
   116  	if x != nil {
   117  		return x.TenantId
   118  	}
   119  	return ""
   120  }
   121  
   122  type isFinalizeMfaSignInRequest_VerificationInfo interface {
   123  	isFinalizeMfaSignInRequest_VerificationInfo()
   124  }
   125  
   126  type FinalizeMfaSignInRequest_PhoneVerificationInfo struct {
   127  	// Proof of completion of the SMS based MFA challenge.
   128  	PhoneVerificationInfo *FinalizeMfaPhoneRequestInfo `protobuf:"bytes,3,opt,name=phone_verification_info,json=phoneVerificationInfo,proto3,oneof"`
   129  }
   130  
   131  func (*FinalizeMfaSignInRequest_PhoneVerificationInfo) isFinalizeMfaSignInRequest_VerificationInfo() {
   132  }
   133  
   134  // FinalizeMfaSignIn response.
   135  type FinalizeMfaSignInResponse struct {
   136  	state         protoimpl.MessageState
   137  	sizeCache     protoimpl.SizeCache
   138  	unknownFields protoimpl.UnknownFields
   139  
   140  	// ID token for the authenticated user.
   141  	IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
   142  	// Refresh token for the authenticated user.
   143  	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
   144  	// MFA verified sign-in information.
   145  	//
   146  	// Types that are assignable to AuxiliaryAuthInfo:
   147  	//
   148  	//	*FinalizeMfaSignInResponse_PhoneAuthInfo
   149  	AuxiliaryAuthInfo isFinalizeMfaSignInResponse_AuxiliaryAuthInfo `protobuf_oneof:"auxiliary_auth_info"`
   150  }
   151  
   152  func (x *FinalizeMfaSignInResponse) Reset() {
   153  	*x = FinalizeMfaSignInResponse{}
   154  	if protoimpl.UnsafeEnabled {
   155  		mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[1]
   156  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   157  		ms.StoreMessageInfo(mi)
   158  	}
   159  }
   160  
   161  func (x *FinalizeMfaSignInResponse) String() string {
   162  	return protoimpl.X.MessageStringOf(x)
   163  }
   164  
   165  func (*FinalizeMfaSignInResponse) ProtoMessage() {}
   166  
   167  func (x *FinalizeMfaSignInResponse) ProtoReflect() protoreflect.Message {
   168  	mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[1]
   169  	if protoimpl.UnsafeEnabled && x != nil {
   170  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   171  		if ms.LoadMessageInfo() == nil {
   172  			ms.StoreMessageInfo(mi)
   173  		}
   174  		return ms
   175  	}
   176  	return mi.MessageOf(x)
   177  }
   178  
   179  // Deprecated: Use FinalizeMfaSignInResponse.ProtoReflect.Descriptor instead.
   180  func (*FinalizeMfaSignInResponse) Descriptor() ([]byte, []int) {
   181  	return file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescGZIP(), []int{1}
   182  }
   183  
   184  func (x *FinalizeMfaSignInResponse) GetIdToken() string {
   185  	if x != nil {
   186  		return x.IdToken
   187  	}
   188  	return ""
   189  }
   190  
   191  func (x *FinalizeMfaSignInResponse) GetRefreshToken() string {
   192  	if x != nil {
   193  		return x.RefreshToken
   194  	}
   195  	return ""
   196  }
   197  
   198  func (m *FinalizeMfaSignInResponse) GetAuxiliaryAuthInfo() isFinalizeMfaSignInResponse_AuxiliaryAuthInfo {
   199  	if m != nil {
   200  		return m.AuxiliaryAuthInfo
   201  	}
   202  	return nil
   203  }
   204  
   205  func (x *FinalizeMfaSignInResponse) GetPhoneAuthInfo() *FinalizeMfaPhoneResponseInfo {
   206  	if x, ok := x.GetAuxiliaryAuthInfo().(*FinalizeMfaSignInResponse_PhoneAuthInfo); ok {
   207  		return x.PhoneAuthInfo
   208  	}
   209  	return nil
   210  }
   211  
   212  type isFinalizeMfaSignInResponse_AuxiliaryAuthInfo interface {
   213  	isFinalizeMfaSignInResponse_AuxiliaryAuthInfo()
   214  }
   215  
   216  type FinalizeMfaSignInResponse_PhoneAuthInfo struct {
   217  	// Extra phone auth info, including android verification proof.
   218  	PhoneAuthInfo *FinalizeMfaPhoneResponseInfo `protobuf:"bytes,3,opt,name=phone_auth_info,json=phoneAuthInfo,proto3,oneof"`
   219  }
   220  
   221  func (*FinalizeMfaSignInResponse_PhoneAuthInfo) isFinalizeMfaSignInResponse_AuxiliaryAuthInfo() {}
   222  
   223  // Starts multi-factor sign-in by sending the multi-factor auth challenge.
   224  type StartMfaSignInRequest struct {
   225  	state         protoimpl.MessageState
   226  	sizeCache     protoimpl.SizeCache
   227  	unknownFields protoimpl.UnknownFields
   228  
   229  	// Required. Pending credential from first factor sign-in.
   230  	MfaPendingCredential string `protobuf:"bytes,2,opt,name=mfa_pending_credential,json=mfaPendingCredential,proto3" json:"mfa_pending_credential,omitempty"`
   231  	// Required. MFA enrollment id from the user's list of current MFA enrollments.
   232  	MfaEnrollmentId string `protobuf:"bytes,3,opt,name=mfa_enrollment_id,json=mfaEnrollmentId,proto3" json:"mfa_enrollment_id,omitempty"`
   233  	// MFA information by type of 2nd factor.
   234  	//
   235  	// Types that are assignable to SignInInfo:
   236  	//
   237  	//	*StartMfaSignInRequest_PhoneSignInInfo
   238  	SignInInfo isStartMfaSignInRequest_SignInInfo `protobuf_oneof:"sign_in_info"`
   239  	// The ID of the Identity Platform tenant the user is signing in to. If not
   240  	// set, the user will sign in to the default Identity Platform project.
   241  	TenantId string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
   242  }
   243  
   244  func (x *StartMfaSignInRequest) Reset() {
   245  	*x = StartMfaSignInRequest{}
   246  	if protoimpl.UnsafeEnabled {
   247  		mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[2]
   248  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   249  		ms.StoreMessageInfo(mi)
   250  	}
   251  }
   252  
   253  func (x *StartMfaSignInRequest) String() string {
   254  	return protoimpl.X.MessageStringOf(x)
   255  }
   256  
   257  func (*StartMfaSignInRequest) ProtoMessage() {}
   258  
   259  func (x *StartMfaSignInRequest) ProtoReflect() protoreflect.Message {
   260  	mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[2]
   261  	if protoimpl.UnsafeEnabled && x != nil {
   262  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   263  		if ms.LoadMessageInfo() == nil {
   264  			ms.StoreMessageInfo(mi)
   265  		}
   266  		return ms
   267  	}
   268  	return mi.MessageOf(x)
   269  }
   270  
   271  // Deprecated: Use StartMfaSignInRequest.ProtoReflect.Descriptor instead.
   272  func (*StartMfaSignInRequest) Descriptor() ([]byte, []int) {
   273  	return file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescGZIP(), []int{2}
   274  }
   275  
   276  func (x *StartMfaSignInRequest) GetMfaPendingCredential() string {
   277  	if x != nil {
   278  		return x.MfaPendingCredential
   279  	}
   280  	return ""
   281  }
   282  
   283  func (x *StartMfaSignInRequest) GetMfaEnrollmentId() string {
   284  	if x != nil {
   285  		return x.MfaEnrollmentId
   286  	}
   287  	return ""
   288  }
   289  
   290  func (m *StartMfaSignInRequest) GetSignInInfo() isStartMfaSignInRequest_SignInInfo {
   291  	if m != nil {
   292  		return m.SignInInfo
   293  	}
   294  	return nil
   295  }
   296  
   297  func (x *StartMfaSignInRequest) GetPhoneSignInInfo() *StartMfaPhoneRequestInfo {
   298  	if x, ok := x.GetSignInInfo().(*StartMfaSignInRequest_PhoneSignInInfo); ok {
   299  		return x.PhoneSignInInfo
   300  	}
   301  	return nil
   302  }
   303  
   304  func (x *StartMfaSignInRequest) GetTenantId() string {
   305  	if x != nil {
   306  		return x.TenantId
   307  	}
   308  	return ""
   309  }
   310  
   311  type isStartMfaSignInRequest_SignInInfo interface {
   312  	isStartMfaSignInRequest_SignInInfo()
   313  }
   314  
   315  type StartMfaSignInRequest_PhoneSignInInfo struct {
   316  	// Verification info to authorize sending an SMS for phone verification.
   317  	PhoneSignInInfo *StartMfaPhoneRequestInfo `protobuf:"bytes,4,opt,name=phone_sign_in_info,json=phoneSignInInfo,proto3,oneof"`
   318  }
   319  
   320  func (*StartMfaSignInRequest_PhoneSignInInfo) isStartMfaSignInRequest_SignInInfo() {}
   321  
   322  // StartMfaSignIn response.
   323  type StartMfaSignInResponse struct {
   324  	state         protoimpl.MessageState
   325  	sizeCache     protoimpl.SizeCache
   326  	unknownFields protoimpl.UnknownFields
   327  
   328  	// MultiFactor start sign-in response by 2nd factor type.
   329  	//
   330  	// Types that are assignable to ResponseInfo:
   331  	//
   332  	//	*StartMfaSignInResponse_PhoneResponseInfo
   333  	ResponseInfo isStartMfaSignInResponse_ResponseInfo `protobuf_oneof:"response_info"`
   334  }
   335  
   336  func (x *StartMfaSignInResponse) Reset() {
   337  	*x = StartMfaSignInResponse{}
   338  	if protoimpl.UnsafeEnabled {
   339  		mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[3]
   340  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   341  		ms.StoreMessageInfo(mi)
   342  	}
   343  }
   344  
   345  func (x *StartMfaSignInResponse) String() string {
   346  	return protoimpl.X.MessageStringOf(x)
   347  }
   348  
   349  func (*StartMfaSignInResponse) ProtoMessage() {}
   350  
   351  func (x *StartMfaSignInResponse) ProtoReflect() protoreflect.Message {
   352  	mi := &file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[3]
   353  	if protoimpl.UnsafeEnabled && x != nil {
   354  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   355  		if ms.LoadMessageInfo() == nil {
   356  			ms.StoreMessageInfo(mi)
   357  		}
   358  		return ms
   359  	}
   360  	return mi.MessageOf(x)
   361  }
   362  
   363  // Deprecated: Use StartMfaSignInResponse.ProtoReflect.Descriptor instead.
   364  func (*StartMfaSignInResponse) Descriptor() ([]byte, []int) {
   365  	return file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescGZIP(), []int{3}
   366  }
   367  
   368  func (m *StartMfaSignInResponse) GetResponseInfo() isStartMfaSignInResponse_ResponseInfo {
   369  	if m != nil {
   370  		return m.ResponseInfo
   371  	}
   372  	return nil
   373  }
   374  
   375  func (x *StartMfaSignInResponse) GetPhoneResponseInfo() *StartMfaPhoneResponseInfo {
   376  	if x, ok := x.GetResponseInfo().(*StartMfaSignInResponse_PhoneResponseInfo); ok {
   377  		return x.PhoneResponseInfo
   378  	}
   379  	return nil
   380  }
   381  
   382  type isStartMfaSignInResponse_ResponseInfo interface {
   383  	isStartMfaSignInResponse_ResponseInfo()
   384  }
   385  
   386  type StartMfaSignInResponse_PhoneResponseInfo struct {
   387  	// MultiFactor sign-in session information specific to SMS-type second
   388  	// factors. Along with the one-time code retrieved from the sent SMS, the
   389  	// contents of this session information should be passed to
   390  	// FinalizeMfaSignIn to complete the sign in.
   391  	PhoneResponseInfo *StartMfaPhoneResponseInfo `protobuf:"bytes,1,opt,name=phone_response_info,json=phoneResponseInfo,proto3,oneof"`
   392  }
   393  
   394  func (*StartMfaSignInResponse_PhoneResponseInfo) isStartMfaSignInResponse_ResponseInfo() {}
   395  
   396  var File_google_cloud_identitytoolkit_v2_authentication_service_proto protoreflect.FileDescriptor
   397  
   398  var file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDesc = []byte{
   399  	0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69,
   400  	0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x76,
   401  	0x32, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   402  	0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f,
   403  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65,
   404  	0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x1a,
   405  	0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
   406  	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67,
   407  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
   408  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
   409  	0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
   410  	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   411  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f,
   412  	0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x6d, 0x66, 0x61, 0x5f, 0x69, 0x6e, 0x66,
   413  	0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x01, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x61,
   414  	0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71,
   415  	0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x16, 0x6d, 0x66, 0x61, 0x5f, 0x70, 0x65, 0x6e, 0x64,
   416  	0x69, 0x6e, 0x67, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x02,
   417  	0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x6d, 0x66, 0x61, 0x50, 0x65,
   418  	0x6e, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12,
   419  	0x76, 0x0a, 0x17, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63,
   420  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
   421  	0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   422  	0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e,
   423  	0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x50, 0x68,
   424  	0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00,
   425  	0x52, 0x15, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
   426  	0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e,
   427  	0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61,
   428  	0x6e, 0x74, 0x49, 0x64, 0x42, 0x13, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61,
   429  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xdb, 0x01, 0x0a, 0x19, 0x46, 0x69,
   430  	0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52,
   431  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x74, 0x6f,
   432  	0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x54, 0x6f, 0x6b,
   433  	0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f,
   434  	0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65,
   435  	0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x67, 0x0a, 0x0f, 0x70, 0x68, 0x6f, 0x6e, 0x65,
   436  	0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
   437  	0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   438  	0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e,
   439  	0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x50, 0x68,
   440  	0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48,
   441  	0x00, 0x52, 0x0d, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x41, 0x75, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f,
   442  	0x42, 0x15, 0x0a, 0x13, 0x61, 0x75, 0x78, 0x69, 0x6c, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x75,
   443  	0x74, 0x68, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x9a, 0x02, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72,
   444  	0x74, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   445  	0x74, 0x12, 0x39, 0x0a, 0x16, 0x6d, 0x66, 0x61, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67,
   446  	0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
   447  	0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x6d, 0x66, 0x61, 0x50, 0x65, 0x6e, 0x64, 0x69,
   448  	0x6e, 0x67, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x11,
   449  	0x6d, 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69,
   450  	0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6d, 0x66,
   451  	0x61, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x68, 0x0a,
   452  	0x12, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x69,
   453  	0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   454  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
   455  	0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72,
   456  	0x74, 0x4d, 0x66, 0x61, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   457  	0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x53, 0x69, 0x67,
   458  	0x6e, 0x49, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e,
   459  	0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61,
   460  	0x6e, 0x74, 0x49, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x6e, 0x5f,
   461  	0x69, 0x6e, 0x66, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66,
   462  	0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
   463  	0x6c, 0x0a, 0x13, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   464  	0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67,
   465  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e,
   466  	0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53,
   467  	0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70,
   468  	0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x11, 0x70, 0x68, 0x6f, 0x6e,
   469  	0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a,
   470  	0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x32, 0xd1,
   471  	0x03, 0x0a, 0x15, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
   472  	0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x6e,
   473  	0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x39,
   474  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64,
   475  	0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32,
   476  	0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e,
   477  	0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   478  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
   479  	0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e, 0x61,
   480  	0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73,
   481  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f,
   482  	0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x66, 0x61, 0x53,
   483  	0x69, 0x67, 0x6e, 0x49, 0x6e, 0x3a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x3a, 0x01,
   484  	0x2a, 0x12, 0xaa, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x53, 0x69,
   485  	0x67, 0x6e, 0x49, 0x6e, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   486  	0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c,
   487  	0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x53,
   488  	0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67,
   489  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e,
   490  	0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53,
   491  	0x74, 0x61, 0x72, 0x74, 0x4d, 0x66, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73,
   492  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f,
   493  	0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x6d, 0x66, 0x61, 0x53,
   494  	0x69, 0x67, 0x6e, 0x49, 0x6e, 0x3a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x1a, 0x52,
   495  	0xca, 0x41, 0x1e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b,
   496  	0x69, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
   497  	0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
   498  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
   499  	0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
   500  	0x72, 0x6d, 0x42, 0xe0, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   501  	0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
   502  	0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f,
   503  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
   504  	0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
   505  	0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
   506  	0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x76, 0x32, 0x3b, 0x69, 0x64, 0x65,
   507  	0x6e, 0x74, 0x69, 0x74, 0x79, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0xaa, 0x02, 0x1f, 0x47,
   508  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x64, 0x65, 0x6e,
   509  	0x74, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2e, 0x56, 0x32, 0xca, 0x02,
   510  	0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x64,
   511  	0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x5c, 0x56, 0x32,
   512  	0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
   513  	0x3a, 0x3a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x6b, 0x69,
   514  	0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   515  }
   516  
   517  var (
   518  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescOnce sync.Once
   519  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescData = file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDesc
   520  )
   521  
   522  func file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescGZIP() []byte {
   523  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescOnce.Do(func() {
   524  		file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescData)
   525  	})
   526  	return file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDescData
   527  }
   528  
   529  var file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   530  var file_google_cloud_identitytoolkit_v2_authentication_service_proto_goTypes = []interface{}{
   531  	(*FinalizeMfaSignInRequest)(nil),     // 0: google.cloud.identitytoolkit.v2.FinalizeMfaSignInRequest
   532  	(*FinalizeMfaSignInResponse)(nil),    // 1: google.cloud.identitytoolkit.v2.FinalizeMfaSignInResponse
   533  	(*StartMfaSignInRequest)(nil),        // 2: google.cloud.identitytoolkit.v2.StartMfaSignInRequest
   534  	(*StartMfaSignInResponse)(nil),       // 3: google.cloud.identitytoolkit.v2.StartMfaSignInResponse
   535  	(*FinalizeMfaPhoneRequestInfo)(nil),  // 4: google.cloud.identitytoolkit.v2.FinalizeMfaPhoneRequestInfo
   536  	(*FinalizeMfaPhoneResponseInfo)(nil), // 5: google.cloud.identitytoolkit.v2.FinalizeMfaPhoneResponseInfo
   537  	(*StartMfaPhoneRequestInfo)(nil),     // 6: google.cloud.identitytoolkit.v2.StartMfaPhoneRequestInfo
   538  	(*StartMfaPhoneResponseInfo)(nil),    // 7: google.cloud.identitytoolkit.v2.StartMfaPhoneResponseInfo
   539  }
   540  var file_google_cloud_identitytoolkit_v2_authentication_service_proto_depIdxs = []int32{
   541  	4, // 0: google.cloud.identitytoolkit.v2.FinalizeMfaSignInRequest.phone_verification_info:type_name -> google.cloud.identitytoolkit.v2.FinalizeMfaPhoneRequestInfo
   542  	5, // 1: google.cloud.identitytoolkit.v2.FinalizeMfaSignInResponse.phone_auth_info:type_name -> google.cloud.identitytoolkit.v2.FinalizeMfaPhoneResponseInfo
   543  	6, // 2: google.cloud.identitytoolkit.v2.StartMfaSignInRequest.phone_sign_in_info:type_name -> google.cloud.identitytoolkit.v2.StartMfaPhoneRequestInfo
   544  	7, // 3: google.cloud.identitytoolkit.v2.StartMfaSignInResponse.phone_response_info:type_name -> google.cloud.identitytoolkit.v2.StartMfaPhoneResponseInfo
   545  	0, // 4: google.cloud.identitytoolkit.v2.AuthenticationService.FinalizeMfaSignIn:input_type -> google.cloud.identitytoolkit.v2.FinalizeMfaSignInRequest
   546  	2, // 5: google.cloud.identitytoolkit.v2.AuthenticationService.StartMfaSignIn:input_type -> google.cloud.identitytoolkit.v2.StartMfaSignInRequest
   547  	1, // 6: google.cloud.identitytoolkit.v2.AuthenticationService.FinalizeMfaSignIn:output_type -> google.cloud.identitytoolkit.v2.FinalizeMfaSignInResponse
   548  	3, // 7: google.cloud.identitytoolkit.v2.AuthenticationService.StartMfaSignIn:output_type -> google.cloud.identitytoolkit.v2.StartMfaSignInResponse
   549  	6, // [6:8] is the sub-list for method output_type
   550  	4, // [4:6] is the sub-list for method input_type
   551  	4, // [4:4] is the sub-list for extension type_name
   552  	4, // [4:4] is the sub-list for extension extendee
   553  	0, // [0:4] is the sub-list for field type_name
   554  }
   555  
   556  func init() { file_google_cloud_identitytoolkit_v2_authentication_service_proto_init() }
   557  func file_google_cloud_identitytoolkit_v2_authentication_service_proto_init() {
   558  	if File_google_cloud_identitytoolkit_v2_authentication_service_proto != nil {
   559  		return
   560  	}
   561  	file_google_cloud_identitytoolkit_v2_mfa_info_proto_init()
   562  	if !protoimpl.UnsafeEnabled {
   563  		file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   564  			switch v := v.(*FinalizeMfaSignInRequest); i {
   565  			case 0:
   566  				return &v.state
   567  			case 1:
   568  				return &v.sizeCache
   569  			case 2:
   570  				return &v.unknownFields
   571  			default:
   572  				return nil
   573  			}
   574  		}
   575  		file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   576  			switch v := v.(*FinalizeMfaSignInResponse); i {
   577  			case 0:
   578  				return &v.state
   579  			case 1:
   580  				return &v.sizeCache
   581  			case 2:
   582  				return &v.unknownFields
   583  			default:
   584  				return nil
   585  			}
   586  		}
   587  		file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   588  			switch v := v.(*StartMfaSignInRequest); i {
   589  			case 0:
   590  				return &v.state
   591  			case 1:
   592  				return &v.sizeCache
   593  			case 2:
   594  				return &v.unknownFields
   595  			default:
   596  				return nil
   597  			}
   598  		}
   599  		file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   600  			switch v := v.(*StartMfaSignInResponse); i {
   601  			case 0:
   602  				return &v.state
   603  			case 1:
   604  				return &v.sizeCache
   605  			case 2:
   606  				return &v.unknownFields
   607  			default:
   608  				return nil
   609  			}
   610  		}
   611  	}
   612  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[0].OneofWrappers = []interface{}{
   613  		(*FinalizeMfaSignInRequest_PhoneVerificationInfo)(nil),
   614  	}
   615  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[1].OneofWrappers = []interface{}{
   616  		(*FinalizeMfaSignInResponse_PhoneAuthInfo)(nil),
   617  	}
   618  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[2].OneofWrappers = []interface{}{
   619  		(*StartMfaSignInRequest_PhoneSignInInfo)(nil),
   620  	}
   621  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes[3].OneofWrappers = []interface{}{
   622  		(*StartMfaSignInResponse_PhoneResponseInfo)(nil),
   623  	}
   624  	type x struct{}
   625  	out := protoimpl.TypeBuilder{
   626  		File: protoimpl.DescBuilder{
   627  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   628  			RawDescriptor: file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDesc,
   629  			NumEnums:      0,
   630  			NumMessages:   4,
   631  			NumExtensions: 0,
   632  			NumServices:   1,
   633  		},
   634  		GoTypes:           file_google_cloud_identitytoolkit_v2_authentication_service_proto_goTypes,
   635  		DependencyIndexes: file_google_cloud_identitytoolkit_v2_authentication_service_proto_depIdxs,
   636  		MessageInfos:      file_google_cloud_identitytoolkit_v2_authentication_service_proto_msgTypes,
   637  	}.Build()
   638  	File_google_cloud_identitytoolkit_v2_authentication_service_proto = out.File
   639  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_rawDesc = nil
   640  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_goTypes = nil
   641  	file_google_cloud_identitytoolkit_v2_authentication_service_proto_depIdxs = nil
   642  }
   643  
   644  // Reference imports to suppress errors if they are not otherwise used.
   645  var _ context.Context
   646  var _ grpc.ClientConnInterface
   647  
   648  // This is a compile-time assertion to ensure that this generated file
   649  // is compatible with the grpc package it is being compiled against.
   650  const _ = grpc.SupportPackageIsVersion6
   651  
   652  // AuthenticationServiceClient is the client API for AuthenticationService service.
   653  //
   654  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   655  type AuthenticationServiceClient interface {
   656  	// Verifies the MFA challenge and performs sign-in
   657  	FinalizeMfaSignIn(ctx context.Context, in *FinalizeMfaSignInRequest, opts ...grpc.CallOption) (*FinalizeMfaSignInResponse, error)
   658  	// Sends the MFA challenge
   659  	StartMfaSignIn(ctx context.Context, in *StartMfaSignInRequest, opts ...grpc.CallOption) (*StartMfaSignInResponse, error)
   660  }
   661  
   662  type authenticationServiceClient struct {
   663  	cc grpc.ClientConnInterface
   664  }
   665  
   666  func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient {
   667  	return &authenticationServiceClient{cc}
   668  }
   669  
   670  func (c *authenticationServiceClient) FinalizeMfaSignIn(ctx context.Context, in *FinalizeMfaSignInRequest, opts ...grpc.CallOption) (*FinalizeMfaSignInResponse, error) {
   671  	out := new(FinalizeMfaSignInResponse)
   672  	err := c.cc.Invoke(ctx, "/google.cloud.identitytoolkit.v2.AuthenticationService/FinalizeMfaSignIn", in, out, opts...)
   673  	if err != nil {
   674  		return nil, err
   675  	}
   676  	return out, nil
   677  }
   678  
   679  func (c *authenticationServiceClient) StartMfaSignIn(ctx context.Context, in *StartMfaSignInRequest, opts ...grpc.CallOption) (*StartMfaSignInResponse, error) {
   680  	out := new(StartMfaSignInResponse)
   681  	err := c.cc.Invoke(ctx, "/google.cloud.identitytoolkit.v2.AuthenticationService/StartMfaSignIn", in, out, opts...)
   682  	if err != nil {
   683  		return nil, err
   684  	}
   685  	return out, nil
   686  }
   687  
   688  // AuthenticationServiceServer is the server API for AuthenticationService service.
   689  type AuthenticationServiceServer interface {
   690  	// Verifies the MFA challenge and performs sign-in
   691  	FinalizeMfaSignIn(context.Context, *FinalizeMfaSignInRequest) (*FinalizeMfaSignInResponse, error)
   692  	// Sends the MFA challenge
   693  	StartMfaSignIn(context.Context, *StartMfaSignInRequest) (*StartMfaSignInResponse, error)
   694  }
   695  
   696  // UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.
   697  type UnimplementedAuthenticationServiceServer struct {
   698  }
   699  
   700  func (*UnimplementedAuthenticationServiceServer) FinalizeMfaSignIn(context.Context, *FinalizeMfaSignInRequest) (*FinalizeMfaSignInResponse, error) {
   701  	return nil, status.Errorf(codes.Unimplemented, "method FinalizeMfaSignIn not implemented")
   702  }
   703  func (*UnimplementedAuthenticationServiceServer) StartMfaSignIn(context.Context, *StartMfaSignInRequest) (*StartMfaSignInResponse, error) {
   704  	return nil, status.Errorf(codes.Unimplemented, "method StartMfaSignIn not implemented")
   705  }
   706  
   707  func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer) {
   708  	s.RegisterService(&_AuthenticationService_serviceDesc, srv)
   709  }
   710  
   711  func _AuthenticationService_FinalizeMfaSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   712  	in := new(FinalizeMfaSignInRequest)
   713  	if err := dec(in); err != nil {
   714  		return nil, err
   715  	}
   716  	if interceptor == nil {
   717  		return srv.(AuthenticationServiceServer).FinalizeMfaSignIn(ctx, in)
   718  	}
   719  	info := &grpc.UnaryServerInfo{
   720  		Server:     srv,
   721  		FullMethod: "/google.cloud.identitytoolkit.v2.AuthenticationService/FinalizeMfaSignIn",
   722  	}
   723  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   724  		return srv.(AuthenticationServiceServer).FinalizeMfaSignIn(ctx, req.(*FinalizeMfaSignInRequest))
   725  	}
   726  	return interceptor(ctx, in, info, handler)
   727  }
   728  
   729  func _AuthenticationService_StartMfaSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   730  	in := new(StartMfaSignInRequest)
   731  	if err := dec(in); err != nil {
   732  		return nil, err
   733  	}
   734  	if interceptor == nil {
   735  		return srv.(AuthenticationServiceServer).StartMfaSignIn(ctx, in)
   736  	}
   737  	info := &grpc.UnaryServerInfo{
   738  		Server:     srv,
   739  		FullMethod: "/google.cloud.identitytoolkit.v2.AuthenticationService/StartMfaSignIn",
   740  	}
   741  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   742  		return srv.(AuthenticationServiceServer).StartMfaSignIn(ctx, req.(*StartMfaSignInRequest))
   743  	}
   744  	return interceptor(ctx, in, info, handler)
   745  }
   746  
   747  var _AuthenticationService_serviceDesc = grpc.ServiceDesc{
   748  	ServiceName: "google.cloud.identitytoolkit.v2.AuthenticationService",
   749  	HandlerType: (*AuthenticationServiceServer)(nil),
   750  	Methods: []grpc.MethodDesc{
   751  		{
   752  			MethodName: "FinalizeMfaSignIn",
   753  			Handler:    _AuthenticationService_FinalizeMfaSignIn_Handler,
   754  		},
   755  		{
   756  			MethodName: "StartMfaSignIn",
   757  			Handler:    _AuthenticationService_StartMfaSignIn_Handler,
   758  		},
   759  	},
   760  	Streams:  []grpc.StreamDesc{},
   761  	Metadata: "google/cloud/identitytoolkit/v2/authentication_service.proto",
   762  }
   763  

View as plain text