// 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.commerceproducer.v1beta;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";

option csharp_namespace = "Google.Cloud.CommerceProducer.V1Beta";
option go_package = "cloud.google.com/go/commerceproducer/apiv1beta/commerceproducerpb;commerceproducerpb";
option java_multiple_files = true;
option java_outer_classname = "SkuGroupProto";
option java_package = "com.google.cloud.commerceproducer.v1beta";
option php_namespace = "Google\\Cloud\\CommerceProducer\\V1beta";
option ruby_package = "Google::Cloud::CommerceProducer::V1beta";

// Message describing SkuGroup resource
message SkuGroup {
  option (google.api.resource) = {
    type: "commerceproducer.googleapis.com/SkuGroup"
    pattern: "projects/{project}/locations/{location}/skuGroups/{sku_group}"
    plural: "skuGroups"
    singular: "skuGroup"
  };

  // Output only. Identifier. Name of the SkuGroup.
  string name = 1 [
    (google.api.field_behavior) = OUTPUT_ONLY,
    (google.api.field_behavior) = IDENTIFIER
  ];

  // Output only. Partner SKUs included in the SkuGroup.
  // Format:
  // `projects/{project}/locations/{location}/services/{service}/skus/{sku}`
  repeated string skus = 2 [
    (google.api.field_behavior) = OUTPUT_ONLY,
    (google.api.resource_reference) = {
      type: "commerceproducer.googleapis.com/Sku"
    }
  ];

  // Output only. Google SKUs included in the SkuGroup.
  //
  // Used for partner products sold by Google, such as Premium Operating System
  // Images sold for use in Compute Engine. This is not common.
  // SKUs of this type are not present on this API and can instead be found on
  // the Cloud Billing API or at https://cloud.google.com/skus.
  //
  // Format: `services/{service}/skus/{sku}`
  repeated string cloud_billing_skus = 3
      [(google.api.field_behavior) = OUTPUT_ONLY];
}
