Class ThreatDiscovery.Builder (2.40.0)

public static final class ThreatDiscovery.Builder extends GeneratedMessageV3.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
TypeDescription
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
NameDescription
valuesIterable<String>

The regionCodes to add.

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

The regionCodes to add.

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

The bytes of the regionCodes to add.

Returns
TypeDescription
ThreatDiscovery.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ThreatDiscovery build()
Returns
TypeDescription
ThreatDiscovery

buildPartial()

public ThreatDiscovery buildPartial()
Returns
TypeDescription
ThreatDiscovery

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreatDiscovery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ThreatDiscovery.Builder
Overrides

clearPlatform()

public ThreatDiscovery.Builder clearPlatform()

Platform on which the threat was discovered.

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

Returns
TypeDescription
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
TypeDescription
ThreatDiscovery.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ThreatDiscovery getDefaultInstanceForType()
Returns
TypeDescription
ThreatDiscovery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPlatform()

public ThreatDiscovery.Platform getPlatform()

Platform on which the threat was discovered.

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

Returns
TypeDescription
ThreatDiscovery.Platform

The platform.

getPlatformValue()

public int getPlatformValue()

Platform on which the threat was discovered.

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

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the regionCodes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ThreatDiscovery other)

public ThreatDiscovery.Builder mergeFrom(ThreatDiscovery other)
Parameter
NameDescription
otherThreatDiscovery
Returns
TypeDescription
ThreatDiscovery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueThreatDiscovery.Platform

The platform to set.

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

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

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

The index to set the value at.

valueString

The regionCodes to set.

Returns
TypeDescription
ThreatDiscovery.Builder

This builder for chaining.

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

public ThreatDiscovery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ThreatDiscovery.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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