Class VirusDetail.Builder (0.24.0)

public static final class VirusDetail.Builder extends GeneratedMessage.Builder<VirusDetail.Builder> implements VirusDetailOrBuilder

Details of an identified virus

Protobuf type google.cloud.modelarmor.v1.VirusDetail

Static Methods

getDescriptor()

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

Methods

addAllNames(Iterable<String> values)

public VirusDetail.Builder addAllNames(Iterable<String> values)

Names of this Virus.

repeated string names = 2;

Parameter
Name Description
values Iterable<String>

The names to add.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

addNames(String value)

public VirusDetail.Builder addNames(String value)

Names of this Virus.

repeated string names = 2;

Parameter
Name Description
value String

The names to add.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public VirusDetail.Builder addNamesBytes(ByteString value)

Names of this Virus.

repeated string names = 2;

Parameter
Name Description
value ByteString

The bytes of the names to add.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

build()

public VirusDetail build()
Returns
Type Description
VirusDetail

buildPartial()

public VirusDetail buildPartial()
Returns
Type Description
VirusDetail

clear()

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

clearNames()

public VirusDetail.Builder clearNames()

Names of this Virus.

repeated string names = 2;

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

clearThreatType()

public VirusDetail.Builder clearThreatType()

Threat type of the identified virus

.google.cloud.modelarmor.v1.VirusDetail.ThreatType threat_type = 3;

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

clearVendor()

public VirusDetail.Builder clearVendor()

Name of vendor that produced this virus identification.

string vendor = 1;

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

getDefaultInstanceForType()

public VirusDetail getDefaultInstanceForType()
Returns
Type Description
VirusDetail

getDescriptorForType()

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

getNames(int index)

public String getNames(int index)

Names of this Virus.

repeated string names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The names at the given index.

getNamesBytes(int index)

public ByteString getNamesBytes(int index)

Names of this Virus.

repeated string names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the names at the given index.

getNamesCount()

public int getNamesCount()

Names of this Virus.

repeated string names = 2;

Returns
Type Description
int

The count of names.

getNamesList()

public ProtocolStringList getNamesList()

Names of this Virus.

repeated string names = 2;

Returns
Type Description
ProtocolStringList

A list containing the names.

getThreatType()

public VirusDetail.ThreatType getThreatType()

Threat type of the identified virus

.google.cloud.modelarmor.v1.VirusDetail.ThreatType threat_type = 3;

Returns
Type Description
VirusDetail.ThreatType

The threatType.

getThreatTypeValue()

public int getThreatTypeValue()

Threat type of the identified virus

.google.cloud.modelarmor.v1.VirusDetail.ThreatType threat_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for threatType.

getVendor()

public String getVendor()

Name of vendor that produced this virus identification.

string vendor = 1;

Returns
Type Description
String

The vendor.

getVendorBytes()

public ByteString getVendorBytes()

Name of vendor that produced this virus identification.

string vendor = 1;

Returns
Type Description
ByteString

The bytes for vendor.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VirusDetail other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNames(int index, String value)

public VirusDetail.Builder setNames(int index, String value)

Names of this Virus.

repeated string names = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The names to set.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

setThreatType(VirusDetail.ThreatType value)

public VirusDetail.Builder setThreatType(VirusDetail.ThreatType value)

Threat type of the identified virus

.google.cloud.modelarmor.v1.VirusDetail.ThreatType threat_type = 3;

Parameter
Name Description
value VirusDetail.ThreatType

The threatType to set.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

setThreatTypeValue(int value)

public VirusDetail.Builder setThreatTypeValue(int value)

Threat type of the identified virus

.google.cloud.modelarmor.v1.VirusDetail.ThreatType threat_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

setVendor(String value)

public VirusDetail.Builder setVendor(String value)

Name of vendor that produced this virus identification.

string vendor = 1;

Parameter
Name Description
value String

The vendor to set.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.

setVendorBytes(ByteString value)

public VirusDetail.Builder setVendorBytes(ByteString value)

Name of vendor that produced this virus identification.

string vendor = 1;

Parameter
Name Description
value ByteString

The bytes for vendor to set.

Returns
Type Description
VirusDetail.Builder

This builder for chaining.