Class Inventory.Item.Builder (2.4.3)

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
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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

When this inventory item was first detected.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetailsCase()

public Inventory.Item.DetailsCase getDetailsCase()
Returns
TypeDescription
Inventory.Item.DetailsCase

getId()

public String getId()

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

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

When this inventory item was last modified.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueInventory.SoftwarePackage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Inventory.Item.Builder

mergeFrom(Inventory.Item other)

public Inventory.Item.Builder mergeFrom(Inventory.Item other)
Parameter
NameDescription
otherInventory.Item
Returns
TypeDescription
Inventory.Item.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Inventory.Item.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Inventory.Item.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Inventory.Item.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInventory.SoftwarePackage
Returns
TypeDescription
Inventory.Item.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.Item.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueInventory.SoftwarePackage
Returns
TypeDescription
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
NameDescription
builderForValueInventory.SoftwarePackage.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Inventory.Item.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Inventory.Item.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
valueInventory.SoftwarePackage
Returns
TypeDescription
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
NameDescription
builderForValueInventory.SoftwarePackage.Builder
Returns
TypeDescription
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
NameDescription
valueInventory.Item.OriginType

The originType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueInventory.Item.Type

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Inventory.Item.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.Item.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Inventory.Item.Builder