Class TimeSpan.Builder (3.5.4)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSpan build()
Returns
TypeDescription
TimeSpan

buildPartial()

public TimeSpan buildPartial()
Returns
TypeDescription
TimeSpan

clear()

public TimeSpan.Builder clear()
Returns
TypeDescription
TimeSpan.Builder
Overrides

clearEndTime()

public TimeSpan.Builder clearEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimeSpan.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeSpan.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimeSpan.Builder
Overrides

clearStartTime()

public TimeSpan.Builder clearStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimeSpan.Builder

clone()

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

getDefaultInstanceForType()

public TimeSpan getDefaultInstanceForType()
Returns
TypeDescription
TimeSpan

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End of time span.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public TimeSpan.Builder mergeEndTime(Timestamp value)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeSpan.Builder

mergeFrom(TimeSpan other)

public TimeSpan.Builder mergeFrom(TimeSpan other)
Parameter
NameDescription
otherTimeSpan
Returns
TypeDescription
TimeSpan.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TimeSpan.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimeSpan.Builder
Overrides

mergeStartTime(Timestamp value)

public TimeSpan.Builder mergeStartTime(Timestamp value)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeSpan.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeSpan.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimeSpan.Builder
Overrides

setEndTime(Timestamp value)

public TimeSpan.Builder setEndTime(Timestamp value)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeSpan.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimeSpan.Builder setEndTime(Timestamp.Builder builderForValue)

End of time span.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimeSpan.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TimeSpan.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TimeSpan.Builder
Overrides

setStartTime(Timestamp value)

public TimeSpan.Builder setStartTime(Timestamp value)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeSpan.Builder

setStartTime(Timestamp.Builder builderForValue)

public TimeSpan.Builder setStartTime(Timestamp.Builder builderForValue)

Start of time span.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimeSpan.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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