Class AuditContext (2.15.0)

public sealed class AuditContext : IMessage<AuditContext>, IEquatable<AuditContext>, IDeepCloneable<AuditContext>, IBufferMessage, IMessage

AuditContext provides information that is needed for audit logging.

Inheritance

object > AuditContext

Namespace

Google.Rpc.Context

Assembly

Google.Api.CommonProtos.dll

Constructors

AuditContext()

public AuditContext()

AuditContext(AuditContext)

public AuditContext(AuditContext other)
Parameter
Name Description
other AuditContext

Fields

AuditLogFieldNumber

public const int AuditLogFieldNumber = 1

Field number for the "audit_log" field.

Field Value
Type Description
int

ScrubbedRequestFieldNumber

public const int ScrubbedRequestFieldNumber = 2

Field number for the "scrubbed_request" field.

Field Value
Type Description
int

ScrubbedResponseFieldNumber

public const int ScrubbedResponseFieldNumber = 3

Field number for the "scrubbed_response" field.

Field Value
Type Description
int

ScrubbedResponseItemCountFieldNumber

public const int ScrubbedResponseItemCountFieldNumber = 4

Field number for the "scrubbed_response_item_count" field.

Field Value
Type Description
int

TargetResourceFieldNumber

public const int TargetResourceFieldNumber = 5

Field number for the "target_resource" field.

Field Value
Type Description
int

Properties

AuditLog

public ByteString AuditLog { get; set; }

Serialized audit log.

Property Value
Type Description
ByteString

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

public static MessageParser<AuditContext> Parser { get; }
Property Value
Type Description
MessageParserAuditContext

ScrubbedRequest

public Struct ScrubbedRequest { get; set; }

An API request message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.

Property Value
Type Description
Struct

ScrubbedResponse

public Struct ScrubbedResponse { get; set; }

An API response message that is scrubbed based on the method annotation. This field should only be filled if audit_log field is present. Service Control will use this to assemble a complete log for Cloud Audit Logs and Google internal audit logs.

Property Value
Type Description
Struct

ScrubbedResponseItemCount

public int ScrubbedResponseItemCount { get; set; }

Number of scrubbed response items.

Property Value
Type Description
int

TargetResource

public string TargetResource { get; set; }

Audit resource name which is scrubbed.

Property Value
Type Description
string

Methods

CalculateSize()

public int CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
Type Description
int

The number of bytes required to write this message to a coded output stream.

Clone()

public AuditContext Clone()

Creates a deep clone of this object.

Returns
Type Description
AuditContext

A deep clone of this object.

Equals(AuditContext)

public bool Equals(AuditContext other)
Parameter
Name Description
other AuditContext
Returns
Type Description
bool

Equals(object)

public override bool Equals(object other)
Parameter
Name Description
other object
Returns
Type Description
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
Type Description
int
Overrides

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Merges the data from the specified coded input stream with the current message.

Parameter
Name Description
input CodedInputStream
Remarks

See the user guide for precise merge semantics.

MergeFrom(AuditContext)

public void MergeFrom(AuditContext other)

Merges the given message into this one.

Parameter
Name Description
other AuditContext
Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Writes the data to the given coded output stream.

Parameter
Name Description
output CodedOutputStream

Coded output stream to write the data to. Must not be null.