Class FeatureSpec.Builder (1.6.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
TypeDescription
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
NameDescription
valuesIterable<String>

The allowlistedServiceAccounts to add.

Returns
TypeDescription
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
NameDescription
valueString

The allowlistedServiceAccounts to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the allowlistedServiceAccounts to add.

Returns
TypeDescription
FeatureSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FeatureSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FeatureSpec.Builder
Overrides

build()

public FeatureSpec build()
Returns
TypeDescription
FeatureSpec

buildPartial()

public FeatureSpec buildPartial()
Returns
TypeDescription
FeatureSpec

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FeatureSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FeatureSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FeatureSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FeatureSpec.Builder
Overrides

clone()

public FeatureSpec.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the allowlistedServiceAccounts.

getDefaultInstanceForType()

public FeatureSpec getDefaultInstanceForType()
Returns
TypeDescription
FeatureSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FeatureSpec other)

public FeatureSpec.Builder mergeFrom(FeatureSpec other)
Parameter
NameDescription
otherFeatureSpec
Returns
TypeDescription
FeatureSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FeatureSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureSpec.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FeatureSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FeatureSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FeatureSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The allowlistedServiceAccounts to set.

Returns
TypeDescription
FeatureSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FeatureSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FeatureSpec.Builder
Overrides

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

public FeatureSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FeatureSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FeatureSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FeatureSpec.Builder
Overrides