Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@AutoValue
@JsonDeserialize(builder = KeepAliveProbeHttpGet.Builder.class)
public abstract class KeepAliveProbeHttpGet extends JsonSerializable {
/** Required. Specifies the path of the HTTP GET request (e.g., "/is_busy"). */
/** Required. Specifies the path of the HTTP GET request (e.g., `"/is_busy"`). */
@JsonProperty("path")
public abstract Optional<String> path();

Expand Down Expand Up @@ -59,7 +59,7 @@ private static Builder create() {
/**
* Setter for path.
*
* <p>path: Required. Specifies the path of the HTTP GET request (e.g., "/is_busy").
* <p>path: Required. Specifies the path of the HTTP GET request (e.g., `"/is_busy"`).
*/
@JsonProperty("path")
public abstract Builder path(String path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
@AutoValue
@JsonDeserialize(builder = MemoryGenerationTriggerConfigGenerationTriggerRule.Builder.class)
public abstract class MemoryGenerationTriggerConfigGenerationTriggerRule extends JsonSerializable {
/** Specifies to trigger generation when the event count reaches this limit. */
/** Optional. Specifies to trigger generation when the event count reaches this limit. */
@JsonProperty("eventCount")
public abstract Optional<Integer> eventCount();

/**
* Specifies to trigger generation at a fixed interval. The duration must have a minute-level
* granularity.
* Optional. Specifies to trigger generation at a fixed interval. The duration must have a
* minute-level granularity.
*/
@JsonProperty("fixedInterval")
public abstract Optional<Duration> fixedInterval();

/**
* Specifies to trigger generation if the stream is inactive for the specified duration after the
* most recent event. The duration must have a minute-level granularity.
* Optional. Specifies to trigger generation if the stream is inactive for the specified duration
* after the most recent event. The duration must have a minute-level granularity.
*/
@JsonProperty("idleDuration")
public abstract Optional<Duration> idleDuration();
Expand Down Expand Up @@ -73,7 +73,8 @@ private static Builder create() {
/**
* Setter for eventCount.
*
* <p>eventCount: Specifies to trigger generation when the event count reaches this limit.
* <p>eventCount: Optional. Specifies to trigger generation when the event count reaches this
* limit.
*/
@JsonProperty("eventCount")
public abstract Builder eventCount(Integer eventCount);
Expand All @@ -91,8 +92,8 @@ public Builder clearEventCount() {
/**
* Setter for fixedInterval.
*
* <p>fixedInterval: Specifies to trigger generation at a fixed interval. The duration must have
* a minute-level granularity.
* <p>fixedInterval: Optional. Specifies to trigger generation at a fixed interval. The duration
* must have a minute-level granularity.
*/
@JsonProperty("fixedInterval")
public abstract Builder fixedInterval(Duration fixedInterval);
Expand All @@ -110,8 +111,9 @@ public Builder clearFixedInterval() {
/**
* Setter for idleDuration.
*
* <p>idleDuration: Specifies to trigger generation if the stream is inactive for the specified
* duration after the most recent event. The duration must have a minute-level granularity.
* <p>idleDuration: Optional. Specifies to trigger generation if the stream is inactive for the
* specified duration after the most recent event. The duration must have a minute-level
* granularity.
*/
@JsonProperty("idleDuration")
public abstract Builder idleDuration(Duration idleDuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class ReasoningEngineSpecPackageSpec extends JsonSerializable {
public abstract Optional<String> pickleObjectGcsUri();

/**
* Optional. The Python version. Supported values are 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. If not
* Optional. The Python version. Supported values are 3.10, 3.11, 3.12, 3.13, 3.14. If not
* specified, the default value is 3.10.
*/
@JsonProperty("pythonVersion")
Expand Down Expand Up @@ -109,8 +109,8 @@ public Builder clearPickleObjectGcsUri() {
/**
* Setter for pythonVersion.
*
* <p>pythonVersion: Optional. The Python version. Supported values are 3.9, 3.10, 3.11, 3.12,
* 3.13, 3.14. If not specified, the default value is 3.10.
* <p>pythonVersion: Optional. The Python version. Supported values are 3.10, 3.11, 3.12, 3.13,
* 3.14. If not specified, the default value is 3.10.
*/
@JsonProperty("pythonVersion")
public abstract Builder pythonVersion(String pythonVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public abstract class ReasoningEngineSpecSourceCodeSpecPythonSpec extends JsonSe
public abstract Optional<String> requirementsFile();

/**
* Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13,
* Optional. The version of Python to use. Supported versions include 3.10, 3.11, 3.12, 3.13,
* 3.14. If not specified, default value is 3.10.
*/
@JsonProperty("version")
Expand Down Expand Up @@ -145,7 +145,7 @@ public Builder clearRequirementsFile() {
/**
* Setter for version.
*
* <p>version: Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11,
* <p>version: Optional. The version of Python to use. Supported versions include 3.10, 3.11,
* 3.12, 3.13, 3.14. If not specified, default value is 3.10.
*/
@JsonProperty("version")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public abstract class SandboxEnvironmentConnectionInfo extends JsonSerializable
@JsonProperty("sandboxInternalIp")
public abstract Optional<String> sandboxInternalIp();

/** Output only. The hostname of the SandboxEnvironment. */
@JsonProperty("sandboxHostname")
public abstract Optional<String> sandboxHostname();

/** Output only. The routing token for the SandboxEnvironment. */
@JsonProperty("routingToken")
public abstract Optional<String> routingToken();
Expand Down Expand Up @@ -125,24 +121,6 @@ public Builder clearSandboxInternalIp() {
return sandboxInternalIp(Optional.empty());
}

/**
* Setter for sandboxHostname.
*
* <p>sandboxHostname: Output only. The hostname of the SandboxEnvironment.
*/
@JsonProperty("sandboxHostname")
public abstract Builder sandboxHostname(String sandboxHostname);

@ExcludeFromGeneratedCoverageReport
abstract Builder sandboxHostname(Optional<String> sandboxHostname);

/** Clears the value of sandboxHostname field. */
@ExcludeFromGeneratedCoverageReport
@CanIgnoreReturnValue
public Builder clearSandboxHostname() {
return sandboxHostname(Optional.empty());
}

/**
* Setter for routingToken.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* Copyright 2025 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
*
* https://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.
*/

// Auto-generated code. Do not edit.

package com.google.cloud.agentplatform.types;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.auto.value.AutoValue;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import com.google.genai.JsonSerializable;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;

/** Defines data for an interaction prompt. */
@AutoValue
@JsonDeserialize(builder = SchemaPromptSpecInteractionData.Builder.class)
public abstract class SchemaPromptSpecInteractionData extends JsonSerializable {
/**
* Optional. Lists interaction IDs associated with the prompt. This maps 1:1 to
* PromptMessage.contents. If InteractionData is present, every prompt message has an interaction
* ID.
*/
@JsonProperty("interactionIds")
public abstract Optional<List<String>> interactionIds();

/** Instantiates a builder for SchemaPromptSpecInteractionData. */
@ExcludeFromGeneratedCoverageReport
public static Builder builder() {
return new AutoValue_SchemaPromptSpecInteractionData.Builder();
}

/** Creates a builder with the same values as this instance. */
public abstract Builder toBuilder();

/** Builder for SchemaPromptSpecInteractionData. */
@AutoValue.Builder
public abstract static class Builder {
/**
* For internal usage. Please use `SchemaPromptSpecInteractionData.builder()` for instantiation.
*/
@JsonCreator
private static Builder create() {
return new AutoValue_SchemaPromptSpecInteractionData.Builder();
}

/**
* Setter for interactionIds.
*
* <p>interactionIds: Optional. Lists interaction IDs associated with the prompt. This maps 1:1
* to PromptMessage.contents. If InteractionData is present, every prompt message has an
* interaction ID.
*/
@JsonProperty("interactionIds")
public abstract Builder interactionIds(List<String> interactionIds);

/**
* Setter for interactionIds.
*
* <p>interactionIds: Optional. Lists interaction IDs associated with the prompt. This maps 1:1
* to PromptMessage.contents. If InteractionData is present, every prompt message has an
* interaction ID.
*/
@CanIgnoreReturnValue
public Builder interactionIds(String... interactionIds) {
return interactionIds(Arrays.asList(interactionIds));
}

@ExcludeFromGeneratedCoverageReport
abstract Builder interactionIds(Optional<List<String>> interactionIds);

/** Clears the value of interactionIds field. */
@ExcludeFromGeneratedCoverageReport
@CanIgnoreReturnValue
public Builder clearInteractionIds() {
return interactionIds(Optional.empty());
}

public abstract SchemaPromptSpecInteractionData build();
}

/** Deserializes a JSON string to a SchemaPromptSpecInteractionData object. */
@ExcludeFromGeneratedCoverageReport
public static SchemaPromptSpecInteractionData fromJson(String jsonString) {
return JsonSerializable.fromJsonString(jsonString, SchemaPromptSpecInteractionData.class);
}
}
Loading