Class AptArtifact.Builder (1.26.0)

public static final class AptArtifact.Builder extends GeneratedMessageV3.Builder<AptArtifact.Builder> implements AptArtifactOrBuilder

A detailed representation of an Apt artifact. Information in the record is derived from the archive's control file. See https://www.debian.org/doc/debian-policy/ch-controlfields.html

Protobuf type google.devtools.artifactregistry.v1beta2.AptArtifact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AptArtifact build()
Returns
TypeDescription
AptArtifact

buildPartial()

public AptArtifact buildPartial()
Returns
TypeDescription
AptArtifact

clear()

public AptArtifact.Builder clear()
Returns
TypeDescription
AptArtifact.Builder
Overrides

clearArchitecture()

public AptArtifact.Builder clearArchitecture()

Output only. Operating system architecture of the artifact.

string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clearComponent()

public AptArtifact.Builder clearComponent()

Output only. Repository component of the artifact.

string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clearControlFile()

public AptArtifact.Builder clearControlFile()

Output only. Contents of the artifact's control metadata file.

bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AptArtifact.Builder clearName()

Output only. The Artifact Registry resource name of the artifact.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageName()

public AptArtifact.Builder clearPackageName()

Output only. The Apt package name of the artifact.

string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clearPackageType()

public AptArtifact.Builder clearPackageType()

Output only. An artifact is a binary or source package.

.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

clone()

public AptArtifact.Builder clone()
Returns
TypeDescription
AptArtifact.Builder
Overrides

getArchitecture()

public String getArchitecture()

Output only. Operating system architecture of the artifact.

string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

Output only. Operating system architecture of the artifact.

string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for architecture.

getComponent()

public String getComponent()

Output only. Repository component of the artifact.

string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The component.

getComponentBytes()

public ByteString getComponentBytes()

Output only. Repository component of the artifact.

string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for component.

getControlFile()

public ByteString getControlFile()

Output only. Contents of the artifact's control metadata file.

bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The controlFile.

getDefaultInstanceForType()

public AptArtifact getDefaultInstanceForType()
Returns
TypeDescription
AptArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The Artifact Registry resource name of the artifact.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The Artifact Registry resource name of the artifact.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPackageName()

public String getPackageName()

Output only. The Apt package name of the artifact.

string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The packageName.

getPackageNameBytes()

public ByteString getPackageNameBytes()

Output only. The Apt package name of the artifact.

string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for packageName.

getPackageType()

public AptArtifact.PackageType getPackageType()

Output only. An artifact is a binary or source package.

.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AptArtifact.PackageType

The packageType.

getPackageTypeValue()

public int getPackageTypeValue()

Output only. An artifact is a binary or source package.

.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for packageType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AptArtifact other)

public AptArtifact.Builder mergeFrom(AptArtifact other)
Parameter
NameDescription
otherAptArtifact
Returns
TypeDescription
AptArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AptArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AptArtifact.Builder
Overrides

setArchitecture(String value)

public AptArtifact.Builder setArchitecture(String value)

Output only. Operating system architecture of the artifact.

string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The architecture to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public AptArtifact.Builder setArchitectureBytes(ByteString value)

Output only. Operating system architecture of the artifact.

string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for architecture to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setComponent(String value)

public AptArtifact.Builder setComponent(String value)

Output only. Repository component of the artifact.

string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The component to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setComponentBytes(ByteString value)

public AptArtifact.Builder setComponentBytes(ByteString value)

Output only. Repository component of the artifact.

string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for component to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setControlFile(ByteString value)

public AptArtifact.Builder setControlFile(ByteString value)

Output only. Contents of the artifact's control metadata file.

bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The controlFile to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AptArtifact.Builder setName(String value)

Output only. The Artifact Registry resource name of the artifact.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AptArtifact.Builder setNameBytes(ByteString value)

Output only. The Artifact Registry resource name of the artifact.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setPackageName(String value)

public AptArtifact.Builder setPackageName(String value)

Output only. The Apt package name of the artifact.

string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The packageName to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setPackageNameBytes(ByteString value)

public AptArtifact.Builder setPackageNameBytes(ByteString value)

Output only. The Apt package name of the artifact.

string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for packageName to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setPackageType(AptArtifact.PackageType value)

public AptArtifact.Builder setPackageType(AptArtifact.PackageType value)

Output only. An artifact is a binary or source package.

.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAptArtifact.PackageType

The packageType to set.

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

setPackageTypeValue(int value)

public AptArtifact.Builder setPackageTypeValue(int value)

Output only. An artifact is a binary or source package.

.google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
AptArtifact.Builder

This builder for chaining.

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

public AptArtifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AptArtifact.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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