Class Submission (2.21.0)

public final class Submission extends GeneratedMessageV3 implements SubmissionOrBuilder

Wraps a URI that might be displaying malicious content.

Protobuf type google.cloud.webrisk.v1.Submission

Implements

SubmissionOrBuilder

Static Fields

THREAT_TYPES_FIELD_NUMBER

public static final int THREAT_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Submission getDefaultInstance()
Returns
TypeDescription
Submission

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Submission.Builder newBuilder()
Returns
TypeDescription
Submission.Builder

newBuilder(Submission prototype)

public static Submission.Builder newBuilder(Submission prototype)
Parameter
NameDescription
prototypeSubmission
Returns
TypeDescription
Submission.Builder

parseDelimitedFrom(InputStream input)

public static Submission parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Submission parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Submission parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Submission parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Submission parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Submission parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Submission parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Submission parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Submission parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Submission parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Submission parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Submission parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Submission
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Submission> parser()
Returns
TypeDescription
Parser<Submission>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Submission getDefaultInstanceForType()
Returns
TypeDescription
Submission

getParserForType()

public Parser<Submission> getParserForType()
Returns
TypeDescription
Parser<Submission>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getThreatTypes(int index)

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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ThreatType

The threatTypes at the given index.

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];

Returns
TypeDescription
int

The count of threatTypes.

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];

Returns
TypeDescription
List<ThreatType>

A list containing the threatTypes.

getThreatTypesValue(int index)

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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of threatTypes at the given index.

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];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for threatTypes.

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];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI that is being reported for malicious content to be analyzed.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for uri.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Submission.Builder newBuilderForType()
Returns
TypeDescription
Submission.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Submission.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Submission.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Submission.Builder toBuilder()
Returns
TypeDescription
Submission.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException