// Copyright 2026 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
//
//     http://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.

syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Apps.Chat.V1";
option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
option java_multiple_files = true;
option java_outer_classname = "AudienceProto";
option java_package = "com.google.chat.v1";
option objc_class_prefix = "DYNAPIProto";
option php_namespace = "Google\\Apps\\Chat\\V1";
option ruby_package = "Google::Apps::Chat::V1";

// A target audience in Google Chat. A target audience represents a group of
// users within a Google Workspace organization, defined by an administrator.
// Target audiences are used to configure access and visibility settings for
// resources, such as making a space discoverable to a specific group of users.
//
// For more details, see [Target
// audiences](https://support.google.com/a/answer/9934697) and [Make a space
// discoverable to a target
// audience](https://developers.google.com/workspace/chat/space-target-audience).
message Audience {
  // The resource name of the [target
  // audience](https://support.google.com/a/answer/9934697) who can discover
  // or join the space. For details, see [Make a space
  // discoverable to a target
  // audience](https://developers.google.com/workspace/chat/space-target-audience).
  // Format: `audiences/{audience}`
  //
  // To use the default target audience for the Google Workspace organization,
  // set to `audiences/default`.
  string name = 1;
}
