Class Inventory.Item (2.15.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.15.0keyboard_arrow_down
public static final class Inventory . Item extends GeneratedMessageV3 implements Inventory . ItemOrBuilder
A single piece of inventory on a VM.
Protobuf type google.cloud.osconfig.v1.Inventory.Item
Static Fields
AVAILABLE_PACKAGE_FIELD_NUMBER
public static final int AVAILABLE_PACKAGE_FIELD_NUMBER
Field Value
Type
Description
int
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
Type
Description
int
INSTALLED_PACKAGE_FIELD_NUMBER
public static final int INSTALLED_PACKAGE_FIELD_NUMBER
Field Value
Type
Description
int
ORIGIN_TYPE_FIELD_NUMBER
public static final int ORIGIN_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Type
Description
int
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Inventory . Item getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Inventory . Item . Builder newBuilder ()
newBuilder(Inventory.Item prototype)
public static Inventory . Item . Builder newBuilder ( Inventory . Item prototype )
public static Inventory . Item parseDelimitedFrom ( InputStream input )
public static Inventory . Item parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Inventory . Item parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Inventory . Item parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Inventory . Item parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Inventory . Item parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Inventory . Item parseFrom ( CodedInputStream input )
public static Inventory . Item parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Inventory . Item parseFrom ( InputStream input )
public static Inventory . Item parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Inventory . Item parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Inventory . Item parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Inventory . Item > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAvailablePackage()
public Inventory . SoftwarePackage getAvailablePackage ()
Software package available to be installed on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
getAvailablePackageOrBuilder()
public Inventory . SoftwarePackageOrBuilder getAvailablePackageOrBuilder ()
Software package available to be installed on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
getCreateTime()
public Timestamp getCreateTime ()
When this inventory item was first detected.
.google.protobuf.Timestamp create_time = 8;
Returns
Type
Description
Timestamp
The createTime.
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder ()
When this inventory item was first detected.
.google.protobuf.Timestamp create_time = 8;
getDefaultInstanceForType()
public Inventory . Item getDefaultInstanceForType ()
getDetailsCase()
public Inventory . Item . DetailsCase getDetailsCase ()
getId()
Identifier for this item, unique across items for this VM.
string id = 1;
Returns
Type
Description
String
The id.
getIdBytes()
public ByteString getIdBytes ()
Identifier for this item, unique across items for this VM.
string id = 1;
Returns
Type
Description
ByteString
The bytes for id.
getInstalledPackage()
public Inventory . SoftwarePackage getInstalledPackage ()
Software package present on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
getInstalledPackageOrBuilder()
public Inventory . SoftwarePackageOrBuilder getInstalledPackageOrBuilder ()
Software package present on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
getOriginType()
public Inventory . Item . OriginType getOriginType ()
The origin of this inventory item.
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
getOriginTypeValue()
public int getOriginTypeValue ()
The origin of this inventory item.
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
Returns
Type
Description
int
The enum numeric value on the wire for originType.
getParserForType()
public Parser<Inventory . Item > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getType()
public Inventory . Item . Type getType ()
The specific type of inventory, correlating to its specific details.
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
getTypeValue()
public int getTypeValue ()
The specific type of inventory, correlating to its specific details.
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
Returns
Type
Description
int
The enum numeric value on the wire for type.
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Overrides
getUpdateTime()
public Timestamp getUpdateTime ()
When this inventory item was last modified.
.google.protobuf.Timestamp update_time = 9;
Returns
Type
Description
Timestamp
The updateTime.
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder ()
When this inventory item was last modified.
.google.protobuf.Timestamp update_time = 9;
hasAvailablePackage()
public boolean hasAvailablePackage ()
Software package available to be installed on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
Returns
Type
Description
boolean
Whether the availablePackage field is set.
hasCreateTime()
public boolean hasCreateTime ()
When this inventory item was first detected.
.google.protobuf.Timestamp create_time = 8;
Returns
Type
Description
boolean
Whether the createTime field is set.
hasInstalledPackage()
public boolean hasInstalledPackage ()
Software package present on the VM instance.
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
Returns
Type
Description
boolean
Whether the installedPackage field is set.
hasUpdateTime()
public boolean hasUpdateTime ()
When this inventory item was last modified.
.google.protobuf.Timestamp update_time = 9;
Returns
Type
Description
boolean
Whether the updateTime field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Inventory . Item . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Inventory . Item . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Inventory . Item . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,[]]