Class EmailPreferences.Builder (2.3.10)

public static final class EmailPreferences.Builder extends GeneratedMessageV3.Builder<EmailPreferences.Builder> implements EmailPreferencesOrBuilder

Represents preferences for sending email notifications for transfer run events.

Protobuf type google.cloud.bigquery.datatransfer.v1.EmailPreferences

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EmailPreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EmailPreferences.Builder
Overrides

build()

public EmailPreferences build()
Returns
TypeDescription
EmailPreferences

buildPartial()

public EmailPreferences buildPartial()
Returns
TypeDescription
EmailPreferences

clear()

public EmailPreferences.Builder clear()
Returns
TypeDescription
EmailPreferences.Builder
Overrides

clearEnableFailureEmail()

public EmailPreferences.Builder clearEnableFailureEmail()

If true, email notifications will be sent on transfer run failures.

bool enable_failure_email = 1;

Returns
TypeDescription
EmailPreferences.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EmailPreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EmailPreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EmailPreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EmailPreferences.Builder
Overrides

clone()

public EmailPreferences.Builder clone()
Returns
TypeDescription
EmailPreferences.Builder
Overrides

getDefaultInstanceForType()

public EmailPreferences getDefaultInstanceForType()
Returns
TypeDescription
EmailPreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableFailureEmail()

public boolean getEnableFailureEmail()

If true, email notifications will be sent on transfer run failures.

bool enable_failure_email = 1;

Returns
TypeDescription
boolean

The enableFailureEmail.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EmailPreferences other)

public EmailPreferences.Builder mergeFrom(EmailPreferences other)
Parameter
NameDescription
otherEmailPreferences
Returns
TypeDescription
EmailPreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EmailPreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmailPreferences.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EmailPreferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EmailPreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EmailPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EmailPreferences.Builder
Overrides

setEnableFailureEmail(boolean value)

public EmailPreferences.Builder setEnableFailureEmail(boolean value)

If true, email notifications will be sent on transfer run failures.

bool enable_failure_email = 1;

Parameter
NameDescription
valueboolean

The enableFailureEmail to set.

Returns
TypeDescription
EmailPreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EmailPreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EmailPreferences.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EmailPreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EmailPreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EmailPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EmailPreferences.Builder
Overrides