Class ExplicitContentAnnotation (2.2.10)

public final class ExplicitContentAnnotation extends GeneratedMessageV3 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.v1beta2.ExplicitContentAnnotation

Static Fields

FRAMES_FIELD_NUMBER

public static final int FRAMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExplicitContentAnnotation getDefaultInstance()
Returns
TypeDescription
ExplicitContentAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ExplicitContentAnnotation.Builder newBuilder()
Returns
TypeDescription
ExplicitContentAnnotation.Builder

newBuilder(ExplicitContentAnnotation prototype)

public static ExplicitContentAnnotation.Builder newBuilder(ExplicitContentAnnotation prototype)
Parameter
NameDescription
prototypeExplicitContentAnnotation
Returns
TypeDescription
ExplicitContentAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static ExplicitContentAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExplicitContentAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExplicitContentAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExplicitContentAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExplicitContentAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExplicitContentAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExplicitContentAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplicitContentAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExplicitContentAnnotation> parser()
Returns
TypeDescription
Parser<ExplicitContentAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ExplicitContentAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ExplicitContentAnnotation

getFrames(int index)

public ExplicitContentFrame getFrames(int index)

All video frames where explicit content was detected.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplicitContentFrame

getFramesCount()

public int getFramesCount()

All video frames where explicit content was detected.

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

Returns
TypeDescription
int

getFramesList()

public List<ExplicitContentFrame> getFramesList()

All video frames where explicit content was detected.

repeated .google.cloud.videointelligence.v1beta2.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.v1beta2.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.v1beta2.ExplicitContentFrame frames = 1;

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

getParserForType()

public Parser<ExplicitContentAnnotation> getParserForType()
Returns
TypeDescription
Parser<ExplicitContentAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ExplicitContentAnnotation.Builder newBuilderForType()
Returns
TypeDescription
ExplicitContentAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExplicitContentAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExplicitContentAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ExplicitContentAnnotation.Builder toBuilder()
Returns
TypeDescription
ExplicitContentAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException