Class FeatureSpec.Builder (1.46.0)

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
Type Description
Descriptor

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
Type Description
FeatureSpec.Builder

This builder for chaining.

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
Type Description
FeatureSpec.Builder

This builder for chaining.

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
Type Description
FeatureSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FeatureSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FeatureSpec.Builder
Overrides

build()

public FeatureSpec build()
Returns
Type Description
FeatureSpec

buildPartial()

public FeatureSpec buildPartial()
Returns
Type Description
FeatureSpec

clear()

public FeatureSpec.Builder clear()
Returns
Type Description
FeatureSpec.Builder
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
Type Description
FeatureSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FeatureSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FeatureSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FeatureSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FeatureSpec.Builder
Overrides

clone()

public FeatureSpec.Builder clone()
Returns
Type Description
FeatureSpec.Builder
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
Type Description
ProtocolStringList

A list containing the allowlistedServiceAccounts.

getDefaultInstanceForType()

public FeatureSpec getDefaultInstanceForType()
Returns
Type Description
FeatureSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FeatureSpec other)

public FeatureSpec.Builder mergeFrom(FeatureSpec other)
Parameter
Name Description
other FeatureSpec
Returns
Type Description
FeatureSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FeatureSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FeatureSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FeatureSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FeatureSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FeatureSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FeatureSpec.Builder
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
Type Description
FeatureSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FeatureSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FeatureSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FeatureSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FeatureSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FeatureSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FeatureSpec.Builder
Overrides