Class ListInventoriesResponse.Builder (2.19.0)

public static final class ListInventoriesResponse.Builder extends GeneratedMessageV3.Builder<ListInventoriesResponse.Builder> implements ListInventoriesResponseOrBuilder

A response message for listing inventory data for all VMs in a specified location.

Protobuf type google.cloud.osconfig.v1alpha.ListInventoriesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInventories(Iterable<? extends Inventory> values)

public ListInventoriesResponse.Builder addAllInventories(Iterable<? extends Inventory> values)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.Inventory>
Returns
TypeDescription
ListInventoriesResponse.Builder

addInventories(Inventory value)

public ListInventoriesResponse.Builder addInventories(Inventory value)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameter
NameDescription
valueInventory
Returns
TypeDescription
ListInventoriesResponse.Builder

addInventories(Inventory.Builder builderForValue)

public ListInventoriesResponse.Builder addInventories(Inventory.Builder builderForValue)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameter
NameDescription
builderForValueInventory.Builder
Returns
TypeDescription
ListInventoriesResponse.Builder

addInventories(int index, Inventory value)

public ListInventoriesResponse.Builder addInventories(int index, Inventory value)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameters
NameDescription
indexint
valueInventory
Returns
TypeDescription
ListInventoriesResponse.Builder

addInventories(int index, Inventory.Builder builderForValue)

public ListInventoriesResponse.Builder addInventories(int index, Inventory.Builder builderForValue)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameters
NameDescription
indexint
builderForValueInventory.Builder
Returns
TypeDescription
ListInventoriesResponse.Builder

addInventoriesBuilder()

public Inventory.Builder addInventoriesBuilder()

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Returns
TypeDescription
Inventory.Builder

addInventoriesBuilder(int index)

public Inventory.Builder addInventoriesBuilder(int index)

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Inventory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListInventoriesResponse build()
Returns
TypeDescription
ListInventoriesResponse

buildPartial()

public ListInventoriesResponse buildPartial()
Returns
TypeDescription
ListInventoriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListInventoriesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListInventoriesResponse.Builder
Overrides

clearInventories()

public ListInventoriesResponse.Builder clearInventories()

List of inventory objects.

repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1;

Returns
TypeDescription
ListInventoriesResponse.Builder

clearNextPageToken()

public ListInventoriesResponse.Builder clearNextPageToken()

The pagination token to retrieve the next page of inventory objects.

string next_page_token = 2;

Returns
TypeDescription
ListInventoriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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