Skip to main content

Job message

sasha.partnerapi.v1.Job · sasha/partner-api/v1/job.proto:24

An asynchronous embed or lookup operation on one media file.

Submitting an embed or lookup request creates a Job and returns it with status STATUS_PENDING. The job is then processed in the background and ends as either STATUS_COMPLETED, with its result fields populated, or STATUS_FAILED, with error populated. Both are final: the status does not change again once it has left STATUS_PENDING.

A successful submit only means the job was accepted, so always check status before reading the result.

  • job_idstringrequired= 1
    The ID of the job.
  • typeJob.Typerequired= 2
    The type of the job.
  • statusJob.Statusrequired= 3
    The status of the job.
  • errorJob.Erroroptional= 4
    The error that occurred while processing the job, if the job is failed.
  • output_urlgoogle.protobuf.StringValueoptional= 5
    The URL of the result media file.
  • output_url_expires_atgoogle.protobuf.Timestampoptional= 6
    The date and time the output URL will expire.
  • signature_idsasha.common.public.SignatureIDoptional= 7
    The signature identifier, if the job is completed.
  • creator_idgoogle.protobuf.UInt32Valueoptional= 10
    The CreatorID of the business entity that owns the signature in signature_id.
  • guidancesasha.common.public.Guidanceoptional= 11
    SASHA-evaluated distribution guidance for the found signature.
  • recordsasha.common.public.Recordoptional= 12
    A field-filtered Record for the found signature on a completed lookup job.
  • warningsrepeated Job.Warningoptional= 13
    What the job left out of its result, or where the result differs from the input, without failing.
  • created_atgoogle.protobuf.Timestamprequired= 8
    The date and time the job was created.
  • updated_atgoogle.protobuf.Timestamprequired= 9
    The date and time the job was last updated.

Field notes​

output_url

Optional. The URL of the result media file.

This is only populated if the job is completed and the job type is TYPE_EMBED_SIGNATURE.

output_url_expires_at

Optional. The date and time the output URL will expire.

This is only populated if the job is completed and the job type is TYPE_EMBED_SIGNATURE.

signature_id

Optional. The signature identifier, if the job is completed.

For job type TYPE_EMBED_SIGNATURE, this is the SignatureID that was embedded into the media content.

For job type TYPE_LOOKUP_SIGNATURE, this is the SignatureID that was found in the media content. If the lookup failed to detect the signature, this field is not populated.

creator_id

Optional. The CreatorID of the business entity that owns the signature in signature_id.

Populated exactly when signature_id is populated. For job type TYPE_EMBED_SIGNATURE, this is the CreatorID of the Partner that submitted the job. For job type TYPE_LOOKUP_SIGNATURE, this is the CreatorID of the found signature's owner.

guidance

Optional. SASHA-evaluated distribution guidance for the found signature.

This is only populated if the job is completed, the job type is TYPE_LOOKUP_SIGNATURE, and an active signature was found. A signature without a Record yields guidance with SHARE_STATE_PRIVATE. See sasha.common.public.Guidance for the (coarse) guidance values. A field-filtered Record may additionally be returned in the record field when the looker is authorized; see that field.

record

Optional. A field-filtered Record for the found signature on a completed lookup job.

Populated only when the signature is found and active, and the partner that submitted the job is the owning creator (full Record) or has been granted access (granted fields only). Absent for all other lookers. Only populated for TYPE_LOOKUP_SIGNATURE jobs. Never present for revoked signatures.

Availability is time-bounded: the disclosed Record is held in a transient store for a limited window after completion, so it may be absent on jobs fetched later even though guidance remains. The owning creator can read its full Record durably via GetSignatureRecord.

warnings

Optional. What the job left out of its result, or where the result differs from the input, without failing.

Populated only when the job is completed and the job type is TYPE_EMBED_SIGNATURE. Empty when there is nothing to report. A failed job reports its cause in error instead.

Referenced by​