Class ListRegionalInventoriesResponse.Builder (1.16.0)

public static final class ListRegionalInventoriesResponse.Builder extends GeneratedMessage.Builder<ListRegionalInventoriesResponse.Builder> implements ListRegionalInventoriesResponseOrBuilder

Response message for the ListRegionalInventories method.

Protobuf type google.shopping.merchant.inventories.v1.ListRegionalInventoriesResponse

Static Methods

getDescriptor()

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

Methods

addAllRegionalInventories(Iterable<? extends RegionalInventory> values)

public ListRegionalInventoriesResponse.Builder addAllRegionalInventories(Iterable<? extends RegionalInventory> values)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.inventories.v1.RegionalInventory>
Returns
Type Description
ListRegionalInventoriesResponse.Builder

addRegionalInventories(RegionalInventory value)

public ListRegionalInventoriesResponse.Builder addRegionalInventories(RegionalInventory value)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
value RegionalInventory
Returns
Type Description
ListRegionalInventoriesResponse.Builder

addRegionalInventories(RegionalInventory.Builder builderForValue)

public ListRegionalInventoriesResponse.Builder addRegionalInventories(RegionalInventory.Builder builderForValue)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
builderForValue RegionalInventory.Builder
Returns
Type Description
ListRegionalInventoriesResponse.Builder

addRegionalInventories(int index, RegionalInventory value)

public ListRegionalInventoriesResponse.Builder addRegionalInventories(int index, RegionalInventory value)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameters
Name Description
index int
value RegionalInventory
Returns
Type Description
ListRegionalInventoriesResponse.Builder

addRegionalInventories(int index, RegionalInventory.Builder builderForValue)

public ListRegionalInventoriesResponse.Builder addRegionalInventories(int index, RegionalInventory.Builder builderForValue)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameters
Name Description
index int
builderForValue RegionalInventory.Builder
Returns
Type Description
ListRegionalInventoriesResponse.Builder

addRegionalInventoriesBuilder()

public RegionalInventory.Builder addRegionalInventoriesBuilder()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
RegionalInventory.Builder

addRegionalInventoriesBuilder(int index)

public RegionalInventory.Builder addRegionalInventoriesBuilder(int index)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
RegionalInventory.Builder

build()

public ListRegionalInventoriesResponse build()
Returns
Type Description
ListRegionalInventoriesResponse

buildPartial()

public ListRegionalInventoriesResponse buildPartial()
Returns
Type Description
ListRegionalInventoriesResponse

clear()

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

clearNextPageToken()

public ListRegionalInventoriesResponse.Builder clearNextPageToken()

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListRegionalInventoriesResponse.Builder

This builder for chaining.

clearRegionalInventories()

public ListRegionalInventoriesResponse.Builder clearRegionalInventories()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
ListRegionalInventoriesResponse.Builder

getDefaultInstanceForType()

public ListRegionalInventoriesResponse getDefaultInstanceForType()
Returns
Type Description
ListRegionalInventoriesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRegionalInventories(int index)

public RegionalInventory getRegionalInventories(int index)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
RegionalInventory

getRegionalInventoriesBuilder(int index)

public RegionalInventory.Builder getRegionalInventoriesBuilder(int index)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
RegionalInventory.Builder

getRegionalInventoriesBuilderList()

public List<RegionalInventory.Builder> getRegionalInventoriesBuilderList()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
List<Builder>

getRegionalInventoriesCount()

public int getRegionalInventoriesCount()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
int

getRegionalInventoriesList()

public List<RegionalInventory> getRegionalInventoriesList()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
List<RegionalInventory>

getRegionalInventoriesOrBuilder(int index)

public RegionalInventoryOrBuilder getRegionalInventoriesOrBuilder(int index)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
RegionalInventoryOrBuilder

getRegionalInventoriesOrBuilderList()

public List<? extends RegionalInventoryOrBuilder> getRegionalInventoriesOrBuilderList()

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.inventories.v1.RegionalInventoryOrBuilder>

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

mergeFrom(Message other)

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

mergeFrom(ListRegionalInventoriesResponse other)

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

removeRegionalInventories(int index)

public ListRegionalInventoriesResponse.Builder removeRegionalInventories(int index)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRegionalInventoriesResponse.Builder

setNextPageToken(String value)

public ListRegionalInventoriesResponse.Builder setNextPageToken(String value)

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRegionalInventoriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRegionalInventoriesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRegionalInventoriesResponse.Builder

This builder for chaining.

setRegionalInventories(int index, RegionalInventory value)

public ListRegionalInventoriesResponse.Builder setRegionalInventories(int index, RegionalInventory value)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameters
Name Description
index int
value RegionalInventory
Returns
Type Description
ListRegionalInventoriesResponse.Builder

setRegionalInventories(int index, RegionalInventory.Builder builderForValue)

public ListRegionalInventoriesResponse.Builder setRegionalInventories(int index, RegionalInventory.Builder builderForValue)

The RegionalInventory resources for the given product from the specified account.

repeated .google.shopping.merchant.inventories.v1.RegionalInventory regional_inventories = 1;

Parameters
Name Description
index int
builderForValue RegionalInventory.Builder
Returns
Type Description
ListRegionalInventoriesResponse.Builder