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.Builder
addAllComments(Iterable<String> values)
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.Builder
addAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
addAllLabelsValue(Iterable<Integer> values)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
addComments(String value)
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.Builder
addCommentsBytes(com.google.protobuf.ByteString value)
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.Builder
addLabels(ThreatInfo.ThreatJustification.JustificationLabel value)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
addLabelsValue(int value)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ThreatInfo.ThreatJustification
build()
ThreatInfo.ThreatJustification
buildPartial()
ThreatInfo.ThreatJustification.Builder
clear()
ThreatInfo.ThreatJustification.Builder
clearComments()
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ThreatInfo.ThreatJustification.Builder
clearLabels()
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ThreatInfo.ThreatJustification.Builder
clone()
String
getComments(int index)
Free-form context on why this URI is unsafe.com.google.protobuf.ByteString
getCommentsBytes(int index)
Free-form context on why this URI is unsafe.int
getCommentsCount()
Free-form context on why this URI is unsafe.com.google.protobuf.ProtocolStringList
getCommentsList()
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ThreatInfo.ThreatJustification.JustificationLabel
getLabels(int index)
Labels associated with this URI that explain how it was classified.int
getLabelsCount()
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.int
getLabelsValue(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ThreatInfo.ThreatJustification.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ThreatInfo.ThreatJustification.Builder
mergeFrom(com.google.protobuf.Message other)
ThreatInfo.ThreatJustification.Builder
mergeFrom(ThreatInfo.ThreatJustification other)
ThreatInfo.ThreatJustification.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ThreatInfo.ThreatJustification.Builder
setComments(int index, String value)
Free-form context on why this URI is unsafe.ThreatInfo.ThreatJustification.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ThreatInfo.ThreatJustification.Builder
setLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
setLabelsValue(int index, int value)
Labels associated with this URI that explain how it was classified.ThreatInfo.ThreatJustification.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
clear
public ThreatInfo.ThreatJustification.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.ThreatJustification.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.ThreatJustification.Builder>
-
getDefaultInstanceForType
public ThreatInfo.ThreatJustification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ThreatInfo.ThreatJustification build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ThreatInfo.ThreatJustification buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
setField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
clearField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
clearOneof
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
setRepeatedField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
addRepeatedField
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
mergeFrom
public ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
mergeFrom
public ThreatInfo.ThreatJustification.Builder mergeFrom(ThreatInfo.ThreatJustification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.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:
getLabelsList
in 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:
getLabelsCount
in 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:
getLabels
in 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:
getLabelsValueList
in 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:
getLabelsValue
in 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:
getCommentsList
in 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:
getCommentsCount
in 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:
getComments
in 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:
getCommentsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder>
-
mergeUnknownFields
public final ThreatInfo.ThreatJustification.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.ThreatJustification.Builder>
-
-