# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::TreeEntry (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.4.0 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::TreeEntry.

Represents an entry within a tree structure (like a Git tree).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mode

    def mode() -> ::String

**Returns**

- (::String) --- Output only. The file mode as a string (e.g., "100644"). Indicates file type. Output-only.

### #path

    def path() -> ::String

**Returns**

- (::String) --- Output only. The path of the file or directory within the tree (e.g., "src/main/java/MyClass.java"). Output-only.

### #sha

    def sha() -> ::String

**Returns**

- (::String) --- Output only. The SHA-1 hash of the object (unique identifier). Output-only.

### #size

    def size() -> ::Integer

**Returns**

- (::Integer) --- Output only. The size of the object in bytes (only for blobs). Output-only.

### #type

    def type() -> ::Google::Cloud::SecureSourceManager::V1::TreeEntry::ObjectType

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::TreeEntry::ObjectType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-TreeEntry-ObjectType)) --- Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.