public static final class ThreatInfo.Builder extends GeneratedMessageV3.Builder<ThreatInfo.Builder> implements ThreatInfoOrBuilder
Context about the submission including the type of abuse found on the URI and
supporting details.
option (google.api.message_visibility).restriction = "TRUSTED_TESTER";
Protobuf type google.cloud.webrisk.v1.ThreatInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ThreatInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ThreatInfo build()
buildPartial()
public ThreatInfo buildPartial()
clear()
public ThreatInfo.Builder clear()
Overrides
clearAbuseType()
public ThreatInfo.Builder clearAbuseType()
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
clearField(Descriptors.FieldDescriptor field)
public ThreatInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ThreatInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearThreatConfidence()
public ThreatInfo.Builder clearThreatConfidence()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
clearThreatJustification()
public ThreatInfo.Builder clearThreatJustification()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
clone()
public ThreatInfo.Builder clone()
Overrides
getAbuseType()
public ThreatInfo.AbuseType getAbuseType()
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
getAbuseTypeValue()
public int getAbuseTypeValue()
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for abuseType.
|
getDefaultInstanceForType()
public ThreatInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getThreatConfidence()
public ThreatInfo.Confidence getThreatConfidence()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
getThreatConfidenceBuilder()
public ThreatInfo.Confidence.Builder getThreatConfidenceBuilder()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
getThreatConfidenceOrBuilder()
public ThreatInfo.ConfidenceOrBuilder getThreatConfidenceOrBuilder()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
getThreatJustification()
public ThreatInfo.ThreatJustification getThreatJustification()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
getThreatJustificationBuilder()
public ThreatInfo.ThreatJustification.Builder getThreatJustificationBuilder()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
getThreatJustificationOrBuilder()
public ThreatInfo.ThreatJustificationOrBuilder getThreatJustificationOrBuilder()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
hasThreatConfidence()
public boolean hasThreatConfidence()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
Returns |
Type |
Description |
boolean |
Whether the threatConfidence field is set.
|
hasThreatJustification()
public boolean hasThreatJustification()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
Returns |
Type |
Description |
boolean |
Whether the threatJustification field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ThreatInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ThreatInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(ThreatInfo other)
public ThreatInfo.Builder mergeFrom(ThreatInfo other)
mergeThreatConfidence(ThreatInfo.Confidence value)
public ThreatInfo.Builder mergeThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
mergeThreatJustification(ThreatInfo.ThreatJustification value)
public ThreatInfo.Builder mergeThreatJustification(ThreatInfo.ThreatJustification value)
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ThreatInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAbuseType(ThreatInfo.AbuseType value)
public ThreatInfo.Builder setAbuseType(ThreatInfo.AbuseType value)
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
setAbuseTypeValue(int value)
public ThreatInfo.Builder setAbuseTypeValue(int value)
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for abuseType to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ThreatInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ThreatInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setThreatConfidence(ThreatInfo.Confidence value)
public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)
public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
setThreatJustification(ThreatInfo.ThreatJustification value)
public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification value)
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue)
public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue)
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
setUnknownFields(UnknownFieldSet unknownFields)
public final ThreatInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides