Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateAssetRequest.
Request message for CreateAssetRequest.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#asset
def asset() -> ::Google::Cloud::VisionAI::V1::Asset
- (::Google::Cloud::VisionAI::V1::Asset) — Required. The asset to create.
#asset=
def asset=(value) -> ::Google::Cloud::VisionAI::V1::Asset
- value (::Google::Cloud::VisionAI::V1::Asset) — Required. The asset to create.
- (::Google::Cloud::VisionAI::V1::Asset) — Required. The asset to create.
#asset_id
def asset_id() -> ::String
-
(::String) — Optional. The ID to use for the asset, which will become the final
component of the asset's resource name if user choose to specify.
Otherwise, asset id will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
#asset_id=
def asset_id=(value) -> ::String
-
value (::String) — Optional. The ID to use for the asset, which will become the final
component of the asset's resource name if user choose to specify.
Otherwise, asset id will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
-
(::String) — Optional. The ID to use for the asset, which will become the final
component of the asset's resource name if user choose to specify.
Otherwise, asset id will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
#parent
def parent() -> ::String
-
(::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
#parent=
def parent=(value) -> ::String
-
value (::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
-
(::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}