class SafeSearchAnnotation extends Message

Safe search annotation (based on per-frame visual signals only).

If no unsafe content has been detected in a frame, no annotations are present for that frame. If only some types of unsafe content have been detected in a frame, the likelihood is set to UNKNOWN for all other types of unsafe content.

Protobuf type Google\Cloud\Videointelligence\V1beta1\SafeSearchAnnotation

Methods

__construct()

No description

int
getAdult()

Likelihood of adult content.

setAdult(int $var)

Likelihood of adult content.

int
getSpoof()

Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.

setSpoof(int $var)

Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.

int
getMedical()

Likelihood of medical content.

setMedical(int $var)

Likelihood of medical content.

int
getViolent()

Likelihood of violent content.

setViolent(int $var)

Likelihood of violent content.

int
getRacy()

Likelihood of racy content.

setRacy(int $var)

Likelihood of racy content.

int|string
getTimeOffset()

Video time offset in microseconds.

setTimeOffset(int|string $var)

Video time offset in microseconds.

Details

at line 60
__construct()

at line 71
int getAdult()

Likelihood of adult content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;

Return Value

int

at line 82
setAdult(int $var)

Likelihood of adult content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;

Parameters

int $var

at line 95
int getSpoof()

Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;

Return Value

int

at line 107
setSpoof(int $var)

Likelihood that an obvious modification was made to the original version to make it appear funny or offensive.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;

Parameters

int $var

at line 119
int getMedical()

Likelihood of medical content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;

Return Value

int

at line 130
setMedical(int $var)

Likelihood of medical content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;

Parameters

int $var

at line 142
int getViolent()

Likelihood of violent content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;

Return Value

int

at line 153
setViolent(int $var)

Likelihood of violent content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;

Parameters

int $var

at line 165
int getRacy()

Likelihood of racy content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;

Return Value

int

at line 176
setRacy(int $var)

Likelihood of racy content.

Generated from protobuf field .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;

Parameters

int $var

at line 188
int|string getTimeOffset()

Video time offset in microseconds.

Generated from protobuf field int64 time_offset = 6;

Return Value

int|string

at line 199
setTimeOffset(int|string $var)

Video time offset in microseconds.

Generated from protobuf field int64 time_offset = 6;

Parameters

int|string $var