- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.6
- 2.2.0
- 2.1.11
public static final class Contact.Builder extends GeneratedMessageV3.Builder<Contact.Builder> implements ContactOrBuilder
A contact that will receive notifications from Google Cloud.
Protobuf type google.cloud.essentialcontacts.v1.Contact
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Contact.BuilderImplements
ContactOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllNotificationCategorySubscriptions(Iterable<? extends NotificationCategory> values)
public Contact.Builder addAllNotificationCategorySubscriptions(Iterable<? extends NotificationCategory> values)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
values | Iterable<? extends com.google.cloud.essentialcontacts.v1.NotificationCategory> The notificationCategorySubscriptions to add. |
Type | Description |
Contact.Builder | This builder for chaining. |
addAllNotificationCategorySubscriptionsValue(Iterable<Integer> values)
public Contact.Builder addAllNotificationCategorySubscriptionsValue(Iterable<Integer> values)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
values | Iterable<Integer> The enum numeric values on the wire for notificationCategorySubscriptions to add. |
Type | Description |
Contact.Builder | This builder for chaining. |
addNotificationCategorySubscriptions(NotificationCategory value)
public Contact.Builder addNotificationCategorySubscriptions(NotificationCategory value)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
value | NotificationCategory The notificationCategorySubscriptions to add. |
Type | Description |
Contact.Builder | This builder for chaining. |
addNotificationCategorySubscriptionsValue(int value)
public Contact.Builder addNotificationCategorySubscriptionsValue(int value)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
value | int The enum numeric value on the wire for notificationCategorySubscriptions to add. |
Type | Description |
Contact.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Contact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Contact.Builder |
build()
public Contact build()
Type | Description |
Contact |
buildPartial()
public Contact buildPartial()
Type | Description |
Contact |
clear()
public Contact.Builder clear()
Type | Description |
Contact.Builder |
clearEmail()
public Contact.Builder clearEmail()
Required. The email address to send notifications to. This does not need to be a Google account.
string email = 2;
Type | Description |
Contact.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Contact.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Contact.Builder |
clearLanguageTag()
public Contact.Builder clearLanguageTag()
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;
Type | Description |
Contact.Builder | This builder for chaining. |
clearName()
public Contact.Builder clearName()
The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
string name = 1;
Type | Description |
Contact.Builder | This builder for chaining. |
clearNotificationCategorySubscriptions()
public Contact.Builder clearNotificationCategorySubscriptions()
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Type | Description |
Contact.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Contact.Builder |
clearValidateTime()
public Contact.Builder 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;
Type | Description |
Contact.Builder |
clearValidationState()
public Contact.Builder clearValidationState()
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;
Type | Description |
Contact.Builder | This builder for chaining. |
clone()
public Contact.Builder clone()
Type | Description |
Contact.Builder |
getDefaultInstanceForType()
public Contact getDefaultInstanceForType()
Type | Description |
Contact |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEmail()
public String getEmail()
Required. The email address to send notifications to. This does not need to be a Google account.
string email = 2;
Type | Description |
String | The email. |
getEmailBytes()
public ByteString getEmailBytes()
Required. The email address to send notifications to. This does not need to be a Google account.
string email = 2;
Type | Description |
ByteString | The bytes for email. |
getLanguageTag()
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;
Type | Description |
String | The languageTag. |
getLanguageTagBytes()
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;
Type | Description |
ByteString | The bytes for languageTag. |
getName()
public String getName()
The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getNotificationCategorySubscriptions(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
NotificationCategory | The notificationCategorySubscriptions at the given index. |
getNotificationCategorySubscriptionsCount()
public int getNotificationCategorySubscriptionsCount()
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Type | Description |
int | The count of notificationCategorySubscriptions. |
getNotificationCategorySubscriptionsList()
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;
Type | Description |
List<NotificationCategory> | A list containing the notificationCategorySubscriptions. |
getNotificationCategorySubscriptionsValue(int index)
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
int | The enum numeric value on the wire of notificationCategorySubscriptions at the given index. |
getNotificationCategorySubscriptionsValueList()
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;
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for notificationCategorySubscriptions. |
getValidateTime()
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;
Type | Description |
Timestamp | The validateTime. |
getValidateTimeBuilder()
public 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;
Type | Description |
Builder |
getValidateTimeOrBuilder()
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;
Type | Description |
TimestampOrBuilder |
getValidationState()
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;
Type | Description |
ValidationState | The validationState. |
getValidationStateValue()
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;
Type | Description |
int | The enum numeric value on the wire for validationState. |
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;
Type | Description |
boolean | Whether the validateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Contact other)
public Contact.Builder mergeFrom(Contact other)
Name | Description |
other | Contact |
Type | Description |
Contact.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Contact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Contact.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Contact.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Contact.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Contact.Builder |
mergeValidateTime(Timestamp value)
public Contact.Builder mergeValidateTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
Contact.Builder |
setEmail(String value)
public Contact.Builder setEmail(String value)
Required. The email address to send notifications to. This does not need to be a Google account.
string email = 2;
Name | Description |
value | String The email to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setEmailBytes(ByteString value)
public Contact.Builder setEmailBytes(ByteString value)
Required. The email address to send notifications to. This does not need to be a Google account.
string email = 2;
Name | Description |
value | ByteString The bytes for email to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Contact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Contact.Builder |
setLanguageTag(String value)
public Contact.Builder setLanguageTag(String value)
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;
Name | Description |
value | String The languageTag to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setLanguageTagBytes(ByteString value)
public Contact.Builder setLanguageTagBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for languageTag to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setName(String value)
public Contact.Builder setName(String value)
The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Contact.Builder setNameBytes(ByteString value)
The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setNotificationCategorySubscriptions(int index, NotificationCategory value)
public Contact.Builder setNotificationCategorySubscriptions(int index, NotificationCategory value)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
index | int The index to set the value at. |
value | NotificationCategory The notificationCategorySubscriptions to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setNotificationCategorySubscriptionsValue(int index, int value)
public Contact.Builder setNotificationCategorySubscriptionsValue(int index, int value)
The categories of notifications that the contact will receive communications for.
repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3;
Name | Description |
index | int The index of the value to return. |
value | int |
Type | Description |
Contact.Builder | The enum numeric value on the wire of notificationCategorySubscriptions at the given index. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Contact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Contact.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Contact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Contact.Builder |
setValidateTime(Timestamp value)
public Contact.Builder setValidateTime(Timestamp value)
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;
Name | Description |
value | Timestamp |
Type | Description |
Contact.Builder |
setValidateTime(Timestamp.Builder builderForValue)
public Contact.Builder setValidateTime(Timestamp.Builder builderForValue)
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Contact.Builder |
setValidationState(ValidationState value)
public Contact.Builder setValidationState(ValidationState value)
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;
Name | Description |
value | ValidationState The validationState to set. |
Type | Description |
Contact.Builder | This builder for chaining. |
setValidationStateValue(int value)
public Contact.Builder setValidationStateValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for validationState to set. |
Type | Description |
Contact.Builder | This builder for chaining. |