Class Inventory.VersionedPackage.Builder (2.21.0)

public static final class Inventory.VersionedPackage.Builder extends GeneratedMessageV3.Builder<Inventory.VersionedPackage.Builder> implements Inventory.VersionedPackageOrBuilder

Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.

Protobuf type google.cloud.osconfig.v1.Inventory.VersionedPackage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearArchitecture()

public Inventory.VersionedPackage.Builder clearArchitecture()

The system architecture this package is intended for.

string architecture = 2;

Returns
TypeDescription
Inventory.VersionedPackage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageName()

public Inventory.VersionedPackage.Builder clearPackageName()

The name of the package.

string package_name = 4;

Returns
TypeDescription
Inventory.VersionedPackage.Builder

This builder for chaining.

clearVersion()

public Inventory.VersionedPackage.Builder clearVersion()

The version of the package.

string version = 3;

Returns
TypeDescription
Inventory.VersionedPackage.Builder

This builder for chaining.

clone()

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

getArchitecture()

public String getArchitecture()

The system architecture this package is intended for.

string architecture = 2;

Returns
TypeDescription
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

The system architecture this package is intended for.

string architecture = 2;

Returns
TypeDescription
ByteString

The bytes for architecture.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPackageName()

public String getPackageName()

The name of the package.

string package_name = 4;

Returns
TypeDescription
String

The packageName.

getPackageNameBytes()

public ByteString getPackageNameBytes()

The name of the package.

string package_name = 4;

Returns
TypeDescription
ByteString

The bytes for packageName.

getVersion()

public String getVersion()

The version of the package.

string version = 3;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the package.

string version = 3;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides