Class DateTimeRange.Builder (0.11.0)

public static final class DateTimeRange.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStart()

public DateTimeRange.Builder clearStart()

Start date time.

.google.type.DateTime start = 1;

Returns
Type Description
DateTimeRange.Builder

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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