public final class AuditLog extends com.google.protobuf.GeneratedMessageV3 implements AuditLogOrBuilder
Common audit log format for Google Cloud Platform API operations.Protobuf type
google.cloud.audit.AuditLog| Modifier and Type | Class and Description |
|---|---|
static class |
AuditLog.Builder
Common audit log format for Google Cloud Platform API operations.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHENTICATION_INFO_FIELD_NUMBER |
static int |
AUTHORIZATION_INFO_FIELD_NUMBER |
static int |
METHOD_NAME_FIELD_NUMBER |
static int |
NUM_RESPONSE_ITEMS_FIELD_NUMBER |
static int |
REQUEST_FIELD_NUMBER |
static int |
REQUEST_METADATA_FIELD_NUMBER |
static int |
RESOURCE_NAME_FIELD_NUMBER |
static int |
RESPONSE_FIELD_NUMBER |
static int |
SERVICE_DATA_FIELD_NUMBER |
static int |
SERVICE_NAME_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
| Modifier and Type | Method and 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() |
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() |
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.
|
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 |
getResponse()
The operation response.
|
com.google.protobuf.StructOrBuilder |
getResponseOrBuilder()
The operation response.
|
int |
getSerializedSize() |
com.google.protobuf.Any |
getServiceData()
Other service-specific data about the request, response, and other
activities.
|
com.google.protobuf.AnyOrBuilder |
getServiceDataOrBuilder()
Other service-specific data about the request, response, and other
activities.
|
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAuthenticationInfo()
Authentication information.
|
int |
hashCode() |
boolean |
hasRequest()
The operation request.
|
boolean |
hasRequestMetadata()
Metadata about the operation.
|
boolean |
hasResponse()
The operation response.
|
boolean |
hasServiceData()
Other service-specific data about the request, response, and other
activities.
|
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) |
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(java.nio.ByteBuffer data) |
static AuditLog |
parseFrom(java.nio.ByteBuffer 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 com.google.protobuf.Parser<AuditLog> |
parser() |
AuditLog.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVICE_NAME_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int AUTHENTICATION_INFO_FIELD_NUMBER
public static final int AUTHORIZATION_INFO_FIELD_NUMBER
public static final int REQUEST_METADATA_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
public static final int SERVICE_DATA_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getServiceName()
The name of the API service performing the operation. For example, `"datastore.googleapis.com"`.
string service_name = 7;getServiceName in interface AuditLogOrBuilderpublic com.google.protobuf.ByteString getServiceNameBytes()
The name of the API service performing the operation. For example, `"datastore.googleapis.com"`.
string service_name = 7;getServiceNameBytes in interface AuditLogOrBuilderpublic 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.datastore.v1.Datastore.RunQuery"
"google.logging.v1.LoggingService.DeleteLog"
string method_name = 8;getMethodName in interface AuditLogOrBuilderpublic 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.datastore.v1.Datastore.RunQuery"
"google.logging.v1.LoggingService.DeleteLog"
string method_name = 8;getMethodNameBytes in interface AuditLogOrBuilderpublic 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:
"shelves/SHELF_ID/books"
"shelves/SHELF_ID/books/BOOK_ID"
string resource_name = 11;getResourceName in interface AuditLogOrBuilderpublic 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:
"shelves/SHELF_ID/books"
"shelves/SHELF_ID/books/BOOK_ID"
string resource_name = 11;getResourceNameBytes in interface AuditLogOrBuilderpublic long getNumResponseItems()
The number of items returned from a List or Query API method, if applicable.
int64 num_response_items = 12;getNumResponseItems in interface AuditLogOrBuilderpublic boolean hasStatus()
The status of the overall operation.
.google.rpc.Status status = 2;hasStatus in interface AuditLogOrBuilderpublic Status getStatus()
The status of the overall operation.
.google.rpc.Status status = 2;getStatus in interface AuditLogOrBuilderpublic StatusOrBuilder getStatusOrBuilder()
The status of the overall operation.
.google.rpc.Status status = 2;getStatusOrBuilder in interface AuditLogOrBuilderpublic boolean hasAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;hasAuthenticationInfo in interface AuditLogOrBuilderpublic AuthenticationInfo getAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;getAuthenticationInfo in interface AuditLogOrBuilderpublic AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;getAuthenticationInfoOrBuilder in interface AuditLogOrBuilderpublic 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;getAuthorizationInfoList in interface AuditLogOrBuilderpublic 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;getAuthorizationInfoOrBuilderList in interface AuditLogOrBuilderpublic 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;getAuthorizationInfoCount in interface AuditLogOrBuilderpublic 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;getAuthorizationInfo in interface AuditLogOrBuilderpublic 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;getAuthorizationInfoOrBuilder in interface AuditLogOrBuilderpublic boolean hasRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;hasRequestMetadata in interface AuditLogOrBuilderpublic RequestMetadata getRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;getRequestMetadata in interface AuditLogOrBuilderpublic RequestMetadataOrBuilder getRequestMetadataOrBuilder()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;getRequestMetadataOrBuilder in interface AuditLogOrBuilderpublic 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;hasRequest in interface AuditLogOrBuilderpublic 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;getRequest in interface AuditLogOrBuilderpublic 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;getRequestOrBuilder in interface AuditLogOrBuilderpublic 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;hasResponse in interface AuditLogOrBuilderpublic 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;getResponse in interface AuditLogOrBuilderpublic 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;getResponseOrBuilder in interface AuditLogOrBuilderpublic boolean hasServiceData()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;hasServiceData in interface AuditLogOrBuilderpublic com.google.protobuf.Any getServiceData()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;getServiceData in interface AuditLogOrBuilderpublic com.google.protobuf.AnyOrBuilder getServiceDataOrBuilder()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;getServiceDataOrBuilder in interface AuditLogOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AuditLog parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AuditLog.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AuditLog.Builder newBuilder()
public static AuditLog.Builder newBuilder(AuditLog prototype)
public AuditLog.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AuditLog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AuditLog getDefaultInstance()
public static com.google.protobuf.Parser<AuditLog> parser()
public com.google.protobuf.Parser<AuditLog> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AuditLog getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder