Class TreeEntry.Builder (0.40.0)

public static final class TreeEntry.Builder extends GeneratedMessageV3.Builder<TreeEntry.Builder> implements TreeEntryOrBuilder

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

Protobuf type google.cloud.securesourcemanager.v1.TreeEntry

Implements

TreeEntryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TreeEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TreeEntry.Builder
Overrides

build()

public TreeEntry build()
Returns
Type Description
TreeEntry

buildPartial()

public TreeEntry buildPartial()
Returns
Type Description
TreeEntry

clear()

public TreeEntry.Builder clear()
Returns
Type Description
TreeEntry.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TreeEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TreeEntry.Builder
Overrides

clearMode()

public TreeEntry.Builder clearMode()

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
TreeEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TreeEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TreeEntry.Builder
Overrides

clearPath()

public TreeEntry.Builder clearPath()

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
TreeEntry.Builder

This builder for chaining.

clearSha()

public TreeEntry.Builder clearSha()

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
TreeEntry.Builder

This builder for chaining.

clearSize()

public TreeEntry.Builder clearSize()

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
TreeEntry.Builder

This builder for chaining.

clearType()

public TreeEntry.Builder clearType()

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.Builder

This builder for chaining.

clone()

public TreeEntry.Builder clone()
Returns
Type Description
TreeEntry.Builder
Overrides

getDefaultInstanceForType()

public TreeEntry getDefaultInstanceForType()
Returns
Type Description
TreeEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TreeEntry other)

public TreeEntry.Builder mergeFrom(TreeEntry other)
Parameter
Name Description
other TreeEntry
Returns
Type Description
TreeEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TreeEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TreeEntry.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TreeEntry.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TreeEntry.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TreeEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TreeEntry.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TreeEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TreeEntry.Builder
Overrides

setMode(String value)

public TreeEntry.Builder setMode(String value)

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];

Parameter
Name Description
value String

The mode to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setModeBytes(ByteString value)

public TreeEntry.Builder setModeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for mode to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setPath(String value)

public TreeEntry.Builder setPath(String value)

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];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setPathBytes(ByteString value)

public TreeEntry.Builder setPathBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TreeEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TreeEntry.Builder
Overrides

setSha(String value)

public TreeEntry.Builder setSha(String value)

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

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

Parameter
Name Description
value String

The sha to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setShaBytes(ByteString value)

public TreeEntry.Builder setShaBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for sha to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setSize(long value)

public TreeEntry.Builder setSize(long value)

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

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

Parameter
Name Description
value long

The size to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setType(TreeEntry.ObjectType value)

public TreeEntry.Builder setType(TreeEntry.ObjectType value)

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];

Parameter
Name Description
value TreeEntry.ObjectType

The type to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setTypeValue(int value)

public TreeEntry.Builder setTypeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
TreeEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TreeEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TreeEntry.Builder
Overrides