- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class AuditLogConfig.Builder extends GeneratedMessageV3.Builder<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.cloud.compute.v1.AuditLogConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuditLogConfig.BuilderImplements
AuditLogConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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 = 232615576;
Name | Description |
values | Iterable<String> The exemptedMembers to add. |
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 = 232615576;
Name | Description |
value | String The exemptedMembers to add. |
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 = 232615576;
Name | Description |
value | ByteString The bytes of the exemptedMembers to add. |
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuditLogConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AuditLogConfig.Builder |
build()
public AuditLogConfig build()
Type | Description |
AuditLogConfig |
buildPartial()
public AuditLogConfig buildPartial()
Type | Description |
AuditLogConfig |
clear()
public AuditLogConfig.Builder clear()
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 = 232615576;
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AuditLogConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AuditLogConfig.Builder |
clearIgnoreChildExemptions()
public AuditLogConfig.Builder clearIgnoreChildExemptions()
This is deprecated and has no effect. Do not use.
optional bool ignore_child_exemptions = 70141850;
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
clearLogType()
public AuditLogConfig.Builder clearLogType()
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AuditLogConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AuditLogConfig.Builder |
clone()
public AuditLogConfig.Builder clone()
Type | Description |
AuditLogConfig.Builder |
getDefaultInstanceForType()
public AuditLogConfig getDefaultInstanceForType()
Type | Description |
AuditLogConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 = 232615576;
Name | Description |
index | int The index of the element to return. |
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 = 232615576;
Name | Description |
index | int The index of the value to return. |
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 = 232615576;
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 = 232615576;
Type | Description |
ProtocolStringList | A list containing the exemptedMembers. |
getIgnoreChildExemptions()
public boolean getIgnoreChildExemptions()
This is deprecated and has no effect. Do not use.
optional bool ignore_child_exemptions = 70141850;
Type | Description |
boolean | The ignoreChildExemptions. |
getLogType()
public String getLogType()
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Type | Description |
String | The logType. |
getLogTypeBytes()
public ByteString getLogTypeBytes()
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Type | Description |
ByteString | The bytes for logType. |
hasIgnoreChildExemptions()
public boolean hasIgnoreChildExemptions()
This is deprecated and has no effect. Do not use.
optional bool ignore_child_exemptions = 70141850;
Type | Description |
boolean | Whether the ignoreChildExemptions field is set. |
hasLogType()
public boolean hasLogType()
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Type | Description |
boolean | Whether the logType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AuditLogConfig other)
public AuditLogConfig.Builder mergeFrom(AuditLogConfig other)
Name | Description |
other | AuditLogConfig |
Type | Description |
AuditLogConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuditLogConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuditLogConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AuditLogConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AuditLogConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuditLogConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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 = 232615576;
Name | Description |
index | int The index to set the value at. |
value | String The exemptedMembers to set. |
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AuditLogConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AuditLogConfig.Builder |
setIgnoreChildExemptions(boolean value)
public AuditLogConfig.Builder setIgnoreChildExemptions(boolean value)
This is deprecated and has no effect. Do not use.
optional bool ignore_child_exemptions = 70141850;
Name | Description |
value | boolean The ignoreChildExemptions to set. |
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
setLogType(String value)
public AuditLogConfig.Builder setLogType(String value)
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Name | Description |
value | String The logType to set. |
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
setLogTypeBytes(ByteString value)
public AuditLogConfig.Builder setLogTypeBytes(ByteString value)
The log type that this config enables. Check the LogType enum for the list of possible values.
optional string log_type = 403115861;
Name | Description |
value | ByteString The bytes for logType to set. |
Type | Description |
AuditLogConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuditLogConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AuditLogConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AuditLogConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AuditLogConfig.Builder |