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.v1.ExplicitContentAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v1.ExplicitContentFrame frames = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1.ExplicitContentFrame>
|
Returns
addFrames(ExplicitContentFrame value)
public ExplicitContentAnnotation.Builder addFrames(ExplicitContentFrame value)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
addFrames(ExplicitContentFrame.Builder builderForValue)
public ExplicitContentAnnotation.Builder addFrames(ExplicitContentFrame.Builder builderForValue)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
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.v1.ExplicitContentFrame frames = 1;
Parameters
Returns
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.v1.ExplicitContentFrame frames = 1;
Parameters
Returns
addFramesBuilder()
public ExplicitContentFrame.Builder addFramesBuilder()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
addFramesBuilder(int index)
public ExplicitContentFrame.Builder addFramesBuilder(int index)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExplicitContentAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ExplicitContentAnnotation build()
Returns
buildPartial()
public ExplicitContentAnnotation buildPartial()
Returns
clear()
public ExplicitContentAnnotation.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ExplicitContentAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFrames()
public ExplicitContentAnnotation.Builder clearFrames()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ExplicitContentAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearVersion()
public ExplicitContentAnnotation.Builder clearVersion()
Feature version.
string version = 2;
Returns
clone()
public ExplicitContentAnnotation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ExplicitContentAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFrames(int index)
public ExplicitContentFrame getFrames(int index)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
getFramesBuilder(int index)
public ExplicitContentFrame.Builder getFramesBuilder(int index)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
getFramesBuilderList()
public List<ExplicitContentFrame.Builder> getFramesBuilderList()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
getFramesCount()
public int getFramesCount()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
getFramesList()
public List<ExplicitContentFrame> getFramesList()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
getFramesOrBuilder(int index)
public ExplicitContentFrameOrBuilder getFramesOrBuilder(int index)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
getFramesOrBuilderList()
public List<? extends ExplicitContentFrameOrBuilder> getFramesOrBuilderList()
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.ExplicitContentFrameOrBuilder> | |
getVersion()
public String getVersion()
Feature version.
string version = 2;
Returns
Type | Description |
String | The version.
|
getVersionBytes()
public ByteString getVersionBytes()
Feature version.
string version = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ExplicitContentAnnotation other)
public ExplicitContentAnnotation.Builder mergeFrom(ExplicitContentAnnotation other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExplicitContentAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ExplicitContentAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExplicitContentAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFrames(int index)
public ExplicitContentAnnotation.Builder removeFrames(int index)
All video frames where explicit content was detected.
repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ExplicitContentAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v1.ExplicitContentFrame frames = 1;
Parameters
Returns
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.v1.ExplicitContentFrame frames = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExplicitContentAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ExplicitContentAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setVersion(String value)
public ExplicitContentAnnotation.Builder setVersion(String value)
Feature version.
string version = 2;
Parameter
Name | Description |
value | String
The version to set.
|
Returns
setVersionBytes(ByteString value)
public ExplicitContentAnnotation.Builder setVersionBytes(ByteString value)
Feature version.
string version = 2;
Parameter
Name | Description |
value | ByteString
The bytes for version to set.
|
Returns