Interface ContactOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Contact,Contact.Builder
public interface ContactOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetEmail()Required.com.google.protobuf.ByteStringgetEmailBytes()Required.StringgetLanguageTag()Required.com.google.protobuf.ByteStringgetLanguageTagBytes()Required.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.NotificationCategorygetNotificationCategorySubscriptions(int index)Required.intgetNotificationCategorySubscriptionsCount()Required.List<NotificationCategory>getNotificationCategorySubscriptionsList()Required.intgetNotificationCategorySubscriptionsValue(int index)Required.List<Integer>getNotificationCategorySubscriptionsValueList()Required.com.google.protobuf.TimestampgetValidateTime()The last time the validation_state was updated, either manually or automatically.com.google.protobuf.TimestampOrBuildergetValidateTimeOrBuilder()The last time the validation_state was updated, either manually or automatically.ValidationStategetValidationState()The validity of the contact.intgetValidationStateValue()The validity of the contact.booleanhasValidateTime()The last time the validation_state was updated, either manually or automatically.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for name.
-
getEmail
String getEmail()
Required. The email address to send notifications to. The email address does not need to be a Google Account.
string email = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The email.
-
getEmailBytes
com.google.protobuf.ByteString getEmailBytes()
Required. The email address to send notifications to. The email address does not need to be a Google Account.
string email = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for email.
-
getNotificationCategorySubscriptionsList
List<NotificationCategory> getNotificationCategorySubscriptionsList()
Required. The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the notificationCategorySubscriptions.
-
getNotificationCategorySubscriptionsCount
int getNotificationCategorySubscriptionsCount()
Required. The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of notificationCategorySubscriptions.
-
getNotificationCategorySubscriptions
NotificationCategory getNotificationCategorySubscriptions(int index)
Required. The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The notificationCategorySubscriptions at the given index.
-
getNotificationCategorySubscriptionsValueList
List<Integer> getNotificationCategorySubscriptionsValueList()
Required. The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the enum numeric values on the wire for notificationCategorySubscriptions.
-
getNotificationCategorySubscriptionsValue
int getNotificationCategorySubscriptionsValue(int index)
Required. The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of notificationCategorySubscriptions at the given index.
-
getLanguageTag
String getLanguageTag()
Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.
string language_tag = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The languageTag.
-
getLanguageTagBytes
com.google.protobuf.ByteString getLanguageTagBytes()
Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.
string language_tag = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for languageTag.
-
getValidationStateValue
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:
- The enum numeric value on the wire for validationState.
-
getValidationState
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:
- The validationState.
-
hasValidateTime
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:
- Whether the validateTime field is set.
-
getValidateTime
com.google.protobuf.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:
- The validateTime.
-
getValidateTimeOrBuilder
com.google.protobuf.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;
-
-