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 virus
 
Protobuf type google.cloud.modelarmor.v1beta.VirusDetail
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
    • clear

      public VirusDetail.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VirusDetail.Builder>
    • getDefaultInstanceForType

      public VirusDetail getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public VirusDetail build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VirusDetail buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VirusDetail.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VirusDetail.Builder>
    • mergeFrom

      public VirusDetail.Builder mergeFrom(VirusDetail other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VirusDetail.Builder>
      Throws:
      IOException
    • getVendor

      public String getVendor()
       Name of vendor that produced this virus identification.
       
      string vendor = 1;
      Specified by:
      getVendor in interface VirusDetailOrBuilder
      Returns:
      The vendor.
    • getVendorBytes

      public com.google.protobuf.ByteString getVendorBytes()
       Name of vendor that produced this virus identification.
       
      string vendor = 1;
      Specified by:
      getVendorBytes in interface VirusDetailOrBuilder
      Returns:
      The bytes for vendor.
    • setVendor

      public VirusDetail.Builder setVendor(String value)
       Name of vendor that produced this virus identification.
       
      string vendor = 1;
      Parameters:
      value - The vendor to set.
      Returns:
      This builder for chaining.
    • clearVendor

      public VirusDetail.Builder clearVendor()
       Name of vendor that produced this virus identification.
       
      string vendor = 1;
      Returns:
      This builder for chaining.
    • setVendorBytes

      public VirusDetail.Builder setVendorBytes(com.google.protobuf.ByteString value)
       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:
      getNamesList in interface VirusDetailOrBuilder
      Returns:
      A list containing the names.
    • getNamesCount

      public int getNamesCount()
       Names of this Virus.
       
      repeated string names = 2;
      Specified by:
      getNamesCount in interface VirusDetailOrBuilder
      Returns:
      The count of names.
    • getNames

      public String getNames(int index)
       Names of this Virus.
       
      repeated string names = 2;
      Specified by:
      getNames in interface VirusDetailOrBuilder
      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:
      getNamesBytes in interface VirusDetailOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the names at the given index.
    • setNames

      public VirusDetail.Builder setNames(int index, String value)
       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

      public VirusDetail.Builder addNames(String value)
       Names of this Virus.
       
      repeated string names = 2;
      Parameters:
      value - The names to add.
      Returns:
      This builder for chaining.
    • addAllNames

      public VirusDetail.Builder addAllNames(Iterable<String> values)
       Names of this Virus.
       
      repeated string names = 2;
      Parameters:
      values - The names to add.
      Returns:
      This builder for chaining.
    • clearNames

      public VirusDetail.Builder clearNames()
       Names of this Virus.
       
      repeated string names = 2;
      Returns:
      This builder for chaining.
    • addNamesBytes

      public VirusDetail.Builder addNamesBytes(com.google.protobuf.ByteString value)
       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:
      getThreatTypeValue in interface VirusDetailOrBuilder
      Returns:
      The enum numeric value on the wire for threatType.
    • setThreatTypeValue

      public VirusDetail.Builder setThreatTypeValue(int value)
       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

      public VirusDetail.ThreatType getThreatType()
       Threat type of the identified virus
       
      .google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;
      Specified by:
      getThreatType in interface VirusDetailOrBuilder
      Returns:
      The threatType.
    • setThreatType

      public VirusDetail.Builder setThreatType(VirusDetail.ThreatType value)
       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

      public VirusDetail.Builder clearThreatType()
       Threat type of the identified virus
       
      .google.cloud.modelarmor.v1beta.VirusDetail.ThreatType threat_type = 3;
      Returns:
      This builder for chaining.