Class ThreatPreventionProfile (0.94.0)

public final class ThreatPreventionProfile extends GeneratedMessage implements ThreatPreventionProfileOrBuilder

ThreatPreventionProfile defines an action for specific threat signatures or severity levels.

Protobuf type google.cloud.networksecurity.v1.ThreatPreventionProfile

Static Fields

ANTIVIRUS_OVERRIDES_FIELD_NUMBER

public static final int ANTIVIRUS_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_OVERRIDES_FIELD_NUMBER

public static final int SEVERITY_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

THREAT_OVERRIDES_FIELD_NUMBER

public static final int THREAT_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ThreatPreventionProfile getDefaultInstance()
Returns
Type Description
ThreatPreventionProfile

getDescriptor()

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

newBuilder()

public static ThreatPreventionProfile.Builder newBuilder()
Returns
Type Description
ThreatPreventionProfile.Builder

newBuilder(ThreatPreventionProfile prototype)

public static ThreatPreventionProfile.Builder newBuilder(ThreatPreventionProfile prototype)
Parameter
Name Description
prototype ThreatPreventionProfile
Returns
Type Description
ThreatPreventionProfile.Builder

parseDelimitedFrom(InputStream input)

public static ThreatPreventionProfile parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ThreatPreventionProfile parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ThreatPreventionProfile parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ThreatPreventionProfile parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ThreatPreventionProfile parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ThreatPreventionProfile parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ThreatPreventionProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatPreventionProfile
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ThreatPreventionProfile> parser()
Returns
Type Description
Parser<ThreatPreventionProfile>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAntivirusOverrides(int index)

public AntivirusOverride getAntivirusOverrides(int index)

Optional. Configuration for overriding antivirus actions per protocol.

repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AntivirusOverride

getAntivirusOverridesCount()

public int getAntivirusOverridesCount()

Optional. Configuration for overriding antivirus actions per protocol.

repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAntivirusOverridesList()

public List<AntivirusOverride> getAntivirusOverridesList()

Optional. Configuration for overriding antivirus actions per protocol.

repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AntivirusOverride>

getAntivirusOverridesOrBuilder(int index)

public AntivirusOverrideOrBuilder getAntivirusOverridesOrBuilder(int index)

Optional. Configuration for overriding antivirus actions per protocol.

repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AntivirusOverrideOrBuilder

getAntivirusOverridesOrBuilderList()

public List<? extends AntivirusOverrideOrBuilder> getAntivirusOverridesOrBuilderList()

Optional. Configuration for overriding antivirus actions per protocol.

repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder>

getDefaultInstanceForType()

public ThreatPreventionProfile getDefaultInstanceForType()
Returns
Type Description
ThreatPreventionProfile

getParserForType()

public Parser<ThreatPreventionProfile> getParserForType()
Returns
Type Description
Parser<ThreatPreventionProfile>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSeverityOverrides(int index)

public SeverityOverride getSeverityOverrides(int index)

Optional. Configuration for overriding threats actions by severity match.

repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SeverityOverride

getSeverityOverridesCount()

public int getSeverityOverridesCount()

Optional. Configuration for overriding threats actions by severity match.

repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSeverityOverridesList()

public List<SeverityOverride> getSeverityOverridesList()

Optional. Configuration for overriding threats actions by severity match.

repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SeverityOverride>

getSeverityOverridesOrBuilder(int index)

public SeverityOverrideOrBuilder getSeverityOverridesOrBuilder(int index)

Optional. Configuration for overriding threats actions by severity match.

repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SeverityOverrideOrBuilder

getSeverityOverridesOrBuilderList()

public List<? extends SeverityOverrideOrBuilder> getSeverityOverridesOrBuilderList()

Optional. Configuration for overriding threats actions by severity match.

repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder>

getThreatOverrides(int index)

public ThreatOverride getThreatOverrides(int index)

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied.

repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThreatOverride

getThreatOverridesCount()

public int getThreatOverridesCount()

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied.

repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getThreatOverridesList()

public List<ThreatOverride> getThreatOverridesList()

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied.

repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ThreatOverride>

getThreatOverridesOrBuilder(int index)

public ThreatOverrideOrBuilder getThreatOverridesOrBuilder(int index)

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied.

repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThreatOverrideOrBuilder

getThreatOverridesOrBuilderList()

public List<? extends ThreatOverrideOrBuilder> getThreatOverridesOrBuilderList()

Optional. Configuration for overriding threats actions by threat_id match. If a threat is matched both by configuration provided in severity_overrides and threat_overrides, the threat_overrides action is applied.

repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ThreatPreventionProfile.Builder newBuilderForType()
Returns
Type Description
ThreatPreventionProfile.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ThreatPreventionProfile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ThreatPreventionProfile.Builder
Overrides

toBuilder()

public ThreatPreventionProfile.Builder toBuilder()
Returns
Type Description
ThreatPreventionProfile.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException