Class: Google::Cloud::Dlp::V2::ByteContentItem

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

Overview

Container for bytes to inspect or redact.

Defined Under Namespace

Modules: BytesType

Instance Attribute Summary collapse

Instance Attribute Details

#data::String

Returns Content data to inspect or redact.

Returns:

  • (::String)

    Content data to inspect or redact.



266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 266

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

  # The type of data being sent for inspection. To learn more, see
  # [Supported file
  # types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types).
  module BytesType
    # Unused
    BYTES_TYPE_UNSPECIFIED = 0

    # Any image type.
    IMAGE = 6

    # jpeg
    IMAGE_JPEG = 1

    # bmp
    IMAGE_BMP = 2

    # png
    IMAGE_PNG = 3

    # svg
    IMAGE_SVG = 4

    # plain text
    TEXT_UTF8 = 5

    # docx, docm, dotx, dotm
    WORD_DOCUMENT = 7

    # pdf
    PDF = 8

    # pptx, pptm, potx, potm, pot
    POWERPOINT_DOCUMENT = 9

    # xlsx, xlsm, xltx, xltm
    EXCEL_DOCUMENT = 10

    # avro
    AVRO = 11

    # csv
    CSV = 12

    # tsv
    TSV = 13

    # Audio file types. Only used for profiling.
    AUDIO = 15

    # Video file types. Only used for profiling.
    VIDEO = 16

    # Executable file types. Only used for profiling.
    EXECUTABLE = 17
  end
end

#type::Google::Cloud::Dlp::V2::ByteContentItem::BytesType

Returns The type of data stored in the bytes string. Default will be TEXT_UTF8.

Returns:



266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 266

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

  # The type of data being sent for inspection. To learn more, see
  # [Supported file
  # types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types).
  module BytesType
    # Unused
    BYTES_TYPE_UNSPECIFIED = 0

    # Any image type.
    IMAGE = 6

    # jpeg
    IMAGE_JPEG = 1

    # bmp
    IMAGE_BMP = 2

    # png
    IMAGE_PNG = 3

    # svg
    IMAGE_SVG = 4

    # plain text
    TEXT_UTF8 = 5

    # docx, docm, dotx, dotm
    WORD_DOCUMENT = 7

    # pdf
    PDF = 8

    # pptx, pptm, potx, potm, pot
    POWERPOINT_DOCUMENT = 9

    # xlsx, xlsm, xltx, xltm
    EXCEL_DOCUMENT = 10

    # avro
    AVRO = 11

    # csv
    CSV = 12

    # tsv
    TSV = 13

    # Audio file types. Only used for profiling.
    AUDIO = 15

    # Video file types. Only used for profiling.
    VIDEO = 16

    # Executable file types. Only used for profiling.
    EXECUTABLE = 17
  end
end