Class ExplicitContentAnnotation.Builder (2.29.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.v1p3beta1.ExplicitContentAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame>
Returns
TypeDescription
ExplicitContentAnnotation.Builder

addFrames(ExplicitContentFrame value)

public ExplicitContentAnnotation.Builder addFrames(ExplicitContentFrame value)

All video frames where explicit content was detected.

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

Parameter
NameDescription
valueExplicitContentFrame
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameter
NameDescription
builderForValueExplicitContentFrame.Builder
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameters
NameDescription
indexint
valueExplicitContentFrame
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameters
NameDescription
indexint
builderForValueExplicitContentFrame.Builder
Returns
TypeDescription
ExplicitContentAnnotation.Builder

addFramesBuilder()

public ExplicitContentFrame.Builder addFramesBuilder()

All video frames where explicit content was detected.

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

Returns
TypeDescription
ExplicitContentFrame.Builder

addFramesBuilder(int index)

public ExplicitContentFrame.Builder addFramesBuilder(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentFrame.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExplicitContentAnnotation build()
Returns
TypeDescription
ExplicitContentAnnotation

buildPartial()

public ExplicitContentAnnotation buildPartial()
Returns
TypeDescription
ExplicitContentAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFrames()

public ExplicitContentAnnotation.Builder clearFrames()

All video frames where explicit content was detected.

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

Returns
TypeDescription
ExplicitContentAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ExplicitContentAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ExplicitContentAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFrames(int index)

public ExplicitContentFrame getFrames(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentFrame

getFramesBuilder(int index)

public ExplicitContentFrame.Builder getFramesBuilder(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentFrame.Builder

getFramesBuilderList()

public List<ExplicitContentFrame.Builder> getFramesBuilderList()

All video frames where explicit content was detected.

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

Returns
TypeDescription
List<Builder>

getFramesCount()

public int getFramesCount()

All video frames where explicit content was detected.

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

Returns
TypeDescription
int

getFramesList()

public List<ExplicitContentFrame> getFramesList()

All video frames where explicit content was detected.

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

Returns
TypeDescription
List<ExplicitContentFrame>

getFramesOrBuilder(int index)

public ExplicitContentFrameOrBuilder getFramesOrBuilder(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentFrameOrBuilder

getFramesOrBuilderList()

public List<? extends ExplicitContentFrameOrBuilder> getFramesOrBuilderList()

All video frames where explicit content was detected.

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplicitContentAnnotation other)

public ExplicitContentAnnotation.Builder mergeFrom(ExplicitContentAnnotation other)
Parameter
NameDescription
otherExplicitContentAnnotation
Returns
TypeDescription
ExplicitContentAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ExplicitContentAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExplicitContentAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFrames(int index)

public ExplicitContentAnnotation.Builder removeFrames(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExplicitContentAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameters
NameDescription
indexint
valueExplicitContentFrame
Returns
TypeDescription
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.v1p3beta1.ExplicitContentFrame frames = 1;

Parameters
NameDescription
indexint
builderForValueExplicitContentFrame.Builder
Returns
TypeDescription
ExplicitContentAnnotation.Builder

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

public ExplicitContentAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExplicitContentAnnotation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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