Interface ContactOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Contact,Contact.Builder
@Generated
public interface ContactOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.getName()Output only.com.google.protobuf.ByteStringOutput only.getNotificationCategorySubscriptions(int index) Required.intRequired.Required.intgetNotificationCategorySubscriptionsValue(int index) Required.Required.com.google.protobuf.TimestampThe last time the validation_state was updated, either manually or automatically.com.google.protobuf.TimestampOrBuilderThe last time the validation_state was updated, either manually or automatically.Output only.intOutput only.booleanThe last time the validation_state was updated, either manually or automatically.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for validationState.
-
getValidationState
ValidationState getValidationState()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- 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;
-