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, unknownFieldsmemoizedSizememoizedHashCode| 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 DateTimeOrBuilderpublic 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 DateTimeOrBuilderpublic 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 DateTimeOrBuilderpublic int getDayOfWeekValue()
.google.type.DayOfWeek day_of_week = 2;getDayOfWeekValue in interface DateTimeOrBuilderpublic DayOfWeek getDayOfWeek()
.google.type.DayOfWeek day_of_week = 2;getDayOfWeek in interface DateTimeOrBuilderpublic boolean hasTime()
.google.type.TimeOfDay time = 3;hasTime in interface DateTimeOrBuilderpublic TimeOfDay getTime()
.google.type.TimeOfDay time = 3;getTime in interface DateTimeOrBuilderpublic TimeOfDayOrBuilder getTimeOrBuilder()
.google.type.TimeOfDay time = 3;getTimeOrBuilder in interface DateTimeOrBuilderpublic boolean hasTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;hasTimeZone in interface DateTimeOrBuilderpublic DateTime.TimeZone getTimeZone()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;getTimeZone in interface DateTimeOrBuilderpublic DateTime.TimeZoneOrBuilder getTimeZoneOrBuilder()
.google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4;getTimeZoneOrBuilder in interface DateTimeOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static DateTime parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DateTime parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static DateTime parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static DateTime parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static DateTime parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static DateTime parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static DateTime parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic DateTime.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static DateTime.Builder newBuilder()
public static DateTime.Builder newBuilder(DateTime prototype)
public DateTime.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected DateTime.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static DateTime getDefaultInstance()
public Parser<DateTime> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public DateTime getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder