Class Submission.Builder

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

public static final class Submission.Builder extends com.google.protobuf.GeneratedMessage.Builder<Submission.Builder> implements SubmissionOrBuilder
 Wraps a URI that might be displaying malicious content.
 
Protobuf type google.cloud.webrisk.v1.Submission
  • 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<Submission.Builder>
    • clear

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

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

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

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

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

      public Submission.Builder mergeFrom(Submission other)
    • isInitialized

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

      public Submission.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<Submission.Builder>
      Throws:
      IOException
    • getUri

      public String getUri()
       Required. The URI that is being reported for malicious content to be
       analyzed.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUri in interface SubmissionOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Required. The URI that is being reported for malicious content to be
       analyzed.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUriBytes in interface SubmissionOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public Submission.Builder setUri(String value)
       Required. The URI that is being reported for malicious content to be
       analyzed.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public Submission.Builder clearUri()
       Required. The URI that is being reported for malicious content to be
       analyzed.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUriBytes

      public Submission.Builder setUriBytes(com.google.protobuf.ByteString value)
       Required. The URI that is being reported for malicious content to be
       analyzed.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getThreatTypesList

      public List<ThreatType> getThreatTypesList()
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getThreatTypesList in interface SubmissionOrBuilder
      Returns:
      A list containing the threatTypes.
    • getThreatTypesCount

      public int getThreatTypesCount()
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getThreatTypesCount in interface SubmissionOrBuilder
      Returns:
      The count of threatTypes.
    • getThreatTypes

      public ThreatType getThreatTypes(int index)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getThreatTypes in interface SubmissionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The threatTypes at the given index.
    • setThreatTypes

      public Submission.Builder setThreatTypes(int index, ThreatType value)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The threatTypes to set.
      Returns:
      This builder for chaining.
    • addThreatTypes

      public Submission.Builder addThreatTypes(ThreatType value)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypes

      public Submission.Builder addAllThreatTypes(Iterable<? extends ThreatType> values)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The threatTypes to add.
      Returns:
      This builder for chaining.
    • clearThreatTypes

      public Submission.Builder clearThreatTypes()
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getThreatTypesValueList

      public List<Integer> getThreatTypesValueList()
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getThreatTypesValueList in interface SubmissionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for threatTypes.
    • getThreatTypesValue

      public int getThreatTypesValue(int index)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getThreatTypesValue in interface SubmissionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of threatTypes at the given index.
    • setThreatTypesValue

      public Submission.Builder setThreatTypesValue(int index, int value)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for threatTypes to set.
      Returns:
      This builder for chaining.
    • addThreatTypesValue

      public Submission.Builder addThreatTypesValue(int value)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypesValue

      public Submission.Builder addAllThreatTypesValue(Iterable<Integer> values)
       Output only. ThreatTypes found to be associated with the submitted URI
       after reviewing it. This might be empty if the URI was not added to any
       list.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The enum numeric values on the wire for threatTypes to add.
      Returns:
      This builder for chaining.