Package com.google.cloud.visionai.v1
Interface CollectionItemOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CollectionItem,CollectionItem.Builder
@Generated
public interface CollectionItemOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.getType()Required.intRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCollection
String getCollection()Required. The collection name that this item belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`string collection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The collection.
-
getCollectionBytes
com.google.protobuf.ByteString getCollectionBytes()Required. The collection name that this item belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`string collection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for collection.
-
getTypeValue
int getTypeValue()Required. The type of item.
.google.cloud.visionai.v1.CollectionItem.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for type.
-
getType
CollectionItem.Type getType()Required. The type of item.
.google.cloud.visionai.v1.CollectionItem.Type type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The type.
-
getItemResource
String getItemResource()Required. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`string item_resource = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The itemResource.
-
getItemResourceBytes
com.google.protobuf.ByteString getItemResourceBytes()Required. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`string item_resource = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for itemResource.
-