Class Inventory.Item.Builder (2.46.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.v1.Inventory.Item

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Inventory.Item.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Inventory.Item.Builder
Overrides

build()

public Inventory.Item build()
Returns
Type Description
Inventory.Item

buildPartial()

public Inventory.Item buildPartial()
Returns
Type Description
Inventory.Item

clear()

public Inventory.Item.Builder clear()
Returns
Type Description
Inventory.Item.Builder
Overrides

clearAvailablePackage()

public Inventory.Item.Builder clearAvailablePackage()

Software package available to be installed on the VM instance.

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

Returns
Type Description
Inventory.Item.Builder

clearCreateTime()

public Inventory.Item.Builder clearCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Inventory.Item.Builder

clearDetails()

public Inventory.Item.Builder clearDetails()
Returns
Type Description
Inventory.Item.Builder

clearField(Descriptors.FieldDescriptor field)

public Inventory.Item.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Inventory.Item.Builder
Overrides

clearId()

public Inventory.Item.Builder clearId()

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

string id = 1;

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

clearInstalledPackage()

public Inventory.Item.Builder clearInstalledPackage()

Software package present on the VM instance.

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

Returns
Type Description
Inventory.Item.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Inventory.Item.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Inventory.Item.Builder
Overrides

clearOriginType()

public Inventory.Item.Builder clearOriginType()

The origin of this inventory item.

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

Returns
Type Description
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.v1.Inventory.Item.Type type = 5;

Returns
Type Description
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
Type Description
Inventory.Item.Builder

clone()

public Inventory.Item.Builder clone()
Returns
Type Description
Inventory.Item.Builder
Overrides

getAvailablePackage()

public Inventory.SoftwarePackage getAvailablePackage()

Software package available to be installed on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackage

The availablePackage.

getAvailablePackageBuilder()

public Inventory.SoftwarePackage.Builder getAvailablePackageBuilder()

Software package available to be installed on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackage.Builder

getAvailablePackageOrBuilder()

public Inventory.SoftwarePackageOrBuilder getAvailablePackageOrBuilder()

Software package available to be installed on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackageOrBuilder

getCreateTime()

public Timestamp getCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Inventory.Item getDefaultInstanceForType()
Returns
Type Description
Inventory.Item

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetailsCase()

public Inventory.Item.DetailsCase getDetailsCase()
Returns
Type Description
Inventory.Item.DetailsCase

getId()

public String getId()

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

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getInstalledPackage()

public Inventory.SoftwarePackage getInstalledPackage()

Software package present on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackage

The installedPackage.

getInstalledPackageBuilder()

public Inventory.SoftwarePackage.Builder getInstalledPackageBuilder()

Software package present on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackage.Builder

getInstalledPackageOrBuilder()

public Inventory.SoftwarePackageOrBuilder getInstalledPackageOrBuilder()

Software package present on the VM instance.

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

Returns
Type Description
Inventory.SoftwarePackageOrBuilder

getOriginType()

public Inventory.Item.OriginType getOriginType()

The origin of this inventory item.

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

Returns
Type Description
Inventory.Item.OriginType

The originType.

getOriginTypeValue()

public int getOriginTypeValue()

The origin of this inventory item.

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

Returns
Type Description
int

The enum numeric value on the wire for originType.

getType()

public Inventory.Item.Type getType()

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

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

Returns
Type Description
Inventory.Item.Type

The type.

getTypeValue()

public int getTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
TimestampOrBuilder

hasAvailablePackage()

public boolean hasAvailablePackage()

Software package available to be installed on the VM instance.

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

Returns
Type Description
boolean

Whether the availablePackage field is set.

hasCreateTime()

public boolean hasCreateTime()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
boolean

Whether the createTime field is set.

hasInstalledPackage()

public boolean hasInstalledPackage()

Software package present on the VM instance.

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

Returns
Type Description
boolean

Whether the installedPackage field is set.

hasUpdateTime()

public boolean hasUpdateTime()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAvailablePackage(Inventory.SoftwarePackage value)

public Inventory.Item.Builder mergeAvailablePackage(Inventory.SoftwarePackage value)

Software package available to be installed on the VM instance.

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

Parameter
Name Description
value Inventory.SoftwarePackage
Returns
Type Description
Inventory.Item.Builder

mergeCreateTime(Timestamp value)

public Inventory.Item.Builder mergeCreateTime(Timestamp value)

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Inventory.Item.Builder

mergeFrom(Inventory.Item other)

public Inventory.Item.Builder mergeFrom(Inventory.Item other)
Parameter
Name Description
other Inventory.Item
Returns
Type Description
Inventory.Item.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Inventory.Item.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Inventory.Item.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Inventory.Item.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Inventory.Item.Builder
Overrides

mergeInstalledPackage(Inventory.SoftwarePackage value)

public Inventory.Item.Builder mergeInstalledPackage(Inventory.SoftwarePackage value)

Software package present on the VM instance.

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

Parameter
Name Description
value Inventory.SoftwarePackage
Returns
Type Description
Inventory.Item.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.Item.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Inventory.Item.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Inventory.Item.Builder mergeUpdateTime(Timestamp value)

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Inventory.Item.Builder

setAvailablePackage(Inventory.SoftwarePackage value)

public Inventory.Item.Builder setAvailablePackage(Inventory.SoftwarePackage value)

Software package available to be installed on the VM instance.

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

Parameter
Name Description
value Inventory.SoftwarePackage
Returns
Type Description
Inventory.Item.Builder

setAvailablePackage(Inventory.SoftwarePackage.Builder builderForValue)

public Inventory.Item.Builder setAvailablePackage(Inventory.SoftwarePackage.Builder builderForValue)

Software package available to be installed on the VM instance.

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

Parameter
Name Description
builderForValue Inventory.SoftwarePackage.Builder
Returns
Type Description
Inventory.Item.Builder

setCreateTime(Timestamp value)

public Inventory.Item.Builder setCreateTime(Timestamp value)

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Inventory.Item.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Inventory.Item.Builder setCreateTime(Timestamp.Builder builderForValue)

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Inventory.Item.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Inventory.Item.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Inventory.Item.Builder
Overrides

setId(String value)

public Inventory.Item.Builder setId(String value)

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

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Inventory.Item.Builder setIdBytes(ByteString value)

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

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setInstalledPackage(Inventory.SoftwarePackage value)

public Inventory.Item.Builder setInstalledPackage(Inventory.SoftwarePackage value)

Software package present on the VM instance.

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

Parameter
Name Description
value Inventory.SoftwarePackage
Returns
Type Description
Inventory.Item.Builder

setInstalledPackage(Inventory.SoftwarePackage.Builder builderForValue)

public Inventory.Item.Builder setInstalledPackage(Inventory.SoftwarePackage.Builder builderForValue)

Software package present on the VM instance.

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

Parameter
Name Description
builderForValue Inventory.SoftwarePackage.Builder
Returns
Type Description
Inventory.Item.Builder

setOriginType(Inventory.Item.OriginType value)

public Inventory.Item.Builder setOriginType(Inventory.Item.OriginType value)

The origin of this inventory item.

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

Parameter
Name Description
value Inventory.Item.OriginType

The originType to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setOriginTypeValue(int value)

public Inventory.Item.Builder setOriginTypeValue(int value)

The origin of this inventory item.

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

Parameter
Name Description
value int

The enum numeric value on the wire for originType to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Inventory.Item.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Inventory.Item.Builder
Overrides

setType(Inventory.Item.Type value)

public Inventory.Item.Builder setType(Inventory.Item.Type value)

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

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

Parameter
Name Description
value Inventory.Item.Type

The type to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setTypeValue(int value)

public Inventory.Item.Builder setTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Inventory.Item.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.Item.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Inventory.Item.Builder
Overrides

setUpdateTime(Timestamp value)

public Inventory.Item.Builder setUpdateTime(Timestamp value)

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Inventory.Item.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Inventory.Item.Builder setUpdateTime(Timestamp.Builder builderForValue)

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Inventory.Item.Builder