public static final class FeatureSpec.Builder extends GeneratedMessageV3.Builder<FeatureSpec.Builder> implements FeatureSpecOrBuilder
Cloud Audit Logging: Spec for Audit Logging Allowlisting.
Protobuf type google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllAllowlistedServiceAccounts(Iterable<String> values)
public FeatureSpec.Builder addAllAllowlistedServiceAccounts(Iterable<String> values)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameter
Name | Description |
values | Iterable<String>
The allowlistedServiceAccounts to add.
|
Returns
addAllowlistedServiceAccounts(String value)
public FeatureSpec.Builder addAllowlistedServiceAccounts(String value)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameter
Name | Description |
value | String
The allowlistedServiceAccounts to add.
|
Returns
addAllowlistedServiceAccountsBytes(ByteString value)
public FeatureSpec.Builder addAllowlistedServiceAccountsBytes(ByteString value)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameter
Name | Description |
value | ByteString
The bytes of the allowlistedServiceAccounts to add.
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FeatureSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public FeatureSpec build()
Returns
buildPartial()
public FeatureSpec buildPartial()
Returns
clear()
public FeatureSpec.Builder clear()
Returns
Overrides
clearAllowlistedServiceAccounts()
public FeatureSpec.Builder clearAllowlistedServiceAccounts()
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public FeatureSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FeatureSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public FeatureSpec.Builder clone()
Returns
Overrides
getAllowlistedServiceAccounts(int index)
public String getAllowlistedServiceAccounts(int index)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The allowlistedServiceAccounts at the given index.
|
getAllowlistedServiceAccountsBytes(int index)
public ByteString getAllowlistedServiceAccountsBytes(int index)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the allowlistedServiceAccounts at the given index.
|
getAllowlistedServiceAccountsCount()
public int getAllowlistedServiceAccountsCount()
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Returns
Type | Description |
int | The count of allowlistedServiceAccounts.
|
getAllowlistedServiceAccountsList()
public ProtocolStringList getAllowlistedServiceAccountsList()
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Returns
getDefaultInstanceForType()
public FeatureSpec getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(FeatureSpec other)
public FeatureSpec.Builder mergeFrom(FeatureSpec other)
Parameter
Returns
public FeatureSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public FeatureSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FeatureSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAllowlistedServiceAccounts(int index, String value)
public FeatureSpec.Builder setAllowlistedServiceAccounts(int index, String value)
Service account that should be allowlisted to send the audit logs; eg
cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
already exist, but do not need to have any permissions granted to them.
The customer's entitlements will be checked prior to allowlisting (i.e.
the customer must be an Anthos customer.)
repeated string allowlisted_service_accounts = 1;
Parameters
Name | Description |
index | int
The index to set the value at.
|
value | String
The allowlistedServiceAccounts to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public FeatureSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FeatureSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FeatureSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides