public static final class AuditLog.Builder extends GeneratedMessageV3.Builder<AuditLog.Builder> implements AuditLogOrBuilder
Common audit log format for Google Cloud Platform API operations. Copied from https://github.com/googleapis/googleapis/blob/master/google/cloud/audit/audit_log.proto, but changing service_data from Any to Struct.
Protobuf type google.events.cloud.audit.v1.AuditLog
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuditLog.BuilderImplements
AuditLogOrBuilderStatic 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.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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 |
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 |
clearAuthenticationInfo()
public AuditLog.Builder clearAuthenticationInfo()
Authentication information.
.google.events.cloud.audit.v1.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.events.cloud.audit.v1.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 |
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
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 |
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.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
Returns | |
---|---|
Type | Description |
AuditLog.Builder |
clearResourceLocation()
public AuditLog.Builder clearResourceLocation()
The resource location information.
.google.events.cloud.audit.v1.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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_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()
public AuditLog.Builder clearServiceData()
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Returns | |
---|---|
Type | Description |
AuditLog.Builder |
clearServiceName()
public AuditLog.Builder clearServiceName()
The name of the API service performing the operation. For example,
"datastore.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 |
getAuthenticationInfo()
public AuthenticationInfo getAuthenticationInfo()
Authentication information.
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
Returns | |
---|---|
Type | Description |
AuthenticationInfo |
The authenticationInfo. |
getAuthenticationInfoBuilder()
public AuthenticationInfo.Builder getAuthenticationInfoBuilder()
Authentication information.
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
Returns | |
---|---|
Type | Description |
AuthenticationInfo.Builder |
getAuthenticationInfoOrBuilder()
public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()
Authentication information.
.google.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.audit.v1.AuthorizationInfoOrBuilder> |
getDefaultInstanceForType()
public AuditLog getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AuditLog |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
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. |
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.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
Returns | |
---|---|
Type | Description |
RequestMetadata |
The requestMetadata. |
getRequestMetadataBuilder()
public RequestMetadata.Builder getRequestMetadataBuilder()
Metadata about the operation.
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
Returns | |
---|---|
Type | Description |
RequestMetadata.Builder |
getRequestMetadataOrBuilder()
public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
Metadata about the operation.
.google.events.cloud.audit.v1.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.events.cloud.audit.v1.ResourceLocation resource_location = 20;
Returns | |
---|---|
Type | Description |
ResourceLocation |
The resourceLocation. |
getResourceLocationBuilder()
public ResourceLocation.Builder getResourceLocationBuilder()
The resource location information.
.google.events.cloud.audit.v1.ResourceLocation resource_location = 20;
Returns | |
---|---|
Type | Description |
ResourceLocation.Builder |
getResourceLocationOrBuilder()
public ResourceLocationOrBuilder getResourceLocationOrBuilder()
The resource location information.
.google.events.cloud.audit.v1.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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_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()
public Struct getServiceData()
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Returns | |
---|---|
Type | Description |
Struct |
The serviceData. |
getServiceDataBuilder()
public Struct.Builder getServiceDataBuilder()
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Returns | |
---|---|
Type | Description |
Builder |
getServiceDataOrBuilder()
public StructOrBuilder getServiceDataOrBuilder()
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getServiceName()
public String getServiceName()
The name of the API service performing the operation. For example,
"datastore.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,
"datastore.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 |
com.google.rpc.Status |
The status. |
getStatusBuilder()
public Status.Builder getStatusBuilder()
The status of the overall operation.
.google.rpc.Status status = 2;
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
getStatusOrBuilder()
public StatusOrBuilder getStatusOrBuilder()
The status of the overall operation.
.google.rpc.Status status = 2;
Returns | |
---|---|
Type | Description |
com.google.rpc.StatusOrBuilder |
hasAuthenticationInfo()
public boolean hasAuthenticationInfo()
Authentication information.
.google.events.cloud.audit.v1.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. |
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.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the requestMetadata field is set. |
hasResourceLocation()
public boolean hasResourceLocation()
The resource location information.
.google.events.cloud.audit.v1.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()
public boolean hasServiceData()
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAuthenticationInfo(AuthenticationInfo value)
public AuditLog.Builder mergeAuthenticationInfo(AuthenticationInfo value)
Authentication information.
.google.events.cloud.audit.v1.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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AuditLog.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AuditLog.Builder |
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 |
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.events.cloud.audit.v1.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.events.cloud.audit.v1.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(Struct value)
public AuditLog.Builder mergeServiceData(Struct value)
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Parameter | |
---|---|
Name | Description |
value |
Struct |
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 |
com.google.rpc.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 |
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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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 |
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
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. |
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 |
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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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.events.cloud.audit.v1.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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_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(Struct value)
public AuditLog.Builder setServiceData(Struct value)
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
Parameter | |
---|---|
Name | Description |
value |
Struct |
Returns | |
---|---|
Type | Description |
AuditLog.Builder |
setServiceData(Struct.Builder builderForValue)
public AuditLog.Builder setServiceData(Struct.Builder builderForValue)
Deprecated: Use metadata
field instead.
Other service-specific data about the request, response, and other
activities.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
.google.protobuf.Struct service_data = 15;
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,
"datastore.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,
"datastore.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 |
com.google.rpc.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 |
com.google.rpc.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 |