Package com.google.iam.v1
Class AuditLogConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<AuditLogConfig,AuditLogConfig.Builder>
com.google.iam.v1.AuditLogConfig
- All Implemented Interfaces:
AuditLogConfigOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
public final class AuditLogConfig
extends com.google.protobuf.GeneratedMessageLite<AuditLogConfig,AuditLogConfig.Builder>
implements AuditLogConfigOrBuilder
Provides the configuration for logging a type of permissions.
Example:
{
"audit_log_configs": [
{
"log_type": "DATA_READ",
"exempted_members": [
"user:jose@example.com"
]
},
{
"log_type": "DATA_WRITE"
}
]
}
This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
jose@example.com from DATA_READ logging.
Protobuf type google.iam.v1.AuditLogConfig-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides the configuration for logging a type of permissions.static enumThe list of valid permission types for which logging can be configured.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static AuditLogConfiggetExemptedMembers(int index) Specifies the identities that do not cause logging for this type of permission.com.google.protobuf.ByteStringgetExemptedMembersBytes(int index) Specifies the identities that do not cause logging for this type of permission.intSpecifies the identities that do not cause logging for this type of permission.Specifies the identities that do not cause logging for this type of permission.The log type that this config enables.intThe log type that this config enables.static AuditLogConfig.Builderstatic AuditLogConfig.BuildernewBuilder(AuditLogConfig prototype) static AuditLogConfigparseDelimitedFrom(InputStream input) static AuditLogConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuditLogConfigparseFrom(byte[] data) static AuditLogConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuditLogConfigparseFrom(com.google.protobuf.ByteString data) static AuditLogConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuditLogConfigparseFrom(com.google.protobuf.CodedInputStream input) static AuditLogConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuditLogConfigparseFrom(InputStream input) static AuditLogConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuditLogConfigparseFrom(ByteBuffer data) static AuditLogConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AuditLogConfig>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
LOG_TYPE_FIELD_NUMBER
public static final int LOG_TYPE_FIELD_NUMBER- See Also:
-
EXEMPTED_MEMBERS_FIELD_NUMBER
public static final int EXEMPTED_MEMBERS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getLogTypeValue
public int getLogTypeValue()The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1 [json_name = "logType"];- Specified by:
getLogTypeValuein interfaceAuditLogConfigOrBuilder- Returns:
- The enum numeric value on the wire for logType.
-
getLogType
The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1 [json_name = "logType"];- Specified by:
getLogTypein interfaceAuditLogConfigOrBuilder- Returns:
- The logType.
-
getExemptedMembersList
Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][google.iam.v1.Binding.members].
repeated string exempted_members = 2 [json_name = "exemptedMembers"];- Specified by:
getExemptedMembersListin interfaceAuditLogConfigOrBuilder- Returns:
- A list containing the exemptedMembers.
-
getExemptedMembersCount
public int getExemptedMembersCount()Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][google.iam.v1.Binding.members].
repeated string exempted_members = 2 [json_name = "exemptedMembers"];- Specified by:
getExemptedMembersCountin interfaceAuditLogConfigOrBuilder- Returns:
- The count of exemptedMembers.
-
getExemptedMembers
Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][google.iam.v1.Binding.members].
repeated string exempted_members = 2 [json_name = "exemptedMembers"];- Specified by:
getExemptedMembersin interfaceAuditLogConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The exemptedMembers at the given index.
-
getExemptedMembersBytes
public com.google.protobuf.ByteString getExemptedMembersBytes(int index) Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][google.iam.v1.Binding.members].
repeated string exempted_members = 2 [json_name = "exemptedMembers"];- Specified by:
getExemptedMembersBytesin interfaceAuditLogConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exemptedMembers at the given index.
-
parseFrom
public static AuditLogConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLogConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLogConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuditLogConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AuditLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AuditLogConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AuditLogConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AuditLogConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<AuditLogConfig,AuditLogConfig.Builder>
-
getDefaultInstance
-
parser
-