Vision AI V1 API - Class Google::Cloud::VisionAI::V1::CreateAnnotationRequest (v0.1.0)

Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateAnnotationRequest.

Request message for CreateAnnotation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#annotation

def annotation() -> ::Google::Cloud::VisionAI::V1::Annotation
Returns

#annotation=

def annotation=(value) -> ::Google::Cloud::VisionAI::V1::Annotation
Parameter
Returns

#annotation_id

def annotation_id() -> ::String
Returns
  • (::String) — 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.

#annotation_id=

def annotation_id=(value) -> ::String
Parameter
  • value (::String) — 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.

Returns
  • (::String) — 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.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The parent resource where this annotation will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The parent resource where this annotation will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Returns
  • (::String) — Required. The parent resource where this annotation will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}