# frozen_string_literal: true

# Copyright 2023 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 Support
      module V2
        # An Actor represents an entity that performed an action. For example, an actor
        # could be a user who posted a comment on a support case, a user who
        # uploaded an attachment, or a service account that created a support case.
        # @!attribute [rw] display_name
        #   @return [::String]
        #     The name to display for the actor. If not provided, it is inferred from
        #     credentials supplied during case creation. When an email is provided, a
        #     display name must also be provided. This will be obfuscated if the user
        #     is a Google Support agent.
        # @!attribute [rw] email
        #   @deprecated This field is deprecated and may be removed in the next major version update.
        #   @return [::String]
        #     The email address of the actor. If not provided, it is inferred from the
        #     credentials supplied during case creation. When a name is provided, an
        #     email must also be provided. If the user is a Google Support agent, this is
        #     obfuscated.
        #
        #     This field is deprecated. Use `username` instead.
        # @!attribute [r] google_support
        #   @return [::Boolean]
        #     Output only. Whether the actor is a Google support actor.
        # @!attribute [r] username
        #   @return [::String]
        #     Output only. The username of the actor. It may look like an email or other
        #     format provided by the identity provider. If not provided, it is inferred
        #     from the credentials supplied. When a name is provided, a username must
        #     also be provided. If the user is a Google Support agent, this will not be
        #     set.
        class Actor
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods
        end
      end
    end
  end
end
