Class ExplicitContentFrame.Builder (2.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExplicitContentFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

build()

public ExplicitContentFrame build()
Returns
TypeDescription
ExplicitContentFrame

buildPartial()

public ExplicitContentFrame buildPartial()
Returns
TypeDescription
ExplicitContentFrame

clear()

public ExplicitContentFrame.Builder clear()
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExplicitContentFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExplicitContentFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

clearPornographyLikelihood()

public ExplicitContentFrame.Builder clearPornographyLikelihood()

Likelihood of the pornography content..

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

Returns
TypeDescription
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
TypeDescription
ExplicitContentFrame.Builder

clone()

public ExplicitContentFrame.Builder clone()
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

getDefaultInstanceForType()

public ExplicitContentFrame getDefaultInstanceForType()
Returns
TypeDescription
ExplicitContentFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPornographyLikelihood()

public Likelihood getPornographyLikelihood()

Likelihood of the pornography content..

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

Returns
TypeDescription
Likelihood

The pornographyLikelihood.

getPornographyLikelihoodValue()

public int getPornographyLikelihoodValue()

Likelihood of the pornography content..

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplicitContentFrame other)

public ExplicitContentFrame.Builder mergeFrom(ExplicitContentFrame other)
Parameter
NameDescription
otherExplicitContentFrame
Returns
TypeDescription
ExplicitContentFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExplicitContentFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExplicitContentFrame.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
ExplicitContentFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplicitContentFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExplicitContentFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueLikelihood

The pornographyLikelihood to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ExplicitContentFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExplicitContentFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplicitContentFrame.Builder
Overrides