Class AuditLog.Builder (2.45.1)

public static final class AuditLog.Builder extends GeneratedMessageV3.Builder<AuditLog.Builder> implements AuditLogOrBuilder

Common audit log format for Google Cloud Platform API operations.

Protobuf type google.cloud.audit.AuditLog

Implements

AuditLogOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAuthorizationInfo(Iterable<? extends AuthorizationInfo> values)

public AuditLog.Builder addAllAuthorizationInfo(Iterable<? extends AuthorizationInfo> values)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
values Iterable<? extends com.google.cloud.audit.AuthorizationInfo>
Returns
Type Description
AuditLog.Builder

addAuthorizationInfo(AuthorizationInfo value)

public AuditLog.Builder addAuthorizationInfo(AuthorizationInfo value)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
value AuthorizationInfo
Returns
Type Description
AuditLog.Builder

addAuthorizationInfo(AuthorizationInfo.Builder builderForValue)

public AuditLog.Builder addAuthorizationInfo(AuthorizationInfo.Builder builderForValue)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
builderForValue AuthorizationInfo.Builder
Returns
Type Description
AuditLog.Builder

addAuthorizationInfo(int index, AuthorizationInfo value)

public AuditLog.Builder addAuthorizationInfo(int index, AuthorizationInfo value)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameters
Name Description
index int
value AuthorizationInfo
Returns
Type Description
AuditLog.Builder

addAuthorizationInfo(int index, AuthorizationInfo.Builder builderForValue)

public AuditLog.Builder addAuthorizationInfo(int index, AuthorizationInfo.Builder builderForValue)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameters
Name Description
index int
builderForValue AuthorizationInfo.Builder
Returns
Type Description
AuditLog.Builder

addAuthorizationInfoBuilder()

public AuthorizationInfo.Builder addAuthorizationInfoBuilder()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
AuthorizationInfo.Builder

addAuthorizationInfoBuilder(int index)

public AuthorizationInfo.Builder addAuthorizationInfoBuilder(int index)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
index int
Returns
Type Description
AuthorizationInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AuditLog build()
Returns
Type Description
AuditLog

buildPartial()

public AuditLog buildPartial()
Returns
Type Description
AuditLog

clear()

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

clearAuthenticationInfo()

public AuditLog.Builder clearAuthenticationInfo()

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Returns
Type Description
AuditLog.Builder

clearAuthorizationInfo()

public AuditLog.Builder clearAuthorizationInfo()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
AuditLog.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

public AuditLog.Builder clearMetadata()

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Returns
Type Description
AuditLog.Builder

clearMethodName()

public AuditLog.Builder clearMethodName()

The name of the service method or operation. For API calls, this should be the name of the API method. For example,

 "google.cloud.bigquery.v2.TableService.InsertTable"
 "google.logging.v2.ConfigServiceV2.CreateSink"

string method_name = 8;

Returns
Type Description
AuditLog.Builder

This builder for chaining.

clearNumResponseItems()

public AuditLog.Builder clearNumResponseItems()

The number of items returned from a List or Query API method, if applicable.

int64 num_response_items = 12;

Returns
Type Description
AuditLog.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyViolationInfo()

public AuditLog.Builder clearPolicyViolationInfo()

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Returns
Type Description
AuditLog.Builder

clearRequest()

public AuditLog.Builder clearRequest()

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Returns
Type Description
AuditLog.Builder

clearRequestMetadata()

public AuditLog.Builder clearRequestMetadata()

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Returns
Type Description
AuditLog.Builder

clearResourceLocation()

public AuditLog.Builder clearResourceLocation()

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Returns
Type Description
AuditLog.Builder

clearResourceName()

public AuditLog.Builder clearResourceName()

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:

 "projects/PROJECT_ID/zones/us-central1-a/instances"
 "projects/PROJECT_ID/datasets/DATASET_ID"

string resource_name = 11;

Returns
Type Description
AuditLog.Builder

This builder for chaining.

clearResourceOriginalState()

public AuditLog.Builder clearResourceOriginalState()

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Returns
Type Description
AuditLog.Builder

clearResponse()

public AuditLog.Builder clearResponse()

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Returns
Type Description
AuditLog.Builder

clearServiceData() (deprecated)

public AuditLog.Builder clearServiceData()

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Returns
Type Description
AuditLog.Builder

clearServiceName()

public AuditLog.Builder clearServiceName()

The name of the API service performing the operation. For example, "compute.googleapis.com".

string service_name = 7;

Returns
Type Description
AuditLog.Builder

This builder for chaining.

clearStatus()

public AuditLog.Builder clearStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
Type Description
AuditLog.Builder

clone()

public AuditLog.Builder clone()
Returns
Type Description
AuditLog.Builder
Overrides

getAuthenticationInfo()

public AuthenticationInfo getAuthenticationInfo()

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Returns
Type Description
AuthenticationInfo

The authenticationInfo.

getAuthenticationInfoBuilder()

public AuthenticationInfo.Builder getAuthenticationInfoBuilder()

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Returns
Type Description
AuthenticationInfo.Builder

getAuthenticationInfoOrBuilder()

public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Returns
Type Description
AuthenticationInfoOrBuilder

getAuthorizationInfo(int index)

public AuthorizationInfo getAuthorizationInfo(int index)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
index int
Returns
Type Description
AuthorizationInfo

getAuthorizationInfoBuilder(int index)

public AuthorizationInfo.Builder getAuthorizationInfoBuilder(int index)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
index int
Returns
Type Description
AuthorizationInfo.Builder

getAuthorizationInfoBuilderList()

public List<AuthorizationInfo.Builder> getAuthorizationInfoBuilderList()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
List<Builder>

getAuthorizationInfoCount()

public int getAuthorizationInfoCount()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
int

getAuthorizationInfoList()

public List<AuthorizationInfo> getAuthorizationInfoList()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
List<AuthorizationInfo>

getAuthorizationInfoOrBuilder(int index)

public AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(int index)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
index int
Returns
Type Description
AuthorizationInfoOrBuilder

getAuthorizationInfoOrBuilderList()

public List<? extends AuthorizationInfoOrBuilder> getAuthorizationInfoOrBuilderList()

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Returns
Type Description
List<? extends com.google.cloud.audit.AuthorizationInfoOrBuilder>

getDefaultInstanceForType()

public AuditLog getDefaultInstanceForType()
Returns
Type Description
AuditLog

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetadata()

public Struct getMetadata()

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Returns
Type Description
Struct

The metadata.

getMetadataBuilder()

public Struct.Builder getMetadataBuilder()

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Returns
Type Description
Builder

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Returns
Type Description
StructOrBuilder

getMethodName()

public String getMethodName()

The name of the service method or operation. For API calls, this should be the name of the API method. For example,

 "google.cloud.bigquery.v2.TableService.InsertTable"
 "google.logging.v2.ConfigServiceV2.CreateSink"

string method_name = 8;

Returns
Type Description
String

The methodName.

getMethodNameBytes()

public ByteString getMethodNameBytes()

The name of the service method or operation. For API calls, this should be the name of the API method. For example,

 "google.cloud.bigquery.v2.TableService.InsertTable"
 "google.logging.v2.ConfigServiceV2.CreateSink"

string method_name = 8;

Returns
Type Description
ByteString

The bytes for methodName.

getNumResponseItems()

public long getNumResponseItems()

The number of items returned from a List or Query API method, if applicable.

int64 num_response_items = 12;

Returns
Type Description
long

The numResponseItems.

getPolicyViolationInfo()

public PolicyViolationInfo getPolicyViolationInfo()

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Returns
Type Description
PolicyViolationInfo

The policyViolationInfo.

getPolicyViolationInfoBuilder()

public PolicyViolationInfo.Builder getPolicyViolationInfoBuilder()

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Returns
Type Description
PolicyViolationInfo.Builder

getPolicyViolationInfoOrBuilder()

public PolicyViolationInfoOrBuilder getPolicyViolationInfoOrBuilder()

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Returns
Type Description
PolicyViolationInfoOrBuilder

getRequest()

public Struct getRequest()

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Returns
Type Description
Struct

The request.

getRequestBuilder()

public Struct.Builder getRequestBuilder()

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Returns
Type Description
Builder

getRequestMetadata()

public RequestMetadata getRequestMetadata()

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Returns
Type Description
RequestMetadata

The requestMetadata.

getRequestMetadataBuilder()

public RequestMetadata.Builder getRequestMetadataBuilder()

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Returns
Type Description
RequestMetadata.Builder

getRequestMetadataOrBuilder()

public RequestMetadataOrBuilder getRequestMetadataOrBuilder()

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Returns
Type Description
RequestMetadataOrBuilder

getRequestOrBuilder()

public StructOrBuilder getRequestOrBuilder()

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Returns
Type Description
StructOrBuilder

getResourceLocation()

public ResourceLocation getResourceLocation()

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Returns
Type Description
ResourceLocation

The resourceLocation.

getResourceLocationBuilder()

public ResourceLocation.Builder getResourceLocationBuilder()

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Returns
Type Description
ResourceLocation.Builder

getResourceLocationOrBuilder()

public ResourceLocationOrBuilder getResourceLocationOrBuilder()

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Returns
Type Description
ResourceLocationOrBuilder

getResourceName()

public String getResourceName()

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:

 "projects/PROJECT_ID/zones/us-central1-a/instances"
 "projects/PROJECT_ID/datasets/DATASET_ID"

string resource_name = 11;

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:

 "projects/PROJECT_ID/zones/us-central1-a/instances"
 "projects/PROJECT_ID/datasets/DATASET_ID"

string resource_name = 11;

Returns
Type Description
ByteString

The bytes for resourceName.

getResourceOriginalState()

public Struct getResourceOriginalState()

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Returns
Type Description
Struct

The resourceOriginalState.

getResourceOriginalStateBuilder()

public Struct.Builder getResourceOriginalStateBuilder()

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Returns
Type Description
Builder

getResourceOriginalStateOrBuilder()

public StructOrBuilder getResourceOriginalStateOrBuilder()

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Returns
Type Description
StructOrBuilder

getResponse()

public Struct getResponse()

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Returns
Type Description
Struct

The response.

getResponseBuilder()

public Struct.Builder getResponseBuilder()

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Returns
Type Description
Builder

getResponseOrBuilder()

public StructOrBuilder getResponseOrBuilder()

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Returns
Type Description
StructOrBuilder

getServiceData() (deprecated)

public Any getServiceData()

Deprecated. google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Returns
Type Description
Any

The serviceData.

getServiceDataBuilder() (deprecated)

public Any.Builder getServiceDataBuilder()

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Returns
Type Description
Builder

getServiceDataOrBuilder() (deprecated)

public AnyOrBuilder getServiceDataOrBuilder()

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Returns
Type Description
AnyOrBuilder

getServiceName()

public String getServiceName()

The name of the API service performing the operation. For example, "compute.googleapis.com".

string service_name = 7;

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The name of the API service performing the operation. For example, "compute.googleapis.com".

string service_name = 7;

Returns
Type Description
ByteString

The bytes for serviceName.

getStatus()

public Status getStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
Type Description
Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
Type Description
Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
Type Description
StatusOrBuilder

hasAuthenticationInfo()

public boolean hasAuthenticationInfo()

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Returns
Type Description
boolean

Whether the authenticationInfo field is set.

hasMetadata()

public boolean hasMetadata()

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Returns
Type Description
boolean

Whether the metadata field is set.

hasPolicyViolationInfo()

public boolean hasPolicyViolationInfo()

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Returns
Type Description
boolean

Whether the policyViolationInfo field is set.

hasRequest()

public boolean hasRequest()

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Returns
Type Description
boolean

Whether the request field is set.

hasRequestMetadata()

public boolean hasRequestMetadata()

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Returns
Type Description
boolean

Whether the requestMetadata field is set.

hasResourceLocation()

public boolean hasResourceLocation()

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Returns
Type Description
boolean

Whether the resourceLocation field is set.

hasResourceOriginalState()

public boolean hasResourceOriginalState()

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Returns
Type Description
boolean

Whether the resourceOriginalState field is set.

hasResponse()

public boolean hasResponse()

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Returns
Type Description
boolean

Whether the response field is set.

hasServiceData() (deprecated)

public boolean hasServiceData()

Deprecated. google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Returns
Type Description
boolean

Whether the serviceData field is set.

hasStatus()

public boolean hasStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthenticationInfo(AuthenticationInfo value)

public AuditLog.Builder mergeAuthenticationInfo(AuthenticationInfo value)

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Parameter
Name Description
value AuthenticationInfo
Returns
Type Description
AuditLog.Builder

mergeFrom(AuditLog other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(Struct value)

public AuditLog.Builder mergeMetadata(Struct value)

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

mergePolicyViolationInfo(PolicyViolationInfo value)

public AuditLog.Builder mergePolicyViolationInfo(PolicyViolationInfo value)

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Parameter
Name Description
value PolicyViolationInfo
Returns
Type Description
AuditLog.Builder

mergeRequest(Struct value)

public AuditLog.Builder mergeRequest(Struct value)

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

mergeRequestMetadata(RequestMetadata value)

public AuditLog.Builder mergeRequestMetadata(RequestMetadata value)

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
AuditLog.Builder

mergeResourceLocation(ResourceLocation value)

public AuditLog.Builder mergeResourceLocation(ResourceLocation value)

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Parameter
Name Description
value ResourceLocation
Returns
Type Description
AuditLog.Builder

mergeResourceOriginalState(Struct value)

public AuditLog.Builder mergeResourceOriginalState(Struct value)

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

mergeResponse(Struct value)

public AuditLog.Builder mergeResponse(Struct value)

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

mergeServiceData(Any value) (deprecated)

public AuditLog.Builder mergeServiceData(Any value)

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Parameter
Name Description
value Any
Returns
Type Description
AuditLog.Builder

mergeStatus(Status value)

public AuditLog.Builder mergeStatus(Status value)

The status of the overall operation.

.google.rpc.Status status = 2;

Parameter
Name Description
value Status
Returns
Type Description
AuditLog.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAuthorizationInfo(int index)

public AuditLog.Builder removeAuthorizationInfo(int index)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameter
Name Description
index int
Returns
Type Description
AuditLog.Builder

setAuthenticationInfo(AuthenticationInfo value)

public AuditLog.Builder setAuthenticationInfo(AuthenticationInfo value)

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Parameter
Name Description
value AuthenticationInfo
Returns
Type Description
AuditLog.Builder

setAuthenticationInfo(AuthenticationInfo.Builder builderForValue)

public AuditLog.Builder setAuthenticationInfo(AuthenticationInfo.Builder builderForValue)

Authentication information.

.google.cloud.audit.AuthenticationInfo authentication_info = 3;

Parameter
Name Description
builderForValue AuthenticationInfo.Builder
Returns
Type Description
AuditLog.Builder

setAuthorizationInfo(int index, AuthorizationInfo value)

public AuditLog.Builder setAuthorizationInfo(int index, AuthorizationInfo value)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameters
Name Description
index int
value AuthorizationInfo
Returns
Type Description
AuditLog.Builder

setAuthorizationInfo(int index, AuthorizationInfo.Builder builderForValue)

public AuditLog.Builder setAuthorizationInfo(int index, AuthorizationInfo.Builder builderForValue)

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;

Parameters
Name Description
index int
builderForValue AuthorizationInfo.Builder
Returns
Type Description
AuditLog.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadata(Struct value)

public AuditLog.Builder setMetadata(Struct value)

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

setMetadata(Struct.Builder builderForValue)

public AuditLog.Builder setMetadata(Struct.Builder builderForValue)

Other service-specific data about the request, response, and other information associated with the current audited event.

.google.protobuf.Struct metadata = 18;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditLog.Builder

setMethodName(String value)

public AuditLog.Builder setMethodName(String value)

The name of the service method or operation. For API calls, this should be the name of the API method. For example,

 "google.cloud.bigquery.v2.TableService.InsertTable"
 "google.logging.v2.ConfigServiceV2.CreateSink"

string method_name = 8;

Parameter
Name Description
value String

The methodName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setMethodNameBytes(ByteString value)

public AuditLog.Builder setMethodNameBytes(ByteString value)

The name of the service method or operation. For API calls, this should be the name of the API method. For example,

 "google.cloud.bigquery.v2.TableService.InsertTable"
 "google.logging.v2.ConfigServiceV2.CreateSink"

string method_name = 8;

Parameter
Name Description
value ByteString

The bytes for methodName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setNumResponseItems(long value)

public AuditLog.Builder setNumResponseItems(long value)

The number of items returned from a List or Query API method, if applicable.

int64 num_response_items = 12;

Parameter
Name Description
value long

The numResponseItems to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setPolicyViolationInfo(PolicyViolationInfo value)

public AuditLog.Builder setPolicyViolationInfo(PolicyViolationInfo value)

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Parameter
Name Description
value PolicyViolationInfo
Returns
Type Description
AuditLog.Builder

setPolicyViolationInfo(PolicyViolationInfo.Builder builderForValue)

public AuditLog.Builder setPolicyViolationInfo(PolicyViolationInfo.Builder builderForValue)

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

.google.cloud.audit.PolicyViolationInfo policy_violation_info = 25;

Parameter
Name Description
builderForValue PolicyViolationInfo.Builder
Returns
Type Description
AuditLog.Builder

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

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

setRequest(Struct value)

public AuditLog.Builder setRequest(Struct value)

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

setRequest(Struct.Builder builderForValue)

public AuditLog.Builder setRequest(Struct.Builder builderForValue)

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct request = 16;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditLog.Builder

setRequestMetadata(RequestMetadata value)

public AuditLog.Builder setRequestMetadata(RequestMetadata value)

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
AuditLog.Builder

setRequestMetadata(RequestMetadata.Builder builderForValue)

public AuditLog.Builder setRequestMetadata(RequestMetadata.Builder builderForValue)

Metadata about the operation.

.google.cloud.audit.RequestMetadata request_metadata = 4;

Parameter
Name Description
builderForValue RequestMetadata.Builder
Returns
Type Description
AuditLog.Builder

setResourceLocation(ResourceLocation value)

public AuditLog.Builder setResourceLocation(ResourceLocation value)

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Parameter
Name Description
value ResourceLocation
Returns
Type Description
AuditLog.Builder

setResourceLocation(ResourceLocation.Builder builderForValue)

public AuditLog.Builder setResourceLocation(ResourceLocation.Builder builderForValue)

The resource location information.

.google.cloud.audit.ResourceLocation resource_location = 20;

Parameter
Name Description
builderForValue ResourceLocation.Builder
Returns
Type Description
AuditLog.Builder

setResourceName(String value)

public AuditLog.Builder setResourceName(String value)

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:

 "projects/PROJECT_ID/zones/us-central1-a/instances"
 "projects/PROJECT_ID/datasets/DATASET_ID"

string resource_name = 11;

Parameter
Name Description
value String

The resourceName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public AuditLog.Builder setResourceNameBytes(ByteString value)

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:

 "projects/PROJECT_ID/zones/us-central1-a/instances"
 "projects/PROJECT_ID/datasets/DATASET_ID"

string resource_name = 11;

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setResourceOriginalState(Struct value)

public AuditLog.Builder setResourceOriginalState(Struct value)

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

setResourceOriginalState(Struct.Builder builderForValue)

public AuditLog.Builder setResourceOriginalState(Struct.Builder builderForValue)

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct resource_original_state = 19;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditLog.Builder

setResponse(Struct value)

public AuditLog.Builder setResponse(Struct value)

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Parameter
Name Description
value Struct
Returns
Type Description
AuditLog.Builder

setResponse(Struct.Builder builderForValue)

public AuditLog.Builder setResponse(Struct.Builder builderForValue)

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct response = 17;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditLog.Builder

setServiceData(Any value) (deprecated)

public AuditLog.Builder setServiceData(Any value)

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Parameter
Name Description
value Any
Returns
Type Description
AuditLog.Builder

setServiceData(Any.Builder builderForValue) (deprecated)

public AuditLog.Builder setServiceData(Any.Builder builderForValue)

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

.google.protobuf.Any service_data = 15 [deprecated = true];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuditLog.Builder

setServiceName(String value)

public AuditLog.Builder setServiceName(String value)

The name of the API service performing the operation. For example, "compute.googleapis.com".

string service_name = 7;

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public AuditLog.Builder setServiceNameBytes(ByteString value)

The name of the API service performing the operation. For example, "compute.googleapis.com".

string service_name = 7;

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
AuditLog.Builder

This builder for chaining.

setStatus(Status value)

public AuditLog.Builder setStatus(Status value)

The status of the overall operation.

.google.rpc.Status status = 2;

Parameter
Name Description
value Status
Returns
Type Description
AuditLog.Builder

setStatus(Status.Builder builderForValue)

public AuditLog.Builder setStatus(Status.Builder builderForValue)

The status of the overall operation.

.google.rpc.Status status = 2;

Parameter
Name Description
builderForValue Status.Builder
Returns
Type Description
AuditLog.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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