Package com.google.cloud.osconfig.v1
Class Inventory
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1.Inventory
-
- All Implemented Interfaces:
InventoryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Inventory extends com.google.protobuf.GeneratedMessageV3 implements InventoryOrBuilder
This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time. You can use this API resource to determine the inventory data of your VM. For more information, see [Information provided by OS inventory management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).
Protobuf typegoogle.cloud.osconfig.v1.Inventory- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInventory.BuilderThis API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time.static classInventory.ItemA single piece of inventory on a VM.static interfaceInventory.ItemOrBuilderstatic classInventory.OsInfoOperating system information for the VM.static interfaceInventory.OsInfoOrBuilderstatic classInventory.SoftwarePackageSoftware package information of the operating system.static interfaceInventory.SoftwarePackageOrBuilderstatic classInventory.VersionedPackageInformation related to the a standard versioned package.static interfaceInventory.VersionedPackageOrBuilderstatic classInventory.WindowsApplicationContains information about a Windows application that is retrieved from the Windows Registry.static interfaceInventory.WindowsApplicationOrBuilderstatic classInventory.WindowsQuickFixEngineeringPackageInformation related to a Quick Fix Engineering package.static interfaceInventory.WindowsQuickFixEngineeringPackageOrBuilderstatic classInventory.WindowsUpdatePackageDetails related to a Windows Update package.static interfaceInventory.WindowsUpdatePackageOrBuilderstatic classInventory.ZypperPatchDetails related to a Zypper Patch.static interfaceInventory.ZypperPatchOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intITEMS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intOS_INFO_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsItems(String key)Inventory items related to the VM keyed by an opaque unique identifier for each inventory item.booleanequals(Object obj)static InventorygetDefaultInstance()InventorygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,Inventory.Item>getItems()Deprecated.intgetItemsCount()Inventory items related to the VM keyed by an opaque unique identifier for each inventory item.Map<String,Inventory.Item>getItemsMap()Inventory items related to the VM keyed by an opaque unique identifier for each inventory item.Inventory.ItemgetItemsOrDefault(String key, Inventory.Item defaultValue)Inventory items related to the VM keyed by an opaque unique identifier for each inventory item.Inventory.ItemgetItemsOrThrow(String key)Inventory items related to the VM keyed by an opaque unique identifier for each inventory item.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.Inventory.OsInfogetOsInfo()Base level operating system information for the VM.Inventory.OsInfoOrBuildergetOsInfoOrBuilder()Base level operating system information for the VM.com.google.protobuf.Parser<Inventory>getParserForType()intgetSerializedSize()com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.inthashCode()booleanhasOsInfo()Base level operating system information for the VM.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Inventory.BuildernewBuilder()static Inventory.BuildernewBuilder(Inventory prototype)Inventory.BuildernewBuilderForType()protected Inventory.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static InventoryparseDelimitedFrom(InputStream input)static InventoryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InventoryparseFrom(byte[] data)static InventoryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InventoryparseFrom(com.google.protobuf.ByteString data)static InventoryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InventoryparseFrom(com.google.protobuf.CodedInputStream input)static InventoryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InventoryparseFrom(InputStream input)static InventoryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InventoryparseFrom(ByteBuffer data)static InventoryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Inventory>parser()Inventory.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OS_INFO_FIELD_NUMBER
public static final int OS_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The `Inventory` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceInventoryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The `Inventory` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceInventoryOrBuilder- Returns:
- The bytes for name.
-
hasOsInfo
public boolean hasOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;- Specified by:
hasOsInfoin interfaceInventoryOrBuilder- Returns:
- Whether the osInfo field is set.
-
getOsInfo
public Inventory.OsInfo getOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;- Specified by:
getOsInfoin interfaceInventoryOrBuilder- Returns:
- The osInfo.
-
getOsInfoOrBuilder
public Inventory.OsInfoOrBuilder getOsInfoOrBuilder()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;- Specified by:
getOsInfoOrBuilderin interfaceInventoryOrBuilder
-
getItemsCount
public int getItemsCount()
Description copied from interface:InventoryOrBuilderInventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;- Specified by:
getItemsCountin interfaceInventoryOrBuilder
-
containsItems
public boolean containsItems(String key)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;- Specified by:
containsItemsin interfaceInventoryOrBuilder
-
getItems
@Deprecated public Map<String,Inventory.Item> getItems()
Deprecated.UsegetItemsMap()instead.- Specified by:
getItemsin interfaceInventoryOrBuilder
-
getItemsMap
public Map<String,Inventory.Item> getItemsMap()
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;- Specified by:
getItemsMapin interfaceInventoryOrBuilder
-
getItemsOrDefault
public Inventory.Item getItemsOrDefault(String key, Inventory.Item defaultValue)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;- Specified by:
getItemsOrDefaultin interfaceInventoryOrBuilder
-
getItemsOrThrow
public Inventory.Item getItemsOrThrow(String key)
Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;- Specified by:
getItemsOrThrowin interfaceInventoryOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceInventoryOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceInventoryOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceInventoryOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Inventory parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Inventory parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Inventory parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Inventory parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Inventory parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Inventory parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Inventory parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Inventory.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Inventory.Builder newBuilder()
-
newBuilder
public static Inventory.Builder newBuilder(Inventory prototype)
-
toBuilder
public Inventory.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Inventory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Inventory getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Inventory> parser()
-
getParserForType
public com.google.protobuf.Parser<Inventory> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Inventory getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-