Class TreeEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder>
com.google.cloud.securesourcemanager.v1.TreeEntry.Builder
All Implemented Interfaces:
TreeEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TreeEntry

public static final class TreeEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder> implements TreeEntryOrBuilder
 Represents an entry within a tree structure (like a Git tree).
 
Protobuf type google.cloud.securesourcemanager.v1.TreeEntry
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder>
    • clear

      public TreeEntry.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder>
    • getDefaultInstanceForType

      public TreeEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TreeEntry build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TreeEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TreeEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TreeEntry.Builder>
    • mergeFrom

      public TreeEntry.Builder mergeFrom(TreeEntry other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TreeEntry.Builder>
    • mergeFrom

      public TreeEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TreeEntry.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getTypeValue in interface TreeEntryOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getType in interface TreeEntryOrBuilder
      Returns:
      The type.
    • setType

      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];
      Parameters:
      value - The type to set.
      Returns:
      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:
      This builder for chaining.
    • 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];
      Specified by:
      getSha in interface TreeEntryOrBuilder
      Returns:
      The sha.
    • getShaBytes

      public com.google.protobuf.ByteString getShaBytes()
       Output only. The SHA-1 hash of the object (unique identifier). Output-only.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getShaBytes in interface TreeEntryOrBuilder
      Returns:
      The bytes for sha.
    • setSha

      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];
      Parameters:
      value - The sha to set.
      Returns:
      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:
      This builder for chaining.
    • setShaBytes

      public TreeEntry.Builder setShaBytes(com.google.protobuf.ByteString value)
       Output only. The SHA-1 hash of the object (unique identifier). Output-only.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for sha to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getPath in interface TreeEntryOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.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];
      Specified by:
      getPathBytes in interface TreeEntryOrBuilder
      Returns:
      The bytes for path.
    • setPath

      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];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setPathBytes

      public TreeEntry.Builder setPathBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getMode in interface TreeEntryOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.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];
      Specified by:
      getModeBytes in interface TreeEntryOrBuilder
      Returns:
      The bytes for mode.
    • setMode

      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];
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setModeBytes

      public TreeEntry.Builder setModeBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getSize in interface TreeEntryOrBuilder
      Returns:
      The size.
    • setSize

      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];
      Parameters:
      value - The size to set.
      Returns:
      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:
      This builder for chaining.