Send feedback
Class TimeWindow.Builder (3.7.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.7.1 keyboard_arrow_down
public static final class TimeWindow . Builder extends GeneratedMessageV3 . Builder<TimeWindow . Builder > implements TimeWindowOrBuilder
A time window specified by its start_time
and end_time
.
Protobuf type google.cloud.asset.v1.TimeWindow
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeWindow . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public TimeWindow build ()
Returns
buildPartial()
public TimeWindow buildPartial ()
Returns
clear()
public TimeWindow . Builder clear ()
Returns
Overrides
clearEndTime()
public TimeWindow . Builder clearEndTime ()
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public TimeWindow . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeWindow . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearStartTime()
public TimeWindow . Builder clearStartTime ()
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Returns
clone()
public TimeWindow . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public TimeWindow getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getEndTime()
public Timestamp getEndTime ()
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Returns
getEndTimeBuilder()
public Timestamp . Builder getEndTimeBuilder ()
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Returns
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder ()
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Returns
getStartTime()
public Timestamp getStartTime ()
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Returns
getStartTimeBuilder()
public Timestamp . Builder getStartTimeBuilder ()
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder ()
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Returns
hasEndTime()
public boolean hasEndTime ()
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Returns
Type Description boolean Whether the endTime field is set.
hasStartTime()
public boolean hasStartTime ()
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Returns
Type Description boolean Whether the startTime field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeEndTime(Timestamp value)
public TimeWindow . Builder mergeEndTime ( Timestamp value )
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Parameter
Returns
mergeFrom(TimeWindow other)
public TimeWindow . Builder mergeFrom ( TimeWindow other )
Parameter
Returns
public TimeWindow . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TimeWindow . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeStartTime(Timestamp value)
public TimeWindow . Builder mergeStartTime ( Timestamp value )
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeWindow . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setEndTime(Timestamp value)
public TimeWindow . Builder setEndTime ( Timestamp value )
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Parameter
Returns
setEndTime(Timestamp.Builder builderForValue)
public TimeWindow . Builder setEndTime ( Timestamp . Builder builderForValue )
End time of the time window (inclusive). If not specified, the current
timestamp is used instead.
.google.protobuf.Timestamp end_time = 2;
Parameter
Name Description builderForValue Builder
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TimeWindow . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeWindow . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setStartTime(Timestamp value)
public TimeWindow . Builder setStartTime ( Timestamp value )
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Parameter
Returns
setStartTime(Timestamp.Builder builderForValue)
public TimeWindow . Builder setStartTime ( Timestamp . Builder builderForValue )
Start time of the time window (exclusive).
.google.protobuf.Timestamp start_time = 1;
Parameter
Name Description builderForValue Builder
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeWindow . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]