Class TimeSpan.Builder (3.54.0)

public static final class TimeSpan.Builder extends GeneratedMessageV3.Builder<TimeSpan.Builder> implements TimeSpanOrBuilder

Start and end times for a build execution phase.

Protobuf type google.devtools.cloudbuild.v1.TimeSpan

Implements

TimeSpanOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSpan build()
Returns
Type Description
TimeSpan

buildPartial()

public TimeSpan buildPartial()
Returns
Type Description
TimeSpan

clear()

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

clearEndTime()

public TimeSpan.Builder clearEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimeSpan.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public TimeSpan.Builder clearStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimeSpan.Builder

clone()

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

getDefaultInstanceForType()

public TimeSpan getDefaultInstanceForType()
Returns
Type Description
TimeSpan

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public TimeSpan.Builder mergeEndTime(Timestamp value)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeSpan.Builder

mergeFrom(TimeSpan other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public TimeSpan.Builder mergeStartTime(Timestamp value)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeSpan.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public TimeSpan.Builder setEndTime(Timestamp value)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeSpan.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimeSpan.Builder setEndTime(Timestamp.Builder builderForValue)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeSpan.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(Timestamp value)

public TimeSpan.Builder setStartTime(Timestamp value)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeSpan.Builder

setStartTime(Timestamp.Builder builderForValue)

public TimeSpan.Builder setStartTime(Timestamp.Builder builderForValue)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeSpan.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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