Class Inventory.VersionedPackage.Builder (2.8.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

mergeFrom(Inventory.VersionedPackage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Inventory.VersionedPackage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Inventory.VersionedPackage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.VersionedPackage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The architecture to set.

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

The bytes for architecture to set.

Returns
TypeDescription
Inventory.VersionedPackage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPackageName(String value)

public Inventory.VersionedPackage.Builder setPackageName(String value)

The name of the package.

string package_name = 4;

Parameter
NameDescription
valueString

The packageName to set.

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

The bytes for packageName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Inventory.VersionedPackage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Inventory.VersionedPackage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Inventory.VersionedPackage.Builder
Overrides

setVersion(String value)

public Inventory.VersionedPackage.Builder setVersion(String value)

The version of the package.

string version = 3;

Parameter
NameDescription
valueString

The version to set.

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

The bytes for version to set.

Returns
TypeDescription
Inventory.VersionedPackage.Builder

This builder for chaining.