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.GeneratedMessage.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.GeneratedMessage.Builder<ThreatInfo.ThreatJustification.Builder>
implements ThreatInfo.ThreatJustificationOrBuilder
Context about why the URI is unsafe.Protobuf type
google.cloud.webrisk.v1.ThreatInfo.ThreatJustification-
Method Summary
Modifier and TypeMethodDescriptionaddAllComments(Iterable<String> values) Free-form context on why this URI is unsafe.addAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values) Labels associated with this URI that explain how it was classified.addAllLabelsValue(Iterable<Integer> values) Labels associated with this URI that explain how it was classified.addComments(String value) Free-form context on why this URI is unsafe.addCommentsBytes(com.google.protobuf.ByteString value) Free-form context on why this URI is unsafe.Labels associated with this URI that explain how it was classified.addLabelsValue(int value) Labels associated with this URI that explain how it was classified.build()clear()Free-form context on why this URI is unsafe.Labels associated with this URI that explain how it was classified.getComments(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.intFree-form context on why this URI is unsafe.com.google.protobuf.ProtocolStringListFree-form context on why this URI is unsafe.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLabels(int index) Labels associated with this URI that explain how it was classified.intLabels associated with this URI that explain how it was classified.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.Labels associated with this URI that explain how it was classified.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setComments(int index, String value) Free-form context on why this URI is unsafe.setLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value) Labels associated with this URI that explain how it was classified.setLabelsValue(int index, int value) Labels associated with this URI that explain how it was classified.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.ThreatJustification.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.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.GeneratedMessage.Builder<ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
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
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
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.
-