public static final class VirusDetail.Builder extends GeneratedMessageV3.Builder<VirusDetail.Builder> implements VirusDetailOrBuilder
Details of an identified virus
Protobuf type google.cloud.modelarmor.v1.VirusDetail
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VirusDetail.BuilderImplements
VirusDetailOrBuilderStatic 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. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VirusDetail.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public VirusDetail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
clearNames()
public VirusDetail.Builder clearNames()
Names of this Virus.
repeated string names = 2;
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public VirusDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
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. |
clone()
public VirusDetail.Builder clone()
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
getDefaultInstanceForType()
public VirusDetail getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
VirusDetail |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public VirusDetail.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VirusDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public VirusDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VirusDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final VirusDetail.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VirusDetail.Builder |
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. |