Class UserInfo (3.55.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.55.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  UserInfo   extends   GeneratedMessageV3   implements   UserInfoOrBuilder  
   User information associated with a request protected by reCAPTCHA Enterprise.
 Protobuf type google.cloud.recaptchaenterprise.v1.UserInfo
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ACCOUNT_ID_FIELD_NUMBER 
  
    
public   static   final   int   ACCOUNT_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CREATE_ACCOUNT_TIME_FIELD_NUMBER 
  
    
public   static   final   int   CREATE_ACCOUNT_TIME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  USER_IDS_FIELD_NUMBER 
  
    
public   static   final   int   USER_IDS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   UserInfo   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   UserInfo . Builder   newBuilder ()  
  
  newBuilder(UserInfo prototype) 
  
    
public   static   UserInfo . Builder   newBuilder ( UserInfo   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeUserInfo  
     
  
  
  
    
public   static   UserInfo   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   UserInfo   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   UserInfo   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UserInfo   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   UserInfo   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UserInfo   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UserInfo   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   UserInfo   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   UserInfo   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   UserInfo   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   UserInfo   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   UserInfo   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<UserInfo>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAccountId() 
  
    
public   String   getAccountId ()  
   Optional. For logged-in requests or login/registration requests, the unique
 account identifier associated with this user. You can use the username if
 it is stable (meaning it is the same for every request associated with the
 same user), or any stable user ID of your choice. Leave blank for non
 logged-in actions or guest checkout.
 string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The accountId.
 
     
  
  getAccountIdBytes() 
  
    
public   ByteString   getAccountIdBytes ()  
   Optional. For logged-in requests or login/registration requests, the unique
 account identifier associated with this user. You can use the username if
 it is stable (meaning it is the same for every request associated with the
 same user), or any stable user ID of your choice. Leave blank for non
 logged-in actions or guest checkout.
 string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for accountId.
 
     
  
  getCreateAccountTime() 
  
    
public   Timestamp   getCreateAccountTime ()  
   Optional. Creation time for this account associated with this user. Leave
 blank for non logged-in actions, guest checkout, or when there is no
 account associated with the current user.
 
 .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        Timestamp The createAccountTime.
 
     
  
  getCreateAccountTimeOrBuilder() 
  
    
public   TimestampOrBuilder   getCreateAccountTimeOrBuilder ()  
   Optional. Creation time for this account associated with this user. Leave
 blank for non logged-in actions, guest checkout, or when there is no
 account associated with the current user.
 
 .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];
 
getDefaultInstanceForType() 
  
    
public   UserInfo   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<UserInfo>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getUserIds(int index) 
  
    
public   UserId   getUserIds ( int   index )  
   Optional. Identifiers associated with this user or request.
 
 repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        UserId  
     
  
  getUserIdsCount() 
  
    
public   int   getUserIdsCount ()  
   Optional. Identifiers associated with this user or request.
 
 repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getUserIdsList() 
  
    
public   List<UserId>   getUserIdsList ()  
   Optional. Identifiers associated with this user or request.
 
 repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
 
getUserIdsOrBuilder(int index) 
  
    
public   UserIdOrBuilder   getUserIdsOrBuilder ( int   index )  
   Optional. Identifiers associated with this user or request.
 
 repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getUserIdsOrBuilderList() 
  
    
public   List <?   extends   UserIdOrBuilder >  getUserIdsOrBuilderList ()  
   Optional. Identifiers associated with this user or request.
 
 repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.recaptchaenterprise.v1.UserIdOrBuilder > 
     
  
  hasCreateAccountTime() 
  
    
public   boolean   hasCreateAccountTime ()  
   Optional. Creation time for this account associated with this user. Leave
 blank for non logged-in actions, guest checkout, or when there is no
 account associated with the current user.
 
 .google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the createAccountTime field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   UserInfo . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   UserInfo . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   UserInfo . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]