public static final class File.Builder extends GeneratedMessageV3.Builder<File.Builder> implements FileOrBuilder
Files store content that is potentially associated with Packages or Versions.
Protobuf type google.devtools.artifactregistry.v1beta2.File
Methods
public File.Builder addAllHashes(Iterable<? extends Hash> values)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Name | Description |
values | Iterable<? extends com.google.devtools.artifactregistry.v1beta2.Hash>
|
Returns
public File.Builder addHashes(Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public File.Builder addHashes(Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public File.Builder addHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameters
Returns
public File.Builder addHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameters
Returns
public Hash.Builder addHashesBuilder()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
public Hash.Builder addHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public File buildPartial()
Returns
public File.Builder clear()
Returns
Overrides
public File.Builder clearCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public File.Builder clearHashes()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
public File.Builder clearName()
The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
string name = 1;
Returns
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public File.Builder clearOwner()
The name of the Package or Version that owns this file, if any.
string owner = 7;
Returns
public File.Builder clearSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
Returns
public File.Builder clearUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public File.Builder clone()
Returns
Overrides
public Timestamp getCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Timestamp.Builder getCreateTimeBuilder()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public File getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Hash getHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public Hash.Builder getHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public List<Hash.Builder> getHashesBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
public int getHashesCount()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
public List<Hash> getHashesList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
public HashOrBuilder getHashesOrBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public List<? extends HashOrBuilder> getHashesOrBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Returns
Type | Description |
List<? extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder> | |
The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
string name = 1;
Returns
The name of the Package or Version that owns this file, if any.
string owner = 7;
Returns
Type | Description |
String | The owner.
|
public ByteString getOwnerBytes()
The name of the Package or Version that owns this file, if any.
string owner = 7;
Returns
public long getSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
Returns
Type | Description |
long | The sizeBytes.
|
public Timestamp getUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public Timestamp.Builder getUpdateTimeBuilder()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public boolean hasCreateTime()
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasUpdateTime()
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public File.Builder mergeCreateTime(Timestamp value)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public File.Builder mergeFrom(File other)
Parameter
Returns
public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public File.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public File.Builder mergeUpdateTime(Timestamp value)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
public File.Builder removeHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameter
Returns
public File.Builder setCreateTime(Timestamp value)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public File.Builder setCreateTime(Timestamp.Builder builderForValue)
The time when the File was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public File.Builder setHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameters
Returns
public File.Builder setHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
Parameters
Returns
public File.Builder setName(String value)
The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public File.Builder setNameBytes(ByteString value)
The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public File.Builder setOwner(String value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
Parameter
Name | Description |
value | String
The owner to set.
|
Returns
public File.Builder setOwnerBytes(ByteString value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
Parameter
Name | Description |
value | ByteString
The bytes for owner to set.
|
Returns
public File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public File.Builder setSizeBytes(long value)
The size of the File in bytes.
int64 size_bytes = 3;
Parameter
Name | Description |
value | long
The sizeBytes to set.
|
Returns
public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public File.Builder setUpdateTime(Timestamp value)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
public File.Builder setUpdateTime(Timestamp.Builder builderForValue)
The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Name | Description |
builderForValue | Builder
|
Returns