Class EnterpriseWebSearch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EnterpriseWebSearch.Builder>
com.google.cloud.aiplatform.v1.EnterpriseWebSearch.Builder
All Implemented Interfaces:
EnterpriseWebSearchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EnterpriseWebSearch

public static final class EnterpriseWebSearch.Builder extends com.google.protobuf.GeneratedMessage.Builder<EnterpriseWebSearch.Builder> implements EnterpriseWebSearchOrBuilder
 Tool to search public web data, powered by Vertex AI Search and Sec4
 compliance.
 
Protobuf type google.cloud.aiplatform.v1.EnterpriseWebSearch
  • 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<EnterpriseWebSearch.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<EnterpriseWebSearch.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<EnterpriseWebSearch.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public EnterpriseWebSearch.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<EnterpriseWebSearch.Builder>
      Throws:
      IOException
    • getExcludeDomainsList

      public com.google.protobuf.ProtocolStringList getExcludeDomainsList()
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludeDomainsList in interface EnterpriseWebSearchOrBuilder
      Returns:
      A list containing the excludeDomains.
    • getExcludeDomainsCount

      public int getExcludeDomainsCount()
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludeDomainsCount in interface EnterpriseWebSearchOrBuilder
      Returns:
      The count of excludeDomains.
    • getExcludeDomains

      public String getExcludeDomains(int index)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludeDomains in interface EnterpriseWebSearchOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludeDomains at the given index.
    • getExcludeDomainsBytes

      public com.google.protobuf.ByteString getExcludeDomainsBytes(int index)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludeDomainsBytes in interface EnterpriseWebSearchOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludeDomains at the given index.
    • setExcludeDomains

      public EnterpriseWebSearch.Builder setExcludeDomains(int index, String value)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The excludeDomains to set.
      Returns:
      This builder for chaining.
    • addExcludeDomains

      public EnterpriseWebSearch.Builder addExcludeDomains(String value)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The excludeDomains to add.
      Returns:
      This builder for chaining.
    • addAllExcludeDomains

      public EnterpriseWebSearch.Builder addAllExcludeDomains(Iterable<String> values)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The excludeDomains to add.
      Returns:
      This builder for chaining.
    • clearExcludeDomains

      public EnterpriseWebSearch.Builder clearExcludeDomains()
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addExcludeDomainsBytes

      public EnterpriseWebSearch.Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value)
       Optional. List of domains to be excluded from the search results.
       The default limit is 2000 domains.
       
      repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the excludeDomains to add.
      Returns:
      This builder for chaining.
    • hasBlockingConfidence

      public boolean hasBlockingConfidence()
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBlockingConfidence in interface EnterpriseWebSearchOrBuilder
      Returns:
      Whether the blockingConfidence field is set.
    • getBlockingConfidenceValue

      public int getBlockingConfidenceValue()
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBlockingConfidenceValue in interface EnterpriseWebSearchOrBuilder
      Returns:
      The enum numeric value on the wire for blockingConfidence.
    • setBlockingConfidenceValue

      public EnterpriseWebSearch.Builder setBlockingConfidenceValue(int value)
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for blockingConfidence to set.
      Returns:
      This builder for chaining.
    • getBlockingConfidence

      public Tool.PhishBlockThreshold getBlockingConfidence()
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBlockingConfidence in interface EnterpriseWebSearchOrBuilder
      Returns:
      The blockingConfidence.
    • setBlockingConfidence

      public EnterpriseWebSearch.Builder setBlockingConfidence(Tool.PhishBlockThreshold value)
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The blockingConfidence to set.
      Returns:
      This builder for chaining.
    • clearBlockingConfidence

      public EnterpriseWebSearch.Builder clearBlockingConfidence()
       Optional. Sites with confidence level chosen & above this value will be
       blocked from the search results.
       
      optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.