Class ExplicitContentAnnotation.Builder (2.54.0)

public static final class ExplicitContentAnnotation.Builder extends GeneratedMessageV3.Builder<ExplicitContentAnnotation.Builder> implements ExplicitContentAnnotationOrBuilder

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame.

Protobuf type google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation

Static Methods

getDescriptor()

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

Methods

addAllFrames(Iterable<? extends ExplicitContentFrame> values)

public ExplicitContentAnnotation.Builder addAllFrames(Iterable<? extends ExplicitContentFrame> values)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame>
Returns
Type Description
ExplicitContentAnnotation.Builder

addFrames(ExplicitContentFrame value)

public ExplicitContentAnnotation.Builder addFrames(ExplicitContentFrame value)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
value ExplicitContentFrame
Returns
Type Description
ExplicitContentAnnotation.Builder

addFrames(ExplicitContentFrame.Builder builderForValue)

public ExplicitContentAnnotation.Builder addFrames(ExplicitContentFrame.Builder builderForValue)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
builderForValue ExplicitContentFrame.Builder
Returns
Type Description
ExplicitContentAnnotation.Builder

addFrames(int index, ExplicitContentFrame value)

public ExplicitContentAnnotation.Builder addFrames(int index, ExplicitContentFrame value)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameters
Name Description
index int
value ExplicitContentFrame
Returns
Type Description
ExplicitContentAnnotation.Builder

addFrames(int index, ExplicitContentFrame.Builder builderForValue)

public ExplicitContentAnnotation.Builder addFrames(int index, ExplicitContentFrame.Builder builderForValue)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameters
Name Description
index int
builderForValue ExplicitContentFrame.Builder
Returns
Type Description
ExplicitContentAnnotation.Builder

addFramesBuilder()

public ExplicitContentFrame.Builder addFramesBuilder()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
ExplicitContentFrame.Builder

addFramesBuilder(int index)

public ExplicitContentFrame.Builder addFramesBuilder(int index)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
index int
Returns
Type Description
ExplicitContentFrame.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExplicitContentAnnotation build()
Returns
Type Description
ExplicitContentAnnotation

buildPartial()

public ExplicitContentAnnotation buildPartial()
Returns
Type Description
ExplicitContentAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFrames()

public ExplicitContentAnnotation.Builder clearFrames()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
ExplicitContentAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ExplicitContentAnnotation getDefaultInstanceForType()
Returns
Type Description
ExplicitContentAnnotation

getDescriptorForType()

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

getFrames(int index)

public ExplicitContentFrame getFrames(int index)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
index int
Returns
Type Description
ExplicitContentFrame

getFramesBuilder(int index)

public ExplicitContentFrame.Builder getFramesBuilder(int index)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
index int
Returns
Type Description
ExplicitContentFrame.Builder

getFramesBuilderList()

public List<ExplicitContentFrame.Builder> getFramesBuilderList()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
List<Builder>

getFramesCount()

public int getFramesCount()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
int

getFramesList()

public List<ExplicitContentFrame> getFramesList()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
List<ExplicitContentFrame>

getFramesOrBuilder(int index)

public ExplicitContentFrameOrBuilder getFramesOrBuilder(int index)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
index int
Returns
Type Description
ExplicitContentFrameOrBuilder

getFramesOrBuilderList()

public List<? extends ExplicitContentFrameOrBuilder> getFramesOrBuilderList()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExplicitContentAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFrames(int index)

public ExplicitContentAnnotation.Builder removeFrames(int index)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameter
Name Description
index int
Returns
Type Description
ExplicitContentAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrames(int index, ExplicitContentFrame value)

public ExplicitContentAnnotation.Builder setFrames(int index, ExplicitContentFrame value)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameters
Name Description
index int
value ExplicitContentFrame
Returns
Type Description
ExplicitContentAnnotation.Builder

setFrames(int index, ExplicitContentFrame.Builder builderForValue)

public ExplicitContentAnnotation.Builder setFrames(int index, ExplicitContentFrame.Builder builderForValue)

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1;

Parameters
Name Description
index int
builderForValue ExplicitContentFrame.Builder
Returns
Type Description
ExplicitContentAnnotation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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