Class InputFile

    • Method Detail

      • name

        public final String name()

        The name of the source file.

        Returns:
        The name of the source file.
      • source

        public final FileSource source()

        Specifies where the files are located.

        Returns:
        Specifies where the files are located.
      • useCase

        public final FileUseCase useCase()

        Specifies how the source files will be used by the code interpreter.

        If the service returns an enum value that is not available in the current SDK version, useCase will return FileUseCase.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from useCaseAsString().

        Returns:
        Specifies how the source files will be used by the code interpreter.
        See Also:
        FileUseCase
      • useCaseAsString

        public final String useCaseAsString()

        Specifies how the source files will be used by the code interpreter.

        If the service returns an enum value that is not available in the current SDK version, useCase will return FileUseCase.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from useCaseAsString().

        Returns:
        Specifies how the source files will be used by the code interpreter.
        See Also:
        FileUseCase
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)