Class VideoSegment.Builder (2.82.0)

public static final class VideoSegment.Builder extends GeneratedMessage.Builder<VideoSegment.Builder> implements VideoSegmentOrBuilder

Video segment.

Protobuf type google.cloud.videointelligence.v1p3beta1.VideoSegment

Static Methods

getDescriptor()

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

Methods

build()

public VideoSegment build()
Returns
Type Description
VideoSegment

buildPartial()

public VideoSegment buildPartial()
Returns
Type Description
VideoSegment

clear()

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

clearEndTimeOffset()

public VideoSegment.Builder clearEndTimeOffset()

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
Type Description
VideoSegment.Builder

clearStartTimeOffset()

public VideoSegment.Builder clearStartTimeOffset()

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
Type Description
VideoSegment.Builder

getDefaultInstanceForType()

public VideoSegment getDefaultInstanceForType()
Returns
Type Description
VideoSegment

getDescriptorForType()

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

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
Type Description
Duration

The endTimeOffset.

getEndTimeOffsetBuilder()

public Duration.Builder getEndTimeOffsetBuilder()

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
Type Description
Builder

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
Type Description
DurationOrBuilder

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
Type Description
Duration

The startTimeOffset.

getStartTimeOffsetBuilder()

public Duration.Builder getStartTimeOffsetBuilder()

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
Type Description
Builder

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
Type Description
DurationOrBuilder

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
Type Description
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
Type Description
boolean

Whether the startTimeOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTimeOffset(Duration value)

public VideoSegment.Builder mergeEndTimeOffset(Duration value)

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

.google.protobuf.Duration end_time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
VideoSegment.Builder

mergeFrom(VideoSegment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTimeOffset(Duration value)

public VideoSegment.Builder mergeStartTimeOffset(Duration value)

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

.google.protobuf.Duration start_time_offset = 1;

Parameter
Name Description
value Duration
Returns
Type Description
VideoSegment.Builder

setEndTimeOffset(Duration value)

public VideoSegment.Builder setEndTimeOffset(Duration value)

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

.google.protobuf.Duration end_time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
VideoSegment.Builder

setEndTimeOffset(Duration.Builder builderForValue)

public VideoSegment.Builder setEndTimeOffset(Duration.Builder builderForValue)

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

.google.protobuf.Duration end_time_offset = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoSegment.Builder

setStartTimeOffset(Duration value)

public VideoSegment.Builder setStartTimeOffset(Duration value)

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

.google.protobuf.Duration start_time_offset = 1;

Parameter
Name Description
value Duration
Returns
Type Description
VideoSegment.Builder

setStartTimeOffset(Duration.Builder builderForValue)

public VideoSegment.Builder setStartTimeOffset(Duration.Builder builderForValue)

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

.google.protobuf.Duration start_time_offset = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoSegment.Builder