Class Inventory.Item (2.31.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
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

INSTALLED_PACKAGE_FIELD_NUMBER

public static final int INSTALLED_PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGIN_TYPE_FIELD_NUMBER

public static final int ORIGIN_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Inventory.Item getDefaultInstance()
Returns
TypeDescription
Inventory.Item

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Inventory.Item.Builder newBuilder()
Returns
TypeDescription
Inventory.Item.Builder

newBuilder(Inventory.Item prototype)

public static Inventory.Item.Builder newBuilder(Inventory.Item prototype)
Parameter
NameDescription
prototypeInventory.Item
Returns
TypeDescription
Inventory.Item.Builder

parseDelimitedFrom(InputStream input)

public static Inventory.Item parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Inventory.Item parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Inventory.Item parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Inventory.Item parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Inventory.Item parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Inventory.Item parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Inventory.Item parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Inventory.SoftwarePackageOrBuilder

getCreateTime()

public Timestamp getCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Inventory.Item getDefaultInstanceForType()
Returns
TypeDescription
Inventory.Item

getDetailsCase()

public Inventory.Item.DetailsCase getDetailsCase()
Returns
TypeDescription
Inventory.Item.DetailsCase

getId()

public String getId()

Identifier for this item, unique across items for this VM.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Identifier for this item, unique across items for this VM.

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for originType.

getParserForType()

public Parser<Inventory.Item> getParserForType()
Returns
TypeDescription
Parser<Item>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Inventory.Item.Builder newBuilderForType()
Returns
TypeDescription
Inventory.Item.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Inventory.Item.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Inventory.Item.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Inventory.Item.Builder toBuilder()
Returns
TypeDescription
Inventory.Item.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException