Class VideoSegment.Builder (2.29.0)

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

Video segment.

Protobuf type google.cloud.videointelligence.v1p1beta1.VideoSegment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoSegment.Builder
Overrides

build()

public VideoSegment build()
Returns
TypeDescription
VideoSegment

buildPartial()

public VideoSegment buildPartial()
Returns
TypeDescription
VideoSegment

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VideoSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VideoSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VideoSegment.Builder

clone()

public VideoSegment.Builder clone()
Returns
TypeDescription
VideoSegment.Builder
Overrides

getDefaultInstanceForType()

public VideoSegment getDefaultInstanceForType()
Returns
TypeDescription
VideoSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
VideoSegment.Builder

mergeFrom(VideoSegment other)

public VideoSegment.Builder mergeFrom(VideoSegment other)
Parameter
NameDescription
otherVideoSegment
Returns
TypeDescription
VideoSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoSegment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VideoSegment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
VideoSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
VideoSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VideoSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoSegment.Builder
Overrides

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

public VideoSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
VideoSegment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoSegment.Builder
Overrides