Interface InventoryOrBuilder (2.24.0)

public interface InventoryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsItems(String key)

public abstract 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getItems()

public abstract Map<String,Inventory.Item> getItems()

Use #getItemsMap() instead.

Returns
TypeDescription
Map<String,Item>

getItemsCount()

public abstract int getItemsCount()

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;

Returns
TypeDescription
int

getItemsMap()

public abstract 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;

Returns
TypeDescription
Map<String,Item>

getItemsOrDefault(String key, Inventory.Item defaultValue)

public abstract 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;

Parameters
NameDescription
keyString
defaultValueInventory.Item
Returns
TypeDescription
Inventory.Item

getItemsOrThrow(String key)

public abstract 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
Inventory.Item

getName()

public abstract 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];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract 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
TypeDescription
ByteString

The bytes for name.

getOsInfo()

public abstract Inventory.OsInfo getOsInfo()

Base level operating system information for the VM.

.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;

Returns
TypeDescription
Inventory.OsInfo

The osInfo.

getOsInfoOrBuilder()

public abstract Inventory.OsInfoOrBuilder getOsInfoOrBuilder()

Base level operating system information for the VM.

.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;

Returns
TypeDescription
Inventory.OsInfoOrBuilder

getUpdateTime()

public abstract 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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract 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
TypeDescription
TimestampOrBuilder

hasOsInfo()

public abstract boolean hasOsInfo()

Base level operating system information for the VM.

.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;

Returns
TypeDescription
boolean

Whether the osInfo field is set.

hasUpdateTime()

public abstract 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
TypeDescription
boolean

Whether the updateTime field is set.