Class CustomConfig.ResourceSelector.Builder (2.43.0)

public static final class CustomConfig.ResourceSelector.Builder extends GeneratedMessageV3.Builder<CustomConfig.ResourceSelector.Builder> implements CustomConfig.ResourceSelectorOrBuilder

Resource for selecting resource type.

Protobuf type google.cloud.securitycenter.v1.CustomConfig.ResourceSelector

Static Methods

getDescriptor()

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

Methods

addAllResourceTypes(Iterable<String> values)

public CustomConfig.ResourceSelector.Builder addAllResourceTypes(Iterable<String> values)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameter
NameDescription
valuesIterable<String>

The resourceTypes to add.

Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceTypes(String value)

public CustomConfig.ResourceSelector.Builder addResourceTypes(String value)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameter
NameDescription
valueString

The resourceTypes to add.

Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

This builder for chaining.

addResourceTypesBytes(ByteString value)

public CustomConfig.ResourceSelector.Builder addResourceTypesBytes(ByteString value)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameter
NameDescription
valueByteString

The bytes of the resourceTypes to add.

Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

This builder for chaining.

build()

public CustomConfig.ResourceSelector build()
Returns
TypeDescription
CustomConfig.ResourceSelector

buildPartial()

public CustomConfig.ResourceSelector buildPartial()
Returns
TypeDescription
CustomConfig.ResourceSelector

clear()

public CustomConfig.ResourceSelector.Builder clear()
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceTypes()

public CustomConfig.ResourceSelector.Builder clearResourceTypes()

The resource types to run the detector on.

repeated string resource_types = 1;

Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

This builder for chaining.

clone()

public CustomConfig.ResourceSelector.Builder clone()
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder
Overrides

getDefaultInstanceForType()

public CustomConfig.ResourceSelector getDefaultInstanceForType()
Returns
TypeDescription
CustomConfig.ResourceSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResourceTypes(int index)

public String getResourceTypes(int index)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resourceTypes at the given index.

getResourceTypesBytes(int index)

public ByteString getResourceTypesBytes(int index)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resourceTypes at the given index.

getResourceTypesCount()

public int getResourceTypesCount()

The resource types to run the detector on.

repeated string resource_types = 1;

Returns
TypeDescription
int

The count of resourceTypes.

getResourceTypesList()

public ProtocolStringList getResourceTypesList()

The resource types to run the detector on.

repeated string resource_types = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the resourceTypes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomConfig.ResourceSelector other)

public CustomConfig.ResourceSelector.Builder mergeFrom(CustomConfig.ResourceSelector other)
Parameter
NameDescription
otherCustomConfig.ResourceSelector
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomConfig.ResourceSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceTypes(int index, String value)

public CustomConfig.ResourceSelector.Builder setResourceTypes(int index, String value)

The resource types to run the detector on.

repeated string resource_types = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resourceTypes to set.

Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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