Class PiAndJailbreakFilterSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings
All Implemented Interfaces:
PiAndJailbreakFilterSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class PiAndJailbreakFilterSettings extends com.google.protobuf.GeneratedMessage implements PiAndJailbreakFilterSettingsOrBuilder
 Prompt injection and Jailbreak Filter settings.
 
Protobuf type google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings
See Also:
  • Field Details

    • FILTER_ENFORCEMENT_FIELD_NUMBER

      public static final int FILTER_ENFORCEMENT_FIELD_NUMBER
      See Also:
    • CONFIDENCE_LEVEL_FIELD_NUMBER

      public static final int CONFIDENCE_LEVEL_FIELD_NUMBER
      See Also:
  • 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
    • getFilterEnforcementValue

      public int getFilterEnforcementValue()
       Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
       disabled.
       
      .google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterEnforcementValue in interface PiAndJailbreakFilterSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for filterEnforcement.
    • getFilterEnforcement

       Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
       disabled.
       
      .google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterEnforcement in interface PiAndJailbreakFilterSettingsOrBuilder
      Returns:
      The filterEnforcement.
    • getConfidenceLevelValue

      public int getConfidenceLevelValue()
       Optional. Confidence level for this filter.
       Confidence level is used to determine the threshold for the filter. If
       detection confidence is equal to or greater than the specified level, a
       positive match is reported. Confidence level will only be used if the
       filter is enabled.
       
      .google.cloud.modelarmor.v1beta.DetectionConfidenceLevel confidence_level = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfidenceLevelValue in interface PiAndJailbreakFilterSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for confidenceLevel.
    • getConfidenceLevel

      public DetectionConfidenceLevel getConfidenceLevel()
       Optional. Confidence level for this filter.
       Confidence level is used to determine the threshold for the filter. If
       detection confidence is equal to or greater than the specified level, a
       positive match is reported. Confidence level will only be used if the
       filter is enabled.
       
      .google.cloud.modelarmor.v1beta.DetectionConfidenceLevel confidence_level = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfidenceLevel in interface PiAndJailbreakFilterSettingsOrBuilder
      Returns:
      The confidenceLevel.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PiAndJailbreakFilterSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PiAndJailbreakFilterSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PiAndJailbreakFilterSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PiAndJailbreakFilterSettings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PiAndJailbreakFilterSettings.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PiAndJailbreakFilterSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PiAndJailbreakFilterSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PiAndJailbreakFilterSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<PiAndJailbreakFilterSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PiAndJailbreakFilterSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder