{@link GetEncryptionSpec#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 encryption spec resource to get. + * @since 1.13 + */ + protected GetEncryptionSpec(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1EncryptionSpec.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/[^/]+/encryptionSpec$"); + } + } + + @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 GetEncryptionSpec set$Xgafv(java.lang.String $Xgafv) { + return (GetEncryptionSpec) super.set$Xgafv($Xgafv); + } + + @Override + public GetEncryptionSpec setAccessToken(java.lang.String accessToken) { + return (GetEncryptionSpec) super.setAccessToken(accessToken); + } + + @Override + public GetEncryptionSpec setAlt(java.lang.String alt) { + return (GetEncryptionSpec) super.setAlt(alt); + } + + @Override + public GetEncryptionSpec setCallback(java.lang.String callback) { + return (GetEncryptionSpec) super.setCallback(callback); + } + + @Override + public GetEncryptionSpec setFields(java.lang.String fields) { + return (GetEncryptionSpec) super.setFields(fields); + } + + @Override + public GetEncryptionSpec setKey(java.lang.String key) { + return (GetEncryptionSpec) super.setKey(key); + } + + @Override + public GetEncryptionSpec setOauthToken(java.lang.String oauthToken) { + return (GetEncryptionSpec) super.setOauthToken(oauthToken); + } + + @Override + public GetEncryptionSpec setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEncryptionSpec) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEncryptionSpec setQuotaUser(java.lang.String quotaUser) { + return (GetEncryptionSpec) super.setQuotaUser(quotaUser); + } + + @Override + public GetEncryptionSpec setUploadType(java.lang.String uploadType) { + return (GetEncryptionSpec) super.setUploadType(uploadType); + } + + @Override + public GetEncryptionSpec setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEncryptionSpec) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the encryption spec resource to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the encryption spec resource to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the encryption spec resource to get. */ + public GetEncryptionSpec 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/[^/]+/encryptionSpec$"); + } + this.name = name; + return this; + } + + @Override + public GetEncryptionSpec set(String parameterName, Object value) { + return (GetEncryptionSpec) super.set(parameterName, value); + } + } /** * Gets project-level settings. * @@ -2731,6 +2871,174 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the EncryptionSpec collection. + * + *The typical use is:
+ *+ * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} + * {@code Contactcenterinsights.EncryptionSpec.List request = contactcenterinsights.encryptionSpec().list(parameters ...)} + *+ * + * @return the resource collection + */ + public EncryptionSpec encryptionSpec() { + return new EncryptionSpec(); + } + + /** + * The "encryptionSpec" collection of methods. + */ + public class EncryptionSpec { + + /** + * Initializes a location-level encryption key specification. An error will be thrown if the + * location has resources already created before the initialization. Once the encryption + * specification is initialized at a location, it is immutable and all newly created resources under + * the location will be encrypted with the existing specification. + * + * Create a request for the method "encryptionSpec.initialize". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Initialize#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @return the request + */ + public Initialize initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) throws java.io.IOException { + Initialize result = new Initialize(name, content); + initialize(result); + return result; + } + + public class Initialize extends ContactcenterinsightsRequest
{@link + * Initialize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @since 1.13 + */ + protected Initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.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/[^/]+/encryptionSpec$"); + } + } + + @Override + public Initialize set$Xgafv(java.lang.String $Xgafv) { + return (Initialize) super.set$Xgafv($Xgafv); + } + + @Override + public Initialize setAccessToken(java.lang.String accessToken) { + return (Initialize) super.setAccessToken(accessToken); + } + + @Override + public Initialize setAlt(java.lang.String alt) { + return (Initialize) super.setAlt(alt); + } + + @Override + public Initialize setCallback(java.lang.String callback) { + return (Initialize) super.setCallback(callback); + } + + @Override + public Initialize setFields(java.lang.String fields) { + return (Initialize) super.setFields(fields); + } + + @Override + public Initialize setKey(java.lang.String key) { + return (Initialize) super.setKey(key); + } + + @Override + public Initialize setOauthToken(java.lang.String oauthToken) { + return (Initialize) super.setOauthToken(oauthToken); + } + + @Override + public Initialize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Initialize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Initialize setQuotaUser(java.lang.String quotaUser) { + return (Initialize) super.setQuotaUser(quotaUser); + } + + @Override + public Initialize setUploadType(java.lang.String uploadType) { + return (Initialize) super.setUploadType(uploadType); + } + + @Override + public Initialize setUploadProtocol(java.lang.String uploadProtocol) { + return (Initialize) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the encryption key specification resource. Format: + projects/{project}/locations/{location}/encryptionSpec + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + public Initialize 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/[^/]+/encryptionSpec$"); + } + this.name = name; + return this; + } + + @Override + public Initialize set(String parameterName, Object value) { + return (Initialize) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Insightsdata collection. * diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java new file mode 100644 index 00000000000..7f2b74d476c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.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.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. 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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..9fadc7781da --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.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.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * 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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..79e0c9b64fe --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.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.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java new file mode 100644 index 00000000000..4c1e3d0ee7b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.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.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. 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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..fc329599164 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.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.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * 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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..231932add32 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.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.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml index 443f353b7e2..6e3cfbd684b 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@