public sealed class Key.Types.PathElement : IMessage<Key.Types.PathElement>, IEquatable<Key.Types.PathElement>, IDeepCloneable<Key.Types.PathElement>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class Key.Types.PathElement.
A (kind, ID/name) pair used to construct a key path.
If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Implements
IMessageKeyTypesPathElement, IEquatableKeyTypesPathElement, IDeepCloneableKeyTypesPathElement, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
PathElement()
public PathElement()
PathElement(PathElement)
public PathElement(Key.Types.PathElement other)
Parameter | |
---|---|
Name | Description |
other | KeyTypesPathElement |
Properties
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
bool |
Id
public long Id { get; set; }
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Property Value | |
---|---|
Type | Description |
long |
IdTypeCase
public Key.Types.PathElement.IdTypeOneofCase IdTypeCase { get; }
Property Value | |
---|---|
Type | Description |
KeyTypesPathElementIdTypeOneofCase |
Kind
public string Kind { get; set; }
The kind of the entity.
A kind matching regex __.*__
is reserved/read-only.
A kind must not contain more than 1500 bytes when UTF-8 encoded.
Cannot be ""
.
Property Value | |
---|---|
Type | Description |
string |
Name
public string Name { get; set; }
The name of the entity.
A name matching regex __.*__
is reserved/read-only.
A name must not be more than 1500 bytes when UTF-8 encoded.
Cannot be ""
.
Property Value | |
---|---|
Type | Description |
string |