Class SearchUrisRequest.Builder

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

public static final class SearchUrisRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchUrisRequest.Builder> implements SearchUrisRequestOrBuilder
 Request to check URI entries against threatLists.
 
Protobuf type google.cloud.webrisk.v1.SearchUrisRequest
  • 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<SearchUrisRequest.Builder>
    • clear

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

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

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

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

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

      public SearchUrisRequest.Builder mergeFrom(SearchUrisRequest other)
    • isInitialized

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

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

      public String getUri()
       Required. The URI to be checked for matches.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUri in interface SearchUrisRequestOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Required. The URI to be checked for matches.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUriBytes in interface SearchUrisRequestOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public SearchUrisRequest.Builder setUri(String value)
       Required. The URI to be checked for matches.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public SearchUrisRequest.Builder clearUri()
       Required. The URI to be checked for matches.
       
      string uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUriBytes

      public SearchUrisRequest.Builder setUriBytes(com.google.protobuf.ByteString value)
       Required. The URI to be checked for matches.
       
      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()
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypesList in interface SearchUrisRequestOrBuilder
      Returns:
      A list containing the threatTypes.
    • getThreatTypesCount

      public int getThreatTypesCount()
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypesCount in interface SearchUrisRequestOrBuilder
      Returns:
      The count of threatTypes.
    • getThreatTypes

      public ThreatType getThreatTypes(int index)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypes in interface SearchUrisRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The threatTypes at the given index.
    • setThreatTypes

      public SearchUrisRequest.Builder setThreatTypes(int index, ThreatType value)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The threatTypes to set.
      Returns:
      This builder for chaining.
    • addThreatTypes

      public SearchUrisRequest.Builder addThreatTypes(ThreatType value)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypes

      public SearchUrisRequest.Builder addAllThreatTypes(Iterable<? extends ThreatType> values)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The threatTypes to add.
      Returns:
      This builder for chaining.
    • clearThreatTypes

      public SearchUrisRequest.Builder clearThreatTypes()
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getThreatTypesValueList

      public List<Integer> getThreatTypesValueList()
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypesValueList in interface SearchUrisRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for threatTypes.
    • getThreatTypesValue

      public int getThreatTypesValue(int index)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypesValue in interface SearchUrisRequestOrBuilder
      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 SearchUrisRequest.Builder setThreatTypesValue(int index, int value)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      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 SearchUrisRequest.Builder addThreatTypesValue(int value)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypesValue

      public SearchUrisRequest.Builder addAllThreatTypesValue(Iterable<Integer> values)
       Required. The ThreatLists to search in. Multiple ThreatLists may be
       specified.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The enum numeric values on the wire for threatTypes to add.
      Returns:
      This builder for chaining.