Class LogDescriptor
A description of a log type. Example in YAML format:
- name: library.googleapis.com/activity_history
description: The history of borrowing and returning library items.
display_name: Activity
labels:
- key: /customer_id
description: Identifier of a library customer
Inheritance
System.Object
LogDescriptor
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class LogDescriptor : IMessage<LogDescriptor>, IMessage, IEquatable<LogDescriptor>, IDeepCloneable<LogDescriptor>
Constructors
LogDescriptor()
Declaration
LogDescriptor(LogDescriptor)
Declaration
public LogDescriptor(LogDescriptor other)
Parameters
Fields
DescriptionFieldNumber
Field number for the "description" field.
Declaration
public const int DescriptionFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
DisplayNameFieldNumber
Field number for the "display_name" field.
Declaration
public const int DisplayNameFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
LabelsFieldNumber
Field number for the "labels" field.
Declaration
public const int LabelsFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Description
A human-readable description of this log. This information appears in
the documentation and can contain details.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
DisplayName
The human-readable name for this log. This information appears on
the user interface and should be concise.
Declaration
public string DisplayName { get; set; }
Property Value
Type |
Description |
System.String |
|
Labels
The set of labels that are available to describe a specific log entry.
Runtime requests that contain labels not specified here are
considered invalid.
Declaration
public RepeatedField<LabelDescriptor> Labels { get; }
Property Value
Name
The name of the log. It must be less than 512 characters long and can
include the following characters: upper- and lower-case alphanumeric
characters [A-Za-z0-9], and punctuation characters including
slash, underscore, hyphen, period [/_-.].
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<LogDescriptor> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public LogDescriptor Clone()
Returns
Implements
Equals(LogDescriptor)
Declaration
public bool Equals(LogDescriptor other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
MergeFrom(LogDescriptor)
Declaration
public void MergeFrom(LogDescriptor other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements