public static final class ExportArtifactMetadata.ExportedFile.Builder extends GeneratedMessageV3.Builder<ExportArtifactMetadata.ExportedFile.Builder> implements ExportArtifactMetadata.ExportedFileOrBuilder
The exported artifact file.
Protobuf type google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile
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 ExportArtifactMetadata.ExportedFile.Builder addAllHashes(Iterable<? extends Hash> values)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.devtools.artifactregistry.v1.Hash>
|
public ExportArtifactMetadata.ExportedFile.Builder addHashes(Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
value |
Hash
|
public ExportArtifactMetadata.ExportedFile.Builder addHashes(Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public ExportArtifactMetadata.ExportedFile.Builder addHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameters |
| Name |
Description |
index |
int
|
value |
Hash
|
public ExportArtifactMetadata.ExportedFile.Builder addHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public Hash.Builder addHashesBuilder()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public Hash.Builder addHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
index |
int
|
public ExportArtifactMetadata.ExportedFile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ExportArtifactMetadata.ExportedFile build()
public ExportArtifactMetadata.ExportedFile buildPartial()
public ExportArtifactMetadata.ExportedFile.Builder clear()
Overrides
public ExportArtifactMetadata.ExportedFile.Builder clearDestination()
public ExportArtifactMetadata.ExportedFile.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ExportArtifactMetadata.ExportedFile.Builder clearGcsObjectPath()
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
public ExportArtifactMetadata.ExportedFile.Builder clearHashes()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public ExportArtifactMetadata.ExportedFile.Builder clearName()
Name of the exported artifact file.
Format: projects/p1/locations/us/repositories/repo1/files/file1
string name = 1 [(.google.api.resource_reference) = { ... }
public ExportArtifactMetadata.ExportedFile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ExportArtifactMetadata.ExportedFile.Builder clone()
Overrides
public ExportArtifactMetadata.ExportedFile getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public ExportArtifactMetadata.ExportedFile.DestinationCase getDestinationCase()
public String getGcsObjectPath()
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
| Returns |
| Type |
Description |
String |
The gcsObjectPath.
|
public ByteString getGcsObjectPathBytes()
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for gcsObjectPath.
|
public Hash getHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Hash |
|
public Hash.Builder getHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
index |
int
|
public List<Hash.Builder> getHashesBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public int getHashesCount()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Returns |
| Type |
Description |
int |
|
public List<Hash> getHashesList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public HashOrBuilder getHashesOrBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends HashOrBuilder> getHashesOrBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Returns |
| Type |
Description |
List<? extends com.google.devtools.artifactregistry.v1.HashOrBuilder> |
|
Name of the exported artifact file.
Format: projects/p1/locations/us/repositories/repo1/files/file1
string name = 1 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Name of the exported artifact file.
Format: projects/p1/locations/us/repositories/repo1/files/file1
string name = 1 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public boolean hasGcsObjectPath()
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
| Returns |
| Type |
Description |
boolean |
Whether the gcsObjectPath field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ExportArtifactMetadata.ExportedFile.Builder mergeFrom(ExportArtifactMetadata.ExportedFile other)
public ExportArtifactMetadata.ExportedFile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ExportArtifactMetadata.ExportedFile.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
public final ExportArtifactMetadata.ExportedFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ExportArtifactMetadata.ExportedFile.Builder removeHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameter |
| Name |
Description |
index |
int
|
public ExportArtifactMetadata.ExportedFile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ExportArtifactMetadata.ExportedFile.Builder setGcsObjectPath(String value)
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
| Parameter |
| Name |
Description |
value |
String
The gcsObjectPath to set.
|
public ExportArtifactMetadata.ExportedFile.Builder setGcsObjectPathBytes(ByteString value)
Cloud Storage Object path of the exported file. Examples:
dst_bucket/file1, dst_bucket/sub_dir/file1
string gcs_object_path = 2;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for gcsObjectPath to set.
|
public ExportArtifactMetadata.ExportedFile.Builder setHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
| Parameters |
| Name |
Description |
index |
int
|
value |
Hash
|
public ExportArtifactMetadata.ExportedFile.Builder setHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 3;
public ExportArtifactMetadata.ExportedFile.Builder setName(String value)
Name of the exported artifact file.
Format: projects/p1/locations/us/repositories/repo1/files/file1
string name = 1 [(.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
value |
String
The name to set.
|
public ExportArtifactMetadata.ExportedFile.Builder setNameBytes(ByteString value)
Name of the exported artifact file.
Format: projects/p1/locations/us/repositories/repo1/files/file1
string name = 1 [(.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for name to set.
|
public ExportArtifactMetadata.ExportedFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ExportArtifactMetadata.ExportedFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides