Class Contact.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
com.google.cloud.essentialcontacts.v1.Contact.Builder
- All Implemented Interfaces:
ContactOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Contact
public static final class Contact.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
implements ContactOrBuilder
A contact that will receive notifications from Google Cloud.Protobuf type
google.cloud.essentialcontacts.v1.Contact-
Method Summary
Modifier and TypeMethodDescriptionaddAllNotificationCategorySubscriptions(Iterable<? extends NotificationCategory> values) Required.Required.Required.addNotificationCategorySubscriptionsValue(int value) Required.build()clear()Required.Required.Output only.Required.The last time the validation_state was updated, either manually or automatically.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()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.Timestamp.BuilderThe 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeValidateTime(com.google.protobuf.Timestamp value) The last time the validation_state was updated, either manually or automatically.Required.setEmailBytes(com.google.protobuf.ByteString value) Required.setLanguageTag(String value) Required.setLanguageTagBytes(com.google.protobuf.ByteString value) Required.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setNotificationCategorySubscriptions(int index, NotificationCategory value) Required.setNotificationCategorySubscriptionsValue(int index, int value) Required.setValidateTime(com.google.protobuf.Timestamp value) The last time the validation_state was updated, either manually or automatically.setValidateTime(com.google.protobuf.Timestamp.Builder builderForValue) The last time the validation_state was updated, either manually or automatically.Output only.setValidationStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Contact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
mergeFrom
public Contact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Contact.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceContactOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceContactOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getEmailin interfaceContactOrBuilder- Returns:
- The email.
-
getEmailBytes
public 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];- Specified by:
getEmailBytesin interfaceContactOrBuilder- Returns:
- The bytes for email.
-
setEmail
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];- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
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:
- This builder for chaining.
-
setEmailBytes
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];- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getNotificationCategorySubscriptionsListin interfaceContactOrBuilder- Returns:
- A list containing the notificationCategorySubscriptions.
-
getNotificationCategorySubscriptionsCount
public 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];- Specified by:
getNotificationCategorySubscriptionsCountin interfaceContactOrBuilder- 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];- Specified by:
getNotificationCategorySubscriptionsin interfaceContactOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notificationCategorySubscriptions at the given index.
-
setNotificationCategorySubscriptions
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 to set the value at.value- The notificationCategorySubscriptions to set.- Returns:
- This builder for chaining.
-
addNotificationCategorySubscriptions
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:
value- The notificationCategorySubscriptions to add.- Returns:
- This builder for chaining.
-
addAllNotificationCategorySubscriptions
public Contact.Builder addAllNotificationCategorySubscriptions(Iterable<? extends NotificationCategory> values) 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:
values- The notificationCategorySubscriptions to add.- Returns:
- This builder for chaining.
-
clearNotificationCategorySubscriptions
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:
- This builder for chaining.
-
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];- Specified by:
getNotificationCategorySubscriptionsValueListin interfaceContactOrBuilder- Returns:
- A list containing the enum numeric values on the wire for notificationCategorySubscriptions.
-
getNotificationCategorySubscriptionsValue
public 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];- Specified by:
getNotificationCategorySubscriptionsValuein interfaceContactOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of notificationCategorySubscriptions at the given index.
-
setNotificationCategorySubscriptionsValue
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 to set the value at.value- The enum numeric value on the wire for notificationCategorySubscriptions to set.- Returns:
- This builder for chaining.
-
addNotificationCategorySubscriptionsValue
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:
value- The enum numeric value on the wire for notificationCategorySubscriptions to add.- Returns:
- This builder for chaining.
-
addAllNotificationCategorySubscriptionsValue
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:
values- The enum numeric values on the wire for notificationCategorySubscriptions to add.- Returns:
- This builder for chaining.
-
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];- Specified by:
getLanguageTagin interfaceContactOrBuilder- Returns:
- The languageTag.
-
getLanguageTagBytes
public 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];- Specified by:
getLanguageTagBytesin interfaceContactOrBuilder- Returns:
- The bytes for languageTag.
-
setLanguageTag
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];- Parameters:
value- The languageTag to set.- Returns:
- This builder for chaining.
-
clearLanguageTag
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:
- This builder for chaining.
-
setLanguageTagBytes
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];- Parameters:
value- The bytes for languageTag to set.- Returns:
- This builder for chaining.
-
getValidationStateValue
public 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];- Specified by:
getValidationStateValuein interfaceContactOrBuilder- Returns:
- The enum numeric value on the wire for validationState.
-
setValidationStateValue
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];- Parameters:
value- The enum numeric value on the wire for validationState to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getValidationStatein interfaceContactOrBuilder- Returns:
- The validationState.
-
setValidationState
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];- Parameters:
value- The validationState to set.- Returns:
- This builder for chaining.
-
clearValidationState
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:
- This builder for chaining.
-
hasValidateTime
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;- Specified by:
hasValidateTimein interfaceContactOrBuilder- Returns:
- Whether the validateTime field is set.
-
getValidateTime
public 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;- Specified by:
getValidateTimein interfaceContactOrBuilder- Returns:
- The validateTime.
-
setValidateTime
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; -
setValidateTime
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; -
mergeValidateTime
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; -
clearValidateTime
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; -
getValidateTimeBuilder
public com.google.protobuf.Timestamp.Builder getValidateTimeBuilder()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; -
getValidateTimeOrBuilder
public 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;- Specified by:
getValidateTimeOrBuilderin interfaceContactOrBuilder
-