Interface CreateCollectionRequestOrBuilder (0.6.0)

public interface CreateCollectionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCollection()

public abstract Collection getCollection()

Required. The collection resource to be created.

.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Collection

The collection.

getCollectionId()

public abstract String getCollectionId()

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-/. The first character must be a letter, the last could be a letter or a number.

optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The collectionId.

getCollectionIdBytes()

public abstract ByteString getCollectionIdBytes()

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-/. The first character must be a letter, the last could be a letter or a number.

optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for collectionId.

getCollectionOrBuilder()

public abstract CollectionOrBuilder getCollectionOrBuilder()

Required. The collection resource to be created.

.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CollectionOrBuilder

getParent()

public abstract String getParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasCollection()

public abstract boolean hasCollection()

Required. The collection resource to be created.

.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the collection field is set.

hasCollectionId()

public abstract boolean hasCollectionId()

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-/. The first character must be a letter, the last could be a letter or a number.

optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the collectionId field is set.