Class CustomConfig.ResourceSelector (2.35.0)

public static final class CustomConfig.ResourceSelector extends GeneratedMessageV3 implements CustomConfig.ResourceSelectorOrBuilder

Resource for selecting resource type.

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

Static Fields

RESOURCE_TYPES_FIELD_NUMBER

public static final int RESOURCE_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomConfig.ResourceSelector getDefaultInstance()
Returns
TypeDescription
CustomConfig.ResourceSelector

getDescriptor()

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

newBuilder()

public static CustomConfig.ResourceSelector.Builder newBuilder()
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

newBuilder(CustomConfig.ResourceSelector prototype)

public static CustomConfig.ResourceSelector.Builder newBuilder(CustomConfig.ResourceSelector prototype)
Parameter
NameDescription
prototypeCustomConfig.ResourceSelector
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

parseDelimitedFrom(InputStream input)

public static CustomConfig.ResourceSelector parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomConfig.ResourceSelector parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomConfig.ResourceSelector parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomConfig.ResourceSelector parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomConfig.ResourceSelector parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomConfig.ResourceSelector parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomConfig.ResourceSelector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomConfig.ResourceSelector
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomConfig.ResourceSelector> parser()
Returns
TypeDescription
Parser<ResourceSelector>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<CustomConfig.ResourceSelector> getParserForType()
Returns
TypeDescription
Parser<ResourceSelector>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomConfig.ResourceSelector.Builder newBuilderForType()
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomConfig.ResourceSelector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomConfig.ResourceSelector.Builder toBuilder()
Returns
TypeDescription
CustomConfig.ResourceSelector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException