Class VideoSegment (2.2.13)

public final class VideoSegment extends GeneratedMessageV3 implements VideoSegmentOrBuilder

Video segment.

Protobuf type google.cloud.videointelligence.v1p3beta1.VideoSegment

Static Fields

END_TIME_OFFSET_FIELD_NUMBER

public static final int END_TIME_OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_OFFSET_FIELD_NUMBER

public static final int START_TIME_OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VideoSegment getDefaultInstance()
Returns
TypeDescription
VideoSegment

getDescriptor()

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

newBuilder()

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

newBuilder(VideoSegment prototype)

public static VideoSegment.Builder newBuilder(VideoSegment prototype)
Parameter
NameDescription
prototypeVideoSegment
Returns
TypeDescription
VideoSegment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VideoSegment getDefaultInstanceForType()
Returns
TypeDescription
VideoSegment

getEndTimeOffset()

public Duration getEndTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive).

.google.protobuf.Duration end_time_offset = 2;

Returns
TypeDescription
Duration

The endTimeOffset.

getEndTimeOffsetOrBuilder()

public DurationOrBuilder getEndTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive).

.google.protobuf.Duration end_time_offset = 2;

Returns
TypeDescription
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTimeOffset()

public Duration getStartTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive).

.google.protobuf.Duration start_time_offset = 1;

Returns
TypeDescription
Duration

The startTimeOffset.

getStartTimeOffsetOrBuilder()

public DurationOrBuilder getStartTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive).

.google.protobuf.Duration start_time_offset = 1;

Returns
TypeDescription
DurationOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEndTimeOffset()

public boolean hasEndTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive).

.google.protobuf.Duration end_time_offset = 2;

Returns
TypeDescription
boolean

Whether the endTimeOffset field is set.

hasStartTimeOffset()

public boolean hasStartTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive).

.google.protobuf.Duration start_time_offset = 1;

Returns
TypeDescription
boolean

Whether the startTimeOffset field is set.

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 VideoSegment.Builder newBuilderForType()
Returns
TypeDescription
VideoSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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