public final class ThreatDiscovery extends GeneratedMessageV3 implements ThreatDiscoveryOrBuilder
Details about how the threat was discovered.
Protobuf type google.cloud.webrisk.v1.ThreatDiscovery
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int PLATFORM_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REGION_CODES_FIELD_NUMBER
public static final int REGION_CODES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ThreatDiscovery getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ThreatDiscovery.Builder newBuilder()
newBuilder(ThreatDiscovery prototype)
public static ThreatDiscovery.Builder newBuilder(ThreatDiscovery prototype)
public static ThreatDiscovery parseDelimitedFrom(InputStream input)
public static ThreatDiscovery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ThreatDiscovery parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ThreatDiscovery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ThreatDiscovery parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ThreatDiscovery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ThreatDiscovery parseFrom(CodedInputStream input)
public static ThreatDiscovery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ThreatDiscovery parseFrom(InputStream input)
public static ThreatDiscovery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ThreatDiscovery parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ThreatDiscovery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ThreatDiscovery> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ThreatDiscovery getDefaultInstanceForType()
getParserForType()
public Parser<ThreatDiscovery> getParserForType()
Overrides
public ThreatDiscovery.Platform getPlatform()
Platform on which the threat was discovered.
.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;
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;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ThreatDiscovery.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ThreatDiscovery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ThreatDiscovery.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides