// 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
//
//     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.ads.admanager.v1;

option csharp_namespace = "Google.Ads.AdManager.V1";
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
option java_multiple_files = true;
option java_outer_classname = "ComputedStatusEnumProto";
option java_package = "com.google.ads.admanager.v1";
option objc_class_prefix = "GAA";
option php_namespace = "Google\\Ads\\AdManager\\V1";

// Wrapper message for
// [ComputedStatus][google.ads.admanager.v1.ComputedStatusEnum.ComputedStatus].
message ComputedStatusEnum {
  // Describes the computed LineItem status that is derived from the
  // current state of the LineItem.
  enum ComputedStatus {
    // No value specified.
    COMPUTED_STATUS_UNSPECIFIED = 0;

    // The LineItem has past its link LineItem#endDateTime with an auto
    // extension, but hasn't met its goal.
    DELIVERY_EXTENDED = 1;

    // The LineItem has begun serving.
    DELIVERING = 2;

    // The LineItem has been activated and is ready to serve.
    READY = 3;

    // The LineItem has been paused from serving.
    PAUSED = 4;

    // The LineItem is inactive. It is either caused by missing creatives or
    // the network disabling auto-activation.
    INACTIVE = 5;

    // The LineItem has been paused and its reserved inventory has been
    // released. The LineItem will not serve.
    PAUSED_INVENTORY_RELEASED = 6;

    // The LineItem has been submitted for approval.
    PENDING_APPROVAL = 7;

    // The LineItem has completed its run.
    COMPLETED = 8;

    // The LineItem has been disapproved and is not eligible to serve.
    DISAPPROVED = 9;

    // The LineItem is still being drafted.
    DRAFT = 10;

    // The LineItem has been canceled and is no longer eligible to serve.
    // This is a legacy status imported from Google Ad Manager orders.
    CANCELED = 11;
  }
}
