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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Provides the configuration for logging a type of permissions.
    static enum 
    The 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    getExemptedMembers(int index)
    Specifies the identities that do not cause logging for this type of permission.
    com.google.protobuf.ByteString
    Specifies the identities that do not cause logging for this type of permission.
    int
    Specifies 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.
    int
    The log type that this config enables.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AuditLogConfig>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getLogTypeValue in interface AuditLogConfigOrBuilder
      Returns:
      The enum numeric value on the wire for logType.
    • getLogType

      public AuditLogConfig.LogType getLogType()
       The log type that this config enables.
       
      .google.iam.v1.AuditLogConfig.LogType log_type = 1 [json_name = "logType"];
      Specified by:
      getLogType in interface AuditLogConfigOrBuilder
      Returns:
      The logType.
    • getExemptedMembersList

      public List<String> 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:
      getExemptedMembersList in interface AuditLogConfigOrBuilder
      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:
      getExemptedMembersCount in interface AuditLogConfigOrBuilder
      Returns:
      The count of exemptedMembers.
    • getExemptedMembers

      public String getExemptedMembers(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:
      getExemptedMembers in interface AuditLogConfigOrBuilder
      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:
      getExemptedMembersBytes in interface AuditLogConfigOrBuilder
      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

      public static AuditLogConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuditLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuditLogConfig parseDelimitedFrom(InputStream input) throws IOException
      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

      public static AuditLogConfig.Builder newBuilder()
    • newBuilder

      public static AuditLogConfig.Builder newBuilder(AuditLogConfig prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AuditLogConfig,AuditLogConfig.Builder>
    • getDefaultInstance

      public static AuditLogConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuditLogConfig> parser()