Class SubmitUriRequest.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubmitUriRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

build()

public SubmitUriRequest build()
Returns
TypeDescription
SubmitUriRequest

buildPartial()

public SubmitUriRequest buildPartial()
Returns
TypeDescription
SubmitUriRequest

clear()

public SubmitUriRequest.Builder clear()
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SubmitUriRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitUriRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SubmitUriRequest.Builder

clearThreatInfo()

public SubmitUriRequest.Builder clearThreatInfo()

Provides additional information about the submission.

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

Returns
TypeDescription
SubmitUriRequest.Builder

clone()

public SubmitUriRequest.Builder clone()
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

getDefaultInstanceForType()

public SubmitUriRequest getDefaultInstanceForType()
Returns
TypeDescription
SubmitUriRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

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
TypeDescription
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
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.

getThreatDiscoveryBuilder()

public ThreatDiscovery.Builder getThreatDiscoveryBuilder()

Provides additional information about how the submission was discovered.

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

Returns
TypeDescription
ThreatDiscovery.Builder

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.

getThreatInfoBuilder()

public ThreatInfo.Builder getThreatInfoBuilder()

Provides additional information about the submission.

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

Returns
TypeDescription
ThreatInfo.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubmitUriRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SubmitUriRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

mergeFrom(SubmitUriRequest other)

public SubmitUriRequest.Builder mergeFrom(SubmitUriRequest other)
Parameter
NameDescription
otherSubmitUriRequest
Returns
TypeDescription
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
NameDescription
valueSubmission
Returns
TypeDescription
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
NameDescription
valueThreatDiscovery
Returns
TypeDescription
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
NameDescription
valueThreatInfo
Returns
TypeDescription
SubmitUriRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubmitUriRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SubmitUriRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSubmission
Returns
TypeDescription
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
NameDescription
builderForValueSubmission.Builder
Returns
TypeDescription
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
NameDescription
valueThreatDiscovery
Returns
TypeDescription
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
NameDescription
builderForValueThreatDiscovery.Builder
Returns
TypeDescription
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
NameDescription
valueThreatInfo
Returns
TypeDescription
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
NameDescription
builderForValueThreatInfo.Builder
Returns
TypeDescription
SubmitUriRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SubmitUriRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SubmitUriRequest.Builder
Overrides