public static final class Tag.Builder extends GeneratedMessageV3.Builder<Tag.Builder> implements TagOrBuilder
Tags point to a version and represent an alternative name that can be used
to access the version.
Protobuf type google.devtools.artifactregistry.v1beta2.Tag
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 Tag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Tag buildPartial()
Returns
public Tag.Builder clear()
Returns
Overrides
public Tag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Tag.Builder clearName()
The name of the tag, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
If the package part contains slashes, the slashes are escaped.
The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
must be URL encoded.
string name = 1;
Returns
public Tag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Tag.Builder clearVersion()
The name of the version the tag refers to, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
If the package or version ID parts contain slashes, the slashes are
escaped.
string version = 2;
Returns
public Tag.Builder clone()
Returns
Overrides
public Tag getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
The name of the tag, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
If the package part contains slashes, the slashes are escaped.
The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
must be URL encoded.
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the tag, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
If the package part contains slashes, the slashes are escaped.
The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
must be URL encoded.
string name = 1;
Returns
public String getVersion()
The name of the version the tag refers to, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
If the package or version ID parts contain slashes, the slashes are
escaped.
string version = 2;
Returns
Type | Description |
String | The version.
|
public ByteString getVersionBytes()
The name of the version the tag refers to, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
If the package or version ID parts contain slashes, the slashes are
escaped.
string version = 2;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Tag.Builder mergeFrom(Tag other)
Parameter
Returns
public Tag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Tag.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Tag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Tag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Tag.Builder setName(String value)
The name of the tag, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
If the package part contains slashes, the slashes are escaped.
The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
must be URL encoded.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public Tag.Builder setNameBytes(ByteString value)
The name of the tag, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
If the package part contains slashes, the slashes are escaped.
The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
must be URL encoded.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public Tag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Tag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Tag.Builder setVersion(String value)
The name of the version the tag refers to, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
If the package or version ID parts contain slashes, the slashes are
escaped.
string version = 2;
Parameter
Name | Description |
value | String
The version to set.
|
Returns
public Tag.Builder setVersionBytes(ByteString value)
The name of the version the tag refers to, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
If the package or version ID parts contain slashes, the slashes are
escaped.
string version = 2;
Parameter
Name | Description |
value | ByteString
The bytes for version to set.
|
Returns