Class DateTimeArray.Builder (0.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.type.DateTime>
Returns
TypeDescription
DateTimeArray.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DateTimeArray.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
DateTimeArray.Builder

addValuesBuilder()

public DateTime.Builder addValuesBuilder()

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

repeated .google.type.DateTime values = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.type.DateTime.Builder

build()

public DateTimeArray build()
Returns
TypeDescription
DateTimeArray

buildPartial()

public DateTimeArray buildPartial()
Returns
TypeDescription
DateTimeArray

clear()

public DateTimeArray.Builder clear()
Returns
TypeDescription
DateTimeArray.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DateTimeArray.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DateTimeArray.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DateTimeArray.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DateTimeArray.Builder

clone()

public DateTimeArray.Builder clone()
Returns
TypeDescription
DateTimeArray.Builder
Overrides

getDefaultInstanceForType()

public DateTimeArray getDefaultInstanceForType()
Returns
TypeDescription
DateTimeArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

getValuesList()

public List<DateTime> getValuesList()

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

repeated .google.type.DateTime values = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.type.DateTimeOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DateTimeArray other)

public DateTimeArray.Builder mergeFrom(DateTimeArray other)
Parameter
NameDescription
otherDateTimeArray
Returns
TypeDescription
DateTimeArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DateTimeArray.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DateTimeArray.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DateTimeArray.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DateTimeArray.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DateTimeArray.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DateTimeArray.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DateTimeArray.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DateTimeArray.Builder
Overrides

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

public DateTimeArray.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DateTimeArray.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DateTimeArray.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
DateTimeArray.Builder