Class BatchDeleteVersionsMetadata.Builder (1.16.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
TypeDescription
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
NameDescription
valuesIterable<String>

The failedVersions to add.

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

The failedVersions to add.

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

The bytes of the failedVersions to add.

Returns
TypeDescription
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteVersionsMetadata build()
Returns
TypeDescription
BatchDeleteVersionsMetadata

buildPartial()

public BatchDeleteVersionsMetadata buildPartial()
Returns
TypeDescription
BatchDeleteVersionsMetadata

clear()

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

clearFailedVersions()

public BatchDeleteVersionsMetadata.Builder clearFailedVersions()

The versions the operation failed to delete.

repeated string failed_versions = 2;

Returns
TypeDescription
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BatchDeleteVersionsMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchDeleteVersionsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailedVersions(int index)

public String getFailedVersions(int index)

The versions the operation failed to delete.

repeated string failed_versions = 2;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of failedVersions.

getFailedVersionsList()

public ProtocolStringList getFailedVersionsList()

The versions the operation failed to delete.

repeated string failed_versions = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the failedVersions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchDeleteVersionsMetadata other)

public BatchDeleteVersionsMetadata.Builder mergeFrom(BatchDeleteVersionsMetadata other)
Parameter
NameDescription
otherBatchDeleteVersionsMetadata
Returns
TypeDescription
BatchDeleteVersionsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The failedVersions to set.

Returns
TypeDescription
BatchDeleteVersionsMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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