Class Inventory.VersionedPackage.Builder (2.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearArchitecture()

public Inventory.VersionedPackage.Builder clearArchitecture()

The system architecture this package is intended for.

string architecture = 2;

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageName()

public Inventory.VersionedPackage.Builder clearPackageName()

The name of the package.

string package_name = 4;

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

clearVersion()

public Inventory.VersionedPackage.Builder clearVersion()

The version of the package.

string version = 3;

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

clone()

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

getArchitecture()

public String getArchitecture()

The system architecture this package is intended for.

string architecture = 2;

Returns
Type Description
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

The system architecture this package is intended for.

string architecture = 2;

Returns
Type Description
ByteString

The bytes for architecture.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getPackageName()

public String getPackageName()

The name of the package.

string package_name = 4;

Returns
Type Description
String

The packageName.

getPackageNameBytes()

public ByteString getPackageNameBytes()

The name of the package.

string package_name = 4;

Returns
Type Description
ByteString

The bytes for packageName.

getVersion()

public String getVersion()

The version of the package.

string version = 3;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the package.

string version = 3;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Inventory.VersionedPackage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArchitecture(String value)

public Inventory.VersionedPackage.Builder setArchitecture(String value)

The system architecture this package is intended for.

string architecture = 2;

Parameter
Name Description
value String

The architecture to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public Inventory.VersionedPackage.Builder setArchitectureBytes(ByteString value)

The system architecture this package is intended for.

string architecture = 2;

Parameter
Name Description
value ByteString

The bytes for architecture to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPackageName(String value)

public Inventory.VersionedPackage.Builder setPackageName(String value)

The name of the package.

string package_name = 4;

Parameter
Name Description
value String

The packageName to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

setPackageNameBytes(ByteString value)

public Inventory.VersionedPackage.Builder setPackageNameBytes(ByteString value)

The name of the package.

string package_name = 4;

Parameter
Name Description
value ByteString

The bytes for packageName to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public Inventory.VersionedPackage.Builder setVersion(String value)

The version of the package.

string version = 3;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Inventory.VersionedPackage.Builder setVersionBytes(ByteString value)

The version of the package.

string version = 3;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Inventory.VersionedPackage.Builder

This builder for chaining.