Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::FilePart (v1.2.0)

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::FilePart.

FilePart represents the different ways files can be provided.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#file_with_bytes

def file_with_bytes() -> ::String
Returns
  • (::String) — The raw bytes of the file.

    Note: The following fields are mutually exclusive: file_with_bytes, file_with_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#file_with_bytes=

def file_with_bytes=(value) -> ::String
Parameter
  • value (::String) — The raw bytes of the file.

    Note: The following fields are mutually exclusive: file_with_bytes, file_with_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — The raw bytes of the file.

    Note: The following fields are mutually exclusive: file_with_bytes, file_with_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#file_with_uri

def file_with_uri() -> ::String
Returns
  • (::String) — The URI pointing to the file.

    Note: The following fields are mutually exclusive: file_with_uri, file_with_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

#file_with_uri=

def file_with_uri=(value) -> ::String
Parameter
  • value (::String) — The URI pointing to the file.

    Note: The following fields are mutually exclusive: file_with_uri, file_with_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — The URI pointing to the file.

    Note: The following fields are mutually exclusive: file_with_uri, file_with_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.

#mime_type

def mime_type() -> ::String
Returns
  • (::String) — Optional. The MIME type of the file.

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) — Optional. The MIME type of the file.
Returns
  • (::String) — Optional. The MIME type of the file.

#name

def name() -> ::String
Returns
  • (::String) — Optional. The name of the file.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Optional. The name of the file.
Returns
  • (::String) — Optional. The name of the file.