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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public Tag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
Returns |
---|
Type | Description |
Tag | |
public Tag buildPartial()
Returns |
---|
Type | Description |
Tag | |
public Tag.Builder clear()
Overrides
public Tag.Builder clearField(Descriptors.FieldDescriptor field)
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|
public Tag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|
public Tag.Builder clone()
Overrides
public Tag getDefaultInstanceForType()
Returns |
---|
Type | Description |
Tag | |
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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 |
---|
Type | Description |
ByteString | The bytes for version.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tag.Builder mergeFrom(Tag other)
Parameter |
---|
Name | Description |
other | Tag
|
public Tag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Tag.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Tag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Tag.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|
public Tag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Tag.Builder setUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|
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 |
---|
Type | Description |
Tag.Builder | This builder for chaining.
|