public sealed class ContentLocation : IMessage<ContentLocation>, IEquatable<ContentLocation>, IDeepCloneable<ContentLocation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ContentLocation.
Precise location of the finding within a document, record, image, or metadata
container.
Name of the container where the finding is located.
The top level name is the source file name or table name. Names of some
common storage containers are formatted as follows:
Finding container modification timestamp, if applicable. For Cloud Storage,
this field contains the last file modification timestamp. For a BigQuery
table, this field contains the last_modified_time property. For Datastore,
this field isn't populated.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContentLocation\u003c/code\u003e class in the Google Cloud Data Loss Prevention v2 API represents the precise location of a finding within various types of data, such as documents, records, images, or metadata containers.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides reference material for the \u003ccode\u003eContentLocation\u003c/code\u003e class, including properties like \u003ccode\u003eContainerName\u003c/code\u003e, \u003ccode\u003eContainerTimestamp\u003c/code\u003e, and \u003ccode\u003eContainerVersion\u003c/code\u003e, which describe the container where the finding was found.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentLocation\u003c/code\u003e class can be instantiated with or without an existing \u003ccode\u003eContentLocation\u003c/code\u003e object, using the provided constructors \u003ccode\u003eContentLocation()\u003c/code\u003e and \u003ccode\u003eContentLocation(ContentLocation other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentLocation\u003c/code\u003e class also includes properties like \u003ccode\u003eDocumentLocation\u003c/code\u003e, \u003ccode\u003eImageLocation\u003c/code\u003e, \u003ccode\u003eMetadataLocation\u003c/code\u003e, and \u003ccode\u003eRecordLocation\u003c/code\u003e to give more detailed location information depending on the data type.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version of the \u003ccode\u003eContentLocation\u003c/code\u003e class is 4.16.0, and this documentation covers other versions as well, from 4.15.0 to 2.15.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Data Loss Prevention v2 API - Class ContentLocation (4.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.18.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.17.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.16.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.15.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.14.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.13.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.12.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.11.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.10.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.9.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.8.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.7.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.6.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.5.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.4.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.3.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.2.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.1.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/4.0.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.5.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.4.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.3.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/3.2.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.16.0/Google.Cloud.Dlp.V2.ContentLocation)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dlp.V2/2.15.0/Google.Cloud.Dlp.V2.ContentLocation) \n\n public sealed class ContentLocation : IMessage\u003cContentLocation\u003e, IEquatable\u003cContentLocation\u003e, IDeepCloneable\u003cContentLocation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ContentLocation.\n\nPrecise location of the finding within a document, record, image, or metadata\ncontainer. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ContentLocation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ContentLocation](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.ContentLocation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ContentLocation](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.ContentLocation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ContentLocation](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.ContentLocation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dlp.V2](/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Dlp.V2.dll\n\nConstructors\n------------\n\n### ContentLocation()\n\n public ContentLocation()\n\n### ContentLocation(ContentLocation)\n\n public ContentLocation(ContentLocation other)\n\nProperties\n----------\n\n### ContainerName\n\n public string ContainerName { get; set; }\n\nName of the container where the finding is located.\nThe top level name is the source file name or table name. Names of some\ncommon storage containers are formatted as follows:\n\n- BigQuery tables: `{project_id}:{dataset_id}.{table_id}`\n- Cloud Storage files: `gs://{bucket}/{path}`\n- Datastore namespace: {namespace}\n\nNested names could be absent if the embedded object has no string\nidentifier (for example, an image contained within a document).\n\n### ContainerTimestamp\n\n public Timestamp ContainerTimestamp { get; set; }\n\nFinding container modification timestamp, if applicable. For Cloud Storage,\nthis field contains the last file modification timestamp. For a BigQuery\ntable, this field contains the last_modified_time property. For Datastore,\nthis field isn't populated.\n\n### ContainerVersion\n\n public string ContainerVersion { get; set; }\n\nFinding container version, if available\n(\"generation\" for Cloud Storage).\n\n### DocumentLocation\n\n public DocumentLocation DocumentLocation { get; set; }\n\nLocation data for document files.\n\n### ImageLocation\n\n public ImageLocation ImageLocation { get; set; }\n\nLocation within an image's pixels.\n\n### LocationCase\n\n public ContentLocation.LocationOneofCase LocationCase { get; }\n\n### MetadataLocation\n\n public MetadataLocation MetadataLocation { get; set; }\n\nLocation within the metadata for inspected content.\n\n### RecordLocation\n\n public RecordLocation RecordLocation { get; set; }\n\nLocation within a row or record of a database table."]]