Class ImportAptArtifactsErrorInfo.Builder (1.22.0)

public static final class ImportAptArtifactsErrorInfo.Builder extends GeneratedMessageV3.Builder<ImportAptArtifactsErrorInfo.Builder> implements ImportAptArtifactsErrorInfoOrBuilder

Error information explaining why a package was not imported.

Protobuf type google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAptArtifactsErrorInfo build()
Returns
TypeDescription
ImportAptArtifactsErrorInfo

buildPartial()

public ImportAptArtifactsErrorInfo buildPartial()
Returns
TypeDescription
ImportAptArtifactsErrorInfo

clear()

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

clearError()

public ImportAptArtifactsErrorInfo.Builder clearError()

The detailed error status.

.google.rpc.Status error = 2;

Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportAptArtifactsErrorInfo.Builder clearGcsSource()

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public ImportAptArtifactsErrorInfo.Builder clearSource()
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

clone()

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

getDefaultInstanceForType()

public ImportAptArtifactsErrorInfo getDefaultInstanceForType()
Returns
TypeDescription
ImportAptArtifactsErrorInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

The detailed error status.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

The detailed error status.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

The detailed error status.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getGcsSource()

public ImportAptArtifactsGcsSource getGcsSource()

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Returns
TypeDescription
ImportAptArtifactsGcsSource

The gcsSource.

getGcsSourceBuilder()

public ImportAptArtifactsGcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Returns
TypeDescription
ImportAptArtifactsGcsSource.Builder

getGcsSourceOrBuilder()

public ImportAptArtifactsGcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Returns
TypeDescription
ImportAptArtifactsGcsSourceOrBuilder

getSourceCase()

public ImportAptArtifactsErrorInfo.SourceCase getSourceCase()
Returns
TypeDescription
ImportAptArtifactsErrorInfo.SourceCase

hasError()

public boolean hasError()

The detailed error status.

.google.rpc.Status error = 2;

Returns
TypeDescription
boolean

Whether the error field is set.

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public ImportAptArtifactsErrorInfo.Builder mergeError(Status value)

The detailed error status.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

mergeFrom(ImportAptArtifactsErrorInfo other)

public ImportAptArtifactsErrorInfo.Builder mergeFrom(ImportAptArtifactsErrorInfo other)
Parameter
NameDescription
otherImportAptArtifactsErrorInfo
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsErrorInfo.Builder mergeGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Parameter
NameDescription
valueImportAptArtifactsGcsSource
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(Status value)

public ImportAptArtifactsErrorInfo.Builder setError(Status value)

The detailed error status.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

setError(Status.Builder builderForValue)

public ImportAptArtifactsErrorInfo.Builder setError(Status.Builder builderForValue)

The detailed error status.

.google.rpc.Status error = 2;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsErrorInfo.Builder setGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Parameter
NameDescription
valueImportAptArtifactsGcsSource
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

setGcsSource(ImportAptArtifactsGcsSource.Builder builderForValue)

public ImportAptArtifactsErrorInfo.Builder setGcsSource(ImportAptArtifactsGcsSource.Builder builderForValue)

Google Cloud Storage location requested.

.google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1;

Parameter
NameDescription
builderForValueImportAptArtifactsGcsSource.Builder
Returns
TypeDescription
ImportAptArtifactsErrorInfo.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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