Package com.google.cloud.audit
Class AuditLog
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.audit.AuditLog
-
- All Implemented Interfaces:
AuditLogOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
public final class AuditLog extends com.google.protobuf.GeneratedMessageV3 implements AuditLogOrBuilder
Common audit log format for Google Cloud Platform API operations.
Protobuf typegoogle.cloud.audit.AuditLog
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditLog.Builder
Common audit log format for Google Cloud Platform API operations.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTHENTICATION_INFO_FIELD_NUMBER
static int
AUTHORIZATION_INFO_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
METHOD_NAME_FIELD_NUMBER
static int
NUM_RESPONSE_ITEMS_FIELD_NUMBER
static int
POLICY_VIOLATION_INFO_FIELD_NUMBER
static int
REQUEST_FIELD_NUMBER
static int
REQUEST_METADATA_FIELD_NUMBER
static int
RESOURCE_LOCATION_FIELD_NUMBER
static int
RESOURCE_NAME_FIELD_NUMBER
static int
RESOURCE_ORIGINAL_STATE_FIELD_NUMBER
static int
RESPONSE_FIELD_NUMBER
static int
SERVICE_DATA_FIELD_NUMBER
static int
SERVICE_NAME_FIELD_NUMBER
static int
STATUS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
AuthenticationInfo
getAuthenticationInfo()
Authentication information.AuthenticationInfoOrBuilder
getAuthenticationInfoOrBuilder()
Authentication information.AuthorizationInfo
getAuthorizationInfo(int index)
Authorization information.int
getAuthorizationInfoCount()
Authorization information.java.util.List<AuthorizationInfo>
getAuthorizationInfoList()
Authorization information.AuthorizationInfoOrBuilder
getAuthorizationInfoOrBuilder(int index)
Authorization information.java.util.List<? extends AuthorizationInfoOrBuilder>
getAuthorizationInfoOrBuilderList()
Authorization information.static AuditLog
getDefaultInstance()
AuditLog
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Struct
getMetadata()
Other service-specific data about the request, response, and other information associated with the current audited event.com.google.protobuf.StructOrBuilder
getMetadataOrBuilder()
Other service-specific data about the request, response, and other information associated with the current audited event.java.lang.String
getMethodName()
The name of the service method or operation.com.google.protobuf.ByteString
getMethodNameBytes()
The name of the service method or operation.long
getNumResponseItems()
The number of items returned from a List or Query API method, if applicable.com.google.protobuf.Parser<AuditLog>
getParserForType()
PolicyViolationInfo
getPolicyViolationInfo()
Indicates the policy violations for this request.PolicyViolationInfoOrBuilder
getPolicyViolationInfoOrBuilder()
Indicates the policy violations for this request.com.google.protobuf.Struct
getRequest()
The operation request.RequestMetadata
getRequestMetadata()
Metadata about the operation.RequestMetadataOrBuilder
getRequestMetadataOrBuilder()
Metadata about the operation.com.google.protobuf.StructOrBuilder
getRequestOrBuilder()
The operation request.ResourceLocation
getResourceLocation()
The resource location information.ResourceLocationOrBuilder
getResourceLocationOrBuilder()
The resource location information.java.lang.String
getResourceName()
The resource or collection that is the target of the operation.com.google.protobuf.ByteString
getResourceNameBytes()
The resource or collection that is the target of the operation.com.google.protobuf.Struct
getResourceOriginalState()
The resource's original state before mutation.com.google.protobuf.StructOrBuilder
getResourceOriginalStateOrBuilder()
The resource's original state before mutation.com.google.protobuf.Struct
getResponse()
The operation response.com.google.protobuf.StructOrBuilder
getResponseOrBuilder()
The operation response.int
getSerializedSize()
com.google.protobuf.Any
getServiceData()
Deprecated.google.cloud.audit.AuditLog.service_data is deprecated.com.google.protobuf.AnyOrBuilder
getServiceDataOrBuilder()
Deprecated.java.lang.String
getServiceName()
The name of the API service performing the operation.com.google.protobuf.ByteString
getServiceNameBytes()
The name of the API service performing the operation.Status
getStatus()
The status of the overall operation.StatusOrBuilder
getStatusOrBuilder()
The status of the overall operation.boolean
hasAuthenticationInfo()
Authentication information.int
hashCode()
boolean
hasMetadata()
Other service-specific data about the request, response, and other information associated with the current audited event.boolean
hasPolicyViolationInfo()
Indicates the policy violations for this request.boolean
hasRequest()
The operation request.boolean
hasRequestMetadata()
Metadata about the operation.boolean
hasResourceLocation()
The resource location information.boolean
hasResourceOriginalState()
The resource's original state before mutation.boolean
hasResponse()
The operation response.boolean
hasServiceData()
Deprecated.google.cloud.audit.AuditLog.service_data is deprecated.boolean
hasStatus()
The status of the overall operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AuditLog.Builder
newBuilder()
static AuditLog.Builder
newBuilder(AuditLog prototype)
AuditLog.Builder
newBuilderForType()
protected AuditLog.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AuditLog
parseDelimitedFrom(java.io.InputStream input)
static AuditLog
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuditLog
parseFrom(byte[] data)
static AuditLog
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuditLog
parseFrom(com.google.protobuf.ByteString data)
static AuditLog
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuditLog
parseFrom(com.google.protobuf.CodedInputStream input)
static AuditLog
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuditLog
parseFrom(java.io.InputStream input)
static AuditLog
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuditLog
parseFrom(java.nio.ByteBuffer data)
static AuditLog
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AuditLog>
parser()
AuditLog.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVICE_NAME_FIELD_NUMBER
public static final int SERVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METHOD_NAME_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_LOCATION_FIELD_NUMBER
public static final int RESOURCE_LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_ORIGINAL_STATE_FIELD_NUMBER
public static final int RESOURCE_ORIGINAL_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_RESPONSE_ITEMS_FIELD_NUMBER
public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHENTICATION_INFO_FIELD_NUMBER
public static final int AUTHENTICATION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHORIZATION_INFO_FIELD_NUMBER
public static final int AUTHORIZATION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_VIOLATION_INFO_FIELD_NUMBER
public static final int POLICY_VIOLATION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_METADATA_FIELD_NUMBER
public static final int REQUEST_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_DATA_FIELD_NUMBER
public static final int SERVICE_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getServiceName
public java.lang.String getServiceName()
The name of the API service performing the operation. For example, `"compute.googleapis.com"`.
string service_name = 7;
- Specified by:
getServiceName
in interfaceAuditLogOrBuilder
- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()
The name of the API service performing the operation. For example, `"compute.googleapis.com"`.
string service_name = 7;
- Specified by:
getServiceNameBytes
in interfaceAuditLogOrBuilder
- Returns:
- The bytes for serviceName.
-
getMethodName
public java.lang.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;
- Specified by:
getMethodName
in interfaceAuditLogOrBuilder
- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.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;
- Specified by:
getMethodNameBytes
in interfaceAuditLogOrBuilder
- Returns:
- The bytes for methodName.
-
getResourceName
public java.lang.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;
- Specified by:
getResourceName
in interfaceAuditLogOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.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;
- Specified by:
getResourceNameBytes
in interfaceAuditLogOrBuilder
- Returns:
- The bytes for resourceName.
-
hasResourceLocation
public boolean hasResourceLocation()
The resource location information.
.google.cloud.audit.ResourceLocation resource_location = 20;
- Specified by:
hasResourceLocation
in interfaceAuditLogOrBuilder
- Returns:
- Whether the resourceLocation field is set.
-
getResourceLocation
public ResourceLocation getResourceLocation()
The resource location information.
.google.cloud.audit.ResourceLocation resource_location = 20;
- Specified by:
getResourceLocation
in interfaceAuditLogOrBuilder
- Returns:
- The resourceLocation.
-
getResourceLocationOrBuilder
public ResourceLocationOrBuilder getResourceLocationOrBuilder()
The resource location information.
.google.cloud.audit.ResourceLocation resource_location = 20;
- Specified by:
getResourceLocationOrBuilder
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
hasResourceOriginalState
in interfaceAuditLogOrBuilder
- Returns:
- Whether the resourceOriginalState field is set.
-
getResourceOriginalState
public com.google.protobuf.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;
- Specified by:
getResourceOriginalState
in interfaceAuditLogOrBuilder
- Returns:
- The resourceOriginalState.
-
getResourceOriginalStateOrBuilder
public com.google.protobuf.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;
- Specified by:
getResourceOriginalStateOrBuilder
in interfaceAuditLogOrBuilder
-
getNumResponseItems
public long getNumResponseItems()
The number of items returned from a List or Query API method, if applicable.
int64 num_response_items = 12;
- Specified by:
getNumResponseItems
in interfaceAuditLogOrBuilder
- Returns:
- The numResponseItems.
-
hasStatus
public boolean hasStatus()
The status of the overall operation.
.google.rpc.Status status = 2;
- Specified by:
hasStatus
in interfaceAuditLogOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public Status getStatus()
The status of the overall operation.
.google.rpc.Status status = 2;
- Specified by:
getStatus
in interfaceAuditLogOrBuilder
- Returns:
- The status.
-
getStatusOrBuilder
public StatusOrBuilder getStatusOrBuilder()
The status of the overall operation.
.google.rpc.Status status = 2;
- Specified by:
getStatusOrBuilder
in interfaceAuditLogOrBuilder
-
hasAuthenticationInfo
public boolean hasAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
- Specified by:
hasAuthenticationInfo
in interfaceAuditLogOrBuilder
- Returns:
- Whether the authenticationInfo field is set.
-
getAuthenticationInfo
public AuthenticationInfo getAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
- Specified by:
getAuthenticationInfo
in interfaceAuditLogOrBuilder
- Returns:
- The authenticationInfo.
-
getAuthenticationInfoOrBuilder
public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
- Specified by:
getAuthenticationInfoOrBuilder
in interfaceAuditLogOrBuilder
-
getAuthorizationInfoList
public java.util.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;
- Specified by:
getAuthorizationInfoList
in interfaceAuditLogOrBuilder
-
getAuthorizationInfoOrBuilderList
public java.util.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;
- Specified by:
getAuthorizationInfoOrBuilderList
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
getAuthorizationInfoCount
in interfaceAuditLogOrBuilder
-
getAuthorizationInfo
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;
- Specified by:
getAuthorizationInfo
in interfaceAuditLogOrBuilder
-
getAuthorizationInfoOrBuilder
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;
- Specified by:
getAuthorizationInfoOrBuilder
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
hasPolicyViolationInfo
in interfaceAuditLogOrBuilder
- Returns:
- Whether the policyViolationInfo field is set.
-
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;
- Specified by:
getPolicyViolationInfo
in interfaceAuditLogOrBuilder
- Returns:
- The policyViolationInfo.
-
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;
- Specified by:
getPolicyViolationInfoOrBuilder
in interfaceAuditLogOrBuilder
-
hasRequestMetadata
public boolean hasRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
- Specified by:
hasRequestMetadata
in interfaceAuditLogOrBuilder
- Returns:
- Whether the requestMetadata field is set.
-
getRequestMetadata
public RequestMetadata getRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
- Specified by:
getRequestMetadata
in interfaceAuditLogOrBuilder
- Returns:
- The requestMetadata.
-
getRequestMetadataOrBuilder
public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
- Specified by:
getRequestMetadataOrBuilder
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
hasRequest
in interfaceAuditLogOrBuilder
- Returns:
- Whether the request field is set.
-
getRequest
public com.google.protobuf.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;
- Specified by:
getRequest
in interfaceAuditLogOrBuilder
- Returns:
- The request.
-
getRequestOrBuilder
public com.google.protobuf.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;
- Specified by:
getRequestOrBuilder
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
hasResponse
in interfaceAuditLogOrBuilder
- Returns:
- Whether the response field is set.
-
getResponse
public com.google.protobuf.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;
- Specified by:
getResponse
in interfaceAuditLogOrBuilder
- Returns:
- The response.
-
getResponseOrBuilder
public com.google.protobuf.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;
- Specified by:
getResponseOrBuilder
in interfaceAuditLogOrBuilder
-
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;
- Specified by:
hasMetadata
in interfaceAuditLogOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()
Other service-specific data about the request, response, and other information associated with the current audited event.
.google.protobuf.Struct metadata = 18;
- Specified by:
getMetadata
in interfaceAuditLogOrBuilder
- Returns:
- The metadata.
-
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
Other service-specific data about the request, response, and other information associated with the current audited event.
.google.protobuf.Struct metadata = 18;
- Specified by:
getMetadataOrBuilder
in interfaceAuditLogOrBuilder
-
hasServiceData
@Deprecated public boolean hasServiceData()
Deprecated.google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110Deprecated. Use the `metadata` field instead. Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15 [deprecated = true];
- Specified by:
hasServiceData
in interfaceAuditLogOrBuilder
- Returns:
- Whether the serviceData field is set.
-
getServiceData
@Deprecated public com.google.protobuf.Any getServiceData()
Deprecated.google.cloud.audit.AuditLog.service_data is deprecated. See google/cloud/audit/audit_log.proto;l=110Deprecated. Use the `metadata` field instead. Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15 [deprecated = true];
- Specified by:
getServiceData
in interfaceAuditLogOrBuilder
- Returns:
- The serviceData.
-
getServiceDataOrBuilder
@Deprecated public com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder()
Deprecated.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];
- Specified by:
getServiceDataOrBuilder
in interfaceAuditLogOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AuditLog parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLog parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuditLog parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AuditLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AuditLog parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public AuditLog.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AuditLog.Builder newBuilder()
-
newBuilder
public static AuditLog.Builder newBuilder(AuditLog prototype)
-
toBuilder
public AuditLog.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AuditLog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AuditLog getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AuditLog> parser()
-
getParserForType
public com.google.protobuf.Parser<AuditLog> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public AuditLog getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-