Class CustomConfig.ResourceSelector.Builder (0.8.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.securitycentermanagement.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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of resourceTypes.

getResourceTypesList()

public ProtocolStringList getResourceTypesList()

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The resource types to run the detector on.

repeated string resource_types = 1 [(.google.api.field_behavior) = OPTIONAL];

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