Class EmailPreferences.Builder (0.7.0)

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

The categories of notifications the user opted into / opted out of. The email preferences do not include mandatory announcements as users can't opt out of them.

Protobuf type google.shopping.merchant.accounts.v1beta.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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public EmailPreferences.Builder clearName()

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

clearNewsAndTips()

public EmailPreferences.Builder clearNewsAndTips()

Optional. Updates on new features, tips and best practices.

.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState news_and_tips = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

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

getName()

public String getName()

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNewsAndTips()

public EmailPreferences.OptInState getNewsAndTips()

Optional. Updates on new features, tips and best practices.

.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState news_and_tips = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EmailPreferences.OptInState

The newsAndTips.

getNewsAndTipsValue()

public int getNewsAndTipsValue()

Optional. Updates on new features, tips and best practices.

.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState news_and_tips = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for newsAndTips.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

mergeFrom(EmailPreferences other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setName(String value)

public EmailPreferences.Builder setName(String value)

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EmailPreferences.Builder setNameBytes(ByteString value)

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

setNewsAndTips(EmailPreferences.OptInState value)

public EmailPreferences.Builder setNewsAndTips(EmailPreferences.OptInState value)

Optional. Updates on new features, tips and best practices.

.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState news_and_tips = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EmailPreferences.OptInState

The newsAndTips to set.

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

setNewsAndTipsValue(int value)

public EmailPreferences.Builder setNewsAndTipsValue(int value)

Optional. Updates on new features, tips and best practices.

.google.shopping.merchant.accounts.v1beta.EmailPreferences.OptInState news_and_tips = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for newsAndTips to set.

Returns
Type Description
EmailPreferences.Builder

This builder for chaining.

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