Class AuditContext.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuditContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuditContext.Builder
Overrides

build()

public AuditContext build()
Returns
TypeDescription
AuditContext

buildPartial()

public AuditContext buildPartial()
Returns
TypeDescription
AuditContext

clear()

public AuditContext.Builder clear()
Returns
TypeDescription
AuditContext.Builder
Overrides

clearAuditLog()

public AuditContext.Builder clearAuditLog()

Serialized audit log.

bytes audit_log = 1;

Returns
TypeDescription
AuditContext.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuditContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuditContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AuditContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AuditContext.Builder

clearScrubbedResponseItemCount()

public AuditContext.Builder clearScrubbedResponseItemCount()

Number of scrubbed response items.

int32 scrubbed_response_item_count = 4;

Returns
TypeDescription
AuditContext.Builder

This builder for chaining.

clearTargetResource()

public AuditContext.Builder clearTargetResource()

Audit resource name which is scrubbed.

string target_resource = 5;

Returns
TypeDescription
AuditContext.Builder

This builder for chaining.

clone()

public AuditContext.Builder clone()
Returns
TypeDescription
AuditContext.Builder
Overrides

getAuditLog()

public ByteString getAuditLog()

Serialized audit log.

bytes audit_log = 1;

Returns
TypeDescription
ByteString

The auditLog.

getDefaultInstanceForType()

public AuditContext getDefaultInstanceForType()
Returns
TypeDescription
AuditContext

getDescriptorForType()

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

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

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuditContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuditContext.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuditContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuditContext.Builder
Overrides

mergeFrom(AuditContext other)

public AuditContext.Builder mergeFrom(AuditContext other)
Parameter
NameDescription
otherAuditContext
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
AuditContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuditContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuditContext.Builder
Overrides

setAuditLog(ByteString value)

public AuditContext.Builder setAuditLog(ByteString value)

Serialized audit log.

bytes audit_log = 1;

Parameter
NameDescription
valueByteString

The auditLog to set.

Returns
TypeDescription
AuditContext.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AuditContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuditContext.Builder
Overrides

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

public AuditContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AuditContext.Builder

setScrubbedResponseItemCount(int value)

public AuditContext.Builder setScrubbedResponseItemCount(int value)

Number of scrubbed response items.

int32 scrubbed_response_item_count = 4;

Parameter
NameDescription
valueint

The scrubbedResponseItemCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The targetResource to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetResource to set.

Returns
TypeDescription
AuditContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AuditContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuditContext.Builder
Overrides