Class AuditContext.Builder (2.40.0)

public static final class AuditContext.Builder extends GeneratedMessageV3.Builder<AuditContext.Builder> implements AuditContextOrBuilder

AuditContext provides information that is needed for audit logging.

Protobuf type google.rpc.context.AuditContext

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuditContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuditContext.Builder
Overrides

build()

public AuditContext build()
Returns
Type Description
AuditContext

buildPartial()

public AuditContext buildPartial()
Returns
Type Description
AuditContext

clear()

public AuditContext.Builder clear()
Returns
Type Description
AuditContext.Builder
Overrides

clearAuditLog()

public AuditContext.Builder clearAuditLog()

Serialized audit log.

bytes audit_log = 1;

Returns
Type Description
AuditContext.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuditContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuditContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuditContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuditContext.Builder
Overrides

clearScrubbedRequest()

public AuditContext.Builder clearScrubbedRequest()

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
AuditContext.Builder

clearScrubbedResponse()

public AuditContext.Builder clearScrubbedResponse()

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
AuditContext.Builder

clearScrubbedResponseItemCount()

public AuditContext.Builder clearScrubbedResponseItemCount()

Number of scrubbed response items.

int32 scrubbed_response_item_count = 4;

Returns
Type Description
AuditContext.Builder

This builder for chaining.

clearTargetResource()

public AuditContext.Builder clearTargetResource()

Audit resource name which is scrubbed.

string target_resource = 5;

Returns
Type Description
AuditContext.Builder

This builder for chaining.

clone()

public AuditContext.Builder clone()
Returns
Type Description
AuditContext.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getScrubbedRequestBuilder()

public Struct.Builder getScrubbedRequestBuilder()

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
Builder

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.

getScrubbedResponseBuilder()

public Struct.Builder getScrubbedResponseBuilder()

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
Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuditContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuditContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuditContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuditContext.Builder
Overrides

mergeFrom(AuditContext other)

public AuditContext.Builder mergeFrom(AuditContext other)
Parameter
Name Description
other AuditContext
Returns
Type Description
AuditContext.Builder

mergeScrubbedRequest(Struct value)

public AuditContext.Builder mergeScrubbedRequest(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AuditContext.Builder

mergeScrubbedResponse(Struct value)

public AuditContext.Builder mergeScrubbedResponse(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AuditContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuditContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuditContext.Builder
Overrides

setAuditLog(ByteString value)

public AuditContext.Builder setAuditLog(ByteString value)

Serialized audit log.

bytes audit_log = 1;

Parameter
Name Description
value ByteString

The auditLog to set.

Returns
Type Description
AuditContext.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AuditContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuditContext.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AuditContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuditContext.Builder
Overrides

setScrubbedRequest(Struct value)

public AuditContext.Builder setScrubbedRequest(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AuditContext.Builder

setScrubbedRequest(Struct.Builder builderForValue)

public AuditContext.Builder setScrubbedRequest(Struct.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditContext.Builder

setScrubbedResponse(Struct value)

public AuditContext.Builder setScrubbedResponse(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AuditContext.Builder

setScrubbedResponse(Struct.Builder builderForValue)

public AuditContext.Builder setScrubbedResponse(Struct.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditContext.Builder

setScrubbedResponseItemCount(int value)

public AuditContext.Builder setScrubbedResponseItemCount(int value)

Number of scrubbed response items.

int32 scrubbed_response_item_count = 4;

Parameter
Name Description
value int

The scrubbedResponseItemCount to set.

Returns
Type Description
AuditContext.Builder

This builder for chaining.

setTargetResource(String value)

public AuditContext.Builder setTargetResource(String value)

Audit resource name which is scrubbed.

string target_resource = 5;

Parameter
Name Description
value String

The targetResource to set.

Returns
Type Description
AuditContext.Builder

This builder for chaining.

setTargetResourceBytes(ByteString value)

public AuditContext.Builder setTargetResourceBytes(ByteString value)

Audit resource name which is scrubbed.

string target_resource = 5;

Parameter
Name Description
value ByteString

The bytes for targetResource to set.

Returns
Type Description
AuditContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AuditContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuditContext.Builder
Overrides