Class SubmitUriRequest.Builder (2.43.0)

public static final class SubmitUriRequest.Builder extends GeneratedMessageV3.Builder<SubmitUriRequest.Builder> implements SubmitUriRequestOrBuilder

Request to send a potentially malicious URI to WebRisk.

Protobuf type google.cloud.webrisk.v1.SubmitUriRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubmitUriRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitUriRequest.Builder
Overrides

build()

public SubmitUriRequest build()
Returns
Type Description
SubmitUriRequest

buildPartial()

public SubmitUriRequest buildPartial()
Returns
Type Description
SubmitUriRequest

clear()

public SubmitUriRequest.Builder clear()
Returns
Type Description
SubmitUriRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SubmitUriRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SubmitUriRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitUriRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SubmitUriRequest.Builder
Overrides

clearParent()

public SubmitUriRequest.Builder clearParent()

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
Type Description
SubmitUriRequest.Builder

This builder for chaining.

clearSubmission()

public SubmitUriRequest.Builder clearSubmission()

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

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

Returns
Type Description
SubmitUriRequest.Builder

clearThreatDiscovery()

public SubmitUriRequest.Builder clearThreatDiscovery()

Provides additional information about how the submission was discovered.

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

Returns
Type Description
SubmitUriRequest.Builder

clearThreatInfo()

public SubmitUriRequest.Builder clearThreatInfo()

Provides additional information about the submission.

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

Returns
Type Description
SubmitUriRequest.Builder

clone()

public SubmitUriRequest.Builder clone()
Returns
Type Description
SubmitUriRequest.Builder
Overrides

getDefaultInstanceForType()

public SubmitUriRequest getDefaultInstanceForType()
Returns
Type Description
SubmitUriRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for parent.

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
Type Description
Submission

The submission.

getSubmissionBuilder()

public Submission.Builder getSubmissionBuilder()

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

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

Returns
Type Description
Submission.Builder

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
Type Description
SubmissionOrBuilder

getThreatDiscovery()

public ThreatDiscovery getThreatDiscovery()

Provides additional information about how the submission was discovered.

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

Returns
Type Description
ThreatDiscovery

The threatDiscovery.

getThreatDiscoveryBuilder()

public ThreatDiscovery.Builder getThreatDiscoveryBuilder()

Provides additional information about how the submission was discovered.

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

Returns
Type Description
ThreatDiscovery.Builder

getThreatDiscoveryOrBuilder()

public ThreatDiscoveryOrBuilder getThreatDiscoveryOrBuilder()

Provides additional information about how the submission was discovered.

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

Returns
Type Description
ThreatDiscoveryOrBuilder

getThreatInfo()

public ThreatInfo getThreatInfo()

Provides additional information about the submission.

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

Returns
Type Description
ThreatInfo

The threatInfo.

getThreatInfoBuilder()

public ThreatInfo.Builder getThreatInfoBuilder()

Provides additional information about the submission.

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

Returns
Type Description
ThreatInfo.Builder

getThreatInfoOrBuilder()

public ThreatInfoOrBuilder getThreatInfoOrBuilder()

Provides additional information about the submission.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the threatInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubmitUriRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitUriRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SubmitUriRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SubmitUriRequest.Builder
Overrides

mergeFrom(SubmitUriRequest other)

public SubmitUriRequest.Builder mergeFrom(SubmitUriRequest other)
Parameter
Name Description
other SubmitUriRequest
Returns
Type Description
SubmitUriRequest.Builder

mergeSubmission(Submission value)

public SubmitUriRequest.Builder mergeSubmission(Submission value)

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

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

Parameter
Name Description
value Submission
Returns
Type Description
SubmitUriRequest.Builder

mergeThreatDiscovery(ThreatDiscovery value)

public SubmitUriRequest.Builder mergeThreatDiscovery(ThreatDiscovery value)

Provides additional information about how the submission was discovered.

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

Parameter
Name Description
value ThreatDiscovery
Returns
Type Description
SubmitUriRequest.Builder

mergeThreatInfo(ThreatInfo value)

public SubmitUriRequest.Builder mergeThreatInfo(ThreatInfo value)

Provides additional information about the submission.

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

Parameter
Name Description
value ThreatInfo
Returns
Type Description
SubmitUriRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubmitUriRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitUriRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SubmitUriRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitUriRequest.Builder
Overrides

setParent(String value)

public SubmitUriRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
SubmitUriRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SubmitUriRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
SubmitUriRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SubmitUriRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SubmitUriRequest.Builder
Overrides

setSubmission(Submission value)

public SubmitUriRequest.Builder setSubmission(Submission value)

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

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

Parameter
Name Description
value Submission
Returns
Type Description
SubmitUriRequest.Builder

setSubmission(Submission.Builder builderForValue)

public SubmitUriRequest.Builder setSubmission(Submission.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Submission.Builder
Returns
Type Description
SubmitUriRequest.Builder

setThreatDiscovery(ThreatDiscovery value)

public SubmitUriRequest.Builder setThreatDiscovery(ThreatDiscovery value)

Provides additional information about how the submission was discovered.

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

Parameter
Name Description
value ThreatDiscovery
Returns
Type Description
SubmitUriRequest.Builder

setThreatDiscovery(ThreatDiscovery.Builder builderForValue)

public SubmitUriRequest.Builder setThreatDiscovery(ThreatDiscovery.Builder builderForValue)

Provides additional information about how the submission was discovered.

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

Parameter
Name Description
builderForValue ThreatDiscovery.Builder
Returns
Type Description
SubmitUriRequest.Builder

setThreatInfo(ThreatInfo value)

public SubmitUriRequest.Builder setThreatInfo(ThreatInfo value)

Provides additional information about the submission.

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

Parameter
Name Description
value ThreatInfo
Returns
Type Description
SubmitUriRequest.Builder

setThreatInfo(ThreatInfo.Builder builderForValue)

public SubmitUriRequest.Builder setThreatInfo(ThreatInfo.Builder builderForValue)

Provides additional information about the submission.

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

Parameter
Name Description
builderForValue ThreatInfo.Builder
Returns
Type Description
SubmitUriRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SubmitUriRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitUriRequest.Builder
Overrides