Google Cloud Gemini Data Analytics V1beta Client - Class FilePart (0.14.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class FilePart.

FilePart represents the different ways files can be provided.

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.FilePart

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ file_with_uri string

The URI pointing to the file.

↳ file_with_bytes string

The raw bytes of the file.

↳ mime_type string

Optional. The MIME type of the file.

↳ name string

Optional. The name of the file.

getFileWithUri

The URI pointing to the file.

Returns
Type Description
string

hasFileWithUri

setFileWithUri

The URI pointing to the file.

Parameter
Name Description
var string
Returns
Type Description
$this

getFileWithBytes

The raw bytes of the file.

Returns
Type Description
string

hasFileWithBytes

setFileWithBytes

The raw bytes of the file.

Parameter
Name Description
var string
Returns
Type Description
$this

getMimeType

Optional. The MIME type of the file.

Returns
Type Description
string

setMimeType

Optional. The MIME type of the file.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Optional. The name of the file.

Returns
Type Description
string

setName

Optional. The name of the file.

Parameter
Name Description
var string
Returns
Type Description
$this

getFile

Returns
Type Description
string