Sha256: 5ca3578c6420009cb0c8c1c0d4079ee88d00acc1467eef34d95db6e9db5d3ac1

Contents?: true

Size: 1.93 KB

Versions: 6

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 V1beta
        # 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::V1beta::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

6 entries across 6 versions & 1 rubygems

Version Path
google-cloud-discovery_engine-v1beta-0.13.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
google-cloud-discovery_engine-v1beta-0.12.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
google-cloud-discovery_engine-v1beta-0.11.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
google-cloud-discovery_engine-v1beta-0.10.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
google-cloud-discovery_engine-v1beta-0.9.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
google-cloud-discovery_engine-v1beta-0.8.0 proto_docs/google/cloud/discoveryengine/v1beta/completion.rb