- 1.60.0 (latest)
- 1.59.1
- 1.58.2
- 1.57.0
- 1.56.3
- 1.55.0
- 1.54.2
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.1
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.1
- 1.44.0
- 1.43.0
- 1.41.0
- 1.40.1
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.1
- 1.33.0
- 1.32.1
- 1.31.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.1
- 1.19.0
- 1.18.1
- 1.17.1
- 1.16.1
- 1.10.0
- 1.9.3
- 1.8.0
- 1.7.0
- 1.6.23
- 1.5.1
- 1.4.1
- 1.3.4
- 1.2.12
public static final class AuditConfig.Builder extends GeneratedMessage.Builder<AuditConfig.Builder> implements AuditConfigOrBuilderSpecifies 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuditConfig.BuilderImplements
AuditConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAuditLogConfigs(Iterable<? extends AuditLogConfig> values)
public AuditConfig.Builder addAllAuditLogConfigs(Iterable<? extends AuditLogConfig> values)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.iam.v1.AuditLogConfig> |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
addAuditLogConfigs(AuditLogConfig value)
public AuditConfig.Builder addAuditLogConfigs(AuditLogConfig value)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
AuditLogConfig |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
addAuditLogConfigs(AuditLogConfig.Builder builderForValue)
public AuditConfig.Builder addAuditLogConfigs(AuditLogConfig.Builder builderForValue)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AuditLogConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
addAuditLogConfigs(int index, AuditLogConfig value)
public AuditConfig.Builder addAuditLogConfigs(int index, AuditLogConfig value)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AuditLogConfig |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
addAuditLogConfigs(int index, AuditLogConfig.Builder builderForValue)
public AuditConfig.Builder addAuditLogConfigs(int index, AuditLogConfig.Builder builderForValue)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AuditLogConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
addAuditLogConfigsBuilder()
public AuditLogConfig.Builder addAuditLogConfigsBuilder()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
addAuditLogConfigsBuilder(int index)
public AuditLogConfig.Builder addAuditLogConfigsBuilder(int index)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
build()
public AuditConfig build()| Returns | |
|---|---|
| Type | Description |
AuditConfig |
|
buildPartial()
public AuditConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AuditConfig |
|
clear()
public AuditConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
clearAuditLogConfigs()
public AuditConfig.Builder clearAuditLogConfigs()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
clearService()
public AuditConfig.Builder clearService() 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;
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
This builder for chaining. |
getAuditLogConfigs(int index)
public AuditLogConfig getAuditLogConfigs(int index)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig |
|
getAuditLogConfigsBuilder(int index)
public AuditLogConfig.Builder getAuditLogConfigsBuilder(int index)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
getAuditLogConfigsBuilderList()
public List<AuditLogConfig.Builder> getAuditLogConfigsBuilderList()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAuditLogConfigsCount()
public int getAuditLogConfigsCount()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAuditLogConfigsList()
public List<AuditLogConfig> getAuditLogConfigsList()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
List<AuditLogConfig> |
|
getAuditLogConfigsOrBuilder(int index)
public AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfigOrBuilder |
|
getAuditLogConfigsOrBuilderList()
public List<? extends AuditLogConfigOrBuilder> getAuditLogConfigsOrBuilderList()The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.iam.v1.AuditLogConfigOrBuilder> |
|
getDefaultInstanceForType()
public AuditConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuditConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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;
| Returns | |
|---|---|
| Type | Description |
String |
The service. |
getServiceBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for service. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuditConfig other)
public AuditConfig.Builder mergeFrom(AuditConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AuditConfig |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuditConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuditConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
removeAuditLogConfigs(int index)
public AuditConfig.Builder removeAuditLogConfigs(int index)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
setAuditLogConfigs(int index, AuditLogConfig value)
public AuditConfig.Builder setAuditLogConfigs(int index, AuditLogConfig value)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AuditLogConfig |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
setAuditLogConfigs(int index, AuditLogConfig.Builder builderForValue)
public AuditConfig.Builder setAuditLogConfigs(int index, AuditLogConfig.Builder builderForValue)The configuration for logging of each type of permission.
repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AuditLogConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
|
setService(String value)
public AuditConfig.Builder setService(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe service to set. |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
This builder for chaining. |
setServiceBytes(ByteString value)
public AuditConfig.Builder setServiceBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for service to set. |
| Returns | |
|---|---|
| Type | Description |
AuditConfig.Builder |
This builder for chaining. |