public final class Inventory extends 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.
Protobuf type google.cloud.osconfig.v1alpha.Inventory
Static Fields
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OS_INFO_FIELD_NUMBER
public static final int OS_INFO_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Inventory getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Inventory.Builder newBuilder()
Returns
newBuilder(Inventory prototype)
public static Inventory.Builder newBuilder(Inventory prototype)
Parameter
Returns
public static Inventory parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Inventory parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Inventory parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Inventory parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Inventory parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Inventory parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Inventory parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Inventory parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Inventory parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Inventory parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Inventory parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Inventory parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Inventory> parser()
Returns
Methods
containsItems(String key)
public boolean containsItems(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Inventory getDefaultInstanceForType()
Returns
getItems()
public Map<String,Inventory.Item> getItems()
Returns
getItemsCount()
public int getItemsCount()
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getItemsMap()
public Map<String,Inventory.Item> getItemsMap()
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getItemsOrDefault(String key, Inventory.Item defaultValue)
public Inventory.Item getItemsOrDefault(String key, Inventory.Item defaultValue)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
getItemsOrThrow(String key)
public Inventory.Item getItemsOrThrow(String key)
Output only. 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.v1alpha.Inventory.Item> items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
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];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public 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];
Returns
getOsInfo()
public Inventory.OsInfo getOsInfo()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getOsInfoOrBuilder()
public Inventory.OsInfoOrBuilder getOsInfoOrBuilder()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getParserForType()
public Parser<Inventory> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public 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];
Returns
getUpdateTimeOrBuilder()
public 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];
Returns
hasOsInfo()
public boolean hasOsInfo()
Output only. Base level operating system information for the VM.
.google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the osInfo field is set.
|
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];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Inventory.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Inventory.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Inventory.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions