Package com.google.webrisk.v1
Class Submission.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
- com.google.webrisk.v1.Submission.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SubmissionOrBuilder,Cloneable
- Enclosing class:
- Submission
public static final class Submission.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder> implements SubmissionOrBuilder
Wraps a URI that might be displaying malicious content.
Protobuf typegoogle.cloud.webrisk.v1.Submission
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Submission.BuilderaddAllThreatTypes(Iterable<? extends ThreatType> values)Output only.Submission.BuilderaddAllThreatTypesValue(Iterable<Integer> values)Output only.Submission.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Submission.BuilderaddThreatTypes(ThreatType value)Output only.Submission.BuilderaddThreatTypesValue(int value)Output only.Submissionbuild()SubmissionbuildPartial()Submission.Builderclear()Submission.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Submission.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Submission.BuilderclearThreatTypes()Output only.Submission.BuilderclearUri()Required.Submission.Builderclone()SubmissiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ThreatTypegetThreatTypes(int index)Output only.intgetThreatTypesCount()Output only.List<ThreatType>getThreatTypesList()Output only.intgetThreatTypesValue(int index)Output only.List<Integer>getThreatTypesValueList()Output only.StringgetUri()Required.com.google.protobuf.ByteStringgetUriBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Submission.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Submission.BuildermergeFrom(com.google.protobuf.Message other)Submission.BuildermergeFrom(Submission other)Submission.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Submission.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Submission.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Submission.BuildersetThreatTypes(int index, ThreatType value)Output only.Submission.BuildersetThreatTypesValue(int index, int value)Output only.Submission.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Submission.BuildersetUri(String value)Required.Submission.BuildersetUriBytes(com.google.protobuf.ByteString value)Required.-
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<Submission.Builder>
-
clear
public Submission.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<Submission.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<Submission.Builder>
-
getDefaultInstanceForType
public Submission getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Submission build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Submission buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Submission.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<Submission.Builder>
-
setField
public Submission.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<Submission.Builder>
-
clearField
public Submission.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
clearOneof
public Submission.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
setRepeatedField
public Submission.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<Submission.Builder>
-
addRepeatedField
public Submission.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<Submission.Builder>
-
mergeFrom
public Submission.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Submission.Builder>
-
mergeFrom
public Submission.Builder mergeFrom(Submission other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
mergeFrom
public Submission.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<Submission.Builder>- Throws:
IOException
-
getUri
public String getUri()
Required. The URI that is being reported for malicious content to be analyzed.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUriin interfaceSubmissionOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Required. The URI that is being reported for malicious content to be analyzed.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUriBytesin interfaceSubmissionOrBuilder- Returns:
- The bytes for uri.
-
setUri
public Submission.Builder setUri(String value)
Required. The URI that is being reported for malicious content to be analyzed.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public Submission.Builder clearUri()
Required. The URI that is being reported for malicious content to be analyzed.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setUriBytes
public Submission.Builder setUriBytes(com.google.protobuf.ByteString value)
Required. The URI that is being reported for malicious content to be analyzed.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getThreatTypesList
public List<ThreatType> getThreatTypesList()
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThreatTypesListin interfaceSubmissionOrBuilder- Returns:
- A list containing the threatTypes.
-
getThreatTypesCount
public int getThreatTypesCount()
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThreatTypesCountin interfaceSubmissionOrBuilder- Returns:
- The count of threatTypes.
-
getThreatTypes
public ThreatType getThreatTypes(int index)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThreatTypesin interfaceSubmissionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The threatTypes at the given index.
-
setThreatTypes
public Submission.Builder setThreatTypes(int index, ThreatType value)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The threatTypes to set.- Returns:
- This builder for chaining.
-
addThreatTypes
public Submission.Builder addThreatTypes(ThreatType value)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypes
public Submission.Builder addAllThreatTypes(Iterable<? extends ThreatType> values)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The threatTypes to add.- Returns:
- This builder for chaining.
-
clearThreatTypes
public Submission.Builder clearThreatTypes()
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getThreatTypesValueList
public List<Integer> getThreatTypesValueList()
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThreatTypesValueListin interfaceSubmissionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for threatTypes.
-
getThreatTypesValue
public int getThreatTypesValue(int index)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getThreatTypesValuein interfaceSubmissionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of threatTypes at the given index.
-
setThreatTypesValue
public Submission.Builder setThreatTypesValue(int index, int value)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for threatTypes to set.- Returns:
- This builder for chaining.
-
addThreatTypesValue
public Submission.Builder addThreatTypesValue(int value)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypesValue
public Submission.Builder addAllThreatTypesValue(Iterable<Integer> values)
Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The enum numeric values on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Submission.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
mergeUnknownFields
public final Submission.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
-