Class UpdateEmailPreferencesRequest.Builder (0.5.0)

public static final class UpdateEmailPreferencesRequest.Builder extends GeneratedMessageV3.Builder<UpdateEmailPreferencesRequest.Builder> implements UpdateEmailPreferencesRequestOrBuilder

Request message for UpdateEmailPreferences method.

Protobuf type google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateEmailPreferencesRequest build()
Returns
Type Description
UpdateEmailPreferencesRequest

buildPartial()

public UpdateEmailPreferencesRequest buildPartial()
Returns
Type Description
UpdateEmailPreferencesRequest

clear()

public UpdateEmailPreferencesRequest.Builder clear()
Returns
Type Description
UpdateEmailPreferencesRequest.Builder
Overrides

clearEmailPreferences()

public UpdateEmailPreferencesRequest.Builder clearEmailPreferences()

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateEmailPreferencesRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateEmailPreferencesRequest.Builder clearUpdateMask()

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateEmailPreferencesRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateEmailPreferencesRequest getDefaultInstanceForType()
Returns
Type Description
UpdateEmailPreferencesRequest

getDescriptorForType()

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

getEmailPreferences()

public EmailPreferences getEmailPreferences()

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EmailPreferences

The emailPreferences.

getEmailPreferencesBuilder()

public EmailPreferences.Builder getEmailPreferencesBuilder()

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EmailPreferences.Builder

getEmailPreferencesOrBuilder()

public EmailPreferencesOrBuilder getEmailPreferencesOrBuilder()

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EmailPreferencesOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasEmailPreferences()

public boolean hasEmailPreferences()

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the emailPreferences field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEmailPreferences(EmailPreferences value)

public UpdateEmailPreferencesRequest.Builder mergeEmailPreferences(EmailPreferences value)

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EmailPreferences
Returns
Type Description
UpdateEmailPreferencesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateEmailPreferencesRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateEmailPreferencesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateEmailPreferencesRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateEmailPreferencesRequest.Builder mergeUpdateMask(FieldMask value)

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEmailPreferencesRequest.Builder

setEmailPreferences(EmailPreferences value)

public UpdateEmailPreferencesRequest.Builder setEmailPreferences(EmailPreferences value)

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EmailPreferences
Returns
Type Description
UpdateEmailPreferencesRequest.Builder

setEmailPreferences(EmailPreferences.Builder builderForValue)

public UpdateEmailPreferencesRequest.Builder setEmailPreferences(EmailPreferences.Builder builderForValue)

Required. Email Preferences to be updated.

.google.shopping.merchant.accounts.v1beta.EmailPreferences email_preferences = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EmailPreferences.Builder
Returns
Type Description
UpdateEmailPreferencesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateEmailPreferencesRequest.Builder setUpdateMask(FieldMask value)

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEmailPreferencesRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateEmailPreferencesRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. List of fields being updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateEmailPreferencesRequest.Builder