Class Inventory.Item.Builder (2.18.0)

public static final class Inventory.Item.Builder extends GeneratedMessageV3.Builder<Inventory.Item.Builder> implements Inventory.ItemOrBuilder

A single piece of inventory on a VM.

Protobuf type google.cloud.osconfig.v1alpha.Inventory.Item

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Inventory.Item build()
Returns
TypeDescription
Inventory.Item

buildPartial()

public Inventory.Item buildPartial()
Returns
TypeDescription
Inventory.Item

clear()

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

clearAvailablePackage()

public Inventory.Item.Builder clearAvailablePackage()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
TypeDescription
Inventory.Item.Builder

clearCreateTime()

public Inventory.Item.Builder clearCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
Inventory.Item.Builder

clearDetails()

public Inventory.Item.Builder clearDetails()
Returns
TypeDescription
Inventory.Item.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Inventory.Item.Builder clearId()

Identifier for this item, unique across items for this VM.

string id = 1;

Returns
TypeDescription
Inventory.Item.Builder

This builder for chaining.

clearInstalledPackage()

public Inventory.Item.Builder clearInstalledPackage()

Software package present on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage installed_package = 6;

Returns
TypeDescription
Inventory.Item.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOriginType()

public Inventory.Item.Builder clearOriginType()

The origin of this inventory item.

.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType origin_type = 2;

Returns
TypeDescription
Inventory.Item.Builder

This builder for chaining.

clearType()

public Inventory.Item.Builder clearType()

The specific type of inventory, correlating to its specific details.

.google.cloud.osconfig.v1alpha.Inventory.Item.Type type = 5;

Returns
TypeDescription
Inventory.Item.Builder

This builder for chaining.

clearUpdateTime()

public Inventory.Item.Builder clearUpdateTime()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
Inventory.Item.Builder

clone()

public Inventory.Item.Builder clone()
Returns
TypeDescription
Inventory.Item.Builder
Overrides

getAvailablePackage()

public Inventory.SoftwarePackage getAvailablePackage()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
TypeDescription
Inventory.SoftwarePackage

The availablePackage.

getAvailablePackageBuilder()

public Inventory.SoftwarePackage.Builder getAvailablePackageBuilder()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
TypeDescription
Inventory.SoftwarePackage.Builder

getAvailablePackageOrBuilder()

public Inventory.SoftwarePackageOrBuilder getAvailablePackageOrBuilder()

Software package available to be installed on the VM instance.

.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7;

Returns
TypeDescription
Inventory.SoftwarePackageOrBuilder

getCreateTime()

public Timestamp getCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
Builder

getCreateTi