Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateCollectionRequest.
Request message for CreateCollection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#collection
def collection() -> ::Google::Cloud::VisionAI::V1::Collection
- (::Google::Cloud::VisionAI::V1::Collection) — Required. The collection resource to be created.
#collection=
def collection=(value) -> ::Google::Cloud::VisionAI::V1::Collection
- value (::Google::Cloud::VisionAI::V1::Collection) — Required. The collection resource to be created.
- (::Google::Cloud::VisionAI::V1::Collection) — Required. The collection resource to be created.
#collection_id
def collection_id() -> ::String
-
(::String) — Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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.
#collection_id=
def collection_id=(value) -> ::String
-
value (::String) — Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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 collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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 collection will be created.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}
#parent=
def parent=(value) -> ::String
-
value (::String) — Required. The parent resource where this collection will be created.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}
-
(::String) — Required. The parent resource where this collection will be created.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}