diff --git a/clients/google-api-services-ces/v1/2.0.0/README.md b/clients/google-api-services-ces/v1/2.0.0/README.md
new file mode 100644
index 00000000000..7e3a8629e7c
--- /dev/null
+++ b/clients/google-api-services-ces/v1/2.0.0/README.md
@@ -0,0 +1,44 @@
+# Gemini Enterprise for Customer Experience API Client Library for Java
+
+
+
+This page contains information about getting started with the Gemini Enterprise for Customer Experience API
+using the Google API Client Library for Java. In addition, you may be interested
+in the following documentation:
+
+* Browse the [Javadoc reference for the Gemini Enterprise for Customer Experience API][javadoc]
+* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client].
+* Interact with this API in your browser using the [APIs Explorer for the Gemini Enterprise for Customer Experience API][api-explorer]
+
+## Installation
+
+### Maven
+
+Add the following lines to your `pom.xml` file:
+
+```xml
+
+ * + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link CustomerEngagementSuiteRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CustomerEngagementSuite extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Gemini Enterprise for Customer Experience API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://ces.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://ces.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *+ * Use {@link Builder} if you need to specify any of the optional parameters. + *
+ * + * @param transport HTTP transport, which should normally be: + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Projects.List request = ces.projects().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Projects projects() {
+ return new Projects();
+ }
+
+ /**
+ * The "projects" collection of methods.
+ */
+ public class Projects {
+
+ /**
+ * An accessor for creating requests from the Locations collection.
+ *
+ * The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Locations.List request = ces.locations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Locations locations() {
+ return new Locations();
+ }
+
+ /**
+ * The "locations" collection of methods.
+ */
+ public class Locations {
+
+ /**
+ * Gets information about a location.
+ *
+ * Create a request for the method "locations.get".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Resource name for the location.
+ * @return the request
+ */
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Location.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListLocationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Apps.List request = ces.apps().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Apps apps() {
+ return new Apps();
+ }
+
+ /**
+ * The "apps" collection of methods.
+ */
+ public class Apps {
+
+ /**
+ * Creates a new app in the given project and location.
+ *
+ * Create a request for the method "apps.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the location to create an app in.
+ * @param content the {@link com.google.api.services.ces.v1.model.App}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.App content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the location to create an app in. + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.App content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the location to create an app in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to create an app in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to create an app in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** Optional. The ID to use for the app, which will become the final component of the app's resource + name. If not provided, a unique ID will be automatically assigned for the app. + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + public Create setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app. + * + * Create a request for the method "apps.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the app, deletion + will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Executes the given tool with the given arguments. + * + * Create a request for the method "apps.executeTool". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExecuteTool#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.ExecuteToolRequest} + * @return the request + */ + public ExecuteTool executeTool(java.lang.String parent, com.google.api.services.ces.v1.model.ExecuteToolRequest content) throws java.io.IOException { + ExecuteTool result = new ExecuteTool(parent, content); + initialize(result); + return result; + } + + public class ExecuteTool extends CustomerEngagementSuiteRequest+ * {@link + * ExecuteTool#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.ExecuteToolRequest} + * @since 1.13 + */ + protected ExecuteTool(java.lang.String parent, com.google.api.services.ces.v1.model.ExecuteToolRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.ExecuteToolResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExecuteTool set$Xgafv(java.lang.String $Xgafv) { + return (ExecuteTool) super.set$Xgafv($Xgafv); + } + + @Override + public ExecuteTool setAccessToken(java.lang.String accessToken) { + return (ExecuteTool) super.setAccessToken(accessToken); + } + + @Override + public ExecuteTool setAlt(java.lang.String alt) { + return (ExecuteTool) super.setAlt(alt); + } + + @Override + public ExecuteTool setCallback(java.lang.String callback) { + return (ExecuteTool) super.setCallback(callback); + } + + @Override + public ExecuteTool setFields(java.lang.String fields) { + return (ExecuteTool) super.setFields(fields); + } + + @Override + public ExecuteTool setKey(java.lang.String key) { + return (ExecuteTool) super.setKey(key); + } + + @Override + public ExecuteTool setOauthToken(java.lang.String oauthToken) { + return (ExecuteTool) super.setOauthToken(oauthToken); + } + + @Override + public ExecuteTool setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExecuteTool) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExecuteTool setQuotaUser(java.lang.String quotaUser) { + return (ExecuteTool) super.setQuotaUser(quotaUser); + } + + @Override + public ExecuteTool setUploadType(java.lang.String uploadType) { + return (ExecuteTool) super.setUploadType(uploadType); + } + + @Override + public ExecuteTool setUploadProtocol(java.lang.String uploadProtocol) { + return (ExecuteTool) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public ExecuteTool setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ExecuteTool set(String parameterName, Object value) { + return (ExecuteTool) super.set(parameterName, value); + } + } + /** + * Exports the specified app. + * + * Create a request for the method "apps.exportApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExportApp#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1.model.ExportAppRequest} + * @return the request + */ + public ExportApp exportApp(java.lang.String name, com.google.api.services.ces.v1.model.ExportAppRequest content) throws java.io.IOException { + ExportApp result = new ExportApp(name, content); + initialize(result); + return result; + } + + public class ExportApp extends CustomerEngagementSuiteRequest+ * {@link + * ExportApp#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1.model.ExportAppRequest} + * @since 1.13 + */ + protected ExportApp(java.lang.String name, com.google.api.services.ces.v1.model.ExportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExportApp set$Xgafv(java.lang.String $Xgafv) { + return (ExportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ExportApp setAccessToken(java.lang.String accessToken) { + return (ExportApp) super.setAccessToken(accessToken); + } + + @Override + public ExportApp setAlt(java.lang.String alt) { + return (ExportApp) super.setAlt(alt); + } + + @Override + public ExportApp setCallback(java.lang.String callback) { + return (ExportApp) super.setCallback(callback); + } + + @Override + public ExportApp setFields(java.lang.String fields) { + return (ExportApp) super.setFields(fields); + } + + @Override + public ExportApp setKey(java.lang.String key) { + return (ExportApp) super.setKey(key); + } + + @Override + public ExportApp setOauthToken(java.lang.String oauthToken) { + return (ExportApp) super.setOauthToken(oauthToken); + } + + @Override + public ExportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExportApp setQuotaUser(java.lang.String quotaUser) { + return (ExportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ExportApp setUploadType(java.lang.String uploadType) { + return (ExportApp) super.setUploadType(uploadType); + } + + @Override + public ExportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ExportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to export. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to export. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to export. */ + public ExportApp setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ExportApp set(String parameterName, Object value) { + return (ExportApp) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app. + * + * Create a request for the method "apps.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.App.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports the specified app. + * + * Create a request for the method "apps.importApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ImportApp#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1.model.ImportAppRequest} + * @return the request + */ + public ImportApp importApp(java.lang.String parent, com.google.api.services.ces.v1.model.ImportAppRequest content) throws java.io.IOException { + ImportApp result = new ImportApp(parent, content); + initialize(result); + return result; + } + + public class ImportApp extends CustomerEngagementSuiteRequest+ * {@link + * ImportApp#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1.model.ImportAppRequest} + * @since 1.13 + */ + protected ImportApp(java.lang.String parent, com.google.api.services.ces.v1.model.ImportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public ImportApp set$Xgafv(java.lang.String $Xgafv) { + return (ImportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ImportApp setAccessToken(java.lang.String accessToken) { + return (ImportApp) super.setAccessToken(accessToken); + } + + @Override + public ImportApp setAlt(java.lang.String alt) { + return (ImportApp) super.setAlt(alt); + } + + @Override + public ImportApp setCallback(java.lang.String callback) { + return (ImportApp) super.setCallback(callback); + } + + @Override + public ImportApp setFields(java.lang.String fields) { + return (ImportApp) super.setFields(fields); + } + + @Override + public ImportApp setKey(java.lang.String key) { + return (ImportApp) super.setKey(key); + } + + @Override + public ImportApp setOauthToken(java.lang.String oauthToken) { + return (ImportApp) super.setOauthToken(oauthToken); + } + + @Override + public ImportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ImportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ImportApp setQuotaUser(java.lang.String quotaUser) { + return (ImportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ImportApp setUploadType(java.lang.String uploadType) { + return (ImportApp) super.setUploadType(uploadType); + } + + @Override + public ImportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ImportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource name with the location of the app to import. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name with the location of the app to import. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource name with the location of the app to import. */ + public ImportApp setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ImportApp set(String parameterName, Object value) { + return (ImportApp) super.set(parameterName, value); + } + } + /** + * Lists apps in the given project and location. + * + * Create a request for the method "apps.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the location to list apps from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the location to list apps from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAppsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the location to list apps from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to list apps from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to list apps from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListApps call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified app. + * + * Create a request for the method "apps.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.App content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.App content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.App.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the app. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + * Create a request for the method "apps.retrieveToolSchema". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveToolSchema#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest} + * @return the request + */ + public RetrieveToolSchema retrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest content) throws java.io.IOException { + RetrieveToolSchema result = new RetrieveToolSchema(parent, content); + initialize(result); + return result; + } + + public class RetrieveToolSchema extends CustomerEngagementSuiteRequest{@link RetrieveToolSchema#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest} + * @since 1.13 + */ + protected RetrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RetrieveToolSchemaResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public RetrieveToolSchema set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveToolSchema) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveToolSchema setAccessToken(java.lang.String accessToken) { + return (RetrieveToolSchema) super.setAccessToken(accessToken); + } + + @Override + public RetrieveToolSchema setAlt(java.lang.String alt) { + return (RetrieveToolSchema) super.setAlt(alt); + } + + @Override + public RetrieveToolSchema setCallback(java.lang.String callback) { + return (RetrieveToolSchema) super.setCallback(callback); + } + + @Override + public RetrieveToolSchema setFields(java.lang.String fields) { + return (RetrieveToolSchema) super.setFields(fields); + } + + @Override + public RetrieveToolSchema setKey(java.lang.String key) { + return (RetrieveToolSchema) super.setKey(key); + } + + @Override + public RetrieveToolSchema setOauthToken(java.lang.String oauthToken) { + return (RetrieveToolSchema) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveToolSchema setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveToolSchema) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveToolSchema setQuotaUser(java.lang.String quotaUser) { + return (RetrieveToolSchema) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveToolSchema setUploadType(java.lang.String uploadType) { + return (RetrieveToolSchema) super.setUploadType(uploadType); + } + + @Override + public RetrieveToolSchema setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveToolSchema) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public RetrieveToolSchema setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public RetrieveToolSchema set(String parameterName, Object value) { + return (RetrieveToolSchema) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Agents collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Agents.List request = ces.agents().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Agents agents() {
+ return new Agents();
+ }
+
+ /**
+ * The "agents" collection of methods.
+ */
+ public class Agents {
+
+ /**
+ * Creates a new agent in the given app.
+ *
+ * Create a request for the method "agents.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create an agent in.
+ * @param content the {@link com.google.api.services.ces.v1.model.Agent}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Agent content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create an agent in. + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Agent content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Agent.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create an agent in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an agent in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an agent in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** Optional. The ID to use for the agent, which will become the final component of the agent's + resource name. If not provided, a unique ID will be automatically assigned for the agent. + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + public Create setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified agent. + * + * Create a request for the method "agents.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the agent to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the agent to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the agent. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the agent, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the agent, even if it is still referenced by other + app/agents/examples. * If `force = false`, the deletion fails if other agents/examples reference + it. * If `force = true`, delete the agent and remove it from all referencing apps/agents/examples. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified agent. + * + * Create a request for the method "agents.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the agent to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Agent.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the agent to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists agents in the given app. + * + * Create a request for the method "agents.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list agents from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list agents from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAgentsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list agents from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list agents from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list agents from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the agents. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAgents call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified agent. + * + * Create a request for the method "agents.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Agent content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Agent content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Agent.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the agent. Format: + `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Changelogs collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Changelogs.List request = ces.changelogs().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Changelogs changelogs() {
+ return new Changelogs();
+ }
+
+ /**
+ * The "changelogs" collection of methods.
+ */
+ public class Changelogs {
+
+ /**
+ * Gets the specified changelog.
+ *
+ * Create a request for the method "changelogs.get".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the changelog to retrieve.
+ * @return the request
+ */
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the changelog to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Changelog.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the changelog to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the changelog to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the changelog to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the changelogs of the specified app. + * + * Create a request for the method "changelogs.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list changelogs from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list changelogs from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListChangelogsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list changelogs from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list changelogs from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list changelogs from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the changelogs. See https://google.aip.dev/160 for more + details. The filter string can be used to filter by `action`, `resource_type`, `resource_name`, + `author`, and `create_time`. The `:` comparator can be used for case-insensitive partial matching + on string fields, while `=` performs an exact case-sensitive match. Examples: * `action:update` + (case-insensitive partial match) * `action="Create"` (case-sensitive exact match) * + `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * `create_time > + "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListChangelogs call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Conversations collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Conversations.List request = ces.conversations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Conversations conversations() {
+ return new Conversations();
+ }
+
+ /**
+ * The "conversations" collection of methods.
+ */
+ public class Conversations {
+
+ /**
+ * Batch deletes the specified conversations.
+ *
+ * Create a request for the method "conversations.batchDelete".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to delete conversations from. Format:
+ * `projects/{project}/locations/{location}/apps/{app}`
+ * @param content the {@link com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest}
+ * @return the request
+ */
+ public BatchDelete batchDelete(java.lang.String parent, com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest content) throws java.io.IOException {
+ BatchDelete result = new BatchDelete(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class BatchDelete extends CustomerEngagementSuiteRequest+ * {@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String parent, com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } + + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } + + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } + + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } + + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } + + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } + + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to delete conversations from. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public BatchDelete setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Deletes the specified conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the conversation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the conversation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public Delete setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the conversation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Conversation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the conversation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, all source will be searched. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + public Get setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists conversations in the given app. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list conversations from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list conversations from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListConversationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list conversations from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list conversations from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list conversations from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the conversations. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListConversations + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public List setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Deployments collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Deployments.List request = ces.deployments().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Deployments deployments() {
+ return new Deployments();
+ }
+
+ /**
+ * The "deployments" collection of methods.
+ */
+ public class Deployments {
+
+ /**
+ * Creates a new deployment in the given app.
+ *
+ * Create a request for the method "deployments.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}`
+ * @param content the {@link com.google.api.services.ces.v1.model.Deployment}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Deployment content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Deployment content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Deployment.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentId; + + /** Optional. The ID to use for the deployment, which will become the final component of the + deployment's resource name. If not provided, a unique ID will be automatically assigned for the + deployment. + */ + public java.lang.String getDeploymentId() { + return deploymentId; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + public Create setDeploymentId(java.lang.String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified deployment. + * + * Create a request for the method "deployments.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment to delete. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the deployment. If an etag is provided and does not match the current etag of + the deployment, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified deployment. + * + * Create a request for the method "deployments.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Deployment.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists deployments in the given app. + * + * Create a request for the method "deployments.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListDeploymentsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of deployments to return. The service may return fewer than this + value. If unspecified, at most 50 deployments will be returned. The maximum value is 1000; values + above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListDeployments` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListDeployments` must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified deployment. + * + * Create a request for the method "deployments.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Deployment content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Deployment content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Deployment.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the deployment. Format: + projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Examples collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Examples.List request = ces.examples().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Examples examples() {
+ return new Examples();
+ }
+
+ /**
+ * The "examples" collection of methods.
+ */
+ public class Examples {
+
+ /**
+ * Creates a new example in the given app.
+ *
+ * Create a request for the method "examples.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create an example in.
+ * @param content the {@link com.google.api.services.ces.v1.model.Example}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Example content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create an example in. + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Example content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Example.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create an example in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an example in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an example in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + @com.google.api.client.util.Key + private java.lang.String exampleId; + + /** Optional. The ID to use for the example, which will become the final component of the example's + resource name. If not provided, a unique ID will be automatically assigned for the example. + */ + public java.lang.String getExampleId() { + return exampleId; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + public Create setExampleId(java.lang.String exampleId) { + this.exampleId = exampleId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified example. + * + * Create a request for the method "examples.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the example to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the example to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the example. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the example, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified example. + * + * Create a request for the method "examples.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the example to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Example.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the example to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists examples in the given app. + * + * Create a request for the method "examples.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list examples from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list examples from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListExamplesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list examples from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list examples from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list examples from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the examples. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListExamples call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified example. + * + * Create a request for the method "examples.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Example content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Example content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Example.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the example. Format: + `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Guardrails collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Guardrails.List request = ces.guardrails().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Guardrails guardrails() {
+ return new Guardrails();
+ }
+
+ /**
+ * The "guardrails" collection of methods.
+ */
+ public class Guardrails {
+
+ /**
+ * Creates a new guardrail in the given app.
+ *
+ * Create a request for the method "guardrails.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create a guardrail in.
+ * @param content the {@link com.google.api.services.ces.v1.model.Guardrail}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Guardrail content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Guardrail content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Guardrail.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create a guardrail in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a guardrail in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a guardrail in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + @com.google.api.client.util.Key + private java.lang.String guardrailId; + + /** Optional. The ID to use for the guardrail, which will become the final component of the guardrail's + resource name. If not provided, a unique ID will be automatically assigned for the guardrail. + */ + public java.lang.String getGuardrailId() { + return guardrailId; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + public Create setGuardrailId(java.lang.String guardrailId) { + this.guardrailId = guardrailId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified guardrail. + * + * Create a request for the method "guardrails.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the guardrail to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the guardrail to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the guardrail. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + guardrail, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the guardrail, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any apps/agents still reference the + guardrail. * If `force = true`, all existing references from apps/agents will be removed and the + guardrail will be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified guardrail. + * + * Create a request for the method "guardrails.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the guardrail to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Guardrail.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the guardrail to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists guardrails in the given app. + * + * Create a request for the method "guardrails.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list guardrails from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list guardrails from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListGuardrailsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list guardrails from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list guardrails from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list guardrails from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the guardrails. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListGuardrails call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified guardrail. + * + * Create a request for the method "guardrails.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Guardrail content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Guardrail content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Guardrail.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the guardrail. Format: + `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Sessions collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Sessions.List request = ces.sessions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Sessions sessions() {
+ return new Sessions();
+ }
+
+ /**
+ * The "sessions" collection of methods.
+ */
+ public class Sessions {
+
+ /**
+ * Generates a session scoped token for chat widget to authenticate with Session APIs.
+ *
+ * Create a request for the method "sessions.generateChatToken".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link GenerateChatToken#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The session name to generate the chat token for. Format:
+ * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
+ * @param content the {@link com.google.api.services.ces.v1.model.GenerateChatTokenRequest}
+ * @return the request
+ */
+ public GenerateChatToken generateChatToken(java.lang.String name, com.google.api.services.ces.v1.model.GenerateChatTokenRequest content) throws java.io.IOException {
+ GenerateChatToken result = new GenerateChatToken(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class GenerateChatToken extends CustomerEngagementSuiteRequest{@link GenerateChatToken#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
+ * + * @param name Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + * @param content the {@link com.google.api.services.ces.v1.model.GenerateChatTokenRequest} + * @since 1.13 + */ + protected GenerateChatToken(java.lang.String name, com.google.api.services.ces.v1.model.GenerateChatTokenRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.GenerateChatTokenResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public GenerateChatToken set$Xgafv(java.lang.String $Xgafv) { + return (GenerateChatToken) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateChatToken setAccessToken(java.lang.String accessToken) { + return (GenerateChatToken) super.setAccessToken(accessToken); + } + + @Override + public GenerateChatToken setAlt(java.lang.String alt) { + return (GenerateChatToken) super.setAlt(alt); + } + + @Override + public GenerateChatToken setCallback(java.lang.String callback) { + return (GenerateChatToken) super.setCallback(callback); + } + + @Override + public GenerateChatToken setFields(java.lang.String fields) { + return (GenerateChatToken) super.setFields(fields); + } + + @Override + public GenerateChatToken setKey(java.lang.String key) { + return (GenerateChatToken) super.setKey(key); + } + + @Override + public GenerateChatToken setOauthToken(java.lang.String oauthToken) { + return (GenerateChatToken) super.setOauthToken(oauthToken); + } + + @Override + public GenerateChatToken setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateChatToken) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateChatToken setQuotaUser(java.lang.String quotaUser) { + return (GenerateChatToken) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateChatToken setUploadType(java.lang.String uploadType) { + return (GenerateChatToken) super.setUploadType(uploadType); + } + + @Override + public GenerateChatToken setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateChatToken) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The session name to generate the chat token for. Format: + projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public GenerateChatToken setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GenerateChatToken set(String parameterName, Object value) { + return (GenerateChatToken) super.set(parameterName, value); + } + } + /** + * Initiates a single turn interaction with the CES agent within a session. + * + * Create a request for the method "sessions.runSession". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RunSession#execute()} method to invoke the remote operation. + * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @return the request + */ + public RunSession runSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) throws java.io.IOException { + RunSession result = new RunSession(session, content); + initialize(result); + return result; + } + + public class RunSession extends CustomerEngagementSuiteRequest+ * {@link + * RunSession#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @since 1.13 + */ + protected RunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RunSessionResponse.class); + this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public RunSession set$Xgafv(java.lang.String $Xgafv) { + return (RunSession) super.set$Xgafv($Xgafv); + } + + @Override + public RunSession setAccessToken(java.lang.String accessToken) { + return (RunSession) super.setAccessToken(accessToken); + } + + @Override + public RunSession setAlt(java.lang.String alt) { + return (RunSession) super.setAlt(alt); + } + + @Override + public RunSession setCallback(java.lang.String callback) { + return (RunSession) super.setCallback(callback); + } + + @Override + public RunSession setFields(java.lang.String fields) { + return (RunSession) super.setFields(fields); + } + + @Override + public RunSession setKey(java.lang.String key) { + return (RunSession) super.setKey(key); + } + + @Override + public RunSession setOauthToken(java.lang.String oauthToken) { + return (RunSession) super.setOauthToken(oauthToken); + } + + @Override + public RunSession setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RunSession) super.setPrettyPrint(prettyPrint); + } + + @Override + public RunSession setQuotaUser(java.lang.String quotaUser) { + return (RunSession) super.setQuotaUser(quotaUser); + } + + @Override + public RunSession setUploadType(java.lang.String uploadType) { + return (RunSession) super.setUploadType(uploadType); + } + + @Override + public RunSession setUploadProtocol(java.lang.String uploadProtocol) { + return (RunSession) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** Required. The unique identifier of the session. Format: + `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public java.lang.String getSession() { + return session; + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public RunSession setSession(java.lang.String session) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.session = session; + return this; + } + + @Override + public RunSession set(String parameterName, Object value) { + return (RunSession) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Tools collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Tools.List request = ces.tools().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Tools tools() {
+ return new Tools();
+ }
+
+ /**
+ * The "tools" collection of methods.
+ */
+ public class Tools {
+
+ /**
+ * Creates a new tool in the given app.
+ *
+ * Create a request for the method "tools.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create a tool in.
+ * @param content the {@link com.google.api.services.ces.v1.model.Tool}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Tool content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create a tool in. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Tool content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Tool.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create a tool in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a tool in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a tool in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** Optional. The ID to use for the tool, which will become the final component of the tool's resource + name. If not provided, a unique ID will be automatically assigned for the tool. + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + public Create setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified tool. + * + * Create a request for the method "tools.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the tool to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the tool to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the tool. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the tool, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the tool, even if it is still referenced by + agents/examples. * If `force = false`, the deletion will fail if any agents still reference the + tool. * If `force = true`, all existing references from agents will be removed and the tool will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified tool. + * + * Create a request for the method "tools.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the tool to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Tool.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the tool to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists tools in the given app. + * + * Create a request for the method "tools.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list tools from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list tools from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListToolsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list tools from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list tools from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list tools from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the tools. Use "include_system_tools=true" to include + system tools in the response. See https://google.aip.dev/160 for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListTools call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified tool. + * + * Create a request for the method "tools.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Tool content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Tool content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Tool.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the tool. Format: - + `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + directly where a tool is expected. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Toolsets collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Toolsets.List request = ces.toolsets().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Toolsets toolsets() {
+ return new Toolsets();
+ }
+
+ /**
+ * The "toolsets" collection of methods.
+ */
+ public class Toolsets {
+
+ /**
+ * Creates a new toolset in the given app.
+ *
+ * Create a request for the method "toolsets.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create a toolset in.
+ * @param content the {@link com.google.api.services.ces.v1.model.Toolset}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Toolset content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create a toolset in. + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Toolset content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Toolset.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create a toolset in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a toolset in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a toolset in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + @com.google.api.client.util.Key + private java.lang.String toolsetId; + + /** Optional. The ID to use for the toolset, which will become the final component of the toolset's + resource name. If not provided, a unique ID will be automatically assigned for the toolset. + */ + public java.lang.String getToolsetId() { + return toolsetId; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + public Create setToolsetId(java.lang.String toolsetId) { + this.toolsetId = toolsetId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified toolset. + * + * Create a request for the method "toolsets.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the toolset to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the toolset to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the toolset. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the toolset, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the toolset, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any agents still reference the toolset. * + If `force = true`, all existing references from agents will be removed and the toolset will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified toolset. + * + * Create a request for the method "toolsets.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the toolset to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Toolset.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the toolset to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists toolsets in the given app. + * + * Create a request for the method "toolsets.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list toolsets from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list toolsets from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListToolsetsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list toolsets from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list toolsets from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list toolsets from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the toolsets. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListToolsets call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified toolset. + * + * Create a request for the method "toolsets.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Toolset content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Toolset content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Toolset.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the toolset. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the list of tools included in the specified toolset. + * + * Create a request for the method "toolsets.retrieveTools". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveTools#execute()} method to invoke the remote operation. + * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolsRequest} + * @return the request + */ + public RetrieveTools retrieveTools(java.lang.String toolset, com.google.api.services.ces.v1.model.RetrieveToolsRequest content) throws java.io.IOException { + RetrieveTools result = new RetrieveTools(toolset, content); + initialize(result); + return result; + } + + public class RetrieveTools extends CustomerEngagementSuiteRequest+ * {@link RetrieveTools#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} must be called to initialize this instance immediately after invoking the constructor. + *
+ * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolsRequest} + * @since 1.13 + */ + protected RetrieveTools(java.lang.String toolset, com.google.api.services.ces.v1.model.RetrieveToolsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RetrieveToolsResponse.class); + this.toolset = com.google.api.client.util.Preconditions.checkNotNull(toolset, "Required parameter toolset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public RetrieveTools set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveTools) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveTools setAccessToken(java.lang.String accessToken) { + return (RetrieveTools) super.setAccessToken(accessToken); + } + + @Override + public RetrieveTools setAlt(java.lang.String alt) { + return (RetrieveTools) super.setAlt(alt); + } + + @Override + public RetrieveTools setCallback(java.lang.String callback) { + return (RetrieveTools) super.setCallback(callback); + } + + @Override + public RetrieveTools setFields(java.lang.String fields) { + return (RetrieveTools) super.setFields(fields); + } + + @Override + public RetrieveTools setKey(java.lang.String key) { + return (RetrieveTools) super.setKey(key); + } + + @Override + public RetrieveTools setOauthToken(java.lang.String oauthToken) { + return (RetrieveTools) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveTools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveTools) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveTools setQuotaUser(java.lang.String quotaUser) { + return (RetrieveTools) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveTools setUploadType(java.lang.String uploadType) { + return (RetrieveTools) super.setUploadType(uploadType); + } + + @Override + public RetrieveTools setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveTools) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** Required. The name of the toolset to retrieve the tools for. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public RetrieveTools setToolset(java.lang.String toolset) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.toolset = toolset; + return this; + } + + @Override + public RetrieveTools set(String parameterName, Object value) { + return (RetrieveTools) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Versions collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Versions.List request = ces.versions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Versions versions() {
+ return new Versions();
+ }
+
+ /**
+ * The "versions" collection of methods.
+ */
+ public class Versions {
+
+ /**
+ * Creates a new app version in the given app.
+ *
+ * Create a request for the method "versions.create".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the app to create an app version in.
+ * @param content the {@link com.google.api.services.ces.v1.model.AppVersion}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.AppVersion content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CustomerEngagementSuiteRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to create an app version in. + * @param content the {@link com.google.api.services.ces.v1.model.AppVersion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.AppVersion content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.AppVersion.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to create an app version in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an app version in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an app version in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionId; + + /** Optional. The ID to use for the app version, which will become the final component of the app + version's resource name. If not provided, a unique ID will be automatically assigned for the app + version. + */ + public java.lang.String getAppVersionId() { + return appVersionId; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + public Create setAppVersionId(java.lang.String appVersionId) { + this.appVersionId = appVersionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app version. + * + * Create a request for the method "versions.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app version to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app version to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app version. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + app version, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app version. + * + * Create a request for the method "versions.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to retrieve. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app version to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.AppVersion.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app version to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to retrieve. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all app versions in the given app. + * + * Create a request for the method "versions.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list app versions from. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the app to list app versions from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAppVersionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to list app versions from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list app versions from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list app versions from. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the app versions. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAppVersions + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Restores the specified app version. This will create a new app version from the current draft app + * and overwrite the current draft with the specified app version. + * + * Create a request for the method "versions.restore". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1.model.RestoreAppVersionRequest} + * @return the request + */ + public Restore restore(java.lang.String name, com.google.api.services.ces.v1.model.RestoreAppVersionRequest content) throws java.io.IOException { + Restore result = new Restore(name, content); + initialize(result); + return result; + } + + public class Restore extends CustomerEngagementSuiteRequest+ * {@link + * Restore#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1.model.RestoreAppVersionRequest} + * @since 1.13 + */ + protected Restore(java.lang.String name, com.google.api.services.ces.v1.model.RestoreAppVersionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } + + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } + + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } + + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } + + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } + + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } + + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } + + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } + + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } + + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } + + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app version to restore. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to restore. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to restore. */ + public Restore setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+ * {@code CustomerEngagementSuite.Operations.List request = ces.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the ces server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.ces.v1.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.ces.v1.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends CustomerEngagementSuiteRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.ces.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.ces.v1.model.CancelOperationRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CustomerEngagementSuiteRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CustomerEngagementSuiteRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + + /** + * Builder for {@link CustomerEngagementSuite}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *+ * The simplest usage is to use it to set the key parameter: + *
+ * + *+ public static final GoogleClientRequestInitializer KEY_INITIALIZER = + new CustomerEngagementSuiteRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new CustomerEngagementSuiteRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends CustomerEngagementSuiteRequestInitializer {
+
+ {@literal @}Override
+ public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer2 extends CustomerEngagementSuiteRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class CustomerEngagementSuiteRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CustomerEngagementSuiteRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest> request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCustomerEngagementSuiteRequest((CustomerEngagementSuiteRequest>) request); + } + + /** + * Initializes CustomerEngagementSuite request. + * + *+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *
+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest> request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java new file mode 100644 index 00000000000..653ea2582ff --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java @@ -0,0 +1,46 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1; + +/** + * Available OAuth 2.0 scopes for use with the Gemini Enterprise for Customer Experience API. + * + * @since 1.4 + */ +public class CustomerEngagementSuiteScopes { + + /** Create, update, delete, and manage your Next Gen Agents. */ + public static final String CES = "https://www.googleapis.com/auth/ces"; + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.SetThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Action extends com.google.api.client.json.GenericJson { + + /** + * ID of a Connection action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionActionId; + + /** + * Entity operation configuration for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ActionEntityOperation entityOperation; + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ActionEntityOperation extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entityId; + + /** + * Required. Operation to perform on the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Required. ID of the entity. + * @return value or {@code null} for none + */ + public java.lang.String getEntityId() { + return entityId; + } + + /** + * Required. ID of the entity. + * @param entityId entityId or {@code null} for none + */ + public ActionEntityOperation setEntityId(java.lang.String entityId) { + this.entityId = entityId; + return this; + } + + /** + * Required. Operation to perform on the entity. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Required. Operation to perform on the entity. + * @param operation operation or {@code null} for none + */ + public ActionEntityOperation setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public ActionEntityOperation set(String fieldName, Object value) { + return (ActionEntityOperation) super.set(fieldName, value); + } + + @Override + public ActionEntityOperation clone() { + return (ActionEntityOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java new file mode 100644 index 00000000000..bc3b1a19ad4 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java @@ -0,0 +1,653 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An agent acts as the fundamental building block that provides instructions to the Large Language + * Model (LLM) for executing specific tasks. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Agent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentAgentToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tools IDs to filter the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentLlmAgent extends com.google.api.client.json.GenericJson { + + @Override + public AgentLlmAgent set(String fieldName, Object value) { + return (AgentLlmAgent) super.set(fieldName, value); + } + + @Override + public AgentLlmAgent clone() { + return (AgentLlmAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java new file mode 100644 index 00000000000..ccf1c42fc86 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java @@ -0,0 +1,217 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The agent which will transfer execution to a remote [Dialogflow + * CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent + * will process subsequent user queries until the session ends or flow ends, and the control is + * transferred back to the parent CES agent. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentRemoteDialogflowAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String flowId; + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentTransfer extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetAgent; + + /** + * Output only. Display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public AgentTransfer setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getTargetAgent() { + return targetAgent; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param targetAgent targetAgent or {@code null} for none + */ + public AgentTransfer setTargetAgent(java.lang.String targetAgent) { + this.targetAgent = targetAgent; + return this; + } + + @Override + public AgentTransfer set(String fieldName, Object value) { + return (AgentTransfer) super.set(fieldName, value); + } + + @Override + public AgentTransfer clone() { + return (AgentTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java new file mode 100644 index 00000000000..a58d959e6c9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java @@ -0,0 +1,173 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for the ambient sound to be played with the synthesized agent response, to enhance + * the naturalness of the conversation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AmbientSoundConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientNoise; + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientSound; + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double volumeGainDb; + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @param gcsUri gcsUri or {@code null} for none + */ + public AmbientSoundConfig setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientNoise() { + return prebuiltAmbientNoise; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @param prebuiltAmbientNoise prebuiltAmbientNoise or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientNoise(java.lang.String prebuiltAmbientNoise) { + this.prebuiltAmbientNoise = prebuiltAmbientNoise; + return this; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientSound() { + return prebuiltAmbientSound; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @param prebuiltAmbientSound prebuiltAmbientSound or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientSound(java.lang.String prebuiltAmbientSound) { + this.prebuiltAmbientSound = prebuiltAmbientSound; + return this; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @return value or {@code null} for none + */ + public java.lang.Double getVolumeGainDb() { + return volumeGainDb; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @param volumeGainDb volumeGainDb or {@code null} for none + */ + public AmbientSoundConfig setVolumeGainDb(java.lang.Double volumeGainDb) { + this.volumeGainDb = volumeGainDb; + return this; + } + + @Override + public AmbientSoundConfig set(String fieldName, Object value) { + return (AmbientSoundConfig) super.set(fieldName, value); + } + + @Override + public AmbientSoundConfig clone() { + return (AmbientSoundConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java new file mode 100644 index 00000000000..79b49a98ae8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java @@ -0,0 +1,163 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Authentication information required for API calls. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiAuthentication extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for API key auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyConfig apiKeyConfig; + + /** + * Optional. Config for bearer token auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BearerTokenConfig bearerTokenConfig; + + /** + * Optional. Config for OAuth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OAuthConfig oauthConfig; + + /** + * Optional. Config for service account authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAccountAuthConfig serviceAccountAuthConfig; + + /** + * Optional. Config for ID token auth generated from CES service agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig; + + /** + * Optional. Config for API key auth. + * @return value or {@code null} for none + */ + public ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig; + } + + /** + * Optional. Config for API key auth. + * @param apiKeyConfig apiKeyConfig or {@code null} for none + */ + public ApiAuthentication setApiKeyConfig(ApiKeyConfig apiKeyConfig) { + this.apiKeyConfig = apiKeyConfig; + return this; + } + + /** + * Optional. Config for bearer token auth. + * @return value or {@code null} for none + */ + public BearerTokenConfig getBearerTokenConfig() { + return bearerTokenConfig; + } + + /** + * Optional. Config for bearer token auth. + * @param bearerTokenConfig bearerTokenConfig or {@code null} for none + */ + public ApiAuthentication setBearerTokenConfig(BearerTokenConfig bearerTokenConfig) { + this.bearerTokenConfig = bearerTokenConfig; + return this; + } + + /** + * Optional. Config for OAuth. + * @return value or {@code null} for none + */ + public OAuthConfig getOauthConfig() { + return oauthConfig; + } + + /** + * Optional. Config for OAuth. + * @param oauthConfig oauthConfig or {@code null} for none + */ + public ApiAuthentication setOauthConfig(OAuthConfig oauthConfig) { + this.oauthConfig = oauthConfig; + return this; + } + + /** + * Optional. Config for service account authentication. + * @return value or {@code null} for none + */ + public ServiceAccountAuthConfig getServiceAccountAuthConfig() { + return serviceAccountAuthConfig; + } + + /** + * Optional. Config for service account authentication. + * @param serviceAccountAuthConfig serviceAccountAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAccountAuthConfig(ServiceAccountAuthConfig serviceAccountAuthConfig) { + this.serviceAccountAuthConfig = serviceAccountAuthConfig; + return this; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @return value or {@code null} for none + */ + public ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig() { + return serviceAgentIdTokenAuthConfig; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @param serviceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig) { + this.serviceAgentIdTokenAuthConfig = serviceAgentIdTokenAuthConfig; + return this; + } + + @Override + public ApiAuthentication set(String fieldName, Object value) { + return (ApiAuthentication) super.set(fieldName, value); + } + + @Override + public ApiAuthentication clone() { + return (ApiAuthentication) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java new file mode 100644 index 00000000000..ffcb27b9358 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java @@ -0,0 +1,127 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication with API key. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiKeyConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKeySecretVersion; + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyName; + + /** + * Required. Key location in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestLocation; + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getApiKeySecretVersion() { + return apiKeySecretVersion; + } + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param apiKeySecretVersion apiKeySecretVersion or {@code null} for none + */ + public ApiKeyConfig setApiKeySecretVersion(java.lang.String apiKeySecretVersion) { + this.apiKeySecretVersion = apiKeySecretVersion; + return this; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @return value or {@code null} for none + */ + public java.lang.String getKeyName() { + return keyName; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @param keyName keyName or {@code null} for none + */ + public ApiKeyConfig setKeyName(java.lang.String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Required. Key location in the request. + * @return value or {@code null} for none + */ + public java.lang.String getRequestLocation() { + return requestLocation; + } + + /** + * Required. Key location in the request. + * @param requestLocation requestLocation or {@code null} for none + */ + public ApiKeyConfig setRequestLocation(java.lang.String requestLocation) { + this.requestLocation = requestLocation; + return this; + } + + @Override + public ApiKeyConfig set(String fieldName, Object value) { + return (ApiKeyConfig) super.set(fieldName, value); + } + + @Override + public ApiKeyConfig clone() { + return (ApiKeyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java new file mode 100644 index 00000000000..c0f09810e1c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java @@ -0,0 +1,669 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An app serves as a top-level container for a group of agents, including the root agent and its + * sub-agents, along with their associated configurations. These agents work together to achieve + * specific goals within the app's context. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class App extends com.google.api.client.json.GenericJson { + + /** + * Optional. Audio processing configuration of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioProcessingConfig audioProcessingConfig; + + /** + * Optional. The default client certificate settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClientCertificateSettings clientCertificateSettings; + + /** + * Output only. Timestamp when the app was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The data store settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreSettings dataStoreSettings; + + /** + * Optional. The default channel profile used by the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile defaultChannelProfile; + + /** + * Output only. Number of deployments in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deploymentCount; + + /** + * Optional. Human-readable description of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The evaluation thresholds for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholds evaluationMetricsThresholds; + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String globalInstruction; + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppSnapshot extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of agents in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVariableDeclaration extends com.google.api.client.json.GenericJson { + + /** + * Required. The description of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The schema of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema schema; + + /** + * Required. The description of the variable. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. The description of the variable. + * @param description description or {@code null} for none + */ + public AppVariableDeclaration setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @param name name or {@code null} for none + */ + public AppVariableDeclaration setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The schema of the variable. + * @return value or {@code null} for none + */ + public Schema getSchema() { + return schema; + } + + /** + * Required. The schema of the variable. + * @param schema schema or {@code null} for none + */ + public AppVariableDeclaration setSchema(Schema schema) { + this.schema = schema; + return this; + } + + @Override + public AppVariableDeclaration set(String fieldName, Object value) { + return (AppVariableDeclaration) super.set(fieldName, value); + } + + @Override + public AppVariableDeclaration clone() { + return (AppVariableDeclaration) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java new file mode 100644 index 00000000000..8f5932e46af --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java @@ -0,0 +1,218 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point + * in time. It is immutable and cannot be modified once created. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the app version was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Email of the user who created the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creator; + + /** + * Optional. The description of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The display name of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The snapshot of the app when the version is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppSnapshot snapshot; + + /** + * Output only. Timestamp when the app version was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the app version was created. + * @param createTime createTime or {@code null} for none + */ + public AppVersion setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Email of the user who created the app version. + * @return value or {@code null} for none + */ + public java.lang.String getCreator() { + return creator; + } + + /** + * Output only. Email of the user who created the app version. + * @param creator creator or {@code null} for none + */ + public AppVersion setCreator(java.lang.String creator) { + this.creator = creator; + return this; + } + + /** + * Optional. The description of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the app version. + * @param description description or {@code null} for none + */ + public AppVersion setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The display name of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the app version. + * @param displayName displayName or {@code null} for none + */ + public AppVersion setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public AppVersion setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param name name or {@code null} for none + */ + public AppVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @return value or {@code null} for none + */ + public AppSnapshot getSnapshot() { + return snapshot; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @param snapshot snapshot or {@code null} for none + */ + public AppVersion setSnapshot(AppSnapshot snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public AppVersion set(String fieldName, Object value) { + return (AppVersion) super.set(fieldName, value); + } + + @Override + public AppVersion clone() { + return (AppVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java new file mode 100644 index 00000000000..1a3efbd23b2 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java @@ -0,0 +1,157 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for how the input and output audio should be processed and delivered. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioProcessingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AmbientSoundConfig ambientSoundConfig; + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BargeInConfig bargeInConfig; + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String inactivityTimeout; + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioRecordingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsBucket; + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsPathPrefix; + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsBucket() { + return gcsBucket; + } + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param gcsBucket gcsBucket or {@code null} for none + */ + public AudioRecordingConfig setGcsBucket(java.lang.String gcsBucket) { + this.gcsBucket = gcsBucket; + return this; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @return value or {@code null} for none + */ + public java.lang.String getGcsPathPrefix() { + return gcsPathPrefix; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @param gcsPathPrefix gcsPathPrefix or {@code null} for none + */ + public AudioRecordingConfig setGcsPathPrefix(java.lang.String gcsPathPrefix) { + this.gcsPathPrefix = gcsPathPrefix; + return this; + } + + @Override + public AudioRecordingConfig set(String fieldName, Object value) { + return (AudioRecordingConfig) super.set(fieldName, value); + } + + @Override + public AudioRecordingConfig clone() { + return (AudioRecordingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.java new file mode 100644 index 00000000000..a0c96550cd0 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for how the user barge-in activities should be handled. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BargeInConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean bargeInAwareness; + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeIn; + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBargeInAwareness() { + return bargeInAwareness; + } + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @param bargeInAwareness bargeInAwareness or {@code null} for none + */ + public BargeInConfig setBargeInAwareness(java.lang.Boolean bargeInAwareness) { + this.bargeInAwareness = bargeInAwareness; + return this; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeIn() { + return disableBargeIn; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @param disableBargeIn disableBargeIn or {@code null} for none + */ + public BargeInConfig setDisableBargeIn(java.lang.Boolean disableBargeIn) { + this.disableBargeIn = disableBargeIn; + return this; + } + + @Override + public BargeInConfig set(String fieldName, Object value) { + return (BargeInConfig) super.set(fieldName, value); + } + + @Override + public BargeInConfig clone() { + return (BargeInConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java new file mode 100644 index 00000000000..5ee46a3847f --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for AgentService.BatchDeleteConversations. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchDeleteConversationsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource names of the conversations to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BearerTokenConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @param token token or {@code null} for none + */ + public BearerTokenConfig setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public BearerTokenConfig set(String fieldName, Object value) { + return (BearerTokenConfig) super.set(fieldName, value); + } + + @Override + public BearerTokenConfig clone() { + return (BearerTokenConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java new file mode 100644 index 00000000000..b654219b939 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java @@ -0,0 +1,121 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the BigQuery export behaviors for the app. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The BigQuery dataset to export the data to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataset; + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Optional. The BigQuery dataset to export the data to. + * @return value or {@code null} for none + */ + public java.lang.String getDataset() { + return dataset; + } + + /** + * Optional. The BigQuery dataset to export the data to. + * @param dataset dataset or {@code null} for none + */ + public BigQueryExportSettings setDataset(java.lang.String dataset) { + this.dataset = dataset; + return this; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @param enabled enabled or {@code null} for none + */ + public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param project project or {@code null} for none + */ + public BigQueryExportSettings setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public BigQueryExportSettings set(String fieldName, Object value) { + return (BigQueryExportSettings) super.set(fieldName, value); + } + + @Override + public BigQueryExportSettings clone() { + return (BigQueryExportSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java new file mode 100644 index 00000000000..92b37b154e3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java @@ -0,0 +1,119 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a blob input or output in the conversation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Blob extends com.google.api.client.json.GenericJson { + + /** + * Required. Raw bytes of the blob. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Required. The IANA standard MIME type of the source data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Required. Raw bytes of the blob. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * Required. Raw bytes of the blob. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * Required. Raw bytes of the blob. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public Blob setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Required. Raw bytes of the blob. + * @see #setData() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public Blob encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @param mimeType mimeType or {@code null} for none + */ + public Blob setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public Blob set(String fieldName, Object value) { + return (Blob) super.set(fieldName, value); + } + + @Override + public Blob clone() { + return (Blob) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java new file mode 100644 index 00000000000..9e67ca42abe --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A callback defines the custom logic to be executed at various stages of agent interaction. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Callback extends com.google.api.client.json.GenericJson { + + /** + * Optional. Human-readable description of the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. The python code to execute for the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Optional. Human-readable description of the callback. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the callback. + * @param description description or {@code null} for none + */ + public Callback setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @param disabled disabled or {@code null} for none + */ + public Callback setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. The python code to execute for the callback. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. The python code to execute for the callback. + * @param pythonCode pythonCode or {@code null} for none + */ + public Callback setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public Callback set(String fieldName, Object value) { + return (Callback) super.set(fieldName, value); + } + + @Override + public Callback clone() { + return (Callback) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java new file mode 100644 index 00000000000..db1e857a964 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java @@ -0,0 +1,43 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The request message for Operations.CancelOperation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java new file mode 100644 index 00000000000..366d2aab7d2 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java @@ -0,0 +1,340 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Changelogs represent a change made to the app or to an resource within the app. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Changelog extends com.google.api.client.json.GenericJson { + + /** + * Output only. The action that was performed on the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Output only. Email address of the change author. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String author; + + /** + * Output only. The time when the change was made. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The dependent resources that were changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfile extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeInControl; + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableDtmf; + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String noiseSuppressionLevel; + + /** + * Optional. The persona property of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfilePersonaProperty personaProperty; + + /** + * Optional. The unique identifier of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileId; + + /** + * Optional. The configuration for the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfig webWidgetConfig; + + /** + * Optional. The type of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getChannelType() { + return channelType; + } + + /** + * Optional. The type of the channel profile. + * @param channelType channelType or {@code null} for none + */ + public ChannelProfile setChannelType(java.lang.String channelType) { + this.channelType = channelType; + return this; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeInControl() { + return disableBargeInControl; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @param disableBargeInControl disableBargeInControl or {@code null} for none + */ + public ChannelProfile setDisableBargeInControl(java.lang.Boolean disableBargeInControl) { + this.disableBargeInControl = disableBargeInControl; + return this; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableDtmf() { + return disableDtmf; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @param disableDtmf disableDtmf or {@code null} for none + */ + public ChannelProfile setDisableDtmf(java.lang.Boolean disableDtmf) { + this.disableDtmf = disableDtmf; + return this; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @return value or {@code null} for none + */ + public java.lang.String getNoiseSuppressionLevel() { + return noiseSuppressionLevel; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @param noiseSuppressionLevel noiseSuppressionLevel or {@code null} for none + */ + public ChannelProfile setNoiseSuppressionLevel(java.lang.String noiseSuppressionLevel) { + this.noiseSuppressionLevel = noiseSuppressionLevel; + return this; + } + + /** + * Optional. The persona property of the channel profile. + * @return value or {@code null} for none + */ + public ChannelProfilePersonaProperty getPersonaProperty() { + return personaProperty; + } + + /** + * Optional. The persona property of the channel profile. + * @param personaProperty personaProperty or {@code null} for none + */ + public ChannelProfile setPersonaProperty(ChannelProfilePersonaProperty personaProperty) { + this.personaProperty = personaProperty; + return this; + } + + /** + * Optional. The unique identifier of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getProfileId() { + return profileId; + } + + /** + * Optional. The unique identifier of the channel profile. + * @param profileId profileId or {@code null} for none + */ + public ChannelProfile setProfileId(java.lang.String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Optional. The configuration for the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig; + } + + /** + * Optional. The configuration for the web widget. + * @param webWidgetConfig webWidgetConfig or {@code null} for none + */ + public ChannelProfile setWebWidgetConfig(ChannelProfileWebWidgetConfig webWidgetConfig) { + this.webWidgetConfig = webWidgetConfig; + return this; + } + + @Override + public ChannelProfile set(String fieldName, Object value) { + return (ChannelProfile) super.set(fieldName, value); + } + + @Override + public ChannelProfile clone() { + return (ChannelProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java new file mode 100644 index 00000000000..1eb548e9360 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents the persona property of a channel. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfilePersonaProperty extends com.google.api.client.json.GenericJson { + + /** + * Optional. The persona of the channel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String persona; + + /** + * Optional. The persona of the channel. + * @return value or {@code null} for none + */ + public java.lang.String getPersona() { + return persona; + } + + /** + * Optional. The persona of the channel. + * @param persona persona or {@code null} for none + */ + public ChannelProfilePersonaProperty setPersona(java.lang.String persona) { + this.persona = persona; + return this; + } + + @Override + public ChannelProfilePersonaProperty set(String fieldName, Object value) { + return (ChannelProfilePersonaProperty) super.set(fieldName, value); + } + + @Override + public ChannelProfilePersonaProperty clone() { + return (ChannelProfilePersonaProperty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java new file mode 100644 index 00000000000..51fa2c40691 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java @@ -0,0 +1,139 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Message for configuration for the web widget. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The modality of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modality; + + /** + * Optional. The security settings of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfigSecuritySettings securitySettings; + + /** + * Optional. The theme of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String theme; + + /** + * Optional. The title of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String webWidgetTitle; + + /** + * Optional. The modality of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getModality() { + return modality; + } + + /** + * Optional. The modality of the web widget. + * @param modality modality or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setModality(java.lang.String modality) { + this.modality = modality; + return this; + } + + /** + * Optional. The security settings of the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings getSecuritySettings() { + return securitySettings; + } + + /** + * Optional. The security settings of the web widget. + * @param securitySettings securitySettings or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setSecuritySettings(ChannelProfileWebWidgetConfigSecuritySettings securitySettings) { + this.securitySettings = securitySettings; + return this; + } + + /** + * Optional. The theme of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getTheme() { + return theme; + } + + /** + * Optional. The theme of the web widget. + * @param theme theme or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setTheme(java.lang.String theme) { + this.theme = theme; + return this; + } + + /** + * Optional. The title of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getWebWidgetTitle() { + return webWidgetTitle; + } + + /** + * Optional. The title of the web widget. + * @param webWidgetTitle webWidgetTitle or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setWebWidgetTitle(java.lang.String webWidgetTitle) { + this.webWidgetTitle = webWidgetTitle; + return this; + } + + @Override + public ChannelProfileWebWidgetConfig set(String fieldName, Object value) { + return (ChannelProfileWebWidgetConfig) super.set(fieldName, value); + } + + @Override + public ChannelProfileWebWidgetConfig clone() { + return (ChannelProfileWebWidgetConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java new file mode 100644 index 00000000000..d4d4c06ac36 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java @@ -0,0 +1,160 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Security settings for the web widget. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfigSecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Chunk extends com.google.api.client.json.GenericJson { + + /** + * Optional. Agent transfer event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer agentTransfer; + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Citations extends com.google.api.client.json.GenericJson { + + /** + * List of cited pieces of information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CitationsCitedChunk extends com.google.api.client.json.GenericJson { + + /** + * Text used for citaiton. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Title of the cited document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * URI used for citation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Text used for citaiton. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Text used for citaiton. + * @param text text or {@code null} for none + */ + public CitationsCitedChunk setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Title of the cited document. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the cited document. + * @param title title or {@code null} for none + */ + public CitationsCitedChunk setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * URI used for citation. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * URI used for citation. + * @param uri uri or {@code null} for none + */ + public CitationsCitedChunk setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public CitationsCitedChunk set(String fieldName, Object value) { + return (CitationsCitedChunk) super.set(fieldName, value); + } + + @Override + public CitationsCitedChunk clone() { + return (CitationsCitedChunk) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java new file mode 100644 index 00000000000..a7557fa0341 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java @@ -0,0 +1,127 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings for custom client certificates. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientCertificateSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String passphrase; + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateKey; + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tlsCertificate; + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPassphrase() { + return passphrase; + } + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @param passphrase passphrase or {@code null} for none + */ + public ClientCertificateSettings setPassphrase(java.lang.String passphrase) { + this.passphrase = passphrase; + return this; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPrivateKey() { + return privateKey; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @param privateKey privateKey or {@code null} for none + */ + public ClientCertificateSettings setPrivateKey(java.lang.String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @return value or {@code null} for none + */ + public java.lang.String getTlsCertificate() { + return tlsCertificate; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @param tlsCertificate tlsCertificate or {@code null} for none + */ + public ClientCertificateSettings setTlsCertificate(java.lang.String tlsCertificate) { + this.tlsCertificate = tlsCertificate; + return this; + } + + @Override + public ClientCertificateSettings set(String fieldName, Object value) { + return (ClientCertificateSettings) super.set(fieldName, value); + } + + @Override + public ClientCertificateSettings clone() { + return (ClientCertificateSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java new file mode 100644 index 00000000000..8823f9ffb4e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java @@ -0,0 +1,141 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a client-side function that the agent can invoke. When the tool is chosen by the + * agent, control is handed off to the client. The client is responsible for executing the function + * and returning the result as a ToolResponse to continue the interaction with the agent. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientFunction extends com.google.api.client.json.GenericJson { + + /** + * Optional. The function description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The function name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The schema of the function parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema parameters; + + /** + * Optional. The schema of the function response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema response; + + /** + * Optional. The function description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The function description. + * @param description description or {@code null} for none + */ + public ClientFunction setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The function name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The function name. + * @param name name or {@code null} for none + */ + public ClientFunction setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The schema of the function parameters. + * @return value or {@code null} for none + */ + public Schema getParameters() { + return parameters; + } + + /** + * Optional. The schema of the function parameters. + * @param parameters parameters or {@code null} for none + */ + public ClientFunction setParameters(Schema parameters) { + this.parameters = parameters; + return this; + } + + /** + * Optional. The schema of the function response. + * @return value or {@code null} for none + */ + public Schema getResponse() { + return response; + } + + /** + * Optional. The schema of the function response. + * @param response response or {@code null} for none + */ + public ClientFunction setResponse(Schema response) { + this.response = response; + return this; + } + + @Override + public ClientFunction set(String fieldName, Object value) { + return (ClientFunction) super.set(fieldName, value); + } + + @Override + public ClientFunction clone() { + return (ClientFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java new file mode 100644 index 00000000000..29169c3ffae --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the Cloud Logging behaviors for the app. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CloudLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableCloudLogging; + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableCloudLogging() { + return enableCloudLogging; + } + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @param enableCloudLogging enableCloudLogging or {@code null} for none + */ + public CloudLoggingSettings setEnableCloudLogging(java.lang.Boolean enableCloudLogging) { + this.enableCloudLogging = enableCloudLogging; + return this; + } + + @Override + public CloudLoggingSettings set(String fieldName, Object value) { + return (CloudLoggingSettings) super.set(fieldName, value); + } + + @Override + public CloudLoggingSettings clone() { + return (CloudLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java new file mode 100644 index 00000000000..011abdbbe7a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java @@ -0,0 +1,79 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A code block to be executed instead of a real tool call. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CodeBlock extends com.google.api.client.json.GenericJson { + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @param pythonCode pythonCode or {@code null} for none + */ + public CodeBlock setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public CodeBlock set(String fieldName, Object value) { + return (CodeBlock) super.set(fieldName, value); + } + + @Override + public CodeBlock clone() { + return (CodeBlock) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java new file mode 100644 index 00000000000..fc627c7cb6d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java @@ -0,0 +1,188 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A ConnectorTool allows connections to different integrations. See: + * https://cloud.google.com/integration-connectors/docs/overview. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorTool extends com.google.api.client.json.GenericJson { + + /** + * Required. Action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Action action; + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Action for the tool to use. + * @return value or {@code null} for none + */ + public Action getAction() { + return action; + } + + /** + * Required. Action for the tool to use. + * @param action action or {@code null} for none + */ + public ConnectorTool setAction(Action action) { + this.action = action; + return this; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @return value or {@code null} for none + */ + public EndUserAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @param authConfig authConfig or {@code null} for none + */ + public ConnectorTool setAuthConfig(EndUserAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @return value or {@code null} for none + */ + public java.lang.String getConnection() { + return connection; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @param connection connection or {@code null} for none + */ + public ConnectorTool setConnection(java.lang.String connection) { + this.connection = connection; + return this; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @param description description or {@code null} for none + */ + public ConnectorTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @param name name or {@code null} for none + */ + public ConnectorTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ConnectorTool set(String fieldName, Object value) { + return (ConnectorTool) super.set(fieldName, value); + } + + @Override + public ConnectorTool clone() { + return (ConnectorTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java new file mode 100644 index 00000000000..5d8b0f497df --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java @@ -0,0 +1,139 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset that generates tools from an Integration Connectors Connection. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Conversation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * DEPRECATED. Please use input_types instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Output only. Timestamp when the conversation was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Output only. The input types of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to disable conversation logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableConversationLogging; + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableConversationLogging() { + return disableConversationLogging; + } + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @param disableConversationLogging disableConversationLogging or {@code null} for none + */ + public ConversationLoggingSettings setDisableConversationLogging(java.lang.Boolean disableConversationLogging) { + this.disableConversationLogging = disableConversationLogging; + return this; + } + + @Override + public ConversationLoggingSettings set(String fieldName, Object value) { + return (ConversationLoggingSettings) super.set(fieldName, value); + } + + @Override + public ConversationLoggingSettings clone() { + return (ConversationLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java new file mode 100644 index 00000000000..dd31029417b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java @@ -0,0 +1,94 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * All information about a single turn in the conversation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStore extends com.google.api.client.json.GenericJson { + + /** + * Output only. The connector config for the data store connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreConnectorConfig connectorConfig; + + /** + * Output only. Timestamp when the data store was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The display name of the data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentProcessingMode; + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The connector config for the data store connection. + * @return value or {@code null} for none + */ + public DataStoreConnectorConfig getConnectorConfig() { + return connectorConfig; + } + + /** + * Output only. The connector config for the data store connection. + * @param connectorConfig connectorConfig or {@code null} for none + */ + public DataStore setConnectorConfig(DataStoreConnectorConfig connectorConfig) { + this.connectorConfig = connectorConfig; + return this; + } + + /** + * Output only. Timestamp when the data store was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the data store was created. + * @param createTime createTime or {@code null} for none + */ + public DataStore setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The display name of the data store. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the data store. + * @param displayName displayName or {@code null} for none + */ + public DataStore setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentProcessingMode() { + return documentProcessingMode; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @param documentProcessingMode documentProcessingMode or {@code null} for none + */ + public DataStore setDocumentProcessingMode(java.lang.String documentProcessingMode) { + this.documentProcessingMode = documentProcessingMode; + return this; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @param name name or {@code null} for none + */ + public DataStore setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @param type type or {@code null} for none + */ + public DataStore setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStore set(String fieldName, Object value) { + return (DataStore) super.set(fieldName, value); + } + + @Override + public DataStore clone() { + return (DataStore) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java new file mode 100644 index 00000000000..0965271e4b3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The connector config for the data store connection. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreConnectorConfig extends com.google.api.client.json.GenericJson { + + /** + * Resource name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collection; + + /** + * Display name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collectionDisplayName; + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataSource; + + /** + * Resource name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollection() { + return collection; + } + + /** + * Resource name of the collection the data store belongs to. + * @param collection collection or {@code null} for none + */ + public DataStoreConnectorConfig setCollection(java.lang.String collection) { + this.collection = collection; + return this; + } + + /** + * Display name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollectionDisplayName() { + return collectionDisplayName; + } + + /** + * Display name of the collection the data store belongs to. + * @param collectionDisplayName collectionDisplayName or {@code null} for none + */ + public DataStoreConnectorConfig setCollectionDisplayName(java.lang.String collectionDisplayName) { + this.collectionDisplayName = collectionDisplayName; + return this; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @return value or {@code null} for none + */ + public java.lang.String getDataSource() { + return dataSource; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @param dataSource dataSource or {@code null} for none + */ + public DataStoreConnectorConfig setDataSource(java.lang.String dataSource) { + this.dataSource = dataSource; + return this; + } + + @Override + public DataStoreConnectorConfig set(String fieldName, Object value) { + return (DataStoreConnectorConfig) super.set(fieldName, value); + } + + @Override + public DataStoreConnectorConfig clone() { + return (DataStoreConnectorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java new file mode 100644 index 00000000000..fe00095d6ad --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Data store related settings for the app. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettings extends com.google.api.client.json.GenericJson { + + /** + * Output only. The engines for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettingsEngine extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param name name or {@code null} for none + */ + public DataStoreSettingsEngine setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the engine. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the engine. + * @param type type or {@code null} for none + */ + public DataStoreSettingsEngine setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStoreSettingsEngine set(String fieldName, Object value) { + return (DataStoreSettingsEngine) super.set(fieldName, value); + } + + @Override + public DataStoreSettingsEngine clone() { + return (DataStoreSettingsEngine) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java new file mode 100644 index 00000000000..531dd23f0f6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java @@ -0,0 +1,213 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Tool to retrieve from Vertex AI Search datastore or engine for grounding. Accepts either a + * datastore or an engine, but not both. See Vertex AI Search: https://cloud.google.com/generative- + * ai-app-builder/docs/enterprise-search-introduction. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Boost specification to boost certain documents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of boosting specifications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boost; + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec; + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String condition; + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @return value or {@code null} for none + */ + public java.lang.Float getBoost() { + return boost; + } + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @param boost boost or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoost(java.lang.Float boost) { + this.boost = boost; + return this; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @return value or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec getBoostControlSpec() { + return boostControlSpec; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @param boostControlSpec boostControlSpec or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoostControlSpec(DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec) { + this.boostControlSpec = boostControlSpec; + return this; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @return value or {@code null} for none + */ + public java.lang.String getCondition() { + return condition; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @param condition condition or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setCondition(java.lang.String condition) { + this.condition = condition; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec clone() { + return (DataStoreToolBoostSpecConditionBoostSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java new file mode 100644 index 00000000000..88e84eedbf8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java @@ -0,0 +1,152 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Specification for custom ranking based on customer specified attribute value. It provides more + * controls for customized ranking than the simple (condition, boost) combination above. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeType; + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeValue; + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boostAmount; + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @return value or {@code null} for none + */ + public java.lang.String getAttributeValue() { + return attributeValue; + } + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @param attributeValue attributeValue or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setAttributeValue(java.lang.String attributeValue) { + this.attributeValue = attributeValue; + return this; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @return value or {@code null} for none + */ + public java.lang.Float getBoostAmount() { + return boostAmount; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @param boostAmount boostAmount or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setBoostAmount(java.lang.Float boostAmount) { + this.boostAmount = boostAmount; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint clone() { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java new file mode 100644 index 00000000000..e48b8ab83f5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java @@ -0,0 +1,104 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Boost specifications to boost certain documents. For more information, please refer to + * https://cloud.google.com/generative-ai-app-builder/docs/boosting. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecs extends com.google.api.client.json.GenericJson { + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolDataStoreSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. The data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStore dataStore; + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. The data store. + * @return value or {@code null} for none + */ + public DataStore getDataStore() { + return dataStore; + } + + /** + * Optional. The data store. + * @param dataStore dataStore or {@code null} for none + */ + public DataStoreToolDataStoreSource setDataStore(DataStore dataStore) { + this.dataStore = dataStore; + return this; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @param filter filter or {@code null} for none + */ + public DataStoreToolDataStoreSource setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public DataStoreToolDataStoreSource set(String fieldName, Object value) { + return (DataStoreToolDataStoreSource) super.set(fieldName, value); + } + + @Override + public DataStoreToolDataStoreSource clone() { + return (DataStoreToolDataStoreSource) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java new file mode 100644 index 00000000000..f15fc762ff8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java @@ -0,0 +1,133 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for searching within an Engine, potentially targeting specific DataStores. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolEngineSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolGroundingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether grounding is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float groundingLevel; + + /** + * Optional. Whether grounding is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether grounding is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolGroundingConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @return value or {@code null} for none + */ + public java.lang.Float getGroundingLevel() { + return groundingLevel; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @param groundingLevel groundingLevel or {@code null} for none + */ + public DataStoreToolGroundingConfig setGroundingLevel(java.lang.Float groundingLevel) { + this.groundingLevel = groundingLevel; + return this; + } + + @Override + public DataStoreToolGroundingConfig set(String fieldName, Object value) { + return (DataStoreToolGroundingConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolGroundingConfig clone() { + return (DataStoreToolGroundingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java new file mode 100644 index 00000000000..e3d4a442552 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java @@ -0,0 +1,139 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * If specified, will apply the given configuration for the specified modality. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolModalityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The grounding configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolGroundingConfig groundingConfig; + + /** + * Required. The modality type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modalityType; + + /** + * Optional. The rewriter config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolRewriterConfig rewriterConfig; + + /** + * Optional. The summarization config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolSummarizationConfig summarizationConfig; + + /** + * Optional. The grounding configuration. + * @return value or {@code null} for none + */ + public DataStoreToolGroundingConfig getGroundingConfig() { + return groundingConfig; + } + + /** + * Optional. The grounding configuration. + * @param groundingConfig groundingConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setGroundingConfig(DataStoreToolGroundingConfig groundingConfig) { + this.groundingConfig = groundingConfig; + return this; + } + + /** + * Required. The modality type. + * @return value or {@code null} for none + */ + public java.lang.String getModalityType() { + return modalityType; + } + + /** + * Required. The modality type. + * @param modalityType modalityType or {@code null} for none + */ + public DataStoreToolModalityConfig setModalityType(java.lang.String modalityType) { + this.modalityType = modalityType; + return this; + } + + /** + * Optional. The rewriter config. + * @return value or {@code null} for none + */ + public DataStoreToolRewriterConfig getRewriterConfig() { + return rewriterConfig; + } + + /** + * Optional. The rewriter config. + * @param rewriterConfig rewriterConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setRewriterConfig(DataStoreToolRewriterConfig rewriterConfig) { + this.rewriterConfig = rewriterConfig; + return this; + } + + /** + * Optional. The summarization config. + * @return value or {@code null} for none + */ + public DataStoreToolSummarizationConfig getSummarizationConfig() { + return summarizationConfig; + } + + /** + * Optional. The summarization config. + * @param summarizationConfig summarizationConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setSummarizationConfig(DataStoreToolSummarizationConfig summarizationConfig) { + this.summarizationConfig = summarizationConfig; + return this; + } + + @Override + public DataStoreToolModalityConfig set(String fieldName, Object value) { + return (DataStoreToolModalityConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolModalityConfig clone() { + return (DataStoreToolModalityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java new file mode 100644 index 00000000000..a8662d82f93 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Rewriter configuration. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolRewriterConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the rewriter is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether the rewriter is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the rewriter is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolRewriterConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Required. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolRewriterConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolRewriterConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolRewriterConfig set(String fieldName, Object value) { + return (DataStoreToolRewriterConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolRewriterConfig clone() { + return (DataStoreToolRewriterConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java new file mode 100644 index 00000000000..6d3a67d73e9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Summarization configuration. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolSummarizationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether summarization is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether summarization is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether summarization is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolSummarizationConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolSummarizationConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolSummarizationConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolSummarizationConfig set(String fieldName, Object value) { + return (DataStoreToolSummarizationConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolSummarizationConfig clone() { + return (DataStoreToolSummarizationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java new file mode 100644 index 00000000000..430cdba38ec --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java @@ -0,0 +1,221 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A deployment represents an immutable, queryable version of the app. It is used to deploy an app + * version with a specific channel profile. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Deployment extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Required. The channel profile used in the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile channelProfile; + + /** + * Output only. Timestamp when this deployment was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Display name of the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when this deployment was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @param appVersion appVersion or {@code null} for none + */ + public Deployment setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Required. The channel profile used in the deployment. + * @return value or {@code null} for none + */ + public ChannelProfile getChannelProfile() { + return channelProfile; + } + + /** + * Required. The channel profile used in the deployment. + * @param channelProfile channelProfile or {@code null} for none + */ + public Deployment setChannelProfile(ChannelProfile channelProfile) { + this.channelProfile = channelProfile; + return this; + } + + /** + * Output only. Timestamp when this deployment was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when this deployment was created. + * @param createTime createTime or {@code null} for none + */ + public Deployment setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Display name of the deployment. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the deployment. + * @param displayName displayName or {@code null} for none + */ + public Deployment setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Deployment setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param name name or {@code null} for none + */ + public Deployment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Deployment setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Deployment set(String fieldName, Object value) { + return (Deployment) super.set(fieldName, value); + } + + @Override + public Deployment clone() { + return (Deployment) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java new file mode 100644 index 00000000000..75e35a91de1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java @@ -0,0 +1,45 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.java new file mode 100644 index 00000000000..59789e99aa5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.java @@ -0,0 +1,73 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Indicates the session has terminated, due to either successful completion (e.g. user says "Good + * bye!" ) or an agent escalation. The agent will not process any further inputs after session is + * terminated and the client should half-close and disconnect after receiving all remaining + * responses from the agent. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndSession extends com.google.api.client.json.GenericJson { + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Oauth 2.0 Authorization Code authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig; + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig; + + /** + * Oauth 2.0 Authorization Code authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig getOauth2AuthCodeConfig() { + return oauth2AuthCodeConfig; + } + + /** + * Oauth 2.0 Authorization Code authentication. + * @param oauth2AuthCodeConfig oauth2AuthCodeConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2AuthCodeConfig(EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig) { + this.oauth2AuthCodeConfig = oauth2AuthCodeConfig; + return this; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig getOauth2JwtBearerConfig() { + return oauth2JwtBearerConfig; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @param oauth2JwtBearerConfig oauth2JwtBearerConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2JwtBearerConfig(EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig) { + this.oauth2JwtBearerConfig = oauth2JwtBearerConfig; + return this; + } + + @Override + public EndUserAuthConfig set(String fieldName, Object value) { + return (EndUserAuthConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfig clone() { + return (EndUserAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java new file mode 100644 index 00000000000..ca549104651 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java @@ -0,0 +1,70 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Oauth 2.0 Authorization Code authentication configuration. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2AuthCodeConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauthToken; + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @param oauthToken oauthToken or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig clone() { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java new file mode 100644 index 00000000000..8716057f1c3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java @@ -0,0 +1,115 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * JWT Profile Oauth 2.0 Authorization Grant authentication configuration. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2JwtBearerConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientKey; + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issuer; + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subject; + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getClientKey() { + return clientKey; + } + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @param clientKey clientKey or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setClientKey(java.lang.String clientKey) { + this.clientKey = clientKey; + return this; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getIssuer() { + return issuer; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @param issuer issuer or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setIssuer(java.lang.String issuer) { + this.issuer = issuer; + return this; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getSubject() { + return subject; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @param subject subject or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setSubject(java.lang.String subject) { + this.subject = subject; + return this; + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig clone() { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.java new file mode 100644 index 00000000000..f770e69cd3b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.java @@ -0,0 +1,142 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Threshold settings for metrics in an Evaluation. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The golden evaluation metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds; + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenHallucinationMetricBehavior; + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hallucinationMetricBehavior; + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scenarioHallucinationMetricBehavior; + + /** + * Optional. The golden evaluation metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds getGoldenEvaluationMetricsThresholds() { + return goldenEvaluationMetricsThresholds; + } + + /** + * Optional. The golden evaluation metrics thresholds. + * @param goldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenEvaluationMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds) { + this.goldenEvaluationMetricsThresholds = goldenEvaluationMetricsThresholds; + return this; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenHallucinationMetricBehavior() { + return goldenHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @param goldenHallucinationMetricBehavior goldenHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenHallucinationMetricBehavior(java.lang.String goldenHallucinationMetricBehavior) { + this.goldenHallucinationMetricBehavior = goldenHallucinationMetricBehavior; + return this; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getHallucinationMetricBehavior() { + return hallucinationMetricBehavior; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @param hallucinationMetricBehavior hallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setHallucinationMetricBehavior(java.lang.String hallucinationMetricBehavior) { + this.hallucinationMetricBehavior = hallucinationMetricBehavior; + return this; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getScenarioHallucinationMetricBehavior() { + return scenarioHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @param scenarioHallucinationMetricBehavior scenarioHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setScenarioHallucinationMetricBehavior(java.lang.String scenarioHallucinationMetricBehavior) { + this.scenarioHallucinationMetricBehavior = scenarioHallucinationMetricBehavior; + return this; + } + + @Override + public EvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java new file mode 100644 index 00000000000..7154cded011 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java @@ -0,0 +1,91 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings for golden evaluations. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The expectation level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds; + + /** + * Optional. The turn level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds; + + /** + * Optional. The expectation level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds getExpectationLevelMetricsThresholds() { + return expectationLevelMetricsThresholds; + } + + /** + * Optional. The expectation level metrics thresholds. + * @param expectationLevelMetricsThresholds expectationLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setExpectationLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds) { + this.expectationLevelMetricsThresholds = expectationLevelMetricsThresholds; + return this; + } + + /** + * Optional. The turn level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds getTurnLevelMetricsThresholds() { + return turnLevelMetricsThresholds; + } + + /** + * Optional. The turn level metrics thresholds. + * @param turnLevelMetricsThresholds turnLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setTurnLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds) { + this.turnLevelMetricsThresholds = turnLevelMetricsThresholds; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java new file mode 100644 index 00000000000..d2d5d868090 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java @@ -0,0 +1,70 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Expectation level metrics thresholds. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolInvocationParameterCorrectnessThreshold; + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getToolInvocationParameterCorrectnessThreshold() { + return toolInvocationParameterCorrectnessThreshold; + } + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @param toolInvocationParameterCorrectnessThreshold toolInvocationParameterCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds setToolInvocationParameterCorrectnessThreshold(java.lang.Float toolInvocationParameterCorrectnessThreshold) { + this.toolInvocationParameterCorrectnessThreshold = toolInvocationParameterCorrectnessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java new file mode 100644 index 00000000000..2e2c9f1fd6d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java @@ -0,0 +1,121 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Turn level metrics thresholds. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float overallToolInvocationCorrectnessThreshold; + + /** + * Optional. The semantic similarity channel to use for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String semanticSimilarityChannel; + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer semanticSimilaritySuccessThreshold; + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getOverallToolInvocationCorrectnessThreshold() { + return overallToolInvocationCorrectnessThreshold; + } + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @param overallToolInvocationCorrectnessThreshold overallToolInvocationCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setOverallToolInvocationCorrectnessThreshold(java.lang.Float overallToolInvocationCorrectnessThreshold) { + this.overallToolInvocationCorrectnessThreshold = overallToolInvocationCorrectnessThreshold; + return this; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getSemanticSimilarityChannel() { + return semanticSimilarityChannel; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @param semanticSimilarityChannel semanticSimilarityChannel or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilarityChannel(java.lang.String semanticSimilarityChannel) { + this.semanticSimilarityChannel = semanticSimilarityChannel; + return this; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @return value or {@code null} for none + */ + public java.lang.Integer getSemanticSimilaritySuccessThreshold() { + return semanticSimilaritySuccessThreshold; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @param semanticSimilaritySuccessThreshold semanticSimilaritySuccessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilaritySuccessThreshold(java.lang.Integer semanticSimilaritySuccessThreshold) { + this.semanticSimilaritySuccessThreshold = semanticSimilaritySuccessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java new file mode 100644 index 00000000000..abe234968ea --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Event input. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Event extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String event; + + /** + * Required. The name of the event. + * @return value or {@code null} for none + */ + public java.lang.String getEvent() { + return event; + } + + /** + * Required. The name of the event. + * @param event event or {@code null} for none + */ + public Event setEvent(java.lang.String event) { + this.event = event; + return this; + } + + @Override + public Event set(String fieldName, Object value) { + return (Event) super.set(fieldName, value); + } + + @Override + public Event clone() { + return (Event) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java new file mode 100644 index 00000000000..ab4696325fe --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java @@ -0,0 +1,274 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An example represents a sample conversation between the user and the agent(s). + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Example extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the example was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invalid; + + /** + * Optional. The collection of messages that make up the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The format to export the app in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exportFormat; + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Required. The format to export the app in. + * @return value or {@code null} for none + */ + public java.lang.String getExportFormat() { + return exportFormat; + } + + /** + * Required. The format to export the app in. + * @param exportFormat exportFormat or {@code null} for none + */ + public ExportAppRequest setExportFormat(java.lang.String exportFormat) { + this.exportFormat = exportFormat; + return this; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @param gcsUri gcsUri or {@code null} for none + */ + public ExportAppRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + @Override + public ExportAppRequest set(String fieldName, Object value) { + return (ExportAppRequest) super.set(fieldName, value); + } + + @Override + public ExportAppRequest clone() { + return (ExportAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java new file mode 100644 index 00000000000..62700844208 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java @@ -0,0 +1,122 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ExportApp. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppResponse extends com.google.api.client.json.GenericJson { + + /** + * App folder compressed as a zip file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appContent; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appUri; + + /** + * App folder compressed as a zip file. + * @see #decodeAppContent() + * @return value or {@code null} for none + */ + public java.lang.String getAppContent() { + return appContent; + } + + /** + * App folder compressed as a zip file. + * @see #getAppContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAppContent() { + return com.google.api.client.util.Base64.decodeBase64(appContent); + } + + /** + * App folder compressed as a zip file. + * @see #encodeAppContent() + * @param appContent appContent or {@code null} for none + */ + public ExportAppResponse setAppContent(java.lang.String appContent) { + this.appContent = appContent; + return this; + } + + /** + * App folder compressed as a zip file. + * @see #setAppContent() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public ExportAppResponse encodeAppContent(byte[] appContent) { + this.appContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(appContent); + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @return value or {@code null} for none + */ + public java.lang.String getAppUri() { + return appUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @param appUri appUri or {@code null} for none + */ + public ExportAppResponse setAppUri(java.lang.String appUri) { + this.appUri = appUri; + return this; + } + + @Override + public ExportAppResponse set(String fieldName, Object value) { + return (ExportAppResponse) super.set(fieldName, value); + } + + @Override + public ExportAppResponse clone() { + return (ExportAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java new file mode 100644 index 00000000000..b98f378aef9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java @@ -0,0 +1,67 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Expression condition based on session state. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExpressionCondition extends com.google.api.client.json.GenericJson { + + /** + * Required. The string representation of cloud.api.Expression condition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Required. The string representation of cloud.api.Expression condition. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Required. The string representation of cloud.api.Expression condition. + * @param expression expression or {@code null} for none + */ + public ExpressionCondition setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + @Override + public ExpressionCondition set(String fieldName, Object value) { + return (ExpressionCondition) super.set(fieldName, value); + } + + @Override + public ExpressionCondition clone() { + return (ExpressionCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java new file mode 100644 index 00000000000..36a3fe2f286 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java @@ -0,0 +1,144 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The file search tool allows the agent to search across the files uploaded by the app/agent + * developer. It has presets to give relatively good quality search over the uploaded files and + * summarization of the retrieved results. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FileSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String corpusType; + + /** + * Optional. The tool description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileCorpus; + + /** + * Required. The tool name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getCorpusType() { + return corpusType; + } + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @param corpusType corpusType or {@code null} for none + */ + public FileSearchTool setCorpusType(java.lang.String corpusType) { + this.corpusType = corpusType; + return this; + } + + /** + * Optional. The tool description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The tool description. + * @param description description or {@code null} for none + */ + public FileSearchTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @return value or {@code null} for none + */ + public java.lang.String getFileCorpus() { + return fileCorpus; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @param fileCorpus fileCorpus or {@code null} for none + */ + public FileSearchTool setFileCorpus(java.lang.String fileCorpus) { + this.fileCorpus = fileCorpus; + return this; + } + + /** + * Required. The tool name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The tool name. + * @param name name or {@code null} for none + */ + public FileSearchTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public FileSearchTool set(String fieldName, Object value) { + return (FileSearchTool) super.set(fieldName, value); + } + + @Override + public FileSearchTool clone() { + return (FileSearchTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java new file mode 100644 index 00000000000..e0b8c94723b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java @@ -0,0 +1,94 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for WidgetService.GenerateChatToken. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recaptchaToken; + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param deployment deployment or {@code null} for none + */ + public GenerateChatTokenRequest setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @return value or {@code null} for none + */ + public java.lang.String getRecaptchaToken() { + return recaptchaToken; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @param recaptchaToken recaptchaToken or {@code null} for none + */ + public GenerateChatTokenRequest setRecaptchaToken(java.lang.String recaptchaToken) { + this.recaptchaToken = recaptchaToken; + return this; + } + + @Override + public GenerateChatTokenRequest set(String fieldName, Object value) { + return (GenerateChatTokenRequest) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenRequest clone() { + return (GenerateChatTokenRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java new file mode 100644 index 00000000000..042986e75ae --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java @@ -0,0 +1,91 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for WidgetService.GenerateChatToken. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenResponse extends com.google.api.client.json.GenericJson { + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chatToken; + + /** + * The time at which the chat token expires. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @return value or {@code null} for none + */ + public java.lang.String getChatToken() { + return chatToken; + } + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @param chatToken chatToken or {@code null} for none + */ + public GenerateChatTokenResponse setChatToken(java.lang.String chatToken) { + this.chatToken = chatToken; + return this; + } + + /** + * The time at which the chat token expires. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * The time at which the chat token expires. + * @param expireTime expireTime or {@code null} for none + */ + public GenerateChatTokenResponse setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + @Override + public GenerateChatTokenResponse set(String fieldName, Object value) { + return (GenerateChatTokenResponse) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenResponse clone() { + return (GenerateChatTokenResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java new file mode 100644 index 00000000000..e151732b73e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java @@ -0,0 +1,100 @@ +/* + * 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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Search suggestions from Google Search Tool. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchSuggestions extends com.google.api.client.json.GenericJson { + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List