Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class File.
Files store content that is potentially associated with Packages or Versions.
Generated from protobuf message google.devtools.artifactregistry.v1.File
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
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.
↳ size_bytes
int|string
The size of the File in bytes.
↳ hashes
↳ create_time
↳ update_time
↳ owner
string
The name of the Package or Version that owns this file, if any.
↳ fetch_time
Google\Protobuf\Timestamp
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
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
setName
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.
var
string
$this
getSizeBytes
The size of the File in bytes.
int|string
setSizeBytes
The size of the File in bytes.
var
int|string
$this
getHashes
The hashes of the file content.
setHashes
The hashes of the file content.
$this
getCreateTime
Output only. The time when the File was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the File was created.
$this
getUpdateTime
Output only. The time when the File was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the File was last updated.
$this
getOwner
The name of the Package or Version that owns this file, if any.
string
setOwner
The name of the Package or Version that owns this file, if any.
var
string
$this
getFetchTime
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
hasFetchTime
clearFetchTime
setFetchTime
Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
$this