Class ThreatOverride.Builder (0.94.0)

public static final class ThreatOverride.Builder extends GeneratedMessage.Builder<ThreatOverride.Builder> implements ThreatOverrideOrBuilder

Defines what action to take for a specific threat_id match.

Protobuf type google.cloud.networksecurity.v1.ThreatOverride

Static Methods

getDescriptor()

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

Methods

build()

public ThreatOverride build()
Returns
Type Description
ThreatOverride

buildPartial()

public ThreatOverride buildPartial()
Returns
Type Description
ThreatOverride

clear()

public ThreatOverride.Builder clear()
Returns
Type Description
ThreatOverride.Builder
Overrides

clearAction()

public ThreatOverride.Builder clearAction()

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
ThreatOverride.Builder

This builder for chaining.

clearThreatId()

public ThreatOverride.Builder clearThreatId()

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

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

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

clearType()

public ThreatOverride.Builder clearType()

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

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

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ThreatOverride other)

public ThreatOverride.Builder mergeFrom(ThreatOverride other)
Parameter
Name Description
other ThreatOverride
Returns
Type Description
ThreatOverride.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ThreatOverride.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatOverride.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ThreatOverride.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ThreatOverride.Builder
Overrides

setAction(ThreatAction value)

public ThreatOverride.Builder setAction(ThreatAction value)

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];

Parameter
Name Description
value ThreatAction

The action to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

setActionValue(int value)

public ThreatOverride.Builder setActionValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for action to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

setThreatId(String value)

public ThreatOverride.Builder setThreatId(String value)

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

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

Parameter
Name Description
value String

The threatId to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

setThreatIdBytes(ByteString value)

public ThreatOverride.Builder setThreatIdBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for threatId to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

setType(ThreatType value)

public ThreatOverride.Builder setType(ThreatType value)

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

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

Parameter
Name Description
value ThreatType

The type to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.

setTypeValue(int value)

public ThreatOverride.Builder setTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ThreatOverride.Builder

This builder for chaining.