Class SubmitUriRequest (2.27.0)

public final class SubmitUriRequest extends GeneratedMessageV3 implements SubmitUriRequestOrBuilder

Request to send a potentially malicious URI to WebRisk.

Protobuf type google.cloud.webrisk.v1.SubmitUriRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

SUBMISSION_FIELD_NUMBER

public static final int SUBMISSION_FIELD_NUMBER
Field Value
TypeDescription
int

THREAT_DISCOVERY_FIELD_NUMBER

public static final int THREAT_DISCOVERY_FIELD_NUMBER
Field Value
TypeDescription
int

THREAT_INFO_FIELD_NUMBER

public static final int THREAT_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubmitUriRequest getDefaultInstance()
Returns
TypeDescription
SubmitUriRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SubmitUriRequest prototype)

public static SubmitUriRequest.Builder newBuilder(SubmitUriRequest prototype)
Parameter
NameDescription
prototypeSubmitUriRequest
Returns
TypeDescription
SubmitUriRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SubmitUriRequest getDefaultInstanceForType()
Returns
TypeDescription
SubmitUriRequest

getParent()

public String getParent()

Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubmission()

public Submission getSubmission()

Required. The submission that contains the URI to be scanned.

.google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Submission

The submission.

getSubmissionOrBuilder()

public SubmissionOrBuilder getSubmissionOrBuilder()

Required. The submission that contains the URI to be scanned.

.google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SubmissionOrBuilder

getThreatDiscovery()

public ThreatDiscovery getThreatDiscovery()

Provides additional information about how the submission was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery threat_discovery = 4;

Returns
TypeDescription
ThreatDiscovery

The threatDiscovery.

getThreatDiscoveryOrBuilder()

public ThreatDiscoveryOrBuilder getThreatDiscoveryOrBuilder()

Provides additional information about how the submission was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery threat_discovery = 4;

Returns
TypeDescription
ThreatDiscoveryOrBuilder

getThreatInfo()

public ThreatInfo getThreatInfo()

Provides additional information about the submission.

.google.cloud.webrisk.v1.ThreatInfo threat_info = 3;

Returns
TypeDescription
ThreatInfo

The threatInfo.

getThreatInfoOrBuilder()

public ThreatInfoOrBuilder getThreatInfoOrBuilder()

Provides additional information about the submission.

.google.cloud.webrisk.v1.ThreatInfo threat_info = 3;

Returns
TypeDescription
ThreatInfoOrBuilder

hasSubmission()

public boolean hasSubmission()

Required. The submission that contains the URI to be scanned.

.google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the submission field is set.

hasThreatDiscovery()

public boolean hasThreatDiscovery()

Provides additional information about how the submission was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery threat_discovery = 4;

Returns
TypeDescription
boolean

Whether the threatDiscovery field is set.

hasThreatInfo()

public boolean hasThreatInfo()

Provides additional information about the submission.

.google.cloud.webrisk.v1.ThreatInfo threat_info = 3;

Returns
TypeDescription
boolean

Whether the threatInfo field is set.

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 SubmitUriRequest.Builder newBuilderForType()
Returns
TypeDescription
SubmitUriRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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