Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DocumentLocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Location of a finding within a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DocumentLocation

Returns a new instance of GooglePrivacyDlpV2DocumentLocation.



4292
4293
4294
# File 'lib/google/apis/dlp_v2/classes.rb', line 4292

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#file_offsetFixnum

Offset of the line, from the beginning of the file, where the finding is located. Corresponds to the JSON property fileOffset

Returns:

  • (Fixnum)


4290
4291
4292
# File 'lib/google/apis/dlp_v2/classes.rb', line 4290

def file_offset
  @file_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4297
4298
4299
# File 'lib/google/apis/dlp_v2/classes.rb', line 4297

def update!(**args)
  @file_offset = args[:file_offset] if args.key?(:file_offset)
end