Class TreeEntry (0.40.0)

public final class TreeEntry extends GeneratedMessageV3 implements TreeEntryOrBuilder

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

Protobuf type google.cloud.securesourcemanager.v1.TreeEntry

Implements

TreeEntryOrBuilder

Static Fields

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
Type Description
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
Type Description
int

SHA_FIELD_NUMBER

public static final int SHA_FIELD_NUMBER
Field Value
Type Description
int

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TreeEntry getDefaultInstance()
Returns
Type Description
TreeEntry

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TreeEntry.Builder newBuilder()
Returns
Type Description
TreeEntry.Builder

newBuilder(TreeEntry prototype)

public static TreeEntry.Builder newBuilder(TreeEntry prototype)
Parameter
Name Description
prototype TreeEntry
Returns
Type Description
TreeEntry.Builder

parseDelimitedFrom(InputStream input)

public static TreeEntry parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TreeEntry parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TreeEntry parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TreeEntry parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TreeEntry parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TreeEntry parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TreeEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TreeEntry> parser()
Returns
Type Description
Parser<TreeEntry>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TreeEntry getDefaultInstanceForType()
Returns
Type Description
TreeEntry

getMode()

public String getMode()

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

string mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The mode.

getModeBytes()

public ByteString getModeBytes()

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

string mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for mode.

getParserForType()

public Parser<TreeEntry> getParserForType()
Returns
Type Description
Parser<TreeEntry>
Overrides

getPath()

public String getPath()

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

string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

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

string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for path.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSha()

public String getSha()

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

string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The sha.

getShaBytes()

public ByteString getShaBytes()

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

string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for sha.

getSize()

public long getSize()

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

int64 size = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The size.

getType()

public TreeEntry.ObjectType getType()

Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.

.google.cloud.securesourcemanager.v1.TreeEntry.ObjectType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TreeEntry.ObjectType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.

.google.cloud.securesourcemanager.v1.TreeEntry.ObjectType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TreeEntry.Builder newBuilderForType()
Returns
Type Description
TreeEntry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TreeEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TreeEntry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TreeEntry.Builder toBuilder()
Returns
Type Description
TreeEntry.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException