Class ThreatDiscovery.Builder (2.82.0)

public static final class ThreatDiscovery.Builder extends GeneratedMessage.Builder<ThreatDiscovery.Builder> implements ThreatDiscoveryOrBuilder

Details about how the threat was discovered.

Protobuf type google.cloud.webrisk.v1.ThreatDiscovery

Static Methods

getDescriptor()

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

Methods

addAllRegionCodes(Iterable<String> values)

public ThreatDiscovery.Builder addAllRegionCodes(Iterable<String> values)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
Name Description
values Iterable<String>

The regionCodes to add.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

addRegionCodes(String value)

public ThreatDiscovery.Builder addRegionCodes(String value)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
Name Description
value String

The regionCodes to add.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

addRegionCodesBytes(ByteString value)

public ThreatDiscovery.Builder addRegionCodesBytes(ByteString value)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
Name Description
value ByteString

The bytes of the regionCodes to add.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

build()

public ThreatDiscovery build()
Returns
Type Description
ThreatDiscovery

buildPartial()

public ThreatDiscovery buildPartial()
Returns
Type Description
ThreatDiscovery

clear()

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

clearPlatform()

public ThreatDiscovery.Builder clearPlatform()

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

clearRegionCodes()

public ThreatDiscovery.Builder clearRegionCodes()

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

getDefaultInstanceForType()

public ThreatDiscovery getDefaultInstanceForType()
Returns
Type Description
ThreatDiscovery

getDescriptorForType()

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

getPlatform()

public ThreatDiscovery.Platform getPlatform()

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Returns
Type Description
ThreatDiscovery.Platform

The platform.

getPlatformValue()

public int getPlatformValue()

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Returns
Type Description
int

The enum numeric value on the wire for platform.

getRegionCodes(int index)

public String getRegionCodes(int index)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The regionCodes at the given index.

getRegionCodesBytes(int index)

public ByteString getRegionCodesBytes(int index)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the regionCodes at the given index.

getRegionCodesCount()

public int getRegionCodesCount()

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Returns
Type Description
int

The count of regionCodes.

getRegionCodesList()

public ProtocolStringList getRegionCodesList()

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Returns
Type Description
ProtocolStringList

A list containing the regionCodes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ThreatDiscovery other)

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

setPlatform(ThreatDiscovery.Platform value)

public ThreatDiscovery.Builder setPlatform(ThreatDiscovery.Platform value)

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Parameter
Name Description
value ThreatDiscovery.Platform

The platform to set.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

setPlatformValue(int value)

public ThreatDiscovery.Builder setPlatformValue(int value)

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for platform to set.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.

setRegionCodes(int index, String value)

public ThreatDiscovery.Builder setRegionCodes(int index, String value)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The regionCodes to set.

Returns
Type Description
ThreatDiscovery.Builder

This builder for chaining.