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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public 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 AuditLogOrBuilder
public 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 AuditLogOrBuilder
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
string method_name = 8;
getMethodName
in interface AuditLogOrBuilder
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.datastore.v1.Datastore.RunQuery" "google.logging.v1.LoggingService.DeleteLog"
string method_name = 8;
getMethodNameBytes
in interface AuditLogOrBuilder
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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_ID"
string resource_name = 11;
getResourceName
in interface AuditLogOrBuilder
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: "shelves/SHELF_ID/books" "shelves/SHELF_ID/books/BOOK_ID"
string resource_name = 11;
getResourceNameBytes
in interface AuditLogOrBuilder
public long getNumResponseItems()
The number of items returned from a List or Query API method, if applicable.
int64 num_response_items = 12;
getNumResponseItems
in interface AuditLogOrBuilder
public boolean hasStatus()
The status of the overall operation.
.google.rpc.Status status = 2;
hasStatus
in interface AuditLogOrBuilder
public Status getStatus()
The status of the overall operation.
.google.rpc.Status status = 2;
getStatus
in interface AuditLogOrBuilder
public StatusOrBuilder getStatusOrBuilder()
The status of the overall operation.
.google.rpc.Status status = 2;
getStatusOrBuilder
in interface AuditLogOrBuilder
public boolean hasAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
hasAuthenticationInfo
in interface AuditLogOrBuilder
public AuthenticationInfo getAuthenticationInfo()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
getAuthenticationInfo
in interface AuditLogOrBuilder
public AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder()
Authentication information.
.google.cloud.audit.AuthenticationInfo authentication_info = 3;
getAuthenticationInfoOrBuilder
in interface AuditLogOrBuilder
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;
getAuthorizationInfoList
in interface AuditLogOrBuilder
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;
getAuthorizationInfoOrBuilderList
in interface AuditLogOrBuilder
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;
getAuthorizationInfoCount
in interface AuditLogOrBuilder
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;
getAuthorizationInfo
in interface AuditLogOrBuilder
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;
getAuthorizationInfoOrBuilder
in interface AuditLogOrBuilder
public boolean hasRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
hasRequestMetadata
in interface AuditLogOrBuilder
public RequestMetadata getRequestMetadata()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
getRequestMetadata
in interface AuditLogOrBuilder
public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
Metadata about the operation.
.google.cloud.audit.RequestMetadata request_metadata = 4;
getRequestMetadataOrBuilder
in interface AuditLogOrBuilder
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;
hasRequest
in interface AuditLogOrBuilder
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;
getRequest
in interface AuditLogOrBuilder
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;
getRequestOrBuilder
in interface AuditLogOrBuilder
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;
hasResponse
in interface AuditLogOrBuilder
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;
getResponse
in interface AuditLogOrBuilder
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;
getResponseOrBuilder
in interface AuditLogOrBuilder
public boolean hasServiceData()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;
hasServiceData
in interface AuditLogOrBuilder
public 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 AuditLogOrBuilder
public 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 AuditLogOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static AuditLog parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static AuditLog parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AuditLog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AuditLog parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public AuditLog.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static AuditLog.Builder newBuilder()
public static AuditLog.Builder newBuilder(AuditLog prototype)
public AuditLog.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected AuditLog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static AuditLog getDefaultInstance()
public static com.google.protobuf.Parser<AuditLog> parser()
public com.google.protobuf.Parser<AuditLog> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public AuditLog getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder