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.GeneratedMessageV3.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.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 typegoogle.cloud.webrisk.v1.ThreatInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreatInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ThreatInfobuild()ThreatInfobuildPartial()ThreatInfo.Builderclear()ThreatInfo.BuilderclearAbuseType()The type of abuse.ThreatInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ThreatInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ThreatInfo.BuilderclearThreatConfidence()Confidence that the URI is unsafe.ThreatInfo.BuilderclearThreatJustification()Context about why the URI is unsafe.ThreatInfo.Builderclone()ThreatInfo.AbuseTypegetAbuseType()The type of abuse.intgetAbuseTypeValue()The type of abuse.ThreatInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ThreatInfo.ConfidencegetThreatConfidence()Confidence that the URI is unsafe.ThreatInfo.Confidence.BuildergetThreatConfidenceBuilder()Confidence that the URI is unsafe.ThreatInfo.ConfidenceOrBuildergetThreatConfidenceOrBuilder()Confidence that the URI is unsafe.ThreatInfo.ThreatJustificationgetThreatJustification()Context about why the URI is unsafe.ThreatInfo.ThreatJustification.BuildergetThreatJustificationBuilder()Context about why the URI is unsafe.ThreatInfo.ThreatJustificationOrBuildergetThreatJustificationOrBuilder()Context about why the URI is unsafe.booleanhasThreatConfidence()Confidence that the URI is unsafe.booleanhasThreatJustification()Context about why the URI is unsafe.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ThreatInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ThreatInfo.BuildermergeFrom(com.google.protobuf.Message other)ThreatInfo.BuildermergeFrom(ThreatInfo other)ThreatInfo.BuildermergeThreatConfidence(ThreatInfo.Confidence value)Confidence that the URI is unsafe.ThreatInfo.BuildermergeThreatJustification(ThreatInfo.ThreatJustification value)Context about why the URI is unsafe.ThreatInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ThreatInfo.BuildersetAbuseType(ThreatInfo.AbuseType value)The type of abuse.ThreatInfo.BuildersetAbuseTypeValue(int value)The type of abuse.ThreatInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ThreatInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ThreatInfo.BuildersetThreatConfidence(ThreatInfo.Confidence value)Confidence that the URI is unsafe.ThreatInfo.BuildersetThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)Confidence that the URI is unsafe.ThreatInfo.BuildersetThreatJustification(ThreatInfo.ThreatJustification value)Context about why the URI is unsafe.ThreatInfo.BuildersetThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue)Context about why the URI is unsafe.ThreatInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clear
public ThreatInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
getDefaultInstanceForType
public ThreatInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ThreatInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ThreatInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ThreatInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
setField
public ThreatInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clearField
public ThreatInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clearOneof
public ThreatInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
setRepeatedField
public ThreatInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
addRepeatedField
public ThreatInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
mergeFrom
public ThreatInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThreatInfo.Builder>
-
mergeFrom
public ThreatInfo.Builder mergeFrom(ThreatInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public ThreatInfo.Builder setAbuseTypeValue(int value)
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
public ThreatInfo.AbuseType getAbuseType()
The type of abuse.
.google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;- Specified by:
getAbuseTypein interfaceThreatInfoOrBuilder- Returns:
- The abuseType.
-
setAbuseType
public ThreatInfo.Builder setAbuseType(ThreatInfo.AbuseType value)
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
public ThreatInfo.Builder 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
public ThreatInfo.Confidence getThreatConfidence()
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;- Specified by:
getThreatConfidencein interfaceThreatInfoOrBuilder- Returns:
- The threatConfidence.
-
setThreatConfidence
public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
-
setThreatConfidence
public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
-
mergeThreatConfidence
public ThreatInfo.Builder mergeThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
-
clearThreatConfidence
public ThreatInfo.Builder clearThreatConfidence()
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;- 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
public ThreatInfo.ThreatJustification 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
public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification value)
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
public ThreatInfo.Builder mergeThreatJustification(ThreatInfo.ThreatJustification value)
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
-
clearThreatJustification
public ThreatInfo.Builder clearThreatJustification()
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;- Specified by:
getThreatJustificationOrBuilderin interfaceThreatInfoOrBuilder
-
setUnknownFields
public final ThreatInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
mergeUnknownFields
public final ThreatInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
-