Class ThreatInfo.ThreatJustification

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

public static final class ThreatInfo.ThreatJustification extends com.google.protobuf.GeneratedMessage implements ThreatInfo.ThreatJustificationOrBuilder
 Context about why the URI is unsafe.
 
Protobuf type google.cloud.webrisk.v1.ThreatInfo.ThreatJustification
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ThreatInfo.ThreatJustification parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ThreatInfo.ThreatJustification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThreatInfo.ThreatJustification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ThreatInfo.ThreatJustification.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ThreatInfo.ThreatJustification.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ThreatInfo.ThreatJustification getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ThreatInfo.ThreatJustification> parser()
    • getParserForType

      public com.google.protobuf.Parser<ThreatInfo.ThreatJustification> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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