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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ThreatInfo
build()
ThreatInfo
buildPartial()
ThreatInfo.Builder
clear()
ThreatInfo.Builder
clearAbuseType()
The type of abuse.ThreatInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ThreatInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ThreatInfo.Builder
clearThreatConfidence()
Confidence that the URI is unsafe.ThreatInfo.Builder
clearThreatJustification()
Context about why the URI is unsafe.ThreatInfo.Builder
clone()
ThreatInfo.AbuseType
getAbuseType()
The type of abuse.int
getAbuseTypeValue()
The type of abuse.ThreatInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ThreatInfo.Confidence
getThreatConfidence()
Confidence that the URI is unsafe.ThreatInfo.Confidence.Builder
getThreatConfidenceBuilder()
Confidence that the URI is unsafe.ThreatInfo.ConfidenceOrBuilder
getThreatConfidenceOrBuilder()
Confidence that the URI is unsafe.ThreatInfo.ThreatJustification
getThreatJustification()
Context about why the URI is unsafe.ThreatInfo.ThreatJustification.Builder
getThreatJustificationBuilder()
Context about why the URI is unsafe.ThreatInfo.ThreatJustificationOrBuilder
getThreatJustificationOrBuilder()
Context about why the URI is unsafe.boolean
hasThreatConfidence()
Confidence that the URI is unsafe.boolean
hasThreatJustification()
Context about why the URI is unsafe.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ThreatInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ThreatInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ThreatInfo.Builder
mergeFrom(ThreatInfo other)
ThreatInfo.Builder
mergeThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.ThreatInfo.Builder
mergeThreatJustification(ThreatInfo.ThreatJustification value)
Context about why the URI is unsafe.ThreatInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ThreatInfo.Builder
setAbuseType(ThreatInfo.AbuseType value)
The type of abuse.ThreatInfo.Builder
setAbuseTypeValue(int value)
The type of abuse.ThreatInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ThreatInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ThreatInfo.Builder
setThreatConfidence(ThreatInfo.Confidence value)
Confidence that the URI is unsafe.ThreatInfo.Builder
setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)
Confidence that the URI is unsafe.ThreatInfo.Builder
setThreatJustification(ThreatInfo.ThreatJustification value)
Context about why the URI is unsafe.ThreatInfo.Builder
setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue)
Context about why the URI is unsafe.ThreatInfo.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clear
public ThreatInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
getDefaultInstanceForType
public ThreatInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ThreatInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ThreatInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ThreatInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
setField
public ThreatInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clearField
public ThreatInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
clearOneof
public ThreatInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
setRepeatedField
public ThreatInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
addRepeatedField
public ThreatInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
mergeFrom
public ThreatInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ThreatInfo.Builder>
-
mergeFrom
public ThreatInfo.Builder mergeFrom(ThreatInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAbuseTypeValue
in 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:
getAbuseType
in 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:
hasThreatConfidence
in 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:
getThreatConfidence
in 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:
getThreatConfidenceOrBuilder
in interfaceThreatInfoOrBuilder
-
hasThreatJustification
public boolean hasThreatJustification()
Context about why the URI is unsafe.
.google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
- Specified by:
hasThreatJustification
in 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:
getThreatJustification
in 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:
getThreatJustificationOrBuilder
in interfaceThreatInfoOrBuilder
-
setUnknownFields
public final ThreatInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
mergeUnknownFields
public final ThreatInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.Builder>
-
-