Class DateTimeRange.Builder (0.40.0)

public static final class DateTimeRange.Builder extends GeneratedMessage.Builder<DateTimeRange.Builder> implements DateTimeRangeOrBuilder

Datetime range type.

Protobuf type google.cloud.visionai.v1.DateTimeRange

Static Methods

getDescriptor()

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

Methods

build()

public DateTimeRange build()
Returns
Type Description
DateTimeRange

buildPartial()

public DateTimeRange buildPartial()
Returns
Type Description
DateTimeRange

clear()

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

clearEnd()

public DateTimeRange.Builder clearEnd()

End data time.

.google.type.DateTime end = 2;

Returns
Type Description
DateTimeRange.Builder

clearStart()

public DateTimeRange.Builder clearStart()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
DateTimeRange.Builder

getDefaultInstanceForType()

public DateTimeRange getDefaultInstanceForType()
Returns
Type Description
DateTimeRange

getDescriptorForType()

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

getEnd()

public DateTime getEnd()

End data time.

.google.type.DateTime end = 2;

Returns
Type Description
com.google.type.DateTime

The end.

getEndBuilder()

public DateTime.Builder getEndBuilder()

End data time.

.google.type.DateTime end = 2;

Returns
Type Description
com.google.type.DateTime.Builder

getEndOrBuilder()

public DateTimeOrBuilder getEndOrBuilder()

End data time.

.google.type.DateTime end = 2;

Returns
Type Description
com.google.type.DateTimeOrBuilder

getStart()

public DateTime getStart()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
com.google.type.DateTime

The start.

getStartBuilder()

public DateTime.Builder getStartBuilder()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
com.google.type.DateTime.Builder

getStartOrBuilder()

public DateTimeOrBuilder getStartOrBuilder()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
com.google.type.DateTimeOrBuilder

hasEnd()

public boolean hasEnd()

End data time.

.google.type.DateTime end = 2;

Returns
Type Description
boolean

Whether the end field is set.

hasStart()

public boolean hasStart()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEnd(DateTime value)

public DateTimeRange.Builder mergeEnd(DateTime value)

End data time.

.google.type.DateTime end = 2;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateTimeRange.Builder

mergeFrom(DateTimeRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStart(DateTime value)

public DateTimeRange.Builder mergeStart(DateTime value)

Start date time.

.google.type.DateTime start = 1;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateTimeRange.Builder

setEnd(DateTime value)

public DateTimeRange.Builder setEnd(DateTime value)

End data time.

.google.type.DateTime end = 2;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateTimeRange.Builder

setEnd(DateTime.Builder builderForValue)

public DateTimeRange.Builder setEnd(DateTime.Builder builderForValue)

End data time.

.google.type.DateTime end = 2;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateTimeRange.Builder

setStart(DateTime value)

public DateTimeRange.Builder setStart(DateTime value)

Start date time.

.google.type.DateTime start = 1;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
DateTimeRange.Builder

setStart(DateTime.Builder builderForValue)

public DateTimeRange.Builder setStart(DateTime.Builder builderForValue)

Start date time.

.google.type.DateTime start = 1;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateTimeRange.Builder