Package com.google.webrisk.v1
Class ThreatInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
com.google.webrisk.v1.ThreatInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ThreatInfoOrBuilder,Cloneable
- Enclosing class:
- ThreatInfo
public static final class ThreatInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
implements ThreatInfoOrBuilder
Context about the submission including the type of abuse found on the URI and supporting details.Protobuf type
google.cloud.webrisk.v1.ThreatInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The type of abuse.Confidence that the URI is unsafe.Context about why the URI is unsafe.The type of abuse.intThe type of abuse.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfidence that the URI is unsafe.Confidence that the URI is unsafe.Confidence that the URI is unsafe.Context about why the URI is unsafe.Context about why the URI is unsafe.Context about why the URI is unsafe.booleanConfidence that the URI is unsafe.booleanContext about why the URI is unsafe.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ThreatInfo other) Confidence that the URI is unsafe.Context about why the URI is unsafe.setAbuseType(ThreatInfo.AbuseType value) The type of abuse.setAbuseTypeValue(int value) The type of abuse.Confidence that the URI is unsafe.setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue) Confidence that the URI is unsafe.Context about why the URI is unsafe.setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue) Context about why the URI is unsafe.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThreatInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder>
-
mergeFrom
public ThreatInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThreatInfo.Builder>- Throws:
IOException
-
getAbuseTypeValue
public int getAbuseTypeValue()The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Specified by:
getAbuseTypeValuein interfaceThreatInfoOrBuilder- Returns:
- The enum numeric value on the wire for abuseType.
-
setAbuseTypeValue
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Parameters:
value- The enum numeric value on the wire for abuseType to set.- Returns:
- This builder for chaining.
-
getAbuseType
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Specified by:
getAbuseTypein interfaceThreatInfoOrBuilder- Returns:
- The abuseType.
-
setAbuseType
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Parameters:
value- The abuseType to set.- Returns:
- This builder for chaining.
-
clearAbuseType
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Returns:
- This builder for chaining.
-
hasThreatConfidence
public boolean hasThreatConfidence()Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;- Specified by:
hasThreatConfidencein interfaceThreatInfoOrBuilder- Returns:
- Whether the threatConfidence field is set.
-
getThreatConfidence
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;- Specified by:
getThreatConfidencein interfaceThreatInfoOrBuilder- Returns:
- The threatConfidence.
-
setThreatConfidence
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2; -
setThreatConfidence
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2; -
mergeThreatConfidence
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2; -
clearThreatConfidence
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2; -
getThreatConfidenceBuilder
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2; -
getThreatConfidenceOrBuilder
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;- Specified by:
getThreatConfidenceOrBuilderin interfaceThreatInfoOrBuilder
-
hasThreatJustification
public boolean hasThreatJustification()Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;- Specified by:
hasThreatJustificationin interfaceThreatInfoOrBuilder- Returns:
- Whether the threatJustification field is set.
-
getThreatJustification
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;- Specified by:
getThreatJustificationin interfaceThreatInfoOrBuilder- Returns:
- The threatJustification.
-
setThreatJustification
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3; -
setThreatJustification
public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue) Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3; -
mergeThreatJustification
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3; -
clearThreatJustification
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3; -
getThreatJustificationBuilder
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3; -
getThreatJustificationOrBuilder
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;- Specified by:
getThreatJustificationOrBuilderin interfaceThreatInfoOrBuilder
-