Show / Hide Table of Contents

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
Implements
IMessage<LogDescriptor>
IMessage
System.IEquatable<LogDescriptor>
IDeepCloneable<LogDescriptor>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class LogDescriptor : IMessage<LogDescriptor>, IMessage, IEquatable<LogDescriptor>, IDeepCloneable<LogDescriptor>

Constructors

LogDescriptor()

Declaration
public LogDescriptor()

LogDescriptor(LogDescriptor)

Declaration
public LogDescriptor(LogDescriptor other)
Parameters
Type Name Description
LogDescriptor other

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
Type Description
MessageDescriptor

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
Type Description
RepeatedField<LabelDescriptor>

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
Type Description
MessageParser<LogDescriptor>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public LogDescriptor Clone()
Returns
Type Description
LogDescriptor
Implements
IDeepCloneable<T>.Clone()

Equals(LogDescriptor)

Declaration
public bool Equals(LogDescriptor other)
Parameters
Type Name Description
LogDescriptor other
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
Type Name Description
LogDescriptor other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top