Class ListLocalInventoriesResponse.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.shopping.merchant.inventories.v1beta.LocalInventory>
Returns
TypeDescription
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
NameDescription
valueLocalInventory
Returns
TypeDescription
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
NameDescription
builderForValueLocalInventory.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLocalInventory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLocalInventory.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LocalInventory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListLocalInventoriesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

build()

public ListLocalInventoriesResponse build()
Returns
TypeDescription
ListLocalInventoriesResponse

buildPartial()

public ListLocalInventoriesResponse buildPartial()
Returns
TypeDescription
ListLocalInventoriesResponse

clear()

public ListLocalInventoriesResponse.Builder clear()
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListLocalInventoriesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListLocalInventoriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListLocalInventoriesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

clone()

public ListLocalInventoriesResponse.Builder clone()
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListLocalInventoriesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLocalInventoriesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListLocalInventoriesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListLocalInventoriesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

mergeFrom(ListLocalInventoriesResponse other)

public ListLocalInventoriesResponse.Builder mergeFrom(ListLocalInventoriesResponse other)
Parameter
NameDescription
otherListLocalInventoriesResponse
Returns
TypeDescription
ListLocalInventoriesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListLocalInventoriesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListLocalInventoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListLocalInventoriesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueLocalInventory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLocalInventory.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListLocalInventoriesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListLocalInventoriesResponse.Builder
Overrides