Class ListInventoriesResponse.Builder (2.47.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1alpha.Inventory>
Returns
Type Description
ListInventoriesResponse.Builder

addInventories(Inventory value)

public ListInventoriesResponse.Builder addInventories(Inventory value)

List of inventory objects.

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

Parameter
Name Description
value Inventory
Returns
Type Description
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
Name Description
builderForValue Inventory.Builder
Returns
Type Description
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
Name Description
index int
value Inventory
Returns
Type Description
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
Name Description
index int
builderForValue Inventory.Builder
Returns
Type Description
ListInventoriesResponse.Builder

addInventoriesBuilder()

public Inventory.Builder addInventoriesBuilder()

List of inventory objects.

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

Returns
Type Description
Inventory.Builder

addInventoriesBuilder(int index)

public Inventory.Builder addInventoriesBuilder(int index)

List of inventory objects.

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

Parameter
Name Description
index int
Returns
Type Description
Inventory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListInventoriesResponse build()
Returns
Type Description
ListInventoriesResponse

buildPartial()

public ListInventoriesResponse buildPartial()
Returns
Type Description
ListInventoriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInventories()

public ListInventoriesResponse.Builder clearInventories()

List of inventory objects.

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

Returns
Type Description
ListInventoriesResponse.Builder

clearNextPageToken()

public ListInventoriesResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListInventoriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListInventoriesResponse getDefaultInstanceForType()
Returns
Type Description
ListInventoriesResponse

getDescriptorForType()

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

getInventories(int index)

public Inventory getInventories(int index)

List of inventory objects.

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

Parameter
Name Description
index int
Returns
Type Description
Inventory

getInventoriesBuilder(int index)

public Inventory.Builder getInventoriesBuilder(int index)

List of inventory objects.

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

Parameter
Name Description
index int
Returns
Type Description
Inventory.Builder

getInventoriesBuilderList()

public List<Inventory.Builder> getInventoriesBuilderList()

List of inventory objects.

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

Returns
Type Description
List<Builder>

getInventoriesCount()

public int getInventoriesCount()

List of inventory objects.

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

Returns
Type Description
int

getInventoriesList()

public List<Inventory> getInventoriesList()

List of inventory objects.

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

Returns
Type Description
List<Inventory>

getInventoriesOrBuilder(int index)

public InventoryOrBuilder getInventoriesOrBuilder(int index)

List of inventory objects.

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

Parameter
Name Description
index int
Returns
Type Description
InventoryOrBuilder

getInventoriesOrBuilderList()

public List<? extends InventoryOrBuilder> getInventoriesOrBuilderList()

List of inventory objects.

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

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1alpha.InventoryOrBuilder>

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

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(ListInventoriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListInventoriesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListInventoriesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInventories(int index)

public ListInventoriesResponse.Builder removeInventories(int index)

List of inventory objects.

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

Parameter
Name Description
index int
Returns
Type Description
ListInventoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInventories(int index, Inventory value)

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

List of inventory objects.

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

Parameters
Name Description
index int
value Inventory
Returns
Type Description
ListInventoriesResponse.Builder

setInventories(int index, Inventory.Builder builderForValue)

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

List of inventory objects.

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

Parameters
Name Description
index int
builderForValue Inventory.Builder
Returns
Type Description
ListInventoriesResponse.Builder

setNextPageToken(String value)

public ListInventoriesResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListInventoriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListInventoriesResponse.Builder setNextPageTokenBytes(ByteString value)

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

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListInventoriesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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