Class Inventory.Item (2.48.0)

public static final class Inventory.Item extends GeneratedMessageV3 implements Inventory.ItemOrBuilder

A single piece of inventory on a VM.

Protobuf type google.cloud.osconfig.v1alpha.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()
Returns
Type Description
Inventory.Item

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Inventory.Item.Builder newBuilder()
Returns
Type Description
Inventory.Item.Builder

newBuilder(Inventory.Item prototype)

public static Inventory.Item.Builder newBuilder(Inventory.Item prototype)
Parameter
Name Description
prototype Inventory.Item
Returns
Type Description
Inventory.Item.Builder

parseDelimitedFrom(InputStream input)

public static Inventory.Item parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Inventory.Item parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Inventory.Item parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Inventory.Item parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Inventory.Item parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Inventory.Item parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Inventory.Item> parser()
Returns
Type Description
Parser<Item>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAvailablePackage()

public Inventory.SoftwarePackage getAvailablePackage()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
Type Description
Inventory.SoftwarePackage

The availablePackage.

getAvailablePackageOrBuilder()

public Inventory.SoftwarePackageOrBuilder getAvailablePackageOrBuilder()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
Type Description
Inventory.SoftwarePackageOrBuilder

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;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Inventory.Item getDefaultInstanceForType()
Returns
Type Description
Inventory.Item

getDetailsCase()

public Inventory.Item.DetailsCase getDetailsCase()
Returns
Type Description
Inventory.Item.DetailsCase

getId()

public String 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.v1alpha.Inventory.SoftwarePackage installed_package = 6;

Returns
Type Description
Inventory.SoftwarePackage

The installedPackage.

getInstalledPackageOrBuilder()

public Inventory.SoftwarePackageOrBuilder getInstalledPackageOrBuilder()

Software package present on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage installed_package = 6;

Returns
Type Description
Inventory.SoftwarePackageOrBuilder

getOriginType()

public Inventory.Item.OriginType getOriginType()

The origin of this inventory item.

.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType origin_type = 2;

Returns
Type Description
Inventory.Item.OriginType

The originType.

getOriginTypeValue()

public int getOriginTypeValue()

The origin of this inventory item.

.google.cloud.osconfig.v1alpha.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()
Returns
Type Description
Parser<Item>
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.v1alpha.Inventory.Item.Type type = 5;

Returns
Type Description
Inventory.Item.Type

The type.

getTypeValue()

public int getTypeValue()

The specific type of inventory, correlating to its specific details.

.google.cloud.osconfig.v1alpha.Inventory.Item.Type type = 5;

Returns
Type Description
int

The enum numeric value on the wire for type.

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;

Returns
Type Description
TimestampOrBuilder

hasAvailablePackage()

public boolean hasAvailablePackage()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.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.v1alpha.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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Inventory.Item.Builder newBuilderForType()
Returns
Type Description
Inventory.Item.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Inventory.Item.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Inventory.Item.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Inventory.Item.Builder toBuilder()
Returns
Type Description
Inventory.Item.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException