Class ThreatInfo.ThreatJustification.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.ThreatJustification.Builder>
com.google.webrisk.v1.ThreatInfo.ThreatJustification.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ThreatInfo.ThreatJustificationOrBuilder, Cloneable
Enclosing class:
ThreatInfo.ThreatJustification

public static final class ThreatInfo.ThreatJustification.Builder extends com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.ThreatJustification.Builder> implements ThreatInfo.ThreatJustificationOrBuilder
 Context about why the URI is unsafe.
 
Protobuf type google.cloud.webrisk.v1.ThreatInfo.ThreatJustification
  • 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<ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.ThreatJustification.Builder>
    • mergeFrom

      public ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.Builder>
      Throws:
      IOException
    • getLabelsList

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Specified by:
      getLabelsList in interface ThreatInfo.ThreatJustificationOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Specified by:
      getLabelsCount in interface ThreatInfo.ThreatJustificationOrBuilder
      Returns:
      The count of labels.
    • getLabels

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Specified by:
      getLabels in interface ThreatInfo.ThreatJustificationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labels at the given index.
    • setLabels

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      index - The index to set the value at.
      value - The labels to set.
      Returns:
      This builder for chaining.
    • addLabels

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      value - The labels to add.
      Returns:
      This builder for chaining.
    • addAllLabels

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      values - The labels to add.
      Returns:
      This builder for chaining.
    • clearLabels

       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Returns:
      This builder for chaining.
    • getLabelsValueList

      public List<Integer> getLabelsValueList()
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Specified by:
      getLabelsValueList in interface ThreatInfo.ThreatJustificationOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for labels.
    • getLabelsValue

      public int getLabelsValue(int index)
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Specified by:
      getLabelsValue in interface ThreatInfo.ThreatJustificationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of labels at the given index.
    • setLabelsValue

      public ThreatInfo.ThreatJustification.Builder setLabelsValue(int index, int value)
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for labels to set.
      Returns:
      This builder for chaining.
    • addLabelsValue

      public ThreatInfo.ThreatJustification.Builder addLabelsValue(int value)
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      value - The enum numeric value on the wire for labels to add.
      Returns:
      This builder for chaining.
    • addAllLabelsValue

      public ThreatInfo.ThreatJustification.Builder addAllLabelsValue(Iterable<Integer> values)
       Labels associated with this URI that explain how it was classified.
       
      repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
      Parameters:
      values - The enum numeric values on the wire for labels to add.
      Returns:
      This builder for chaining.
    • getCommentsList

      public com.google.protobuf.ProtocolStringList getCommentsList()
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Specified by:
      getCommentsList in interface ThreatInfo.ThreatJustificationOrBuilder
      Returns:
      A list containing the comments.
    • getCommentsCount

      public int getCommentsCount()
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Specified by:
      getCommentsCount in interface ThreatInfo.ThreatJustificationOrBuilder
      Returns:
      The count of comments.
    • getComments

      public String getComments(int index)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Specified by:
      getComments in interface ThreatInfo.ThreatJustificationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The comments at the given index.
    • getCommentsBytes

      public com.google.protobuf.ByteString getCommentsBytes(int index)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Specified by:
      getCommentsBytes in interface ThreatInfo.ThreatJustificationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the comments at the given index.
    • setComments

      public ThreatInfo.ThreatJustification.Builder setComments(int index, String value)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Parameters:
      index - The index to set the value at.
      value - The comments to set.
      Returns:
      This builder for chaining.
    • addComments

      public ThreatInfo.ThreatJustification.Builder addComments(String value)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Parameters:
      value - The comments to add.
      Returns:
      This builder for chaining.
    • addAllComments

      public ThreatInfo.ThreatJustification.Builder addAllComments(Iterable<String> values)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Parameters:
      values - The comments to add.
      Returns:
      This builder for chaining.
    • clearComments

       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Returns:
      This builder for chaining.
    • addCommentsBytes

      public ThreatInfo.ThreatJustification.Builder addCommentsBytes(com.google.protobuf.ByteString value)
       Free-form context on why this URI is unsafe.
       
      repeated string comments = 2;
      Parameters:
      value - The bytes of the comments to add.
      Returns:
      This builder for chaining.