Class TimePartConfig (3.31.0)

public final class TimePartConfig extends GeneratedMessageV3 implements TimePartConfigOrBuilder

For use with Date, Timestamp, and TimeOfDay, extract or preserve a portion of the value.

Protobuf type google.privacy.dlp.v2.TimePartConfig

Static Fields

PART_TO_EXTRACT_FIELD_NUMBER

public static final int PART_TO_EXTRACT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimePartConfig getDefaultInstance()
Returns
TypeDescription
TimePartConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TimePartConfig.Builder newBuilder()
Returns
TypeDescription
TimePartConfig.Builder

newBuilder(TimePartConfig prototype)

public static TimePartConfig.Builder newBuilder(TimePartConfig prototype)
Parameter
NameDescription
prototypeTimePartConfig
Returns
TypeDescription
TimePartConfig.Builder

parseDelimitedFrom(InputStream input)

public static TimePartConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimePartConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimePartConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimePartConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimePartConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimePartConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimePartConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimePartConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimePartConfig> parser()
Returns
TypeDescription
Parser<TimePartConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TimePartConfig getDefaultInstanceForType()
Returns
TypeDescription
TimePartConfig

getParserForType()

public Parser<TimePartConfig> getParserForType()
Returns
TypeDescription
Parser<TimePartConfig>
Overrides

getPartToExtract()

public TimePartConfig.TimePart getPartToExtract()

The part of the time to keep.

.google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1;

Returns
TypeDescription
TimePartConfig.TimePart

The partToExtract.

getPartToExtractValue()

public int getPartToExtractValue()

The part of the time to keep.

.google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for partToExtract.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TimePartConfig.Builder newBuilderForType()
Returns
TypeDescription
TimePartConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimePartConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimePartConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TimePartConfig.Builder toBuilder()
Returns
TypeDescription
TimePartConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException