Class VirusDetail.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
com.google.cloud.modelarmor.v1beta.VirusDetail.Builder
- All Implemented Interfaces:
VirusDetailOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VirusDetail
public static final class VirusDetail.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
implements VirusDetailOrBuilder
Details of an identified virusProtobuf type
google.cloud.modelarmor.v1beta.VirusDetail-
Method Summary
Modifier and TypeMethodDescriptionaddAllNames(Iterable<String> values) Names of this Virus.Names of this Virus.addNamesBytes(com.google.protobuf.ByteString value) Names of this Virus.build()clear()Names of this Virus.Threat type of the identified virusName of vendor that produced this virus identification.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNames(int index) Names of this Virus.com.google.protobuf.ByteStringgetNamesBytes(int index) Names of this Virus.intNames of this Virus.com.google.protobuf.ProtocolStringListNames of this Virus.Threat type of the identified virusintThreat type of the identified virusName of vendor that produced this virus identification.com.google.protobuf.ByteStringName of vendor that produced this virus identification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VirusDetail other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Names of this Virus.Threat type of the identified virussetThreatTypeValue(int value) Threat type of the identified virusName of vendor that produced this virus identification.setVendorBytes(com.google.protobuf.ByteString value) Name of vendor that produced this virus identification.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirusDetail.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
-
mergeFrom
public VirusDetail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirusDetail.Builder>- Throws:
IOException
-
getVendor
Name of vendor that produced this virus identification.
string vendor = 1;- Specified by:
getVendorin interfaceVirusDetailOrBuilder- Returns:
- The vendor.
-
getVendorBytes
public com.google.protobuf.ByteString getVendorBytes()Name of vendor that produced this virus identification.
string vendor = 1;- Specified by:
getVendorBytesin interfaceVirusDetailOrBuilder- Returns:
- The bytes for vendor.
-
setVendor
Name of vendor that produced this virus identification.
string vendor = 1;- Parameters:
value- The vendor to set.- Returns:
- This builder for chaining.
-
clearVendor
Name of vendor that produced this virus identification.
string vendor = 1;- Returns:
- This builder for chaining.
-
setVendorBytes
Name of vendor that produced this virus identification.
string vendor = 1;- Parameters:
value- The bytes for vendor to set.- Returns:
- This builder for chaining.
-
getNamesList
public com.google.protobuf.ProtocolStringList getNamesList()Names of this Virus.
repeated string names = 2;- Specified by:
getNamesListin interfaceVirusDetailOrBuilder- Returns:
- A list containing the names.
-
getNamesCount
public int getNamesCount()Names of this Virus.
repeated string names = 2;- Specified by:
getNamesCountin interfaceVirusDetailOrBuilder- Returns:
- The count of names.
-
getNames
Names of this Virus.
repeated string names = 2;- Specified by:
getNamesin interfaceVirusDetailOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The names at the given index.
-
getNamesBytes
public com.google.protobuf.ByteString getNamesBytes(int index) Names of this Virus.
repeated string names = 2;- Specified by:
getNamesBytesin interfaceVirusDetailOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the names at the given index.
-
setNames
Names of this Virus.
repeated string names = 2;- Parameters:
index- The index to set the value at.value- The names to set.- Returns:
- This builder for chaining.
-
addNames
Names of this Virus.
repeated string names = 2;- Parameters:
value- The names to add.- Returns:
- This builder for chaining.
-
addAllNames
Names of this Virus.
repeated string names = 2;- Parameters:
values- The names to add.- Returns:
- This builder for chaining.
-
clearNames
Names of this Virus.
repeated string names = 2;- Returns:
- This builder for chaining.
-
addNamesBytes
Names of this Virus.
repeated string names = 2;- Parameters:
value- The bytes of the names to add.- Returns:
- This builder for chaining.
-
getThreatTypeValue
public int getThreatTypeValue()Threat type of the identified virus
.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;- Specified by:
getThreatTypeValuein interfaceVirusDetailOrBuilder- Returns:
- The enum numeric value on the wire for threatType.
-
setThreatTypeValue
Threat type of the identified virus
.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;- Parameters:
value- The enum numeric value on the wire for threatType to set.- Returns:
- This builder for chaining.
-
getThreatType
Threat type of the identified virus
.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;- Specified by:
getThreatTypein interfaceVirusDetailOrBuilder- Returns:
- The threatType.
-
setThreatType
Threat type of the identified virus
.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;- Parameters:
value- The threatType to set.- Returns:
- This builder for chaining.
-
clearThreatType
Threat type of the identified virus
.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;- Returns:
- This builder for chaining.
-