public sealed class CreateAnnotationRequest : IMessage<CreateAnnotationRequest>, IEquatable<CreateAnnotationRequest>, IDeepCloneable<CreateAnnotationRequest>, IBufferMessage, IMessageReference documentation and code samples for the Vision AI v1 API class CreateAnnotationRequest.
Request message for CreateAnnotation.
Implements
IMessageCreateAnnotationRequest, IEquatableCreateAnnotationRequest, IDeepCloneableCreateAnnotationRequest, IBufferMessage, IMessageNamespace
Google.Cloud.VisionAI.V1Assembly
Google.Cloud.VisionAI.V1.dll
Constructors
CreateAnnotationRequest()
public CreateAnnotationRequest()CreateAnnotationRequest(CreateAnnotationRequest)
public CreateAnnotationRequest(CreateAnnotationRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAnnotationRequest |
Properties
Annotation
public Annotation Annotation { get; set; }Required. The annotation to create.
| Property Value | |
|---|---|
| Type | Description |
Annotation |
|
AnnotationId
public string AnnotationId { get; set; }Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation id will be generated by system.
This value should be up to 63 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 |
|
HasAnnotationId
public bool HasAnnotationId { get; }Gets whether the "annotation_id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Parent
public string Parent { get; set; }Required. The parent resource where this annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentAsAssetName
public AssetName ParentAsAssetName { get; set; }| Property Value | |
|---|---|
| Type | Description |
AssetName |
|