public final class CsamFilterSettings extends GeneratedMessage implements CsamFilterSettingsOrBuilderChild sexual abuse material (CSAM) filter settings.
Protobuf type google.cloud.modelarmor.v1.CsamFilterSettings
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CsamFilterSettingsImplements
CsamFilterSettingsOrBuilderStatic Fields
CONFIDENCE_LEVEL_FIELD_NUMBER
public static final int CONFIDENCE_LEVEL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
FILTER_ENFORCEMENT_FIELD_NUMBER
public static final int FILTER_ENFORCEMENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static CsamFilterSettings getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static CsamFilterSettings.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.Builder |
|
newBuilder(CsamFilterSettings prototype)
public static CsamFilterSettings.Builder newBuilder(CsamFilterSettings prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
CsamFilterSettings |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.Builder |
|
parseDelimitedFrom(InputStream input)
public static CsamFilterSettings parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static CsamFilterSettings parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static CsamFilterSettings parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static CsamFilterSettings parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static CsamFilterSettings parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static CsamFilterSettings parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CsamFilterSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<CsamFilterSettings> parser()| Returns | |
|---|---|
| Type | Description |
Parser<CsamFilterSettings> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getConfidenceLevel()
public DetectionConfidenceLevel getConfidenceLevel()Optional. Confidence level for this CSAM filter. This field is used to determine the threshold for the filter. If detection confidence is greater than or equal to the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.
.google.cloud.modelarmor.v1.DetectionConfidenceLevel confidence_level = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DetectionConfidenceLevel |
The confidenceLevel. |
getConfidenceLevelValue()
public int getConfidenceLevelValue()Optional. Confidence level for this CSAM filter. This field is used to determine the threshold for the filter. If detection confidence is greater than or equal to the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.
.google.cloud.modelarmor.v1.DetectionConfidenceLevel confidence_level = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for confidenceLevel. |
getDefaultInstanceForType()
public CsamFilterSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings |
|
getFilterEnforcement()
public CsamFilterSettings.CsamFilterEnforcement getFilterEnforcement()Optional. Specifies whether the CSAM filter is enabled or disabled.
.google.cloud.modelarmor.v1.CsamFilterSettings.CsamFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.CsamFilterEnforcement |
The filterEnforcement. |
getFilterEnforcementValue()
public int getFilterEnforcementValue()Optional. Specifies whether the CSAM filter is enabled or disabled.
.google.cloud.modelarmor.v1.CsamFilterSettings.CsamFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for filterEnforcement. |
getParserForType()
public Parser<CsamFilterSettings> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CsamFilterSettings> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CsamFilterSettings.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CsamFilterSettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.Builder |
|
toBuilder()
public CsamFilterSettings.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CsamFilterSettings.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|