Class ThreatOverride (0.94.0)

public final class ThreatOverride extends GeneratedMessage implements ThreatOverrideOrBuilder

Defines what action to take for a specific threat_id match.

Protobuf type google.cloud.networksecurity.v1.ThreatOverride

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
Type Description
int

THREAT_ID_FIELD_NUMBER

public static final int THREAT_ID_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ThreatOverride getDefaultInstance()
Returns
Type Description
ThreatOverride

getDescriptor()

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

newBuilder()

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

newBuilder(ThreatOverride prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAction()

public ThreatAction getAction()

Required. Threat action override. For some threat types, only a subset of actions applies.

.google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ThreatAction

The action.

getActionValue()

public int getActionValue()

Required. Threat action override. For some threat types, only a subset of actions applies.

.google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public ThreatOverride getDefaultInstanceForType()
Returns
Type Description
ThreatOverride

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThreatId()

public String getThreatId()

Required. Vendor-specific ID of a threat to override.

string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The threatId.

getThreatIdBytes()

public ByteString getThreatIdBytes()

Required. Vendor-specific ID of a threat to override.

string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for threatId.

getType()

public ThreatType getType()

Output only. Type of the threat (read only).

.google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ThreatType

The type.

getTypeValue()

public int getTypeValue()

Output only. Type of the threat (read only).

.google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

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 ThreatOverride.Builder newBuilderForType()
Returns
Type Description
ThreatOverride.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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