Send feedback
Class AuditContext (2.23.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.23.1 keyboard_arrow_down
public final class AuditContext extends GeneratedMessageV3 implements AuditContextOrBuilder
AuditContext
provides information that is needed for audit logging.
Protobuf type google.rpc.context.AuditContext
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
AUDIT_LOG_FIELD_NUMBER
public static final int AUDIT_LOG_FIELD_NUMBER
Field Value Type Description int
SCRUBBED_REQUEST_FIELD_NUMBER
public static final int SCRUBBED_REQUEST_FIELD_NUMBER
Field Value Type Description int
SCRUBBED_RESPONSE_FIELD_NUMBER
public static final int SCRUBBED_RESPONSE_FIELD_NUMBER
Field Value Type Description int
SCRUBBED_RESPONSE_ITEM_COUNT_FIELD_NUMBER
public static final int SCRUBBED_RESPONSE_ITEM_COUNT_FIELD_NUMBER
Field Value Type Description int
TARGET_RESOURCE_FIELD_NUMBER
public static final int TARGET_RESOURCE_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static AuditContext getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AuditContext . Builder newBuilder ()
newBuilder(AuditContext prototype)
public static AuditContext . Builder newBuilder ( AuditContext prototype )
parseDelimitedFrom(InputStream input)
public static AuditContext parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AuditContext parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AuditContext parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static AuditContext parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static AuditContext parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AuditContext parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuditContext parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AuditContext> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getAuditLog()
public ByteString getAuditLog ()
Serialized audit log.
bytes audit_log = 1;
getDefaultInstanceForType()
public AuditContext getDefaultInstanceForType ()
getParserForType()
public Parser<AuditContext> getParserForType ()
Overrides
getScrubbedRequest()
public Struct getScrubbedRequest ()
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.
.google.protobuf.Struct scrubbed_request = 2;
Returns Type Description Struct
The scrubbedRequest.
getScrubbedRequestOrBuilder()
public StructOrBuilder getScrubbedRequestOrBuilder ()
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.
.google.protobuf.Struct scrubbed_request = 2;
getScrubbedResponse()
public Struct getScrubbedResponse ()
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.
.google.protobuf.Struct scrubbed_response = 3;
Returns Type Description Struct
The scrubbedResponse.
getScrubbedResponseItemCount()
public int getScrubbedResponseItemCount ()
Number of scrubbed response items.
int32 scrubbed_response_item_count = 4;
Returns Type Description int
The scrubbedResponseItemCount.
getScrubbedResponseOrBuilder()
public StructOrBuilder getScrubbedResponseOrBuilder ()
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.
.google.protobuf.Struct scrubbed_response = 3;
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getTargetResource()
public String getTargetResource ()
Audit resource name which is scrubbed.
string target_resource = 5;
Returns Type Description String
The targetResource.
getTargetResourceBytes()
public ByteString getTargetResourceBytes ()
Audit resource name which is scrubbed.
string target_resource = 5;
Returns Type Description ByteString
The bytes for targetResource.
hasScrubbedRequest()
public boolean hasScrubbedRequest ()
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.
.google.protobuf.Struct scrubbed_request = 2;
Returns Type Description boolean
Whether the scrubbedRequest field is set.
hasScrubbedResponse()
public boolean hasScrubbedResponse ()
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.
.google.protobuf.Struct scrubbed_response = 3;
Returns Type Description boolean
Whether the scrubbedResponse field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AuditContext . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuditContext . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public AuditContext . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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 2025-01-27 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 2025-01-27 UTC."],[],[]]