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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
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 UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class 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 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 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 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 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 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 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 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 Any getServiceData()
Other service-specific data about the request, response, and other activities.
.google.protobuf.Any service_data = 15;
getServiceData
in interface AuditLogOrBuilder
public 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 MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AuditLog parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AuditLog parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(java.io.InputStream input, 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, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static AuditLog parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public AuditLog.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AuditLog.Builder newBuilder()
public static AuditLog.Builder newBuilder(AuditLog prototype)
public AuditLog.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AuditLog.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AuditLog getDefaultInstance()
public Parser<AuditLog> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AuditLog getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder