displayName property

String? displayName
getter/setter pair

The display name of the file.

Used to provide a label or filename to distinguish files. This field is only returned in PromptMessage for prompt management. It is used in the Gemini calls only when server side tools (code_execution, google_search, and url_context) are enabled.

Optional.

Implementation

core.String? displayName;