Class AutofeedSettings.Builder (1.11.0)

public static final class AutofeedSettings.Builder extends GeneratedMessage.Builder<AutofeedSettings.Builder> implements AutofeedSettingsOrBuilder

Collection of information related to the autofeed settings.

Protobuf type google.shopping.merchant.accounts.v1.AutofeedSettings

Static Methods

getDescriptor()

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

Methods

build()

public AutofeedSettings build()
Returns
Type Description
AutofeedSettings

buildPartial()

public AutofeedSettings buildPartial()
Returns
Type Description
AutofeedSettings

clear()

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

clearEligible()

public AutofeedSettings.Builder clearEligible()

Output only. Determines whether the business is eligible for being enrolled into an autofeed.

bool eligible = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

clearEnableProducts()

public AutofeedSettings.Builder clearEnableProducts()

Required. Enables or disables product crawling through the autofeed for the given account. Autofeed accounts must meet certain conditions, which can be checked through the eligible field. The account must not be a marketplace. When the autofeed is enabled for the first time, the products usually appear instantly. When re-enabling, it might take up to 24 hours for products to appear.

bool enable_products = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

clearName()

public AutofeedSettings.Builder clearName()

Identifier. The resource name of the autofeed settings. Format: accounts/{account}/autofeedSettings.

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

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public AutofeedSettings getDefaultInstanceForType()
Returns
Type Description
AutofeedSettings

getDescriptorForType()

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

getEligible()

public boolean getEligible()

Output only. Determines whether the business is eligible for being enrolled into an autofeed.

bool eligible = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The eligible.

getEnableProducts()

public boolean getEnableProducts()

Required. Enables or disables product crawling through the autofeed for the given account. Autofeed accounts must meet certain conditions, which can be checked through the eligible field. The account must not be a marketplace. When the autofeed is enabled for the first time, the products usually appear instantly. When re-enabling, it might take up to 24 hours for products to appear.

bool enable_products = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The enableProducts.

getName()

public String getName()

Identifier. The resource name of the autofeed settings. Format: accounts/{account}/autofeedSettings.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the autofeed settings. Format: accounts/{account}/autofeedSettings.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AutofeedSettings other)

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

setEligible(boolean value)

public AutofeedSettings.Builder setEligible(boolean value)

Output only. Determines whether the business is eligible for being enrolled into an autofeed.

bool eligible = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The eligible to set.

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

setEnableProducts(boolean value)

public AutofeedSettings.Builder setEnableProducts(boolean value)

Required. Enables or disables product crawling through the autofeed for the given account. Autofeed accounts must meet certain conditions, which can be checked through the eligible field. The account must not be a marketplace. When the autofeed is enabled for the first time, the products usually appear instantly. When re-enabling, it might take up to 24 hours for products to appear.

bool enable_products = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The enableProducts to set.

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

setName(String value)

public AutofeedSettings.Builder setName(String value)

Identifier. The resource name of the autofeed settings. Format: accounts/{account}/autofeedSettings.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AutofeedSettings.Builder setNameBytes(ByteString value)

Identifier. The resource name of the autofeed settings. Format: accounts/{account}/autofeedSettings.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AutofeedSettings.Builder

This builder for chaining.