public static final class ThreatOverride.Builder extends GeneratedMessage.Builder<ThreatOverride.Builder> implements ThreatOverrideOrBuilderDefines what action to take for a specific threat_id match.
Protobuf type google.cloud.networksecurity.v1.ThreatOverride
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ThreatOverride.BuilderImplements
ThreatOverrideOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ThreatOverride.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ThreatOverride.Builder |
|
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 |
ThreatActionThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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 |
ThreatTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ThreatOverride.Builder |
This builder for chaining. |