Class ThreatOverride.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder>
com.google.cloud.networksecurity.v1.ThreatOverride.Builder
All Implemented Interfaces:
ThreatOverrideOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ThreatOverride

public static final class ThreatOverride.Builder extends com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder> implements ThreatOverrideOrBuilder
 Defines what action to take for a specific threat_id match.
 
Protobuf type google.cloud.networksecurity.v1.ThreatOverride
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder>
    • clear

      public ThreatOverride.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder>
    • getDefaultInstanceForType

      public ThreatOverride getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ThreatOverride build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ThreatOverride buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ThreatOverride.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ThreatOverride.Builder>
    • mergeFrom

      public ThreatOverride.Builder mergeFrom(ThreatOverride other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ThreatOverride.Builder>
    • mergeFrom

      public ThreatOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ThreatOverride.Builder>
      Throws:
      IOException
    • getThreatId

      public String getThreatId()
       Required. Vendor-specific ID of a threat to override.
       
      string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatId in interface ThreatOverrideOrBuilder
      Returns:
      The threatId.
    • getThreatIdBytes

      public com.google.protobuf.ByteString getThreatIdBytes()
       Required. Vendor-specific ID of a threat to override.
       
      string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatIdBytes in interface ThreatOverrideOrBuilder
      Returns:
      The bytes for threatId.
    • setThreatId

      public ThreatOverride.Builder setThreatId(String value)
       Required. Vendor-specific ID of a threat to override.
       
      string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The threatId to set.
      Returns:
      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:
      This builder for chaining.
    • setThreatIdBytes

      public ThreatOverride.Builder setThreatIdBytes(com.google.protobuf.ByteString value)
       Required. Vendor-specific ID of a threat to override.
       
      string threat_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for threatId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getTypeValue in interface ThreatOverrideOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getType in interface ThreatOverrideOrBuilder
      Returns:
      The type.
    • setType

      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];
      Parameters:
      value - The type to set.
      Returns:
      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:
      This builder for chaining.
    • 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];
      Specified by:
      getActionValue in interface ThreatOverrideOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      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];
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      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];
      Specified by:
      getAction in interface ThreatOverrideOrBuilder
      Returns:
      The action.
    • setAction

      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];
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.