Class: Google::Cloud::VisionAI::V1::CollectionItem

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/visionai/v1/warehouse.rb

Overview

A CollectionItem is an item in a collection. Each item is a reference to the original resource in a collection.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#collection::String

Returns Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}.

Returns:

  • (::String)

    Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}



731
732
733
734
735
736
737
738
739
740
741
742
743
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 731

class CollectionItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # CollectionItem types.
  module Type
    # The default type of item should never happen.
    TYPE_UNSPECIFIED = 0

    # Asset type item.
    ASSET = 1
  end
end

#item_resource::String

Returns Required. The name of the CollectionItem. Its format depends on the type above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}.

Returns:

  • (::String)

    Required. The name of the CollectionItem. Its format depends on the type above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}



731
732
733
734
735
736
737
738
739
740
741
742
743
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 731

class CollectionItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # CollectionItem types.
  module Type
    # The default type of item should never happen.
    TYPE_UNSPECIFIED = 0

    # Asset type item.
    ASSET = 1
  end
end

#type::Google::Cloud::VisionAI::V1::CollectionItem::Type

Returns Required. The type of item.

Returns:



731
732
733
734
735
736
737
738
739
740
741
742
743
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 731

class CollectionItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # CollectionItem types.
  module Type
    # The default type of item should never happen.
    TYPE_UNSPECIFIED = 0

    # Asset type item.
    ASSET = 1
  end
end