Send feedback
Class ListInventoriesResponse.Builder (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.cloud.osconfig.v1.Inventory >
Returns
addInventories(Inventory value)
public ListInventoriesResponse . Builder addInventories ( Inventory value )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
addInventories(Inventory.Builder builderForValue)
public ListInventoriesResponse . Builder addInventories ( Inventory . Builder builderForValue )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
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
Returns
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
Returns
addInventoriesBuilder()
public Inventory . Builder addInventoriesBuilder ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
addInventoriesBuilder(int index)
public Inventory . Builder addInventoriesBuilder ( int index )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListInventoriesResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ListInventoriesResponse build ()
Returns
buildPartial()
public ListInventoriesResponse buildPartial ()
Returns
clear()
public ListInventoriesResponse . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListInventoriesResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearInventories()
public ListInventoriesResponse . Builder clearInventories ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
clearNextPageToken()
public ListInventoriesResponse . Builder clearNextPageToken ()
The pagination token to retrieve the next page of inventory objects.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListInventoriesResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public ListInventoriesResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ListInventoriesResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getInventories(int index)
public Inventory getInventories ( int index )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
getInventoriesBuilder(int index)
public Inventory . Builder getInventoriesBuilder ( int index )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
getInventoriesBuilderList()
public List<Inventory . Builder > getInventoriesBuilderList ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
getInventoriesCount()
public int getInventoriesCount ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
getInventoriesList()
public List<Inventory> getInventoriesList ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
getInventoriesOrBuilder(int index)
public InventoryOrBuilder getInventoriesOrBuilder ( int index )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
getInventoriesOrBuilderList()
public List <? extends InventoryOrBuilder > getInventoriesOrBuilderList ()
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Returns
Type Description 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
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ListInventoriesResponse other)
public ListInventoriesResponse . Builder mergeFrom ( ListInventoriesResponse other )
Parameter
Returns
public ListInventoriesResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListInventoriesResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListInventoriesResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeInventories(int index)
public ListInventoriesResponse . Builder removeInventories ( int index )
List of inventory objects.
repeated .google.cloud.osconfig.v1.Inventory inventories = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListInventoriesResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListInventoriesResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListInventoriesResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]