Class OrganizationSettings.AssetDiscoveryConfig.Builder (2.48.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.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFolderIds(Iterable<String> values)

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

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameter
NameDescription
valuesIterable<String>

The folderIds to add.

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

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
NameDescription
valuesIterable<String>

The projectIds to add.

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addFolderIds(String value)

public OrganizationSettings.AssetDiscoveryConfig.Builder addFolderIds(String value)

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameter
NameDescription
valueString

The folderIds to add.

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addFolderIdsBytes(ByteString value)

public OrganizationSettings.AssetDiscoveryConfig.Builder addFolderIdsBytes(ByteString value)

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameter
NameDescription
valueByteString

The bytes of the folderIds to add.

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

The projectIds to add.

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

The bytes of the projectIds to add.

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrganizationSettings.AssetDiscoveryConfig build()
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig

buildPartial()

public OrganizationSettings.AssetDiscoveryConfig buildPartial()
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig

clear()

public OrganizationSettings.AssetDiscoveryConfig.Builder clear()
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFolderIds()

public OrganizationSettings.AssetDiscoveryConfig.Builder clearFolderIds()

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

clearInclusionMode()

public OrganizationSettings.AssetDiscoveryConfig.Builder clearInclusionMode()

The mode to use for filtering asset discovery.

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

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OrganizationSettings.AssetDiscoveryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

clone()

public OrganizationSettings.AssetDiscoveryConfig.Builder clone()
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

getDefaultInstanceForType()

public OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType()
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolderIds(int index)

public String getFolderIds(int index)

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The folderIds at the given index.

getFolderIdsBytes(int index)

public ByteString getFolderIdsBytes(int index)

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the folderIds at the given index.

getFolderIdsCount()

public int getFolderIdsCount()

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Returns
TypeDescription
int

The count of folderIds.

getFolderIdsList()

public ProtocolStringList getFolderIdsList()

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the folderIds.

getInclusionMode()

public OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode()

The mode to use for filtering asset discovery.

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

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.InclusionMode

The inclusionMode.

getInclusionModeValue()

public int getInclusionModeValue()

The mode to use for filtering asset discovery.

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

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

The index of the element to return.

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

The index of the value to return.

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

The count of projectIds.

getProjectIdsList()

public ProtocolStringList getProjectIdsList()

The project ids to use for filtering asset discovery.

repeated string project_ids = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the projectIds.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OrganizationSettings.AssetDiscoveryConfig other)

public OrganizationSettings.AssetDiscoveryConfig.Builder mergeFrom(OrganizationSettings.AssetDiscoveryConfig other)
Parameter
NameDescription
otherOrganizationSettings.AssetDiscoveryConfig
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrganizationSettings.AssetDiscoveryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFolderIds(int index, String value)

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

The folder ids to use for filtering asset discovery. It consists of only digits, e.g., 756619654966.

repeated string folder_ids = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The folderIds to set.

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

This builder for chaining.

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.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Parameter
NameDescription
valueOrganizationSettings.AssetDiscoveryConfig.InclusionMode

The inclusionMode to set.

Returns
TypeDescription
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.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;

Parameter
NameDescription
valueint

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

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

The index to set the value at.

valueString

The projectIds to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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