Table of Contents

Class GeminiFileUploadMetaData

Metadata for a GeminiFile to be uploaded.

public class GeminiFileUploadMetaData
Inheritance
object
GeminiFileUploadMetaData
Extension Methods

Constructors

GeminiFileUploadMetaData()

Creates a new GeminiFileUploadMetaData object.

public GeminiFileUploadMetaData()

GeminiFileUploadMetaData(string)

Creates a new GeminiFileUploadMetaData object.

public GeminiFileUploadMetaData(string fileNameOrId)

Parameters

fileNameOrId string

The name (format 'files/{fileId}') or ID of the file to be uploaded.

Fields

DisplayName

The human-readable display name for the GeminiFileUploadRequest. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image"

public string DisplayName

Field Value

string

Name

The GeminiFileUploadRequest resource name, in format "files/{fileId}".

public string Name

Field Value

string

Remarks

The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-).
The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: files/123-456