Class YumArtifact.Builder (1.16.0)

public static final class YumArtifact.Builder extends GeneratedMessageV3.Builder<YumArtifact.Builder> implements YumArtifactOrBuilder

A detailed representation of a Yum artifact.

Protobuf type google.devtools.artifactregistry.v1beta2.YumArtifact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public YumArtifact build()
Returns
TypeDescription
YumArtifact

buildPartial()

public YumArtifact buildPartial()
Returns
TypeDescription
YumArtifact

clear()

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

clearArchitecture()

public YumArtifact.Builder clearArchitecture()

Output only. Operating system architecture of the artifact.

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

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public YumArtifact.Builder clearName()

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

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

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackageName()

public YumArtifact.Builder clearPackageName()

Output only. The yum package name of the artifact.

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

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

clearPackageType()

public YumArtifact.Builder clearPackageType()

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

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

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

clone()

public YumArtifact.Builder clone()
Returns
TypeDescription
YumArtifact.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.

getDefaultInstanceForType()

public YumArtifact getDefaultInstanceForType()
Returns
TypeDescription
YumArtifact

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 yum 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 yum package name of the artifact.

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

Returns
TypeDescription
ByteString

The bytes for packageName.

getPackageType()

public YumArtifact.PackageType getPackageType()

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

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

Returns
TypeDescription
YumArtifact.PackageType

The packageType.

getPackageTypeValue()

public int getPackageTypeValue()

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

.google.devtools.artifactregistry.v1beta2.YumArtifact.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(YumArtifact other)

public YumArtifact.Builder mergeFrom(YumArtifact other)
Parameter
NameDescription
otherYumArtifact
Returns
TypeDescription
YumArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArchitecture(String value)

public YumArtifact.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
YumArtifact.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public YumArtifact.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
YumArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public YumArtifact.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
YumArtifact.Builder

This builder for chaining.

setNameBytes(ByteString value)

public YumArtifact.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
YumArtifact.Builder

This builder for chaining.

setPackageName(String value)

public YumArtifact.Builder setPackageName(String value)

Output only. The yum package name of the artifact.

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

Parameter
NameDescription
valueString

The packageName to set.

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

setPackageNameBytes(ByteString value)

public YumArtifact.Builder setPackageNameBytes(ByteString value)

Output only. The yum 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
YumArtifact.Builder

This builder for chaining.

setPackageType(YumArtifact.PackageType value)

public YumArtifact.Builder setPackageType(YumArtifact.PackageType value)

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

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

Parameter
NameDescription
valueYumArtifact.PackageType

The packageType to set.

Returns
TypeDescription
YumArtifact.Builder

This builder for chaining.

setPackageTypeValue(int value)

public YumArtifact.Builder setPackageTypeValue(int value)

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

.google.devtools.artifactregistry.v1beta2.YumArtifact.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
YumArtifact.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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