Class ThreatInfo.Builder

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

public static final class ThreatInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ThreatInfo.Builder> implements ThreatInfoOrBuilder
 Context about the submission including the type of abuse found on the URI and
 supporting details.
 
Protobuf type google.cloud.webrisk.v1.ThreatInfo
  • 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.Builder>
    • clear

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

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

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

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

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

      public ThreatInfo.Builder mergeFrom(ThreatInfo other)
    • isInitialized

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

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

      public int getAbuseTypeValue()
       The type of abuse.
       
      .google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
      Specified by:
      getAbuseTypeValue in interface ThreatInfoOrBuilder
      Returns:
      The enum numeric value on the wire for abuseType.
    • setAbuseTypeValue

      public ThreatInfo.Builder setAbuseTypeValue(int value)
       The type of abuse.
       
      .google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
      Parameters:
      value - The enum numeric value on the wire for abuseType to set.
      Returns:
      This builder for chaining.
    • getAbuseType

      public ThreatInfo.AbuseType getAbuseType()
       The type of abuse.
       
      .google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
      Specified by:
      getAbuseType in interface ThreatInfoOrBuilder
      Returns:
      The abuseType.
    • setAbuseType

      public ThreatInfo.Builder setAbuseType(ThreatInfo.AbuseType value)
       The type of abuse.
       
      .google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
      Parameters:
      value - The abuseType to set.
      Returns:
      This builder for chaining.
    • clearAbuseType

      public ThreatInfo.Builder clearAbuseType()
       The type of abuse.
       
      .google.cloud.webrisk.v1.ThreatInfo.AbuseType abuse_type = 1;
      Returns:
      This builder for chaining.
    • hasThreatConfidence

      public boolean hasThreatConfidence()
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
      Specified by:
      hasThreatConfidence in interface ThreatInfoOrBuilder
      Returns:
      Whether the threatConfidence field is set.
    • getThreatConfidence

      public ThreatInfo.Confidence getThreatConfidence()
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
      Specified by:
      getThreatConfidence in interface ThreatInfoOrBuilder
      Returns:
      The threatConfidence.
    • setThreatConfidence

      public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence value)
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
    • setThreatConfidence

      public ThreatInfo.Builder setThreatConfidence(ThreatInfo.Confidence.Builder builderForValue)
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
    • mergeThreatConfidence

      public ThreatInfo.Builder mergeThreatConfidence(ThreatInfo.Confidence value)
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
    • clearThreatConfidence

      public ThreatInfo.Builder clearThreatConfidence()
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
    • getThreatConfidenceBuilder

      public ThreatInfo.Confidence.Builder getThreatConfidenceBuilder()
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
    • getThreatConfidenceOrBuilder

      public ThreatInfo.ConfidenceOrBuilder getThreatConfidenceOrBuilder()
       Confidence that the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence threat_confidence = 2;
      Specified by:
      getThreatConfidenceOrBuilder in interface ThreatInfoOrBuilder
    • hasThreatJustification

      public boolean hasThreatJustification()
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
      Specified by:
      hasThreatJustification in interface ThreatInfoOrBuilder
      Returns:
      Whether the threatJustification field is set.
    • getThreatJustification

      public ThreatInfo.ThreatJustification getThreatJustification()
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
      Specified by:
      getThreatJustification in interface ThreatInfoOrBuilder
      Returns:
      The threatJustification.
    • setThreatJustification

      public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification value)
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
    • setThreatJustification

      public ThreatInfo.Builder setThreatJustification(ThreatInfo.ThreatJustification.Builder builderForValue)
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
    • mergeThreatJustification

      public ThreatInfo.Builder mergeThreatJustification(ThreatInfo.ThreatJustification value)
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
    • clearThreatJustification

      public ThreatInfo.Builder clearThreatJustification()
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
    • getThreatJustificationBuilder

      public ThreatInfo.ThreatJustification.Builder getThreatJustificationBuilder()
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
    • getThreatJustificationOrBuilder

      public ThreatInfo.ThreatJustificationOrBuilder getThreatJustificationOrBuilder()
       Context about why the URI is unsafe.
       
      .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification threat_justification = 3;
      Specified by:
      getThreatJustificationOrBuilder in interface ThreatInfoOrBuilder