Class ListLocalInventoriesResponse.Builder (0.23.0)

public static final class ListLocalInventoriesResponse.Builder extends GeneratedMessageV3.Builder<ListLocalInventoriesResponse.Builder> implements ListLocalInventoriesResponseOrBuilder

Response message for the ListLocalInventories method.

Protobuf type google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse

Static Methods

getDescriptor()

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

Methods

addAllLocalInventories(Iterable<? extends LocalInventory> values)

public ListLocalInventoriesResponse.Builder addAllLocalInventories(Iterable<? extends LocalInventory> values)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.inventories.v1beta.LocalInventory>
Returns
Type Description
ListLocalInventoriesResponse.Builder

addLocalInventories(LocalInventory value)

public ListLocalInventoriesResponse.Builder addLocalInventories(LocalInventory value)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
value LocalInventory
Returns
Type Description
ListLocalInventoriesResponse.Builder

addLocalInventories(LocalInventory.Builder builderForValue)

public ListLocalInventoriesResponse.Builder addLocalInventories(LocalInventory.Builder builderForValue)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
builderForValue LocalInventory.Builder
Returns
Type Description
ListLocalInventoriesResponse.Builder

addLocalInventories(int index, LocalInventory value)

public ListLocalInventoriesResponse.Builder addLocalInventories(int index, LocalInventory value)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameters
Name Description
index int
value LocalInventory
Returns
Type Description
ListLocalInventoriesResponse.Builder

addLocalInventories(int index, LocalInventory.Builder builderForValue)

public ListLocalInventoriesResponse.Builder addLocalInventories(int index, LocalInventory.Builder builderForValue)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameters
Name Description
index int
builderForValue LocalInventory.Builder
Returns
Type Description
ListLocalInventoriesResponse.Builder

addLocalInventoriesBuilder()

public LocalInventory.Builder addLocalInventoriesBuilder()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
LocalInventory.Builder

addLocalInventoriesBuilder(int index)

public LocalInventory.Builder addLocalInventoriesBuilder(int index)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
LocalInventory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLocalInventoriesResponse build()
Returns
Type Description
ListLocalInventoriesResponse

buildPartial()

public ListLocalInventoriesResponse buildPartial()
Returns
Type Description
ListLocalInventoriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLocalInventories()

public ListLocalInventoriesResponse.Builder clearLocalInventories()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
ListLocalInventoriesResponse.Builder

clearNextPageToken()

public ListLocalInventoriesResponse.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
ListLocalInventoriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLocalInventoriesResponse getDefaultInstanceForType()
Returns
Type Description
ListLocalInventoriesResponse

getDescriptorForType()

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

getLocalInventories(int index)

public LocalInventory getLocalInventories(int index)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
LocalInventory

getLocalInventoriesBuilder(int index)

public LocalInventory.Builder getLocalInventoriesBuilder(int index)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
LocalInventory.Builder

getLocalInventoriesBuilderList()

public List<LocalInventory.Builder> getLocalInventoriesBuilderList()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
List<Builder>

getLocalInventoriesCount()

public int getLocalInventoriesCount()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
int

getLocalInventoriesList()

public List<LocalInventory> getLocalInventoriesList()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
List<LocalInventory>

getLocalInventoriesOrBuilder(int index)

public LocalInventoryOrBuilder getLocalInventoriesOrBuilder(int index)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
LocalInventoryOrBuilder

getLocalInventoriesOrBuilderList()

public List<? extends LocalInventoryOrBuilder> getLocalInventoriesOrBuilderList()

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder>

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.

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

mergeFrom(Message other)

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

mergeFrom(ListLocalInventoriesResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLocalInventories(int index)

public ListLocalInventoriesResponse.Builder removeLocalInventories(int index)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLocalInventoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocalInventories(int index, LocalInventory value)

public ListLocalInventoriesResponse.Builder setLocalInventories(int index, LocalInventory value)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameters
Name Description
index int
value LocalInventory
Returns
Type Description
ListLocalInventoriesResponse.Builder

setLocalInventories(int index, LocalInventory.Builder builderForValue)

public ListLocalInventoriesResponse.Builder setLocalInventories(int index, LocalInventory.Builder builderForValue)

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

repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;

Parameters
Name Description
index int
builderForValue LocalInventory.Builder
Returns
Type Description
ListLocalInventoriesResponse.Builder

setNextPageToken(String value)

public ListLocalInventoriesResponse.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
ListLocalInventoriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLocalInventoriesResponse.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
ListLocalInventoriesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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