Class LfpMerchantState.Builder (1.16.0)

public static final class LfpMerchantState.Builder extends GeneratedMessage.Builder<LfpMerchantState.Builder> implements LfpMerchantStateOrBuilder

The LFP state of a merchant.

Protobuf type google.shopping.merchant.lfp.v1.LfpMerchantState

Static Methods

getDescriptor()

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

Methods

addAllCountrySettings(Iterable<? extends LfpMerchantState.CountrySettings> values)

public LfpMerchantState.Builder addAllCountrySettings(Iterable<? extends LfpMerchantState.CountrySettings> values)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings>
Returns
Type Description
LfpMerchantState.Builder

addAllStoreStates(Iterable<? extends LfpMerchantState.LfpStoreState> values)

public LfpMerchantState.Builder addAllStoreStates(Iterable<? extends LfpMerchantState.LfpStoreState> values)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState>
Returns
Type Description
LfpMerchantState.Builder

addCountrySettings(LfpMerchantState.CountrySettings value)

public LfpMerchantState.Builder addCountrySettings(LfpMerchantState.CountrySettings value)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
value LfpMerchantState.CountrySettings
Returns
Type Description
LfpMerchantState.Builder

addCountrySettings(LfpMerchantState.CountrySettings.Builder builderForValue)

public LfpMerchantState.Builder addCountrySettings(LfpMerchantState.CountrySettings.Builder builderForValue)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
builderForValue LfpMerchantState.CountrySettings.Builder
Returns
Type Description
LfpMerchantState.Builder

addCountrySettings(int index, LfpMerchantState.CountrySettings value)

public LfpMerchantState.Builder addCountrySettings(int index, LfpMerchantState.CountrySettings value)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameters
Name Description
index int
value LfpMerchantState.CountrySettings
Returns
Type Description
LfpMerchantState.Builder

addCountrySettings(int index, LfpMerchantState.CountrySettings.Builder builderForValue)

public LfpMerchantState.Builder addCountrySettings(int index, LfpMerchantState.CountrySettings.Builder builderForValue)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameters
Name Description
index int
builderForValue LfpMerchantState.CountrySettings.Builder
Returns
Type Description
LfpMerchantState.Builder

addCountrySettingsBuilder()

public LfpMerchantState.CountrySettings.Builder addCountrySettingsBuilder()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
LfpMerchantState.CountrySettings.Builder

addCountrySettingsBuilder(int index)

public LfpMerchantState.CountrySettings.Builder addCountrySettingsBuilder(int index)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.CountrySettings.Builder

addStoreStates(LfpMerchantState.LfpStoreState value)

public LfpMerchantState.Builder addStoreStates(LfpMerchantState.LfpStoreState value)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LfpMerchantState.LfpStoreState
Returns
Type Description
LfpMerchantState.Builder

addStoreStates(LfpMerchantState.LfpStoreState.Builder builderForValue)

public LfpMerchantState.Builder addStoreStates(LfpMerchantState.LfpStoreState.Builder builderForValue)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue LfpMerchantState.LfpStoreState.Builder
Returns
Type Description
LfpMerchantState.Builder

addStoreStates(int index, LfpMerchantState.LfpStoreState value)

public LfpMerchantState.Builder addStoreStates(int index, LfpMerchantState.LfpStoreState value)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value LfpMerchantState.LfpStoreState
Returns
Type Description
LfpMerchantState.Builder

addStoreStates(int index, LfpMerchantState.LfpStoreState.Builder builderForValue)

public LfpMerchantState.Builder addStoreStates(int index, LfpMerchantState.LfpStoreState.Builder builderForValue)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue LfpMerchantState.LfpStoreState.Builder
Returns
Type Description
LfpMerchantState.Builder

addStoreStatesBuilder()

public LfpMerchantState.LfpStoreState.Builder addStoreStatesBuilder()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LfpMerchantState.LfpStoreState.Builder

addStoreStatesBuilder(int index)

public LfpMerchantState.LfpStoreState.Builder addStoreStatesBuilder(int index)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.LfpStoreState.Builder

build()

public LfpMerchantState build()
Returns
Type Description
LfpMerchantState

buildPartial()

public LfpMerchantState buildPartial()
Returns
Type Description
LfpMerchantState

clear()

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

clearCountrySettings()

public LfpMerchantState.Builder clearCountrySettings()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
LfpMerchantState.Builder

clearInventoryStats()

public LfpMerchantState.Builder clearInventoryStats()

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Returns
Type Description
LfpMerchantState.Builder

clearLinkedGbps()

public LfpMerchantState.Builder clearLinkedGbps()

Number of GBPs this merchant has access to.

int64 linked_gbps = 2;

Returns
Type Description
LfpMerchantState.Builder

This builder for chaining.

clearName()

public LfpMerchantState.Builder clearName()

Identifier. The name of the LfpMerchantState resource. Format: accounts/{account}/lfpMerchantStates/{target_merchant}. For example, accounts/123456/lfpMerchantStates/567890.

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

Returns
Type Description
LfpMerchantState.Builder

This builder for chaining.

clearStoreStates()

public LfpMerchantState.Builder clearStoreStates()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LfpMerchantState.Builder

getCountrySettings(int index)

public LfpMerchantState.CountrySettings getCountrySettings(int index)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.CountrySettings

getCountrySettingsBuilder(int index)

public LfpMerchantState.CountrySettings.Builder getCountrySettingsBuilder(int index)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.CountrySettings.Builder

getCountrySettingsBuilderList()

public List<LfpMerchantState.CountrySettings.Builder> getCountrySettingsBuilderList()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
List<Builder>

getCountrySettingsCount()

public int getCountrySettingsCount()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
int

getCountrySettingsList()

public List<LfpMerchantState.CountrySettings> getCountrySettingsList()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
List<CountrySettings>

getCountrySettingsOrBuilder(int index)

public LfpMerchantState.CountrySettingsOrBuilder getCountrySettingsOrBuilder(int index)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.CountrySettingsOrBuilder

getCountrySettingsOrBuilderList()

public List<? extends LfpMerchantState.CountrySettingsOrBuilder> getCountrySettingsOrBuilderList()

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Returns
Type Description
List<? extends com.google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettingsOrBuilder>

getDefaultInstanceForType()

public LfpMerchantState getDefaultInstanceForType()
Returns
Type Description
LfpMerchantState

getDescriptorForType()

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

getInventoryStats()

public LfpMerchantState.InventoryStats getInventoryStats()

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Returns
Type Description
LfpMerchantState.InventoryStats

The inventoryStats.

getInventoryStatsBuilder()

public LfpMerchantState.InventoryStats.Builder getInventoryStatsBuilder()

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Returns
Type Description
LfpMerchantState.InventoryStats.Builder

getInventoryStatsOrBuilder()

public LfpMerchantState.InventoryStatsOrBuilder getInventoryStatsOrBuilder()

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Returns
Type Description
LfpMerchantState.InventoryStatsOrBuilder

getLinkedGbps()

public long getLinkedGbps()

Number of GBPs this merchant has access to.

int64 linked_gbps = 2;

Returns
Type Description
long

The linkedGbps.

getName()

public String getName()

Identifier. The name of the LfpMerchantState resource. Format: accounts/{account}/lfpMerchantStates/{target_merchant}. For example, accounts/123456/lfpMerchantStates/567890.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the LfpMerchantState resource. Format: accounts/{account}/lfpMerchantStates/{target_merchant}. For example, accounts/123456/lfpMerchantStates/567890.

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

Returns
Type Description
ByteString

The bytes for name.

getStoreStates(int index)

public LfpMerchantState.LfpStoreState getStoreStates(int index)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.LfpStoreState

getStoreStatesBuilder(int index)

public LfpMerchantState.LfpStoreState.Builder getStoreStatesBuilder(int index)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.LfpStoreState.Builder

getStoreStatesBuilderList()

public List<LfpMerchantState.LfpStoreState.Builder> getStoreStatesBuilderList()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getStoreStatesCount()

public int getStoreStatesCount()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getStoreStatesList()

public List<LfpMerchantState.LfpStoreState> getStoreStatesList()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<LfpStoreState>

getStoreStatesOrBuilder(int index)

public LfpMerchantState.LfpStoreStateOrBuilder getStoreStatesOrBuilder(int index)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.LfpStoreStateOrBuilder

getStoreStatesOrBuilderList()

public List<? extends LfpMerchantState.LfpStoreStateOrBuilder> getStoreStatesOrBuilderList()

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreStateOrBuilder>

hasInventoryStats()

public boolean hasInventoryStats()

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Returns
Type Description
boolean

Whether the inventoryStats field is set.

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 LfpMerchantState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LfpMerchantState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(LfpMerchantState other)

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

mergeInventoryStats(LfpMerchantState.InventoryStats value)

public LfpMerchantState.Builder mergeInventoryStats(LfpMerchantState.InventoryStats value)

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Parameter
Name Description
value LfpMerchantState.InventoryStats
Returns
Type Description
LfpMerchantState.Builder

removeCountrySettings(int index)

public LfpMerchantState.Builder removeCountrySettings(int index)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.Builder

removeStoreStates(int index)

public LfpMerchantState.Builder removeStoreStates(int index)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LfpMerchantState.Builder

setCountrySettings(int index, LfpMerchantState.CountrySettings value)

public LfpMerchantState.Builder setCountrySettings(int index, LfpMerchantState.CountrySettings value)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameters
Name Description
index int
value LfpMerchantState.CountrySettings
Returns
Type Description
LfpMerchantState.Builder

setCountrySettings(int index, LfpMerchantState.CountrySettings.Builder builderForValue)

public LfpMerchantState.Builder setCountrySettings(int index, LfpMerchantState.CountrySettings.Builder builderForValue)

Country-specific settings for the merchant.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.CountrySettings country_settings = 5;

Parameters
Name Description
index int
builderForValue LfpMerchantState.CountrySettings.Builder
Returns
Type Description
LfpMerchantState.Builder

setInventoryStats(LfpMerchantState.InventoryStats value)

public LfpMerchantState.Builder setInventoryStats(LfpMerchantState.InventoryStats value)

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Parameter
Name Description
value LfpMerchantState.InventoryStats
Returns
Type Description
LfpMerchantState.Builder

setInventoryStats(LfpMerchantState.InventoryStats.Builder builderForValue)

public LfpMerchantState.Builder setInventoryStats(LfpMerchantState.InventoryStats.Builder builderForValue)

The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.

.google.shopping.merchant.lfp.v1.LfpMerchantState.InventoryStats inventory_stats = 4;

Parameter
Name Description
builderForValue LfpMerchantState.InventoryStats.Builder
Returns
Type Description
LfpMerchantState.Builder

setLinkedGbps(long value)

public LfpMerchantState.Builder setLinkedGbps(long value)

Number of GBPs this merchant has access to.

int64 linked_gbps = 2;

Parameter
Name Description
value long

The linkedGbps to set.

Returns
Type Description
LfpMerchantState.Builder

This builder for chaining.

setName(String value)

public LfpMerchantState.Builder setName(String value)

Identifier. The name of the LfpMerchantState resource. Format: accounts/{account}/lfpMerchantStates/{target_merchant}. For example, accounts/123456/lfpMerchantStates/567890.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LfpMerchantState.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LfpMerchantState.Builder setNameBytes(ByteString value)

Identifier. The name of the LfpMerchantState resource. Format: accounts/{account}/lfpMerchantStates/{target_merchant}. For example, accounts/123456/lfpMerchantStates/567890.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LfpMerchantState.Builder

This builder for chaining.

setStoreStates(int index, LfpMerchantState.LfpStoreState value)

public LfpMerchantState.Builder setStoreStates(int index, LfpMerchantState.LfpStoreState value)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value LfpMerchantState.LfpStoreState
Returns
Type Description
LfpMerchantState.Builder

setStoreStates(int index, LfpMerchantState.LfpStoreState.Builder builderForValue)

public LfpMerchantState.Builder setStoreStates(int index, LfpMerchantState.LfpStoreState.Builder builderForValue)

Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.

repeated .google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState store_states = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue LfpMerchantState.LfpStoreState.Builder
Returns
Type Description
LfpMerchantState.Builder