public final class AuditLog extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, 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 |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| 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 Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getMethodName()
The name of the service method or operation.
|
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.
|
Parser<AuditLog> |
getParserForType() |
Struct |
getRequest()
The operation request.
|
RequestMetadata |
getRequestMetadata()
Metadata about the operation.
|
RequestMetadataOrBuilder |
getRequestMetadataOrBuilder()
Metadata about the operation.
|
StructOrBuilder |
getRequestOrBuilder()
The operation request.
|
java.lang.String |
getResourceName()
The resource or collection that is the target of the operation.
|
ByteString |
getResourceNameBytes()
The resource or collection that is the target of the operation.
|
Struct |
getResponse()
The operation response.
|
StructOrBuilder |
getResponseOrBuilder()
The operation response.
|
int |
getSerializedSize() |
Any |
getServiceData()
Other service-specific data about the request, response, and other
activities.
|
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.
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AuditLog.Builder |
newBuilder() |
static AuditLog.Builder |
newBuilder(AuditLog prototype) |
AuditLog.Builder |
newBuilderForType() |
protected AuditLog.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static AuditLog |
parseDelimitedFrom(java.io.InputStream input) |
static AuditLog |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AuditLog |
parseFrom(byte[] data) |
static AuditLog |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AuditLog |
parseFrom(java.nio.ByteBuffer data) |
static AuditLog |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AuditLog |
parseFrom(ByteString data) |
static AuditLog |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AuditLog |
parseFrom(CodedInputStream input) |
static AuditLog |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AuditLog |
parseFrom(java.io.InputStream input) |
static AuditLog |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AuditLog> |
parser() |
AuditLog.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class 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 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 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 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 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 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 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 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 Any getServiceData()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;getServiceData in interface AuditLogOrBuilderpublic 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 MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static AuditLog parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AuditLog parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(java.io.InputStream input, 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, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AuditLog parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AuditLog.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static AuditLog.Builder newBuilder()
public static AuditLog.Builder newBuilder(AuditLog prototype)
public AuditLog.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected AuditLog.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static AuditLog getDefaultInstance()
public Parser<AuditLog> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public AuditLog getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder