public static final class Inventory.Builder extends GeneratedMessageV3.Builder<Inventory.Builder> 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.v1.Inventory
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Inventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Inventory buildPartial()
clear()
public Inventory.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Inventory.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearItems()
public Inventory.Builder clearItems()
clearName()
public Inventory.Builder clearName()
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public Inventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearOsInfo()
public Inventory.Builder clearOsInfo()
Base level operating system information for the VM.
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
clearUpdateTime()
public Inventory.Builder clearUpdateTime()
Output only. Timestamp of the last reported inventory for the VM.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public Inventory.Builder clone()
Overrides
containsItems(String key)
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;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public Inventory getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getItems()
public Map<String,Inventory.Item> getItems()
getItemsCount()
public 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;