/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */
package com.google.cloud.dataflow.sdk.options;

import com.google.api.services.clouddebugger.v2.model.Debuggee;
import com.google.cloud.dataflow.sdk.annotations.Experimental;

import javax.annotation.Nullable;

/**
 * Options for controlling Cloud Debugger.
 */
@Description("[Experimental] Used to configure the Cloud Debugger")
@Experimental
@Hidden
public interface CloudDebuggerOptions {

  /**
   * Whether to enable the Cloud Debugger snapshot agent for the current job.
   */
  @Description("Whether to enable the Cloud Debugger snapshot agent for the current job.")
  boolean getEnableCloudDebugger();
  void setEnableCloudDebugger(boolean enabled);

  @Description("The Cloud Debugger debugee to associate with. This should not be set directly.")
  @Hidden
  @Nullable Debuggee getDebuggee();
  void setDebuggee(Debuggee debuggee);
}

@@ -1197,21 +1197,16 @@
 %7B%0A%0A  /**
-%0A   *
  Whether
@@ -1270,19 +1270,16 @@
 ent job.
-%0A  
  */%0A  @D
@@ -1450,16 +1450,105 @@
 bled);%0A%0A
+  /** The Cloud Debugger debuggee to associate with. This should not be set directly. */%0A
   @Descr
@@ -1579,16 +1579,17 @@
 er debug
+g
 ee to as
@@ -1721,11 +1721,478 @@
 buggee);
+%0A%0A  /** The maximum cost (as a ratio of CPU time) allowed for evaluating conditional snapshots. */%0A  @Description(%0A      %22The maximum cost (as a ratio of CPU time) allowed for evaluating conditional snapshots. %22%0A      + %22Should be a double between 0 and 1. %22%0A      + %22Snapshots will be cancelled if evaluating conditions takes more than this ratio of time.%22)%0A  @Default.Double(0.01)%0A  double getMaxConditionCost();%0A  void setMaxConditionCost(double maxConditionCost);
 %0A%7D%0A

Add the MaxConditionCost option