Class AuditConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<AuditConfig,AuditConfig.Builder>
com.google.iam.v1.AuditConfig
All Implemented Interfaces:
AuditConfigOrBuilder, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder

public final class AuditConfig extends com.google.protobuf.GeneratedMessageLite<AuditConfig,AuditConfig.Builder> implements AuditConfigOrBuilder
 Specifies the audit configuration for a service.
 The configuration determines which permission types are logged, and what
 identities, if any, are exempted from logging.
 An AuditConfig must have one or more AuditLogConfigs.

 If there are AuditConfigs for both `allServices` and a specific service,
 the union of the two AuditConfigs is used for that service: the log_types
 specified in each AuditConfig are enabled, and the exempted_members in each
 AuditLogConfig are exempted.

 Example Policy with multiple AuditConfigs:

 {
 "audit_configs": [
 {
 "service": "allServices",
 "audit_log_configs": [
 {
 "log_type": "DATA_READ",
 "exempted_members": [
 "user:jose@example.com"
 ]
 },
 {
 "log_type": "DATA_WRITE"
 },
 {
 "log_type": "ADMIN_READ"
 }
 ]
 },
 {
 "service": "sampleservice.googleapis.com",
 "audit_log_configs": [
 {
 "log_type": "DATA_READ"
 },
 {
 "log_type": "DATA_WRITE",
 "exempted_members": [
 "user:aliya@example.com"
 ]
 }
 ]
 }
 ]
 }

 For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
 logging. It also exempts `jose@example.com` from DATA_READ logging, and
 `aliya@example.com` from DATA_WRITE logging.
 
Protobuf type google.iam.v1.AuditConfig
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Specifies the audit configuration for a service.

    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)
     
    getAuditLogConfigs(int index)
    The configuration for logging of each type of permission.
    int
    The configuration for logging of each type of permission.
    The configuration for logging of each type of permission.
    The configuration for logging of each type of permission.
    The configuration for logging of each type of permission.
     
    Specifies a service that will be enabled for audit logging.
    com.google.protobuf.ByteString
    Specifies a service that will be enabled for audit logging.
     
     
     
    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<AuditConfig>
     

    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

    • SERVICE_FIELD_NUMBER

      public static final int SERVICE_FIELD_NUMBER
      See Also:
    • AUDIT_LOG_CONFIGS_FIELD_NUMBER

      public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getService

      public String getService()
       Specifies a service that will be enabled for audit logging.
       For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
       `allServices` is a special value that covers all services.
       
      string service = 1 [json_name = "service"];
      Specified by:
      getService in interface AuditConfigOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Specifies a service that will be enabled for audit logging.
       For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
       `allServices` is a special value that covers all services.
       
      string service = 1 [json_name = "service"];
      Specified by:
      getServiceBytes in interface AuditConfigOrBuilder
      Returns:
      The bytes for service.
    • getAuditLogConfigsList

      public List<AuditLogConfig> getAuditLogConfigsList()
       The configuration for logging of each type of permission.
       
      repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3 [json_name = "auditLogConfigs"];
      Specified by:
      getAuditLogConfigsList in interface AuditConfigOrBuilder
    • getAuditLogConfigsOrBuilderList

      public List<? extends AuditLogConfigOrBuilder> getAuditLogConfigsOrBuilderList()
       The configuration for logging of each type of permission.
       
      repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3 [json_name = "auditLogConfigs"];
    • getAuditLogConfigsCount

      public int getAuditLogConfigsCount()
       The configuration for logging of each type of permission.
       
      repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3 [json_name = "auditLogConfigs"];
      Specified by:
      getAuditLogConfigsCount in interface AuditConfigOrBuilder
    • getAuditLogConfigs

      public AuditLogConfig getAuditLogConfigs(int index)
       The configuration for logging of each type of permission.
       
      repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3 [json_name = "auditLogConfigs"];
      Specified by:
      getAuditLogConfigs in interface AuditConfigOrBuilder
    • getAuditLogConfigsOrBuilder

      public AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index)
       The configuration for logging of each type of permission.
       
      repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3 [json_name = "auditLogConfigs"];
    • parseFrom

      public static AuditConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuditConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AuditConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static AuditConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuditConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static AuditConfig.Builder newBuilder()
    • newBuilder

      public static AuditConfig.Builder newBuilder(AuditConfig 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<AuditConfig,AuditConfig.Builder>
    • getDefaultInstance

      public static AuditConfig getDefaultInstance()
    • parser

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