Class Inventory.Builder (2.18.0)

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.v1alpha.Inventory

Implements

InventoryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Inventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Inventory.Builder
Overrides

build()

public Inventory build()
Returns
TypeDescription
Inventory

buildPartial()

public Inventory buildPartial()
Returns
TypeDescription
Inventory

clear()

public Inventory.Builder clear()
Returns
TypeDescription
Inventory.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Inventory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Inventory.Builder
Overrides

clearItems()

public Inventory.Builder clearItems()
Returns
TypeDescription
Inventory.Builder

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

Returns
TypeDescription
Inventory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Inventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Inventory.Builder
Overrides

clearOsInfo()

public Inventory.Builder clearOsInfo()

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
TypeDescription
Inventory.Builder