Class ListInventoriesResponse.Builder (2.5.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.v1.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.v1.Inventory inventories = 1;

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

addInventories(Inventory value)

public ListInventoriesResponse.Builder addInventories(Inventory value)

List of inventory objects.

repeated .google.cloud.osconfig.v1.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.v1.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.v1.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.v1.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.v1.Inventory inventories = 1;

Returns
TypeDescription
Inventory.Builder

addInventoriesBuilder(int index)

public Inventory.Builder addInventoriesBuilder(int index)

List of inventory objects.

repeated .google.cloud.osconfig.v1.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.v1.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

clone()

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

getDefaultInstanceForType()

public ListInventoriesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListInventoriesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInventories(int index)

public Inventory getInventories(int index)

List of inventory objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Inventory

getInventoriesBuilder(int index)

public Inventory.Builder getInventoriesBuilder(int index)

List of inventory objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Inventory.Builder

getInventoriesBuilderList()

public List<Inventory.Builder> getInventoriesBuilderList()

List of inventory objects.

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

Returns
TypeDescription
List<Builder>

getInventoriesCount()

public int getInventoriesCount()

List of inventory objects.

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

Returns
TypeDescription
int

getInventoriesList()

public List<Inventory> getInventoriesList()

List of inventory objects.

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

Returns
TypeDescription
List<Inventory>

getInventoriesOrBuilder(int index)

public InventoryOrBuilder getInventoriesOrBuilder(int index)

List of inventory objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InventoryOrBuilder

getInventoriesOrBuilderList()

public List<? extends InventoryOrBuilder> getInventoriesOrBuilderList()

List of inventory objects.

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

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.InventoryOrBuilder>

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

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

public ListInventoriesResponse.Builder mergeFrom(ListInventoriesResponse other)
Parameter
NameDescription
otherListInventoriesResponse
Returns
TypeDescription
ListInventoriesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListInventoriesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListInventoriesResponse.Builder
Overrides

removeInventories(int index)

public ListInventoriesResponse.Builder removeInventories(int index)

List of inventory objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListInventoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInventories(int index, Inventory value)

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

List of inventory objects.

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

Parameters
NameDescription
indexint
valueInventory
Returns
TypeDescription
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.v1.Inventory inventories = 1;

Parameters
NameDescription
indexint
builderForValueInventory.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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