Class Contact (2.12.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.12.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Contact   extends   GeneratedMessageV3   implements   ContactOrBuilder  
   
   A contact that will receive notifications from Google Cloud.
 Protobuf type google.cloud.essentialcontacts.v1.Contact
 
  
  
  
  Static Fields
   
  
  
    
public   static   final   int   EMAIL_FIELD_NUMBER  
   
  Field Value 
  
  
  
    
public   static   final   int   LANGUAGE_TAG_FIELD_NUMBER  
   
  Field Value 
  
  
  
    
public   static   final   int   NAME_FIELD_NUMBER  
   
  Field Value 
  
  
  
    
public   static   final   int   NOTIFICATION_CATEGORY_SUBSCRIPTIONS_FIELD_NUMBER  
   
  Field Value 
  
  
  
    
public   static   final   int   VALIDATE_TIME_FIELD_NUMBER  
   
  Field Value 
  
  
  
    
public   static   final   int   VALIDATION_STATE_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  
  
    
public   static   Contact   getDefaultInstance ()  
   
  Returns 
  
   
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  
  
    
public   static   Contact . Builder   newBuilder ()  
   
  Returns 
  
   
  
  
    
public   static   Contact . Builder   newBuilder ( Contact   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   Contact   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Contact   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   Parser<Contact>   parser ()  
   
  Returns 
  
  Methods
   
   
  
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  
  
    
public   Contact   getDefaultInstanceForType ()  
   
  Returns 
  
   
  
  
   Required. The email address to send notifications to. This does not need to
 be a Google account.
 string email = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The email.
 
       
     
  
   
  
  
    
public   ByteString   getEmailBytes ()  
   
   Required. The email address to send notifications to. This does not need to
 be a Google account.
 string email = 2;
 
  Returns 
  
   
  
  
    
public   String   getLanguageTag ()  
   
   The preferred language for notifications, as a ISO 639-1 language code. See
 Supported
 languages 
 for a list of supported languages.
 string language_tag = 4;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The languageTag.
 
       
     
  
   
  
  
    
public   ByteString   getLanguageTagBytes ()  
   
   The preferred language for notifications, as a ISO 639-1 language code. See
 Supported
 languages 
 for a list of supported languages.
 string language_tag = 4;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for languageTag.
 
       
     
  
   
  
  
   The identifier for the contact.
 Format: {resource_type}/{resource_id}/contacts/{contact_id}
 string name = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The name.
 
       
     
  
   
  
  
    
public   ByteString   getNameBytes ()  
   
   The identifier for the contact.
 Format: {resource_type}/{resource_id}/contacts/{contact_id}
 string name = 1;
 
  Returns 
  
   
  
  
    
public   NotificationCategory   getNotificationCategorySubscriptions ( int   index )  
   
   The categories of notifications that the contact will receive
 communications for.
 
 repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index 
        int The index of the element to return.
 
       
     
  
  Returns 
  
   
  
  
    
public   int   getNotificationCategorySubscriptionsCount ()  
   
   The categories of notifications that the contact will receive
 communications for.
 
 repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The count of notificationCategorySubscriptions.
 
       
     
  
   
  
  
    
public   List<NotificationCategory>   getNotificationCategorySubscriptionsList ()  
   
   The categories of notifications that the contact will receive
 communications for.
 
 repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
 
 
  Returns 
  
   
  
  
    
public   int   getNotificationCategorySubscriptionsValue ( int   index )  
   
   The categories of notifications that the contact will receive
 communications for.
 
 repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index 
        int The index of the value to return.
 
       
     
  
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire of notificationCategorySubscriptions at the given
     index.
 
       
     
  
   
  
  
    
public   List<Integer>   getNotificationCategorySubscriptionsValueList ()  
   
   The categories of notifications that the contact will receive
 communications for.
 
 repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <Integer > 
        A list containing the enum numeric values on the wire for
     notificationCategorySubscriptions.
 
       
     
  
   
  
  
    
public   Parser<Contact>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  
  
    
public   Timestamp   getValidateTime ()  
   
   The last time the validation_state was updated, either manually or
 automatically. A contact is considered stale if its validation state was
 updated more than 1 year ago.
 .google.protobuf.Timestamp validate_time = 9;
 
  Returns 
  
   
  
  
    
public   TimestampOrBuilder   getValidateTimeOrBuilder ()  
   
   The last time the validation_state was updated, either manually or
 automatically. A contact is considered stale if its validation state was
 updated more than 1 year ago.
 .google.protobuf.Timestamp validate_time = 9;
 
  Returns 
  
   
  
  
    
public   ValidationState   getValidationState ()  
   
   The validity of the contact. A contact is considered valid if it is the
 correct recipient for notifications for a particular resource.
 .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8;
 
  Returns 
  
   
  
  
    
public   int   getValidationStateValue ()  
   
   The validity of the contact. A contact is considered valid if it is the
 correct recipient for notifications for a particular resource.
 .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for validationState.
 
       
     
  
   
  
  
    
public   boolean   hasValidateTime ()  
   
   The last time the validation_state was updated, either manually or
 automatically. A contact is considered stale if its validation state was
 updated more than 1 year ago.
 .google.protobuf.Timestamp validate_time = 9;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the validateTime field is set.
 
       
     
  
   
  
  
  Returns 
  
  Overrides 
  
   
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  
  
    
public   Contact . Builder   newBuilderForType ()  
   
  Returns 
  
   
  
  
    
protected   Contact . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  
  
    
public   Contact . Builder   toBuilder ()  
   
  Returns 
  
   
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-30 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-30 UTC."],[],[]]