// 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.cloud.chronicle.v1;

import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.Chronicle.V1";
option go_package = "cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb";
option java_multiple_files = true;
option java_outer_classname = "FeaturedContentMetadataProto";
option java_package = "com.google.cloud.chronicle.v1";
option php_namespace = "Google\\Cloud\\Chronicle\\V1";
option ruby_package = "Google::Cloud::Chronicle::V1";

// FeaturedContentMetadata holds metadata about the Featured Content.
message FeaturedContentMetadata {
  // ContentSourceType specifying the content source of origin
  enum ContentSourceType {
    // Unspecified content source type
    CONTENT_SOURCE_TYPE_UNSPECIFIED = 0;

    // Certified Google content source type
    GOOGLE = 1;

    // Community content source type
    COMMUNITY = 2;

    // Partner content source type
    PARTNER = 3;
  }

  // Required. Unique identifier of the featured content.
  string id = 1 [(google.api.field_behavior) = REQUIRED];

  // Output only. The display name of the featured content.
  string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Timestamp indicating when the item was created.
  google.protobuf.Timestamp create_time = 3
      [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Timestamp indicating when the item was updated.
  google.protobuf.Timestamp update_time = 4
      [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Content item author full name.
  string author = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Determine if this content item is officially certified by
  // Google or created by the community.
  bool certified = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The description of the content item.
  string description = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Categories the content is associated with.
  repeated string categories = 8 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Featured content version (Major.Minor.Patch).
  string version = 9 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Whether the content is verified by Google (applicable for 3rd
  // party content).
  optional bool verified = 10 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The source type of the content.
  ContentSourceType source_type = 11
      [(google.api.field_behavior) = OUTPUT_ONLY];
}
