Class BatchDeleteVersionsMetadata.Builder (1.54.0)

public static final class BatchDeleteVersionsMetadata.Builder extends GeneratedMessageV3.Builder<BatchDeleteVersionsMetadata.Builder> implements BatchDeleteVersionsMetadataOrBuilder

The metadata of an LRO from deleting multiple versions.

Protobuf type google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFailedVersions(Iterable<String> values)

public BatchDeleteVersionsMetadata.Builder addAllFailedVersions(Iterable<String> values)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
Name Description
values Iterable<String>

The failedVersions to add.

Returns
Type Description
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

addFailedVersions(String value)

public BatchDeleteVersionsMetadata.Builder addFailedVersions(String value)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
Name Description
value String

The failedVersions to add.

Returns
Type Description
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

addFailedVersionsBytes(ByteString value)

public BatchDeleteVersionsMetadata.Builder addFailedVersionsBytes(ByteString value)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
Name Description
value ByteString

The bytes of the failedVersions to add.

Returns
Type Description
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteVersionsMetadata build()
Returns
Type Description
BatchDeleteVersionsMetadata

buildPartial()

public BatchDeleteVersionsMetadata buildPartial()
Returns
Type Description
BatchDeleteVersionsMetadata

clear()

public BatchDeleteVersionsMetadata.Builder clear()
Returns
Type Description
BatchDeleteVersionsMetadata.Builder
Overrides

clearFailedVersions()

public BatchDeleteVersionsMetadata.Builder clearFailedVersions()

The versions the operation failed to delete.

repeated string failed_versions = 2;

Returns
Type Description
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BatchDeleteVersionsMetadata.Builder clone()
Returns
Type Description
BatchDeleteVersionsMetadata.Builder
Overrides

getDefaultInstanceForType()

public BatchDeleteVersionsMetadata getDefaultInstanceForType()
Returns
Type Description
BatchDeleteVersionsMetadata

getDescriptorForType()

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

getFailedVersions(int index)

public String getFailedVersions(int index)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The failedVersions at the given index.

getFailedVersionsBytes(int index)

public ByteString getFailedVersionsBytes(int index)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the failedVersions at the given index.

getFailedVersionsCount()

public int getFailedVersionsCount()

The versions the operation failed to delete.

repeated string failed_versions = 2;

Returns
Type Description
int

The count of failedVersions.

getFailedVersionsList()

public ProtocolStringList getFailedVersionsList()

The versions the operation failed to delete.

repeated string failed_versions = 2;

Returns
Type Description
ProtocolStringList

A list containing the failedVersions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDeleteVersionsMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFailedVersions(int index, String value)

public BatchDeleteVersionsMetadata.Builder setFailedVersions(int index, String value)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The failedVersions to set.

Returns
Type Description
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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