Class TimePartConfig.Builder

public static final class TimePartConfig.Builder extends GeneratedMessageV3.Builder<TimePartConfig.Builder> implements TimePartConfigOrBuilder

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

Protobuf type google.privacy.dlp.v2.TimePartConfig

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimePartConfig build()
Returns
TypeDescription
TimePartConfig

buildPartial()

public TimePartConfig buildPartial()
Returns
TypeDescription
TimePartConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TimePartConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimePartConfig.Builder
Overrides

clearPartToExtract()

public TimePartConfig.Builder clearPartToExtract()

The part of the time to keep.

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

Returns
TypeDescription
TimePartConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TimePartConfig getDefaultInstanceForType()
Returns
TypeDescription
TimePartConfig

getDescriptor()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimePartConfig other)

public TimePartConfig.Builder mergeFrom(TimePartConfig other)
Parameter
NameDescription
otherTimePartConfig
Returns
TypeDescription
TimePartConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimePartConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimePartConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartToExtract(TimePartConfig.TimePart value)

public TimePartConfig.Builder setPartToExtract(TimePartConfig.TimePart value)

The part of the time to keep.

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

Parameter
NameDescription
valueTimePartConfig.TimePart

The partToExtract to set.

Returns
TypeDescription
TimePartConfig.Builder

This builder for chaining.

setPartToExtractValue(int value)

public TimePartConfig.Builder setPartToExtractValue(int value)

The part of the time to keep.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for partToExtract to set.

Returns
TypeDescription
TimePartConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final TimePartConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimePartConfig.Builder
Overrides