Class AuditContext (2.44.0)

public final class AuditContext extends GeneratedMessageV3 implements AuditContextOrBuilder

AuditContext provides information that is needed for audit logging.

Protobuf type google.rpc.context.AuditContext

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()
Returns
Type Description
AuditContext

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AuditContext.Builder newBuilder()
Returns
Type Description
AuditContext.Builder

newBuilder(AuditContext prototype)

public static AuditContext.Builder newBuilder(AuditContext prototype)
Parameter
Name Description
prototype AuditContext
Returns
Type Description
AuditContext.Builder

parseDelimitedFrom(InputStream input)

public static AuditContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuditContext parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuditContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuditContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuditContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuditContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuditContext> parser()
Returns
Type Description
Parser<AuditContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAuditLog()

public ByteString getAuditLog()

Serialized audit log.

bytes audit_log = 1;

Returns
Type Description
ByteString

The auditLog.

getDefaultInstanceForType()

public AuditContext getDefaultInstanceForType()
Returns
Type Description
AuditContext

getParserForType()

public Parser<AuditContext> getParserForType()
Returns
Type Description
Parser<AuditContext>
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;

Returns
Type Description
StructOrBuilder

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;

Returns
Type Description
StructOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuditContext.Builder newBuilderForType()
Returns
Type Description
AuditContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AuditContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuditContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AuditContext.Builder toBuilder()
Returns
Type Description
AuditContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException