Class AutofeedSettings.Builder (0.9.0)

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

Collection of information related to the autofeed settings.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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 merchant 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.

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 merchant 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEligible(boolean value)

public AutofeedSettings.Builder setEligible(boolean value)

Output only. Determines whether merchant 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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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