# 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 Eventarc
      module V1
        # An enrollment represents a subscription for messages on a particular message
        # bus. It defines a matching criteria for messages on the bus and the
        # subscriber endpoint where matched messages should be delivered.
        # @!attribute [rw] name
        #   @return [::String]
        #     Identifier. Resource name of the form
        #     projects/\\{project}/locations/\\{location}/enrollments/\\{enrollment}
        # @!attribute [r] uid
        #   @return [::String]
        #     Output only. Server assigned unique identifier for the channel. The value
        #     is a UUID4 string and guaranteed to remain unchanged until the resource is
        #     deleted.
        # @!attribute [r] etag
        #   @return [::String]
        #     Output only. This checksum is computed by the server based on the value of
        #     other fields, and might be sent only on update and delete requests to
        #     ensure that the client has an up-to-date value before proceeding.
        # @!attribute [r] create_time
        #   @return [::Google::Protobuf::Timestamp]
        #     Output only. The creation time.
        # @!attribute [r] update_time
        #   @return [::Google::Protobuf::Timestamp]
        #     Output only. The last-modified time.
        # @!attribute [rw] labels
        #   @return [::Google::Protobuf::Map{::String => ::String}]
        #     Optional. Resource labels.
        # @!attribute [rw] annotations
        #   @return [::Google::Protobuf::Map{::String => ::String}]
        #     Optional. Resource annotations.
        # @!attribute [rw] display_name
        #   @return [::String]
        #     Optional. Resource display name.
        # @!attribute [rw] cel_match
        #   @return [::String]
        #     Required. A CEL expression identifying which messages this enrollment
        #     applies to.
        # @!attribute [rw] message_bus
        #   @return [::String]
        #     Required. Immutable. Resource name of the message bus identifying the
        #     source of the messages. It matches the form
        #     projects/\\{project}/locations/\\{location}/messageBuses/\\{messageBus}.
        # @!attribute [rw] destination
        #   @return [::String]
        #     Required. Destination is the Pipeline that the Enrollment is delivering to.
        #     It must point to the full resource name of a Pipeline. Format:
        #     "projects/\\{PROJECT_ID}/locations/\\{region}/pipelines/{PIPELINE_ID)"
        class Enrollment
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods

          # @!attribute [rw] key
          #   @return [::String]
          # @!attribute [rw] value
          #   @return [::String]
          class LabelsEntry
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end

          # @!attribute [rw] key
          #   @return [::String]
          # @!attribute [rw] value
          #   @return [::String]
          class AnnotationsEntry
            include ::Google::Protobuf::MessageExts
            extend ::Google::Protobuf::MessageExts::ClassMethods
          end
        end
      end
    end
  end
end
