Class AuditLog.Builder (2.13.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.audit.AuthorizationInfo>
Returns
TypeDescription
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
NameDescription
valueAuthorizationInfo
Returns
TypeDescription
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
NameDescription
builderForValueAuthorizationInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAuthorizationInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAuthorizationInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AuthorizationInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AuditLog build()
Returns
TypeDescription
AuditLog

buildPartial()

public AuditLog buildPartial()
Returns
TypeDescription
AuditLog

clear()

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

clearAuthenticationInfo()

public AuditLog.Builder clearAuthenticationInfo()

Authentication information.

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

Returns
TypeDescription
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
TypeDescription
AuditLog.Builder

clearField(Descriptors.FieldDescriptor field)

public AuditLog.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AuditLog.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestMetadata()

public AuditLog.Builder clearRequestMetadata()

Metadata about the operation.

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

Returns
TypeDescription
AuditLog.Builder

clearResourceLocation()

public AuditLog.Builder clearResourceLocation()

The resource location information.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AuditLog.Builder

clearServiceData()

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

This builder for chaining.

clearStatus()

public AuditLog.Builder clearStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
TypeDescription
AuditLog.Builder

clone()

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

getAuthenticationInfo()

public AuthenticationInfo getAuthenticationInfo()

Authentication information.

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

Returns
TypeDescription
AuthenticationInfo

The authenticationInfo.

getAuthenticationInfoBuilder()

public AuthenticationInfo.Builder getAuthenticationInfoBuilder()

Authentication information.

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

Returns
TypeDescription
AuthenticationInfo.Builder

getAuthenticationInfoOrBuilder()

public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()

Authentication information.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.audit.AuthorizationInfoOrBuilder>

getDefaultInstanceForType()

public AuditLog getDefaultInstanceForType()
Returns
TypeDescription
AuditLog

getDescriptorForType()

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

getRequestMetadata()

public RequestMetadata getRequestMetadata()

Metadata about the operation.

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

Returns
TypeDescription
RequestMetadata

The requestMetadata.

getRequestMetadataBuilder()

public RequestMetadata.Builder getRequestMetadataBuilder()

Metadata about the operation.

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

Returns
TypeDescription
RequestMetadata.Builder

getRequestMetadataOrBuilder()

public RequestMetadataOrBuilder getRequestMetadataOrBuilder()

Metadata about the operation.

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

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

getResourceLocation()

public ResourceLocation getResourceLocation()

The resource location information.

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

Returns
TypeDescription
ResourceLocation

The resourceLocation.

getResourceLocationBuilder()

public ResourceLocation.Builder getResourceLocationBuilder()

The resource location information.

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

Returns
TypeDescription
ResourceLocation.Builder

getResourceLocationOrBuilder()

public ResourceLocationOrBuilder getResourceLocationOrBuilder()

The resource location information.

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

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

The serviceData.

getServiceDataBuilder()

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

getServiceDataOrBuilder()

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

getServiceName()

public String getServiceName()

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

string service_name = 7;

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

The bytes for serviceName.

getStatus()

public Status getStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
TypeDescription
Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
TypeDescription
Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
TypeDescription
StatusOrBuilder

hasAuthenticationInfo()

public boolean hasAuthenticationInfo()

Authentication information.

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

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

Whether the request field is set.

hasRequestMetadata()

public boolean hasRequestMetadata()

Metadata about the operation.

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

Returns
TypeDescription
boolean

Whether the requestMetadata field is set.

hasResourceLocation()

public boolean hasResourceLocation()

The resource location information.

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

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

Whether the serviceData field is set.

hasStatus()

public boolean hasStatus()

The status of the overall operation.

.google.rpc.Status status = 2;

Returns
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAuthenticationInfo(AuthenticationInfo value)

public AuditLog.Builder mergeAuthenticationInfo(AuthenticationInfo value)

Authentication information.

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

Parameter
NameDescription
valueAuthenticationInfo
Returns
TypeDescription
AuditLog.Builder

mergeFrom(AuditLog other)

public AuditLog.Builder mergeFrom(AuditLog other)
Parameter
NameDescription
otherAuditLog
Returns
TypeDescription
AuditLog.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AuditLog.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
valuePolicyViolationInfo
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
AuditLog.Builder

mergeRequestMetadata(RequestMetadata value)

public AuditLog.Builder mergeRequestMetadata(RequestMetadata value)

Metadata about the operation.

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

Parameter
NameDescription
valueRequestMetadata
Returns
TypeDescription
AuditLog.Builder

mergeResourceLocation(ResourceLocation value)

public AuditLog.Builder mergeResourceLocation(ResourceLocation value)

The resource location information.

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

Parameter
NameDescription
valueResourceLocation
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
AuditLog.Builder

mergeServiceData(Any value)

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
NameDescription
valueAny
Returns
TypeDescription
AuditLog.Builder

mergeStatus(Status value)

public AuditLog.Builder mergeStatus(Status value)

The status of the overall operation.

.google.rpc.Status status = 2;

Parameter
NameDescription
valueStatus
Returns
TypeDescription
AuditLog.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuditLog.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AuditLog.Builder

setAuthenticationInfo(AuthenticationInfo value)

public AuditLog.Builder setAuthenticationInfo(AuthenticationInfo value)

Authentication information.

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

Parameter
NameDescription
valueAuthenticationInfo
Returns
TypeDescription
AuditLog.Builder

setAuthenticationInfo(AuthenticationInfo.Builder builderForValue)

public AuditLog.Builder setAuthenticationInfo(AuthenticationInfo.Builder builderForValue)

Authentication information.

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

Parameter
NameDescription
builderForValueAuthenticationInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAuthorizationInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAuthorizationInfo.Builder
Returns
TypeDescription
AuditLog.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AuditLog.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The methodName to set.

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

The bytes for methodName to set.

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

The numResponseItems to set.

Returns
TypeDescription
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
NameDescription
valuePolicyViolationInfo
Returns
TypeDescription
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
NameDescription
builderForValuePolicyViolationInfo.Builder
Returns
TypeDescription
AuditLog.Builder

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

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

setRequestMetadata(RequestMetadata value)

public AuditLog.Builder setRequestMetadata(RequestMetadata value)

Metadata about the operation.

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

Parameter
NameDescription
valueRequestMetadata
Returns
TypeDescription
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
NameDescription
builderForValueRequestMetadata.Builder
Returns
TypeDescription
AuditLog.Builder

setResourceLocation(ResourceLocation value)

public AuditLog.Builder setResourceLocation(ResourceLocation value)

The resource location information.

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

Parameter
NameDescription
valueResourceLocation
Returns
TypeDescription
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
NameDescription
builderForValueResourceLocation.Builder
Returns
TypeDescription
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
NameDescription
valueString

The resourceName to set.

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

The bytes for resourceName to set.

Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AuditLog.Builder

setServiceData(Any value)

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
NameDescription
valueAny
Returns
TypeDescription
AuditLog.Builder

setServiceData(Any.Builder builderForValue)

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

The serviceName to set.

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

The bytes for serviceName to set.

Returns
TypeDescription
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
NameDescription
valueStatus
Returns
TypeDescription
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
NameDescription
builderForValueStatus.Builder
Returns
TypeDescription
AuditLog.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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