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.events.cloud.cloudbuild.v1.TimeSpan
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TimeSpan.BuilderImplements
TimeSpanOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeSpan.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TimeSpan.Builder |
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 |
getDefaultInstanceForType()
public TimeSpan getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TimeSpan |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TimeSpan.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TimeSpan.Builder |
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 |
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 |
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 |
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 |