Class VideoSegment.Builder (2.52.0)

public static final class VideoSegment.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoSegment.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public VideoSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoSegment.Builder
Overrides

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoSegment.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public VideoSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoSegment.Builder
Overrides

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

public VideoSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoSegment.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoSegment.Builder
Overrides