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.Builder
addAllThreatTypes(Iterable<? extends ThreatType> values)
Output only.Submission.Builder
addAllThreatTypesValue(Iterable<Integer> values)
Output only.Submission.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Submission.Builder
addThreatTypes(ThreatType value)
Output only.Submission.Builder
addThreatTypesValue(int value)
Output only.Submission
build()
Submission
buildPartial()
Submission.Builder
clear()
Submission.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Submission.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Submission.Builder
clearThreatTypes()
Output only.Submission.Builder
clearUri()
Required.Submission.Builder
clone()
Submission
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ThreatType
getThreatTypes(int index)
Output only.int
getThreatTypesCount()
Output only.List<ThreatType>
getThreatTypesList()
Output only.int
getThreatTypesValue(int index)
Output only.List<Integer>
getThreatTypesValueList()
Output only.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Submission.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Submission.Builder
mergeFrom(com.google.protobuf.Message other)
Submission.Builder
mergeFrom(Submission other)
Submission.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Submission.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Submission.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Submission.Builder
setThreatTypes(int index, ThreatType value)
Output only.Submission.Builder
setThreatTypesValue(int index, int value)
Output only.Submission.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Submission.Builder
setUri(String value)
Required.Submission.Builder
setUriBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
clear
public Submission.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<Submission.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<Submission.Builder>
-
getDefaultInstanceForType
public Submission getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Submission build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Submission buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Submission.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<Submission.Builder>
-
setField
public Submission.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<Submission.Builder>
-
clearField
public Submission.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<Submission.Builder>
-
clearOneof
public Submission.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<Submission.Builder>
-
setRepeatedField
public Submission.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<Submission.Builder>
-
addRepeatedField
public Submission.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<Submission.Builder>
-
mergeFrom
public Submission.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Submission.Builder>
-
mergeFrom
public Submission.Builder mergeFrom(Submission other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getUri
in 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:
getUriBytes
in 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:
getThreatTypesList
in 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:
getThreatTypesCount
in 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:
getThreatTypes
in 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:
getThreatTypesValueList
in 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:
getThreatTypesValue
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
mergeUnknownFields
public final Submission.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Submission.Builder>
-
-