Class EmailPreferences.Builder (2.44.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EmailPreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmailPreferences.Builder
Overrides

build()

public EmailPreferences build()
Returns
Type Description
EmailPreferences

buildPartial()

public EmailPreferences buildPartial()
Returns
Type Description
EmailPreferences

clear()

public EmailPreferences.Builder clear()
Returns
Type Description
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
Type Description
EmailPreferences.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EmailPreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EmailPreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EmailPreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EmailPreferences.Builder
Overrides

clone()

public EmailPreferences.Builder clone()
Returns
Type Description
EmailPreferences.Builder
Overrides

getDefaultInstanceForType()

public EmailPreferences getDefaultInstanceForType()
Returns
Type Description
EmailPreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableFailureEmail()

public boolean getEnableFailureEmail()

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

bool enable_failure_email = 1;

Returns
Type Description
boolean

The enableFailureEmail.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EmailPreferences other)

public EmailPreferences.Builder mergeFrom(EmailPreferences other)
Parameter
Name Description
other EmailPreferences
Returns
Type Description
EmailPreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EmailPreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmailPreferences.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EmailPreferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EmailPreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EmailPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The enableFailureEmail to set.

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EmailPreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmailPreferences.Builder
Overrides

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

public EmailPreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EmailPreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EmailPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EmailPreferences.Builder
Overrides