Class DateTimeArray.Builder (0.38.0)

public static final class DateTimeArray.Builder extends GeneratedMessageV3.Builder<DateTimeArray.Builder> implements DateTimeArrayOrBuilder

DateTime values.

Protobuf type google.cloud.contentwarehouse.v1.DateTimeArray

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends DateTime> values)

public DateTimeArray.Builder addAllValues(Iterable<? extends DateTime> values)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
values Iterable<? extends com.google.type.DateTime>
Returns
Type Description
DateTimeArray.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(DateTime value)

public DateTimeArray.Builder addValues(DateTime value)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

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

addValues(DateTime.Builder builderForValue)

public DateTimeArray.Builder addValues(DateTime.Builder builderForValue)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

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

addValues(int index, DateTime value)

public DateTimeArray.Builder addValues(int index, DateTime value)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameters
Name Description
index int
value com.google.type.DateTime
Returns
Type Description
DateTimeArray.Builder

addValues(int index, DateTime.Builder builderForValue)

public DateTimeArray.Builder addValues(int index, DateTime.Builder builderForValue)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameters
Name Description
index int
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateTimeArray.Builder

addValuesBuilder()

public DateTime.Builder addValuesBuilder()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

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

addValuesBuilder(int index)

public DateTime.Builder addValuesBuilder(int index)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.DateTime.Builder

build()

public DateTimeArray build()
Returns
Type Description
DateTimeArray

buildPartial()

public DateTimeArray buildPartial()
Returns
Type Description
DateTimeArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public DateTimeArray.Builder clearValues()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Returns
Type Description
DateTimeArray.Builder

clone()

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

getDefaultInstanceForType()

public DateTimeArray getDefaultInstanceForType()
Returns
Type Description
DateTimeArray

getDescriptorForType()

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

getValues(int index)

public DateTime getValues(int index)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.DateTime

getValuesBuilder(int index)

public DateTime.Builder getValuesBuilder(int index)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.DateTime.Builder

getValuesBuilderList()

public List<DateTime.Builder> getValuesBuilderList()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Returns
Type Description
List<com.google.type.DateTime.Builder>

getValuesCount()

public int getValuesCount()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Returns
Type Description
int

getValuesList()

public List<DateTime> getValuesList()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Returns
Type Description
List<com.google.type.DateTime>

getValuesOrBuilder(int index)

public DateTimeOrBuilder getValuesOrBuilder(int index)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.type.DateTimeOrBuilder

getValuesOrBuilderList()

public List<? extends DateTimeOrBuilder> getValuesOrBuilderList()

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Returns
Type Description
List<? extends com.google.type.DateTimeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DateTimeArray other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeValues(int index)

public DateTimeArray.Builder removeValues(int index)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameter
Name Description
index int
Returns
Type Description
DateTimeArray.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, DateTime value)

public DateTimeArray.Builder setValues(int index, DateTime value)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameters
Name Description
index int
value com.google.type.DateTime
Returns
Type Description
DateTimeArray.Builder

setValues(int index, DateTime.Builder builderForValue)

public DateTimeArray.Builder setValues(int index, DateTime.Builder builderForValue)

List of datetime values. Both OffsetDateTime and ZonedDateTime are supported.

repeated .google.type.DateTime values = 1;

Parameters
Name Description
index int
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
DateTimeArray.Builder