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. - The type of the job.
- The status of the job.
- 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. - The signature identifier, if the job is completed.
- creator_
idgoogle. protobuf. UInt32Valueoptional= 10 The CreatorID of the business entity that owns the signature insignature_id. - SASHA-evaluated distribution guidance for the found signature.
- A field-filtered Record for the found signature on a completed lookup job.
- 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
PartnerAPI— response ofGetJobEmbedSignatureFromURLResponse— fieldjobEmbedSignatureFromDataResponse— fieldjobLookupSignatureFromURLResponse— fieldjobLookupSignatureFromDataResponse— fieldjobWatchJobResponse— fieldjobListJobsResponse— fieldjobs