Class ExplicitContentFrame.Builder (2.44.0)

public static final class ExplicitContentFrame.Builder extends GeneratedMessageV3.Builder<ExplicitContentFrame.Builder> implements ExplicitContentFrameOrBuilder

Video frame level annotation results for explicit content.

Protobuf type google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExplicitContentFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

build()

public ExplicitContentFrame build()
Returns
Type Description
ExplicitContentFrame

buildPartial()

public ExplicitContentFrame buildPartial()
Returns
Type Description
ExplicitContentFrame

clear()

public ExplicitContentFrame.Builder clear()
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExplicitContentFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExplicitContentFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

clearPornographyLikelihood()

public ExplicitContentFrame.Builder clearPornographyLikelihood()

Likelihood of the pornography content..

.google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;

Returns
Type Description
ExplicitContentFrame.Builder

This builder for chaining.

clearTimeOffset()

public ExplicitContentFrame.Builder clearTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
Type Description
ExplicitContentFrame.Builder

clone()

public ExplicitContentFrame.Builder clone()
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

getDefaultInstanceForType()

public ExplicitContentFrame getDefaultInstanceForType()
Returns
Type Description
ExplicitContentFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPornographyLikelihood()

public Likelihood getPornographyLikelihood()

Likelihood of the pornography content..

.google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;

Returns
Type Description
Likelihood

The pornographyLikelihood.

getPornographyLikelihoodValue()

public int getPornographyLikelihoodValue()

Likelihood of the pornography content..

.google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;

Returns
Type Description
int

The enum numeric value on the wire for pornographyLikelihood.

getTimeOffset()

public Duration getTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
Type Description
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
Type Description
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
Type Description
DurationOrBuilder

hasTimeOffset()

public boolean hasTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
Type Description
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExplicitContentFrame other)

public ExplicitContentFrame.Builder mergeFrom(ExplicitContentFrame other)
Parameter
Name Description
other ExplicitContentFrame
Returns
Type Description
ExplicitContentFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExplicitContentFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplicitContentFrame.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExplicitContentFrame.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

mergeTimeOffset(Duration value)

public ExplicitContentFrame.Builder mergeTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
Name Description
value Duration
Returns
Type Description
ExplicitContentFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplicitContentFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExplicitContentFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

setPornographyLikelihood(Likelihood value)

public ExplicitContentFrame.Builder setPornographyLikelihood(Likelihood value)

Likelihood of the pornography content..

.google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;

Parameter
Name Description
value Likelihood

The pornographyLikelihood to set.

Returns
Type Description
ExplicitContentFrame.Builder

This builder for chaining.

setPornographyLikelihoodValue(int value)

public ExplicitContentFrame.Builder setPornographyLikelihoodValue(int value)

Likelihood of the pornography content..

.google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for pornographyLikelihood to set.

Returns
Type Description
ExplicitContentFrame.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExplicitContentFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExplicitContentFrame.Builder
Overrides

setTimeOffset(Duration value)

public ExplicitContentFrame.Builder setTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
Name Description
value Duration
Returns
Type Description
ExplicitContentFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public ExplicitContentFrame.Builder setTimeOffset(Duration.Builder builderForValue)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExplicitContentFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExplicitContentFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExplicitContentFrame.Builder
Overrides