Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::UploadAssetRequest.
Request message for UploadAsset.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#asset_source
def asset_source() -> ::Google::Cloud::VisionAI::V1::AssetSource
Returns
- (::Google::Cloud::VisionAI::V1::AssetSource) — The source of the asset.
#asset_source=
def asset_source=(value) -> ::Google::Cloud::VisionAI::V1::AssetSource
Parameter
- value (::Google::Cloud::VisionAI::V1::AssetSource) — The source of the asset.
Returns
- (::Google::Cloud::VisionAI::V1::AssetSource) — The source of the asset.
#name
def name() -> ::String
Returns
-
(::String) — Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Returns
-
(::String) — Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}