- 3.59.0 (latest)
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
public static final class DateTime.Builder extends GeneratedMessageV3.Builder<DateTime.Builder> implements DateTimeOrBuilder
Message for a date time object. e.g. 2018-01-01, 5th August.
Protobuf type google.privacy.dlp.v2.DateTime
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DateTime.BuilderImplements
DateTimeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DateTime.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
build()
public DateTime build()
Returns | |
---|---|
Type | Description |
DateTime |
buildPartial()
public DateTime buildPartial()
Returns | |
---|---|
Type | Description |
DateTime |
clear()
public DateTime.Builder clear()
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clearDate()
public DateTime.Builder clearDate()
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clearDayOfWeek()
public DateTime.Builder clearDayOfWeek()
Day of week
.google.type.DayOfWeek day_of_week = 2;
Returns | |
---|---|
Type | Description |
DateTime.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DateTime.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DateTime.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clearTime()
public DateTime.Builder clearTime()
Time of day
.google.type.TimeOfDay time = 3;
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clearTimeZone()
public DateTime.Builder clearTimeZone()
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Returns | |
---|---|
Type | Description |
DateTime.Builder |
clone()
public DateTime.Builder clone()
Returns | |
---|---|
Type | Description |
DateTime.Builder |
getDate()
public Date getDate()
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Returns | |
---|---|
Type | Description |
com.google.type.Date |
The date. |
getDateBuilder()
public Date.Builder getDateBuilder()
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Returns | |
---|---|
Type | Description |
com.google.type.Date.Builder |
getDateOrBuilder()
public DateOrBuilder getDateOrBuilder()
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Returns | |
---|---|
Type | Description |
com.google.type.DateOrBuilder |
getDayOfWeek()
public DayOfWeek getDayOfWeek()
Day of week
.google.type.DayOfWeek day_of_week = 2;
Returns | |
---|---|
Type | Description |
com.google.type.DayOfWeek |
The dayOfWeek. |
getDayOfWeekValue()
public int getDayOfWeekValue()
Day of week
.google.type.DayOfWeek day_of_week = 2;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for dayOfWeek. |
getDefaultInstanceForType()
public DateTime getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DateTime |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getTime()
public TimeOfDay getTime()
Time of day
.google.type.TimeOfDay time = 3;
Returns | |
---|---|
Type | Description |
com.google.type.TimeOfDay |
The time. |
getTimeBuilder()
public TimeOfDay.Builder getTimeBuilder()
Time of day
.google.type.TimeOfDay time = 3;
Returns | |
---|---|
Type | Description |
com.google.type.TimeOfDay.Builder |
getTimeOrBuilder()
public TimeOfDayOrBuilder getTimeOrBuilder()
Time of day
.google.type.TimeOfDay time = 3;
Returns | |
---|---|
Type | Description |
com.google.type.TimeOfDayOrBuilder |
getTimeZone()
public DateTime.TimeZone getTimeZone()
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Returns | |
---|---|
Type | Description |
DateTime.TimeZone |
The timeZone. |
getTimeZoneBuilder()
public DateTime.TimeZone.Builder getTimeZoneBuilder()
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Returns | |
---|---|
Type | Description |
DateTime.TimeZone.Builder |
getTimeZoneOrBuilder()
public DateTime.TimeZoneOrBuilder getTimeZoneOrBuilder()
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Returns | |
---|---|
Type | Description |
DateTime.TimeZoneOrBuilder |
hasDate()
public boolean hasDate()
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the date field is set. |
hasTime()
public boolean hasTime()
Time of day
.google.type.TimeOfDay time = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the time field is set. |
hasTimeZone()
public boolean hasTimeZone()
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the timeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeDate(Date value)
public DateTime.Builder mergeDate(Date value)
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Parameter | |
---|---|
Name | Description |
value |
com.google.type.Date |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
mergeFrom(DateTime other)
public DateTime.Builder mergeFrom(DateTime other)
Parameter | |
---|---|
Name | Description |
other |
DateTime |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DateTime.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DateTime.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
mergeTime(TimeOfDay value)
public DateTime.Builder mergeTime(TimeOfDay value)
Time of day
.google.type.TimeOfDay time = 3;
Parameter | |
---|---|
Name | Description |
value |
com.google.type.TimeOfDay |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
mergeTimeZone(DateTime.TimeZone value)
public DateTime.Builder mergeTimeZone(DateTime.TimeZone value)
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Parameter | |
---|---|
Name | Description |
value |
DateTime.TimeZone |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DateTime.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setDate(Date value)
public DateTime.Builder setDate(Date value)
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Parameter | |
---|---|
Name | Description |
value |
com.google.type.Date |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setDate(Date.Builder builderForValue)
public DateTime.Builder setDate(Date.Builder builderForValue)
One or more of the following must be set. Must be a valid date or time value.
.google.type.Date date = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.type.Date.Builder |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setDayOfWeek(DayOfWeek value)
public DateTime.Builder setDayOfWeek(DayOfWeek value)
Day of week
.google.type.DayOfWeek day_of_week = 2;
Parameter | |
---|---|
Name | Description |
value |
com.google.type.DayOfWeek The dayOfWeek to set. |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
This builder for chaining. |
setDayOfWeekValue(int value)
public DateTime.Builder setDayOfWeekValue(int value)
Day of week
.google.type.DayOfWeek day_of_week = 2;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for dayOfWeek to set. |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DateTime.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DateTime.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setTime(TimeOfDay value)
public DateTime.Builder setTime(TimeOfDay value)
Time of day
.google.type.TimeOfDay time = 3;
Parameter | |
---|---|
Name | Description |
value |
com.google.type.TimeOfDay |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setTime(TimeOfDay.Builder builderForValue)
public DateTime.Builder setTime(TimeOfDay.Builder builderForValue)
Time of day
.google.type.TimeOfDay time = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setTimeZone(DateTime.TimeZone value)
public DateTime.Builder setTimeZone(DateTime.TimeZone value)
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Parameter | |
---|---|
Name | Description |
value |
DateTime.TimeZone |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setTimeZone(DateTime.TimeZone.Builder builderForValue)
public DateTime.Builder setTimeZone(DateTime.TimeZone.Builder builderForValue)
Time zone
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
DateTime.TimeZone.Builder |
Returns | |
---|---|
Type | Description |
DateTime.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DateTime.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DateTime.Builder |