public final class DateTime extends GeneratedMessageV3 implements DateTimeOrBuilder
Message for a date time object.Protobuf type
google.privacy.dlp.v2.DateTime
Modifier and Type | Class and Description |
---|---|
static class |
DateTime.Builder
Message for a date time object.
|
static class |
DateTime.TimeZone
Protobuf type
google.privacy.dlp.v2.DateTime.TimeZone |
static interface |
DateTime.TimeZoneOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
DATE_FIELD_NUMBER |
static int |
DAY_OF_WEEK_FIELD_NUMBER |
static int |
TIME_FIELD_NUMBER |
static int |
TIME_ZONE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Date |
getDate()
One or more of the following must be set.
|
DateOrBuilder |
getDateOrBuilder()
One or more of the following must be set.
|
DayOfWeek |
getDayOfWeek()
.google.type.DayOfWeek day_of_week = 2; |
int |
getDayOfWeekValue()
.google.type.DayOfWeek day_of_week = 2; |
static DateTime |
getDefaultInstance() |
DateTime |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<DateTime> |
getParserForType() |
int |
getSerializedSize() |
TimeOfDay |
getTime()
.google.type.TimeOfDay time = 3; |
TimeOfDayOrBuilder |
getTimeOrBuilder()
.google.type.TimeOfDay time = 3; |
DateTime.TimeZone |
getTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; |
DateTime.TimeZoneOrBuilder |
getTimeZoneOrBuilder()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasDate()
One or more of the following must be set.
|
int |
hashCode() |
boolean |
hasTime()
.google.type.TimeOfDay time = 3; |
boolean |
hasTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DateTime.Builder |
newBuilder() |
static DateTime.Builder |
newBuilder(DateTime prototype) |
DateTime.Builder |
newBuilderForType() |
protected DateTime.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static DateTime |
parseDelimitedFrom(java.io.InputStream input) |
static DateTime |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DateTime |
parseFrom(byte[] data) |
static DateTime |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DateTime |
parseFrom(java.nio.ByteBuffer data) |
static DateTime |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DateTime |
parseFrom(ByteString data) |
static DateTime |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DateTime |
parseFrom(CodedInputStream input) |
static DateTime |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DateTime |
parseFrom(java.io.InputStream input) |
static DateTime |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DateTime> |
parser() |
DateTime.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int DATE_FIELD_NUMBER
public static final int DAY_OF_WEEK_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasDate()
One or more of the following must be set. All fields are optional, but when set must be valid date or time values.
.google.type.Date date = 1;
hasDate
in interface DateTimeOrBuilder
public Date getDate()
One or more of the following must be set. All fields are optional, but when set must be valid date or time values.
.google.type.Date date = 1;
getDate
in interface DateTimeOrBuilder
public DateOrBuilder getDateOrBuilder()
One or more of the following must be set. All fields are optional, but when set must be valid date or time values.
.google.type.Date date = 1;
getDateOrBuilder
in interface DateTimeOrBuilder
public int getDayOfWeekValue()
.google.type.DayOfWeek day_of_week = 2;
getDayOfWeekValue
in interface DateTimeOrBuilder
public DayOfWeek getDayOfWeek()
.google.type.DayOfWeek day_of_week = 2;
getDayOfWeek
in interface DateTimeOrBuilder
public boolean hasTime()
.google.type.TimeOfDay time = 3;
hasTime
in interface DateTimeOrBuilder
public TimeOfDay getTime()
.google.type.TimeOfDay time = 3;
getTime
in interface DateTimeOrBuilder
public TimeOfDayOrBuilder getTimeOrBuilder()
.google.type.TimeOfDay time = 3;
getTimeOrBuilder
in interface DateTimeOrBuilder
public boolean hasTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
hasTimeZone
in interface DateTimeOrBuilder
public DateTime.TimeZone getTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
getTimeZone
in interface DateTimeOrBuilder
public DateTime.TimeZoneOrBuilder getTimeZoneOrBuilder()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;
getTimeZoneOrBuilder
in interface DateTimeOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static DateTime parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DateTime parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DateTime parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DateTime parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DateTime parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DateTime parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static DateTime parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public DateTime.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DateTime.Builder newBuilder()
public static DateTime.Builder newBuilder(DateTime prototype)
public DateTime.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DateTime.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static DateTime getDefaultInstance()
public Parser<DateTime> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DateTime getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder