Class: Google::Cloud::Dlp::V2::TimePartConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

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

Defined Under Namespace

Modules: TimePart

Instance Attribute Summary collapse

Instance Attribute Details

#part_to_extract::Google::Cloud::Dlp::V2::TimePartConfig::TimePart

Returns The part of the time to keep.

Returns:



2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2453

class TimePartConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Components that make up time.
  module TimePart
    # Unused
    TIME_PART_UNSPECIFIED = 0

    # [0-9999]
    YEAR = 1

    # [1-12]
    MONTH = 2

    # [1-31]
    DAY_OF_MONTH = 3

    # [1-7]
    DAY_OF_WEEK = 4

    # [1-53]
    WEEK_OF_YEAR = 5

    # [0-23]
    HOUR_OF_DAY = 6
  end
end