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()
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)