Class AuditContext (2.37.1)

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
TypeDescription
int

SCRUBBED_REQUEST_FIELD_NUMBER

public static final int SCRUBBED_REQUEST_FIELD_NUMBER
Field Value
TypeDescription
int

SCRUBBED_RESPONSE_FIELD_NUMBER

public static final int SCRUBBED_RESPONSE_FIELD_NUMBER
Field Value
TypeDescription
int

SCRUBBED_RESPONSE_ITEM_COUNT_FIELD_NUMBER

public static final int SCRUBBED_RESPONSE_ITEM_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_RESOURCE_FIELD_NUMBER

public static final int TARGET_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AuditContext getDefaultInstance()
Returns
TypeDescription
AuditContext

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AuditContext.Builder newBuilder()
Returns
TypeDescription
AuditContext.Builder

newBuilder(AuditContext prototype)

public static AuditContext.Builder newBuilder(AuditContext prototype)
Parameter
NameDescription
prototypeAuditContext
Returns
TypeDescription
AuditContext.Builder

parseDelimitedFrom(InputStream input)

public static AuditContext parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AuditContext parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuditContext parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuditContext parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AuditContext parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AuditContext parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuditContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AuditContext> parser()
Returns
TypeDescription
Parser<AuditContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAuditLog()

public ByteString getAuditLog()

Serialized audit log.

bytes audit_log = 1;

Returns
TypeDescription
ByteString

The auditLog.

getDefaultInstanceForType()

public AuditContext getDefaultInstanceForType()
Returns
TypeDescription
AuditContext

getParserForType()

public Parser<AuditContext> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Struct

The scrubbedResponse.

getScrubbedResponseItemCount()

public int getScrubbedResponseItemCount()

Number of scrubbed response items.

int32 scrubbed_response_item_count = 4;

Returns
TypeDescription
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
TypeDescription
StructOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetResource()

public String getTargetResource()

Audit resource name which is scrubbed.

string target_resource = 5;

Returns
TypeDescription
String

The targetResource.

getTargetResourceBytes()

public ByteString getTargetResourceBytes()

Audit resource name which is scrubbed.

string target_resource = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the scrubbedResponse field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AuditContext.Builder newBuilderForType()
Returns
TypeDescription
AuditContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AuditContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AuditContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AuditContext.Builder toBuilder()
Returns
TypeDescription
AuditContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException