Send feedback
Class AuditContext (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
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()
AuditContext(AuditContext)
public AuditContext(AuditContext other)
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; }
Descriptor
public static MessageDescriptor Descriptor { get; }
Parser
public static MessageParser<AuditContext> Parser { get; }
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()
Returns
Type
Description
int
Clone()
public AuditContext Clone()
Equals(AuditContext)
public bool Equals(AuditContext other)
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)
MergeFrom(AuditContext)
public void MergeFrom(AuditContext other)
ToString()
public override string ToString()
Returns
Type
Description
string
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]