Vision AI v1 API - Class CreateCollectionRequest (1.0.0-beta01)

public sealed class CreateCollectionRequest : IMessage<CreateCollectionRequest>, IEquatable<CreateCollectionRequest>, IDeepCloneable<CreateCollectionRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Vision AI v1 API class CreateCollectionRequest.

Request message for CreateCollection.

Inheritance

object > CreateCollectionRequest

Namespace

Google.Cloud.VisionAI.V1

Assembly

Google.Cloud.VisionAI.V1.dll

Constructors

CreateCollectionRequest()

public CreateCollectionRequest()

CreateCollectionRequest(CreateCollectionRequest)

public CreateCollectionRequest(CreateCollectionRequest other)
Parameter
Name Description
other CreateCollectionRequest

Properties

Collection

public Collection Collection { get; set; }

Required. The collection resource to be created.

Property Value
Type Description
Collection

CollectionId

public string CollectionId { get; set; }

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.

Property Value
Type Description
string

HasCollectionId

public bool HasCollectionId { get; }

Gets whether the "collection_id" field is set

Property Value
Type Description
bool

Parent

public string Parent { get; set; }

Required. The parent resource where this collection will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

Property Value
Type Description
string

ParentAsCorpusName

public CorpusName ParentAsCorpusName { get; set; }

CorpusName-typed view over the Parent resource name property.

Property Value
Type Description
CorpusName