Vision AI V1 API - Class Google::Cloud::VisionAI::V1::AssetSource (v0.4.0)

Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::AssetSource.

The source of the asset.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#asset_content_data

def asset_content_data() -> ::Google::Cloud::VisionAI::V1::AssetSource::AssetContentData
Returns
  • (::Google::Cloud::VisionAI::V1::AssetSource::AssetContentData) — The source of the asset is from content bytes.

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

#asset_content_data=

def asset_content_data=(value) -> ::Google::Cloud::VisionAI::V1::AssetSource::AssetContentData
Parameter
  • value (::Google::Cloud::VisionAI::V1::AssetSource::AssetContentData) — The source of the asset is from content bytes.

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

Returns
  • (::Google::Cloud::VisionAI::V1::AssetSource::AssetContentData) — The source of the asset is from content bytes.

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

#asset_gcs_source

def asset_gcs_source() -> ::Google::Cloud::VisionAI::V1::AssetSource::AssetGcsSource
Returns
  • (::Google::Cloud::VisionAI::V1::AssetSource::AssetGcsSource) — The source of the asset is from Cloud Storage.

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

#asset_gcs_source=

def asset_gcs_source=(value) -> ::Google::Cloud::VisionAI::V1::AssetSource::AssetGcsSource
Parameter
  • value (::Google::Cloud::VisionAI::V1::AssetSource::AssetGcsSource) — The source of the asset is from Cloud Storage.

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

Returns
  • (::Google::Cloud::VisionAI::V1::AssetSource::AssetGcsSource) — The source of the asset is from Cloud Storage.

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