mode = $mode; } /** * @return string */ public function getMode() { return $this->mode; } /** * Output only. The path of the file or directory within the tree (e.g., * "src/main/java/MyClass.java"). Output-only. * * @param string $path */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * Output only. The SHA-1 hash of the object (unique identifier). Output-only. * * @param string $sha */ public function setSha($sha) { $this->sha = $sha; } /** * @return string */ public function getSha() { return $this->sha; } /** * Output only. The size of the object in bytes (only for blobs). Output-only. * * @param string $size */ public function setSize($size) { $this->size = $size; } /** * @return string */ public function getSize() { return $this->size; } /** * Output only. The type of the object (TREE, BLOB, COMMIT). Output-only. * * Accepted values: OBJECT_TYPE_UNSPECIFIED, TREE, BLOB, COMMIT * * @param self::TYPE_* $type */ public function setType($type) { $this->type = $type; } /** * @return self::TYPE_* */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TreeEntry::class, 'Google_Service_SecureSourceManager_TreeEntry');