Class EnvironmentFile

java.lang.Object
com.google.genai.gaos.models.environments.EnvironmentFile

public class EnvironmentFile extends Object
EnvironmentFile

Metadata for a file or directory within an environment.

  • Constructor Details

    • EnvironmentFile

      public EnvironmentFile(@Nullable OffsetDateTime created, @Nullable String mimeType, @Nullable OffsetDateTime modified, @Nullable String name, @Nullable String path, @Nullable String sizeBytes, @Nullable Type type)
    • EnvironmentFile

      public EnvironmentFile()
  • Method Details

    • created

      public Optional<OffsetDateTime> created()
      Output only. The creation time of the file/directory.
    • mimeType

      public Optional<String> mimeType()
      Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
    • modified

      public Optional<OffsetDateTime> modified()
      Output only. The modification time of the file/directory.
    • name

      public Optional<String> name()
      Output only. The name of the file or directory (e.g., "main.py" or "src").
    • path

      public Optional<String> path()
      Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
    • sizeBytes

      public Optional<String> sizeBytes()
      Output only. The size of the file/directory in bytes. NOLINT
    • type

      public Optional<Type> type()
      Output only. The type of the entry.
    • builder

      public static EnvironmentFile.Builder builder()
    • withCreated

      public EnvironmentFile withCreated(@Nullable OffsetDateTime created)
      Output only. The creation time of the file/directory.
    • withMimeType

      public EnvironmentFile withMimeType(@Nullable String mimeType)
      Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
    • withModified

      public EnvironmentFile withModified(@Nullable OffsetDateTime modified)
      Output only. The modification time of the file/directory.
    • withName

      public EnvironmentFile withName(@Nullable String name)
      Output only. The name of the file or directory (e.g., "main.py" or "src").
    • withPath

      public EnvironmentFile withPath(@Nullable String path)
      Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
    • withSizeBytes

      public EnvironmentFile withSizeBytes(@Nullable String sizeBytes)
      Output only. The size of the file/directory in bytes. NOLINT
    • withType

      public EnvironmentFile withType(@Nullable Type type)
      Output only. The type of the entry.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object