Package com.google.webrisk.v1
Class ThreatInfo.ThreatJustification.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
- com.google.webrisk.v1.ThreatInfo.ThreatJustification.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ThreatInfo.ThreatJustificationOrBuilder,Cloneable
- Enclosing class:
- ThreatInfo.ThreatJustification
public static final class ThreatInfo.ThreatJustification.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder> implements ThreatInfo.ThreatJustificationOrBuilder
Context about why the URI is unsafe.
Protobuf typegoogle.cloud.webrisk.v1.ThreatInfo.ThreatJustification
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreatInfo.ThreatJustification.BuilderaddAllComments(Iterable<String> values)Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.BuilderaddAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuilderaddAllLabelsValue(Iterable<Integer> values)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuilderaddComments(String value)Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.BuilderaddCommentsBytes(com.google.protobuf.ByteString value)Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.BuilderaddLabels(ThreatInfo.ThreatJustification.JustificationLabel value)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuilderaddLabelsValue(int value)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ThreatInfo.ThreatJustificationbuild()ThreatInfo.ThreatJustificationbuildPartial()ThreatInfo.ThreatJustification.Builderclear()ThreatInfo.ThreatJustification.BuilderclearComments()Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ThreatInfo.ThreatJustification.BuilderclearLabels()Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ThreatInfo.ThreatJustification.Builderclone()StringgetComments(int index)Free-form context on why this URI is unsafe.com.google.protobuf.ByteStringgetCommentsBytes(int index)Free-form context on why this URI is unsafe.intgetCommentsCount()Free-form context on why this URI is unsafe.com.google.protobuf.ProtocolStringListgetCommentsList()Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustificationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ThreatInfo.ThreatJustification.JustificationLabelgetLabels(int index)Labels associated with this URI that explain how it was classified.intgetLabelsCount()Labels associated with this URI that explain how it was classified.List<ThreatInfo.ThreatJustification.JustificationLabel>getLabelsList()Labels associated with this URI that explain how it was classified.intgetLabelsValue(int index)Labels associated with this URI that explain how it was classified.List<Integer>getLabelsValueList()Labels associated with this URI that explain how it was classified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ThreatInfo.ThreatJustification.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ThreatInfo.ThreatJustification.BuildermergeFrom(com.google.protobuf.Message other)ThreatInfo.ThreatJustification.BuildermergeFrom(ThreatInfo.ThreatJustification other)ThreatInfo.ThreatJustification.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ThreatInfo.ThreatJustification.BuildersetComments(int index, String value)Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ThreatInfo.ThreatJustification.BuildersetLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuildersetLabelsValue(int index, int value)Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
clear
public ThreatInfo.ThreatJustification.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.ThreatJustification.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.ThreatJustification.Builder>
-
getDefaultInstanceForType
public ThreatInfo.ThreatJustification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ThreatInfo.ThreatJustification build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ThreatInfo.ThreatJustification buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
setField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
clearField
public ThreatInfo.ThreatJustification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
clearOneof
public ThreatInfo.ThreatJustification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
setRepeatedField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
addRepeatedField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
mergeFrom
public ThreatInfo.ThreatJustification.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ThreatInfo.ThreatJustification.Builder>
-
mergeFrom
public ThreatInfo.ThreatJustification.Builder mergeFrom(ThreatInfo.ThreatJustification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
mergeFrom
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>- Throws:
IOException
-
getLabelsList
public List<ThreatInfo.ThreatJustification.JustificationLabel> getLabelsList()
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Specified by:
getLabelsListin interfaceThreatInfo.ThreatJustificationOrBuilder- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Specified by:
getLabelsCountin interfaceThreatInfo.ThreatJustificationOrBuilder- Returns:
- The count of labels.
-
getLabels
public ThreatInfo.ThreatJustification.JustificationLabel getLabels(int index)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Specified by:
getLabelsin interfaceThreatInfo.ThreatJustificationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The labels at the given index.
-
setLabels
public ThreatInfo.ThreatJustification.Builder setLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
index- The index to set the value at.value- The labels to set.- Returns:
- This builder for chaining.
-
addLabels
public ThreatInfo.ThreatJustification.Builder addLabels(ThreatInfo.ThreatJustification.JustificationLabel value)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
value- The labels to add.- Returns:
- This builder for chaining.
-
addAllLabels
public ThreatInfo.ThreatJustification.Builder addAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
values- The labels to add.- Returns:
- This builder for chaining.
-
clearLabels
public ThreatInfo.ThreatJustification.Builder clearLabels()
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Returns:
- This builder for chaining.
-
getLabelsValueList
public List<Integer> getLabelsValueList()
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Specified by:
getLabelsValueListin interfaceThreatInfo.ThreatJustificationOrBuilder- Returns:
- A list containing the enum numeric values on the wire for labels.
-
getLabelsValue
public int getLabelsValue(int index)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Specified by:
getLabelsValuein interfaceThreatInfo.ThreatJustificationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of labels at the given index.
-
setLabelsValue
public ThreatInfo.ThreatJustification.Builder setLabelsValue(int index, int value)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for labels to set.- Returns:
- This builder for chaining.
-
addLabelsValue
public ThreatInfo.ThreatJustification.Builder addLabelsValue(int value)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
value- The enum numeric value on the wire for labels to add.- Returns:
- This builder for chaining.
-
addAllLabelsValue
public ThreatInfo.ThreatJustification.Builder addAllLabelsValue(Iterable<Integer> values)
Labels associated with this URI that explain how it was classified.
repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;- Parameters:
values- The enum numeric values on the wire for labels to add.- Returns:
- This builder for chaining.
-
getCommentsList
public com.google.protobuf.ProtocolStringList getCommentsList()
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Specified by:
getCommentsListin interfaceThreatInfo.ThreatJustificationOrBuilder- Returns:
- A list containing the comments.
-
getCommentsCount
public int getCommentsCount()
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Specified by:
getCommentsCountin interfaceThreatInfo.ThreatJustificationOrBuilder- Returns:
- The count of comments.
-
getComments
public String getComments(int index)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Specified by:
getCommentsin interfaceThreatInfo.ThreatJustificationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The comments at the given index.
-
getCommentsBytes
public com.google.protobuf.ByteString getCommentsBytes(int index)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Specified by:
getCommentsBytesin interfaceThreatInfo.ThreatJustificationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the comments at the given index.
-
setComments
public ThreatInfo.ThreatJustification.Builder setComments(int index, String value)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Parameters:
index- The index to set the value at.value- The comments to set.- Returns:
- This builder for chaining.
-
addComments
public ThreatInfo.ThreatJustification.Builder addComments(String value)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Parameters:
value- The comments to add.- Returns:
- This builder for chaining.
-
addAllComments
public ThreatInfo.ThreatJustification.Builder addAllComments(Iterable<String> values)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Parameters:
values- The comments to add.- Returns:
- This builder for chaining.
-
clearComments
public ThreatInfo.ThreatJustification.Builder clearComments()
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Returns:
- This builder for chaining.
-
addCommentsBytes
public ThreatInfo.ThreatJustification.Builder addCommentsBytes(com.google.protobuf.ByteString value)
Free-form context on why this URI is unsafe.
repeated string comments = 2;- Parameters:
value- The bytes of the comments to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ThreatInfo.ThreatJustification.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
mergeUnknownFields
public final ThreatInfo.ThreatJustification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
-