- 1.50.0 (latest)
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 0.5.0
- 0.4.0
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.v1.File
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > File.BuilderImplements
FileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllHashes(Iterable<? extends Hash> values)
public File.Builder addAllHashes(Iterable<? extends Hash> values)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
values | Iterable<? extends com.google.devtools.artifactregistry.v1.Hash> |
Type | Description |
File.Builder |
addHashes(Hash value)
public File.Builder addHashes(Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
value | Hash |
Type | Description |
File.Builder |
addHashes(Hash.Builder builderForValue)
public File.Builder addHashes(Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
builderForValue | Hash.Builder |
Type | Description |
File.Builder |
addHashes(int index, Hash value)
public File.Builder addHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
value | Hash |
Type | Description |
File.Builder |
addHashes(int index, Hash.Builder builderForValue)
public File.Builder addHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
builderForValue | Hash.Builder |
Type | Description |
File.Builder |
addHashesBuilder()
public Hash.Builder addHashesBuilder()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
Hash.Builder |
addHashesBuilder(int index)
public Hash.Builder addHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
Type | Description |
Hash.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
File.Builder |
build()
public File build()
Type | Description |
File |
buildPartial()
public File buildPartial()
Type | Description |
File |
clear()
public File.Builder clear()
Type | Description |
File.Builder |
clearCreateTime()
public File.Builder clearCreateTime()
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
File.Builder |
clearFetchTime()
public File.Builder clearFetchTime()
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
File.Builder |
clearField(Descriptors.FieldDescriptor field)
public File.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
File.Builder |
clearHashes()
public File.Builder clearHashes()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
File.Builder |
clearName()
public File.Builder clearName()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.
string name = 1;
Type | Description |
File.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
File.Builder |
clearOwner()
public File.Builder clearOwner()
The name of the Package or Version that owns this file, if any.
string owner = 7;
Type | Description |
File.Builder | This builder for chaining. |
clearSizeBytes()
public File.Builder clearSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
Type | Description |
File.Builder | This builder for chaining. |
clearUpdateTime()
public File.Builder clearUpdateTime()
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
File.Builder |
clone()
public File.Builder clone()
Type | Description |
File.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public File getDefaultInstanceForType()
Type | Description |
File |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFetchTime()
public Timestamp getFetchTime()
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The fetchTime. |
getFetchTimeBuilder()
public Timestamp.Builder getFetchTimeBuilder()
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getFetchTimeOrBuilder()
public TimestampOrBuilder getFetchTimeOrBuilder()
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getHashes(int index)
public Hash getHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
Type | Description |
Hash |
getHashesBuilder(int index)
public Hash.Builder getHashesBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
Type | Description |
Hash.Builder |
getHashesBuilderList()
public List<Hash.Builder> getHashesBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
List<Builder> |
getHashesCount()
public int getHashesCount()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
int |
getHashesList()
public List<Hash> getHashesList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
List<Hash> |
getHashesOrBuilder(int index)
public HashOrBuilder getHashesOrBuilder(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
Type | Description |
HashOrBuilder |
getHashesOrBuilderList()
public List<? extends HashOrBuilder> getHashesOrBuilderList()
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Type | Description |
List<? extends com.google.devtools.artifactregistry.v1.HashOrBuilder> |
getName()
public String getName()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getOwner()
public String getOwner()
The name of the Package or Version that owns this file, if any.
string owner = 7;
Type | Description |
String | The owner. |
getOwnerBytes()
public ByteString getOwnerBytes()
The name of the Package or Version that owns this file, if any.
string owner = 7;
Type | Description |
ByteString | The bytes for owner. |
getSizeBytes()
public long getSizeBytes()
The size of the File in bytes.
int64 size_bytes = 3;
Type | Description |
long | The sizeBytes. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasFetchTime()
public boolean hasFetchTime()
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the fetchTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public File.Builder mergeCreateTime(Timestamp value)
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
mergeFetchTime(Timestamp value)
public File.Builder mergeFetchTime(Timestamp value)
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
mergeFrom(File other)
public File.Builder mergeFrom(File other)
Name | Description |
other | File |
Type | Description |
File.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
File.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public File.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
File.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
File.Builder |
mergeUpdateTime(Timestamp value)
public File.Builder mergeUpdateTime(Timestamp value)
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
removeHashes(int index)
public File.Builder removeHashes(int index)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
Type | Description |
File.Builder |
setCreateTime(Timestamp value)
public File.Builder setCreateTime(Timestamp value)
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public File.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the File was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
File.Builder |
setFetchTime(Timestamp value)
public File.Builder setFetchTime(Timestamp value)
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
setFetchTime(Timestamp.Builder builderForValue)
public File.Builder setFetchTime(Timestamp.Builder builderForValue)
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
.google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
File.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
File.Builder |
setHashes(int index, Hash value)
public File.Builder setHashes(int index, Hash value)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
value | Hash |
Type | Description |
File.Builder |
setHashes(int index, Hash.Builder builderForValue)
public File.Builder setHashes(int index, Hash.Builder builderForValue)
The hashes of the file content.
repeated .google.devtools.artifactregistry.v1.Hash hashes = 4;
Name | Description |
index | int |
builderForValue | Hash.Builder |
Type | Description |
File.Builder |
setName(String value)
public File.Builder setName(String value)
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
File.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public File.Builder setNameBytes(ByteString value)
The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
File.Builder | This builder for chaining. |
setOwner(String value)
public File.Builder setOwner(String value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
Name | Description |
value | String The owner to set. |
Type | Description |
File.Builder | This builder for chaining. |
setOwnerBytes(ByteString value)
public File.Builder setOwnerBytes(ByteString value)
The name of the Package or Version that owns this file, if any.
string owner = 7;
Name | Description |
value | ByteString The bytes for owner to set. |
Type | Description |
File.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
File.Builder |
setSizeBytes(long value)
public File.Builder setSizeBytes(long value)
The size of the File in bytes.
int64 size_bytes = 3;
Name | Description |
value | long The sizeBytes to set. |
Type | Description |
File.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
File.Builder |
setUpdateTime(Timestamp value)
public File.Builder setUpdateTime(Timestamp value)
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
File.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public File.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time when the File was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
File.Builder |