- 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 AuditLogConfig.Builder extends GeneratedMessage.Builder<AuditLogConfig.Builder> implements AuditLogConfigOrBuilderProvides 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuditLogConfig.BuilderImplements
AuditLogConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllExemptedMembers(Iterable<String> values)
public AuditLogConfig.Builder addAllExemptedMembers(Iterable<String> values)Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The exemptedMembers to add. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
addExemptedMembers(String value)
public AuditLogConfig.Builder addExemptedMembers(String value)Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe exemptedMembers to add. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
addExemptedMembersBytes(ByteString value)
public AuditLogConfig.Builder addExemptedMembersBytes(ByteString value)Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the exemptedMembers to add. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
build()
public AuditLogConfig build()| Returns | |
|---|---|
| Type | Description |
AuditLogConfig |
|
buildPartial()
public AuditLogConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AuditLogConfig |
|
clear()
public AuditLogConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
clearExemptedMembers()
public AuditLogConfig.Builder clearExemptedMembers()Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
clearLogType()
public AuditLogConfig.Builder clearLogType()The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1;
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AuditLogConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuditLogConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExemptedMembers(int index)
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.
repeated string exempted_members = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The exemptedMembers at the given index. |
getExemptedMembersBytes(int index)
public ByteString getExemptedMembersBytes(int index)Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the exemptedMembers at the given index. |
getExemptedMembersCount()
public int getExemptedMembersCount()Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of exemptedMembers. |
getExemptedMembersList()
public ProtocolStringList getExemptedMembersList()Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the exemptedMembers. |
getLogType()
public AuditLogConfig.LogType getLogType()The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1;
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.LogType |
The logType. |
getLogTypeValue()
public int getLogTypeValue()The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for logType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuditLogConfig other)
public AuditLogConfig.Builder mergeFrom(AuditLogConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AuditLogConfig |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuditLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuditLogConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
|
setExemptedMembers(int index, String value)
public AuditLogConfig.Builder setExemptedMembers(int index, String value)Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
repeated string exempted_members = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe exemptedMembers to set. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
setLogType(AuditLogConfig.LogType value)
public AuditLogConfig.Builder setLogType(AuditLogConfig.LogType value)The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
AuditLogConfig.LogTypeThe logType to set. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |
setLogTypeValue(int value)
public AuditLogConfig.Builder setLogTypeValue(int value)The log type that this config enables.
.google.iam.v1.AuditLogConfig.LogType log_type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for logType to set. |
| Returns | |
|---|---|
| Type | Description |
AuditLogConfig.Builder |
This builder for chaining. |