public static final class DeleteVersionRequest.Builder extends GeneratedMessageV3.Builder<DeleteVersionRequest.Builder> implements DeleteVersionRequestOrBuilder
The request to delete a version.
Protobuf type google.devtools.artifactregistry.v1.DeleteVersionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public DeleteVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DeleteVersionRequest build()
Returns
public DeleteVersionRequest buildPartial()
Returns
public DeleteVersionRequest.Builder clear()
Returns
Overrides
public DeleteVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public DeleteVersionRequest.Builder clearForce()
By default, a version that is tagged may not be deleted. If force=true, the
version and any tags pointing to the version are deleted.
bool force = 2;
Returns
public DeleteVersionRequest.Builder clearName()
The name of the version to delete.
string name = 1;
Returns
public DeleteVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public DeleteVersionRequest.Builder clone()
Returns
Overrides
public DeleteVersionRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public boolean getForce()
By default, a version that is tagged may not be deleted. If force=true, the
version and any tags pointing to the version are deleted.
bool force = 2;
Returns
The name of the version to delete.
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the version to delete.
string name = 1;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DeleteVersionRequest.Builder mergeFrom(DeleteVersionRequest other)
Parameter
Returns
public DeleteVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public DeleteVersionRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final DeleteVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public DeleteVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DeleteVersionRequest.Builder setForce(boolean value)
By default, a version that is tagged may not be deleted. If force=true, the
version and any tags pointing to the version are deleted.
bool force = 2;
Parameter
Name | Description |
value | boolean
The force to set.
|
Returns
public DeleteVersionRequest.Builder setName(String value)
The name of the version to delete.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public DeleteVersionRequest.Builder setNameBytes(ByteString value)
The name of the version to delete.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public DeleteVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final DeleteVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides