Sha256: d5f2127bd3f8fc95e0e3e30ccc3a6f4ac284d9e739df84f452e0efa6295d1f15

Contents?: true

Size: 1.93 KB

Versions: 4

Compression:

Stored size: 1.93 KB

Contents

# frozen_string_literal: true

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!


module Google
  module Cloud
    module DiscoveryEngine
      module V1
        # Suggestion deny list entry identifying the phrase to block from suggestions
        # and the applied operation for the phrase.
        # @!attribute [rw] block_phrase
        #   @return [::String]
        #     Required. Phrase to block from suggestions served. Can be maximum 125
        #     characters.
        # @!attribute [rw] match_operator
        #   @return [::Google::Cloud::DiscoveryEngine::V1::SuggestionDenyListEntry::MatchOperator]
        #     Required. The match operator to apply for this phrase. Whether to block the
        #     exact phrase, or block any suggestions containing this phrase.
        class SuggestionDenyListEntry
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods

          # Operator for matching with the generated suggestions.
          module MatchOperator
            # Default value. Should not be used
            MATCH_OPERATOR_UNSPECIFIED = 0

            # If the suggestion is an exact match to the block_phrase, then block it.
            EXACT_MATCH = 1

            # If the suggestion contains the block_phrase, then block it.
            CONTAINS = 2
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
google-cloud-discovery_engine-v1-0.8.0 proto_docs/google/cloud/discoveryengine/v1/completion.rb
google-cloud-discovery_engine-v1-0.7.0 proto_docs/google/cloud/discoveryengine/v1/completion.rb
google-cloud-discovery_engine-v1-0.6.0 proto_docs/google/cloud/discoveryengine/v1/completion.rb
google-cloud-discovery_engine-v1-0.5.0 proto_docs/google/cloud/discoveryengine/v1/completion.rb