Class OrganizationSettings.AssetDiscoveryConfig.Builder (2.63.0)

public static final class OrganizationSettings.AssetDiscoveryConfig.Builder extends GeneratedMessageV3.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder> implements OrganizationSettings.AssetDiscoveryConfigOrBuilder

The configuration used for Asset Discovery runs.

Protobuf type google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllProjectIds(Iterable<String> values)

public OrganizationSettings.AssetDiscoveryConfig.Builder addAllProjectIds(Iterable<String> values)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameter
Name Description
values Iterable<String>

The projectIds to add.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addProjectIds(String value)

public OrganizationSettings.AssetDiscoveryConfig.Builder addProjectIds(String value)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameter
Name Description
value String

The projectIds to add.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addProjectIdsBytes(ByteString value)

public OrganizationSettings.AssetDiscoveryConfig.Builder addProjectIdsBytes(ByteString value)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameter
Name Description
value ByteString

The bytes of the projectIds to add.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrganizationSettings.AssetDiscoveryConfig build()
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig

buildPartial()

public OrganizationSettings.AssetDiscoveryConfig buildPartial()
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig

clear()

public OrganizationSettings.AssetDiscoveryConfig.Builder clear()
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearInclusionMode()

public OrganizationSettings.AssetDiscoveryConfig.Builder clearInclusionMode()

The mode to use for filtering asset discovery.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectIds()

public OrganizationSettings.AssetDiscoveryConfig.Builder clearProjectIds()

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

clone()

public OrganizationSettings.AssetDiscoveryConfig.Builder clone()
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

getDefaultInstanceForType()

public OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType()
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig

getDescriptorForType()

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

getInclusionMode()

public OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode()

The mode to use for filtering asset discovery.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.InclusionMode

The inclusionMode.

getInclusionModeValue()

public int getInclusionModeValue()

The mode to use for filtering asset discovery.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for inclusionMode.

getProjectIds(int index)

public String getProjectIds(int index)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The projectIds at the given index.

getProjectIdsBytes(int index)

public ByteString getProjectIdsBytes(int index)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the projectIds at the given index.

getProjectIdsCount()

public int getProjectIdsCount()

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Returns
Type Description
int

The count of projectIds.

getProjectIdsList()

public ProtocolStringList getProjectIdsList()

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Returns
Type Description
ProtocolStringList

A list containing the projectIds.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OrganizationSettings.AssetDiscoveryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrganizationSettings.AssetDiscoveryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setInclusionMode(OrganizationSettings.AssetDiscoveryConfig.InclusionMode value)

public OrganizationSettings.AssetDiscoveryConfig.Builder setInclusionMode(OrganizationSettings.AssetDiscoveryConfig.InclusionMode value)

The mode to use for filtering asset discovery.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Parameter
Name Description
value OrganizationSettings.AssetDiscoveryConfig.InclusionMode

The inclusionMode to set.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

setInclusionModeValue(int value)

public OrganizationSettings.AssetDiscoveryConfig.Builder setInclusionModeValue(int value)

The mode to use for filtering asset discovery.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for inclusionMode to set.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

setProjectIds(int index, String value)

public OrganizationSettings.AssetDiscoveryConfig.Builder setProjectIds(int index, String value)

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The projectIds to set.

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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